This commit is contained in:
PQZ 2024-12-09 17:17:41 +08:00
parent 42ab3c72d6
commit 255e34123f
4 changed files with 11 additions and 9 deletions

View File

@ -88,7 +88,9 @@ export default {
},
methods: {
close(){
this.$router.go(-1);
this.$router.push({
name: "BaseContTemp",
});
},
/** 打开弹窗 */
async open(id) {
@ -106,7 +108,6 @@ export default {
},
/** 提交按钮 */
async submitForm() {
debugger
//
await this.$refs["formRef"].validate();
this.formLoading = true;
@ -116,13 +117,17 @@ export default {
if (data.id) {
await ContTempApi.updateContTemp(data);
this.$modal.msgSuccess("修改成功");
this.$router.go(-1);
await this.$router.push({
name: "BaseContTemp",
});
return;
}
//
await ContTempApi.createContTemp(data);
this.$modal.msgSuccess("新增成功");
this.$router.go(-1);
await this.$router.push({
name: "BaseContTemp",
});
} finally {
this.formLoading = false;
}
@ -139,7 +144,6 @@ export default {
status: undefined,
tempContent: undefined,
};
debugger
this.resetForm("formRef");
}
}

View File

@ -91,7 +91,7 @@
import * as ContTempApi from '@/api/base/cont';
export default {
name: "ContTemp",
name: "BaseContTemp",
components: {
},
data() {

View File

@ -67,8 +67,6 @@ export default {
formRules: {
posName: [{ required: true, message: '存放地名称不能为空', trigger: 'blur' }],
depositType: [{ required: true, message: '存放类型不能为空', trigger: 'blur' }],
area: [{ required: true, message: '面积不能为空', trigger: 'blur' }],
address: [{ required: true, message: '存放地地址不能为空', trigger: 'blur' }],
},
};
},

View File

@ -36,7 +36,7 @@
}}</span>
</template>
</el-table-column>
<el-table-column label="所属企业" align="center" prop="corpName" />
<!-- <el-table-column label="所属企业" align="center" prop="corpName" />-->
<el-table-column label="存放地名称" align="center" prop="posName" />
<el-table-column label="存放地地址" align="center" prop="address" />
<el-table-column label="面积(㎡)" align="center" prop="area" />