物业之前,新工作台
This commit is contained in:
@@ -115,12 +115,10 @@ async function init() {
|
||||
...form.value,
|
||||
...res.data
|
||||
};
|
||||
console.log(form.value);
|
||||
const find = res2.rows.find((item) => item.id === form.value.typeId);
|
||||
if (find) {
|
||||
form.value.type = find.name;
|
||||
}
|
||||
console.log(form.value);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -140,6 +138,7 @@ const formRef = ref();
|
||||
const submitForm = () => {
|
||||
formRef.value?.validate(async (valid: boolean) => {
|
||||
if (valid) {
|
||||
form.value.villageId = Number(localStorage.getItem('villageid'));
|
||||
if (userid.value) {
|
||||
updateComplaint(form.value).then(() => {
|
||||
ElMessage.success('编辑成功');
|
||||
@@ -165,6 +164,7 @@ function handleBack() {
|
||||
.ResidentMainBody {
|
||||
margin-top: 20px;
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
|
||||
.CarinfoBox {
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user