Commit 21833d7e by 彭祥礼

...

parent 21cf3f4d
......@@ -57,7 +57,8 @@
<a-modal :title="titleName" :visible="modifyvisible" @ok="createfunctionOk" @cancel="createfunctionCancel" html-type="submit" width="720px" height="1600px">
<a-form :form="Formtable">
<a-form-item :labelCol="{span: 6}" :wrapperCol="{span: 8, offset: 1}" label="账号">
<a-select mode="tags" v-model="modifyForm.account" placeholder="请选择账号" @change="handleChange">
<a-select v-model="modifyForm.account" placeholder="请选择账号" @change="handleChange"><!-- mode="tags"-->
<a-select-option key="">请选择</a-select-option>
<a-select-option v-for="d in userList" :value="d.account">{{ d.name}}</a-select-option>
</a-select>
</a-form-item>
......@@ -179,7 +180,6 @@
this.modifyvisible = true;
},
handleChange(value) {
this.modifyForm.account = value
console.log(`selected ${value}`);
},
//提交表单
......@@ -189,9 +189,11 @@
addAllocation({"account":this.modifyForm.account,"schoolId":this.modifyForm.schoolId}).then(res=>{
if (res.state=="success") {
this.$message.success(res.data ? res.data : '添加成功!', 5);
this.search();
this.modifyForm.account = ""
this.modifyForm.subName = ''
this.modifyForm.schoolId = ''
this.modifyvisible = false;
return null;
this.search();
}
this.$message.error(res.data ? res.data : '添加失败!', 5);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment