校验必填

This commit is contained in:
shidongli 2024-12-19 14:56:30 +08:00
parent e0a24f983f
commit 6c58ab3d5d

View File

@ -724,6 +724,10 @@ export default {
},
//
rules: {
nodeType:[
{ required: true, message: "节点类型不能为空", trigger: "blur" },
],
agencyName: [
{ required: true, message: "机构名称不能为空", trigger: "blur" },
],
@ -1109,7 +1113,7 @@ export default {
this.title = "添加机构信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
async handleUpdate(row) {
this.reset();
this.disabled = true;
@ -1118,7 +1122,7 @@ export default {
this.$message.error("请先选择机构");
} else {
// const id = row.id || this.ids;
getAgency(this.id).then((response) => {
await getAgency(this.id).then((response) => {
console.log(response.data, "response.data.parentId");
this.form = response.data;
this.form.communityCode = response.data.communityName;