调整
This commit is contained in:
parent
42ab3c72d6
commit
255e34123f
@ -88,7 +88,9 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close(){
|
close(){
|
||||||
this.$router.go(-1);
|
this.$router.push({
|
||||||
|
name: "BaseContTemp",
|
||||||
|
});
|
||||||
},
|
},
|
||||||
/** 打开弹窗 */
|
/** 打开弹窗 */
|
||||||
async open(id) {
|
async open(id) {
|
||||||
@ -106,7 +108,6 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
async submitForm() {
|
async submitForm() {
|
||||||
debugger
|
|
||||||
// 校验主表
|
// 校验主表
|
||||||
await this.$refs["formRef"].validate();
|
await this.$refs["formRef"].validate();
|
||||||
this.formLoading = true;
|
this.formLoading = true;
|
||||||
@ -116,13 +117,17 @@ export default {
|
|||||||
if (data.id) {
|
if (data.id) {
|
||||||
await ContTempApi.updateContTemp(data);
|
await ContTempApi.updateContTemp(data);
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.$router.go(-1);
|
await this.$router.push({
|
||||||
|
name: "BaseContTemp",
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 添加的提交
|
// 添加的提交
|
||||||
await ContTempApi.createContTemp(data);
|
await ContTempApi.createContTemp(data);
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.$router.go(-1);
|
await this.$router.push({
|
||||||
|
name: "BaseContTemp",
|
||||||
|
});
|
||||||
} finally {
|
} finally {
|
||||||
this.formLoading = false;
|
this.formLoading = false;
|
||||||
}
|
}
|
||||||
@ -139,7 +144,6 @@ export default {
|
|||||||
status: undefined,
|
status: undefined,
|
||||||
tempContent: undefined,
|
tempContent: undefined,
|
||||||
};
|
};
|
||||||
debugger
|
|
||||||
this.resetForm("formRef");
|
this.resetForm("formRef");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
import * as ContTempApi from '@/api/base/cont';
|
import * as ContTempApi from '@/api/base/cont';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ContTemp",
|
name: "BaseContTemp",
|
||||||
components: {
|
components: {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -67,8 +67,6 @@ export default {
|
|||||||
formRules: {
|
formRules: {
|
||||||
posName: [{ required: true, message: '存放地名称不能为空', trigger: 'blur' }],
|
posName: [{ required: true, message: '存放地名称不能为空', trigger: 'blur' }],
|
||||||
depositType: [{ 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>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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="posName" />
|
||||||
<el-table-column label="存放地地址" align="center" prop="address" />
|
<el-table-column label="存放地地址" align="center" prop="address" />
|
||||||
<el-table-column label="面积(㎡)" align="center" prop="area" />
|
<el-table-column label="面积(㎡)" align="center" prop="area" />
|
||||||
|
Loading…
Reference in New Issue
Block a user