|
@@ -14,7 +14,7 @@
|
|
|
<el-form :model="form" :rules="rules" ref="form" label-width="100px" label-position="right" size="mini">
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="业务员:" prop="hrid">
|
|
|
- <popoverTable :tablecols="tablecols" :param="salerParam" placeholder="请选择业务员" :isInput="false" @rowClick="rowClick"></popoverTable>
|
|
|
+ <popoverTable ref="salerRef" :tablecols="tablecols" :param="salerParam" placeholder="请选择业务员" :isInput="false" @rowClick="rowClick"></popoverTable>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
@@ -78,7 +78,6 @@ export default {
|
|
|
},
|
|
|
rowClick(val){
|
|
|
this.form.hrid = val.hrid
|
|
|
- console.log(val,'选择的业务员')
|
|
|
},
|
|
|
onSubmit(){
|
|
|
let param = {
|
|
@@ -92,6 +91,7 @@ export default {
|
|
|
this.loading = false
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.$refs.form.resetFields()
|
|
|
+ this.$refs.salerRef.name = ''
|
|
|
this.form.hrid = ''
|
|
|
this.dialogFormVisible = false
|
|
|
this.$emit('onSuccess')
|
|
@@ -100,6 +100,7 @@ export default {
|
|
|
},
|
|
|
onClose(){
|
|
|
this.$refs.form.resetFields()
|
|
|
+ this.$refs.salerRef.name = ''
|
|
|
this.form.hrid = ''
|
|
|
this.dialogFormVisible = false
|
|
|
}
|