Commit 3a8a8842 by 无尘

fix: 修改绑定导购

parent 993ba36c
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors: 无尘
* @LastEditTime: 2020-11-30 17:15:23
* @LastEditTime: 2020-11-30 17:27:02
* @FilePath : \haoban-4\src\components\company\add-relate.vue
-->
<!--
......@@ -84,7 +84,8 @@ export default {
selectId: '',
departVisible: true,
loading: false,
visible: false
visible: false,
backKey: 0
};
},
methods: {
......@@ -177,11 +178,14 @@ export default {
const that = this;
if (that.searchSelect.trim() == '') {
that.storeData = [];
if (e.keyCode == 8) {
e.keyCode == 8 ? that.backKey ++ : 0;
if (e.keyCode == 8 && that.backKey > 1) {
that.selectId = '';
that.partForm.salerName = '';
}
return false;
}else {
that.backKey = 0;
}
that.getData();
}, 200),
......@@ -200,12 +204,14 @@ export default {
*/
handleClose(done) {
const that = this;
that.backKey = 0;
that.$refs['partForm'].resetFields();
that.$emit('refreshData', 'close');
done();
},
cancel() {
const that = this;
that.backKey = 0;
that.$refs['partForm'].resetFields();
that.$emit('refreshData', 'close');
},
......@@ -237,6 +243,7 @@ export default {
that.loading = false;
if (res.code == '0000') {
showMsg.showmsg('添加成功', 'success');
that.backKey = 0;
that.$emit('refreshData', that.partForm);
}else {
that.$message({
......
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