调整
This commit is contained in:
parent
42ab3c72d6
commit
255e34123f
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@
|
||||
import * as ContTempApi from '@/api/base/cont';
|
||||
|
||||
export default {
|
||||
name: "ContTemp",
|
||||
name: "BaseContTemp",
|
||||
components: {
|
||||
},
|
||||
data() {
|
||||
|
@ -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' }],
|
||||
},
|
||||
};
|
||||
},
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user