校验必填
This commit is contained in:
parent
e0a24f983f
commit
6c58ab3d5d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user