Commit 8cbf6817 by 无尘

fix: 修改组件选项顺序

parent 770f4774
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-08-13 09:58:35
* @LastEditTime: 2020-08-17 09:34:31
-->
<!--
应用公共左侧菜单:
......@@ -73,16 +73,7 @@ export default {
collapsFlag: true
};
},
watch: {
tabListData: function(newData, oldData) {
let that = this;
that.tabData = newData;
},
activeSelTab: function(newData, oldData) {
let that = this;
that.activeTab = newData;
}
},
mounted() {
this.activeTab = this.activeSelTab;
},
......@@ -127,6 +118,16 @@ export default {
console.log(that.activeTab)
that.$emit('setSelectTab', item);
}
},
watch: {
tabListData: function(newData, oldData) {
let that = this;
that.tabData = newData;
},
activeSelTab: function(newData, oldData) {
let that = this;
that.activeTab = newData;
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2019-10-28 11:31:25
* @LastEditTime: 2020-08-17 09:34:44
-->
<!--
应用公共头部:
......@@ -52,12 +52,6 @@ export default {
topData: []
};
},
watch: {
topMenuData: function(newData, oldData) {
const that = this;
that.topData = newData;
}
},
mounted() {
const that = this;
that.topData = this.topMenuData;
......@@ -79,6 +73,12 @@ export default {
let that = this;
that.$router.push('appcenter');
}
},
watch: {
topMenuData: function(newData, oldData) {
const that = this;
that.topData = newData;
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-07-03 18:50:33
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 13:31:37
* @LastEditTime: 2020-08-17 09:35:02
-->
<!--
限制输入框组件
......@@ -68,16 +68,7 @@ export default {
nationCodeList: []
};
},
watch: {
value: function(newData, oldData) {
const that = this;
that.itemValue = newData || '';
},
nationCode: function(newData, oldData) {
const that = this;
that.selCode = newData || '86';
}
},
/* 接收数据 */
mounted() {
const that = this;
......@@ -122,6 +113,16 @@ export default {
});
}
},
watch: {
value: function(newData, oldData) {
const that = this;
that.itemValue = newData || '';
},
nationCode: function(newData, oldData) {
const that = this;
that.selCode = newData || '86';
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-02-08 10:27:21
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 13:37:16
* @LastEditTime: 2020-08-17 09:35:19
-->
<!--
选择门店分组组件:
......@@ -94,29 +94,6 @@ export default {
checkedKeys: this.selectData.length ? this.selectData.map(ele => ele.departmentId) : []
};
},
watch: {
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.groupIds = newData;
} else {
that.groupIds = [];
}
},
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
brandId(val) {
const that = this;
if (val) {
that.searchSelect = '';
that.groupIds = [];
that.groupData = [];
that.groupDataCopy = [];
that.getGroup();
}
}
},
mounted() {
const that = this;
// 对否有默认选中数据
......@@ -267,6 +244,29 @@ export default {
});
}
},
watch: {
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.groupIds = newData;
} else {
that.groupIds = [];
}
},
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
brandId(val) {
const that = this;
if (val) {
that.searchSelect = '';
that.groupIds = [];
that.groupData = [];
that.groupDataCopy = [];
that.getGroup();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-02-08 10:27:21
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 13:36:16
* @LastEditTime: 2020-08-17 09:35:40
-->
<!--
选择门店分组组件:
......@@ -94,29 +94,6 @@ export default {
checkedKeys: this.selectData.length ? this.selectData.map(ele => ele.departmentId) : []
};
},
watch: {
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.groupIds = newData;
} else {
that.groupIds = [];
}
},
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
brandId(val) {
const that = this;
if (val) {
that.searchSelect = '';
that.groupIds = [];
that.groupData = [];
that.groupDataCopy = [];
that.getGroup();
}
}
},
mounted() {
const that = this;
// 对否有默认选中数据
......@@ -267,6 +244,29 @@ export default {
});
}
},
watch: {
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.groupIds = newData;
} else {
that.groupIds = [];
}
},
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
brandId(val) {
const that = this;
if (val) {
that.searchSelect = '';
that.groupIds = [];
that.groupData = [];
that.groupDataCopy = [];
that.getGroup();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-02-08 10:27:21
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 13:38:16
* @LastEditTime: 2020-08-17 09:35:59
-->
<!--
选择门店分组组件:
......@@ -95,27 +95,6 @@ export default {
pageSize: 200
};
},
watch: {
brandId(val) {
const that = this;
if (val) {
that.checkAll = false;
that.isIndeterminate = false;
that.stores = [];
that.storesCopy = [];
that.searchSelect = '';
that.getStoreData();
}
},
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.dailyRuleForm.stores = JSON.parse(JSON.stringify(newData));
}else {
that.dailyRuleForm.stores = [];
}
},
},
mounted() {
const that = this;
// 对否有默认选中数据
......@@ -255,7 +234,27 @@ export default {
});
}
},
watch: {
brandId(val) {
const that = this;
if (val) {
that.checkAll = false;
that.isIndeterminate = false;
that.stores = [];
that.storesCopy = [];
that.searchSelect = '';
that.getStoreData();
}
},
selectData: function(newData, oldData) {
let that = this;
if (!!newData.length) {
that.dailyRuleForm.stores = JSON.parse(JSON.stringify(newData));
}else {
that.dailyRuleForm.stores = [];
}
},
}
};
</script>
<style lang="less" scoped>
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors: 无尘
* @LastEditTime: 2020-08-03 14:21:24
* @LastEditTime: 2020-08-17 09:36:21
* @FilePath :\haoban-4\src\components\company\add-member.vue
-->
<!--
......@@ -148,18 +148,6 @@ export default {
}
};
},
watch: {
memberObj(newData, oldData) {
const that = this;
if (Object.keys(newData).length) {
that.partForm = newData;
that.partForm.departmentInfo = [];
that.getData();
} else {
that.partForm.departmentInfo = that.defaultDepart || [];
}
}
},
mounted() {
const that = this;
if (Object.keys(that.memberObj).length) {
......@@ -250,6 +238,18 @@ export default {
});
}
},
watch: {
memberObj(newData, oldData) {
const that = this;
if (Object.keys(newData).length) {
that.partForm = newData;
that.partForm.departmentInfo = [];
that.getData();
} else {
that.partForm.departmentInfo = that.defaultDepart || [];
}
}
}
};
</script>
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 14:02:40
* @LastEditors: 无尘
* @LastEditTime: 2020-08-05 10:05:55
* @LastEditTime: 2020-08-17 09:36:49
* @FilePath : j:\公司\haoban-4\src\components\company\auth-commit-success.vue
-->
<!--
......@@ -80,12 +80,7 @@ export default {
loadBtn: false
};
},
watch: {
adminList(val) {
const that = this;
that.commitForm.auditAdmin = JSON.parse(JSON.stringify(val));
}
},
mounted() {
const that = this;
that.commitForm.auditAdmin = JSON.parse(JSON.stringify(that.adminList))
......@@ -126,6 +121,12 @@ export default {
changeRoute(path) {
this.$router.push(path);
},
},
watch: {
adminList(val) {
const that = this;
that.commitForm.auditAdmin = JSON.parse(JSON.stringify(val));
}
}
};
</script>
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 16:13:59
* @LastEditors: 无尘
* @LastEditTime: 2020-07-24 11:36:03
* @LastEditTime: 2020-08-17 09:37:03
* @FilePath : j:\公司\haoban-4\src\components\company\auth-step.vue
-->
<!--
......@@ -39,14 +39,14 @@ export default {
active: '0'
};
},
mounted() {
const that = this;
that.active = that.activeStep;
},
watch: {
activeStep(newData) {
this.active = newData;
}
},
mounted() {
const that = this;
that.active = that.activeStep;
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-08-14 16:51:07
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 11:36:58
* @LastEditTime: 2020-08-17 09:37:21
-->
<!--
通讯录部门
......@@ -74,7 +74,6 @@ export default {
}
};
},
computed: {},
methods: {
/**
* 改变数组数据
......
......@@ -77,14 +77,7 @@ export default {
tableData: []
};
},
watch: {
taskId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (that.taskId) {
......@@ -147,6 +140,14 @@ export default {
});
}
},
watch: {
taskId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
}
};
</script>
......
......@@ -3,7 +3,7 @@
* @Author : 无尘
* @Date : 2020-02-13 14:02:40
* @LastEditors: 无尘
* @LastEditTime: 2020-08-11 16:24:47
* @LastEditTime: 2020-08-17 09:38:05
* @FilePath : \Hapi-demoj:\公司\haoban-3\src\components\company\new-depart-member.vue
-->
<!--
......@@ -155,15 +155,6 @@ export default {
tipShow: false
};
},
watch: {
departObj(newData, oldData) {
const that = this;
if (Object.keys(newData)) {
that.currentPage = 1;
that.getTableList();
}
}
},
mounted() {
const that = this;
if (Object.keys(that.departObj)) {
......@@ -323,6 +314,15 @@ export default {
that.loading = false;
});
}
},
watch: {
departObj(newData, oldData) {
const that = this;
if (Object.keys(newData)) {
that.currentPage = 1;
that.getTableList();
}
}
}
};
</script>
......
......@@ -82,14 +82,6 @@ export default {
addShow: false
};
},
watch: {
relateRow(newData, oldData) {
const that = this;
if (Object.keys(newData).length) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (Object.keys(that.relateRow).length) {
......@@ -206,6 +198,14 @@ export default {
});
}
},
watch: {
relateRow(newData, oldData) {
const that = this;
if (Object.keys(newData).length) {
that.getTableList();
}
}
}
};
</script>
......
......@@ -66,14 +66,6 @@ export default {
}
};
},
watch: {
storeRangeAuditId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (that.storeRangeAuditId) {
......@@ -150,6 +142,14 @@ export default {
});
}
},
watch: {
storeRangeAuditId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-12 17:57:01
* @LastEditTime: 2020-08-17 09:38:53
-->
<!--
授权选择门店绑定弹窗
......@@ -81,21 +81,6 @@ export default {
selectStoreData: [] // 选择的门店数据
};
},
watch: {
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
selectMode(val) {
const that = this;
that.formData.sendRange = String(val);
},
rangeData(val) {
const that = this;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(val)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(val)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(val)) || [];
}
},
mounted() {
const that = this;
that.formData.sendRange = String(that.selectMode);
......@@ -181,6 +166,21 @@ export default {
}
that.$emit('closeSet', String(that.formData.sendRange), that.formData.selectList);
}
},
watch: {
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
selectMode(val) {
const that = this;
that.formData.sendRange = String(val);
},
rangeData(val) {
const that = this;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(val)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(val)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(val)) || [];
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-12 15:42:12
* @LastEditTime: 2020-08-17 09:39:10
-->
<!--
门店绑定-选择分组
......@@ -59,29 +59,6 @@ export default {
}
};
},
watch: {
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
selectGroup(val) {
const that = this;
if (val.length) {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys(val.map(ele=>ele.storeGroupId));
})
}else {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys([]);
})
}
},
companyId(val) {
const that = this;
if (!!val) {
that.getGroup();
}
}
},
mounted() {
const that = this;
if (that.companyId) {
......@@ -307,6 +284,29 @@ export default {
});
},
},
watch: {
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
selectGroup(val) {
const that = this;
if (val.length) {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys(val.map(ele=>ele.storeGroupId));
})
}else {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys([]);
})
}
},
companyId(val) {
const that = this;
if (!!val) {
that.getGroup();
}
}
}
};
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-12 15:45:15
* @LastEditTime: 2020-08-17 09:39:30
-->
<!--
门店绑定-选择门店(限制50个)
......@@ -73,23 +73,6 @@ export default {
pageSize: 300
};
},
watch: {
selectStore: function(newData, oldData) {
const that = this;
if (!!newData.length) {
that.dailyRuleForm.stores = newData.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
},
companyId(val) {
const that = this;
if (!!val) {
that.pageNum = 1;
that.getStoreData();
}
}
},
mounted() {
const that = this;
that.stores = [];
......@@ -188,6 +171,23 @@ export default {
});
}
},
watch: {
selectStore: function(newData, oldData) {
const that = this;
if (!!newData.length) {
that.dailyRuleForm.stores = newData.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
},
companyId(val) {
const that = this;
if (!!val) {
that.pageNum = 1;
that.getStoreData();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-07-29 20:00:00
* @LastEditors: 无尘
* @LastEditTime: 2019-07-29 20:00:00
* @LastEditTime: 2020-08-17 09:30:47
-->
<!--
限制输入框组件
......@@ -77,21 +77,7 @@ export default {
itemValue: ''
};
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
let that = this;
that.itemValue = newData || '';
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
},
/* 接收数据 */
mounted() {
let that = this;
......@@ -121,6 +107,21 @@ export default {
}
that.$emit('update:inputValue', that.itemValue);
},
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
let that = this;
that.itemValue = newData || '';
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-12-06 13:44:22
* @LastEditors: 无尘
* @LastEditTime: 2019-09-25 17:11:18
* @LastEditTime: 2020-08-17 09:30:26
-->
<!--
限制输入框组件
......@@ -77,21 +77,7 @@ export default {
itemValue: ''
};
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
let that = this;
that.itemValue = newData || '';
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
},
/* 接收数据 */
mounted() {
let that = this;
......@@ -126,7 +112,21 @@ export default {
that.$emit('update:inputValue', that.itemValue);
}
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
let that = this;
that.itemValue = newData || '';
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
}
};
</script>
<style lang="less" scoped>
......
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: 无尘
* @Date: 2018-12-06 17:25:22
* @LastEditors : 无尘
* @LastEditTime : 2019-12-24 10:42:11
* @LastEditors: 无尘
* @LastEditTime: 2020-08-17 09:30:08
-->
<!--
限制文本框组件
......@@ -72,21 +72,7 @@ export default {
itemValue: ''
};
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
const that = this;
that.itemValue = newData;
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
}else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
},
/* 接收数据 */
mounted() {
const that = this;
......@@ -121,7 +107,21 @@ export default {
that.$emit('update:inputValue', that.itemValue);
}
},
watch: {
maxLength: function(newData, oldData) {
const that = this;
that.limitLength = newData;
},
inputValue: function(newData, oldData) {
const that = this;
that.itemValue = newData;
if (that.getByType == 'word') {
that.inputNum = strLength.getZhLen(that.itemValue);
}else {
that.inputNum = strLength.getByteLen(that.itemValue);
}
}
}
};
</script>
<style lang="less" scoped>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-08-17 09:15:12
* @LastEditTime: 2020-08-17 09:33:47
-->
<template>
<div class="navwrap border-box flex flex-space-between">
......@@ -65,12 +65,6 @@ export default {
brandListData: []
};
},
watch: {
brandId: function(newData, oldData) {
const that = this;
that.getBrandData();
}
},
mounted() {
const that = this;
that.getBrandData();
......@@ -119,6 +113,12 @@ export default {
})
.catch(function(error) {});
}
},
watch: {
brandId: function(newData, oldData) {
const that = this;
that.getBrandData();
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 11:19:43
* @LastEditTime: 2020-08-17 09:34:12
-->
<template>
<div class="navwrap border-box">
......@@ -26,7 +26,6 @@
</template>
<script>
export default {
name: 'nav-path',
props: {
......@@ -65,7 +64,6 @@ export default {
// ],
};
},
methods: {
changeRoute(path, relocation) {
let that = this;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-10-21 14:27:29
* @LastEditors: 无尘
* @LastEditTime: 2020-08-07 14:45:45
* @LastEditTime: 2020-08-17 09:33:12
-->
<!--
......@@ -98,20 +98,6 @@ export default {
success: ''
};
},
watch: {
detailShow: function(newData, oldData) {
const that = this;
that.customDialog = newData;
},
auditIds: function(newData, oldData) {
const that = this;
if (!!newData) {
that.multLength = newData.split(',').length;
that.getTableData();
}
}
},
/* 接收数据 */
mounted() {
const that = this;
......@@ -158,6 +144,19 @@ export default {
})
.catch(function(error) {});
}
},
watch: {
detailShow: function(newData, oldData) {
const that = this;
that.customDialog = newData;
},
auditIds: function(newData, oldData) {
const that = this;
if (!!newData) {
that.multLength = newData.split(',').length;
that.getTableData();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-02-19 12:20:38
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 11:11:45
* @LastEditTime: 2020-08-17 09:33:28
-->
<template>
<div class="custom-dialog-wrap">
......@@ -60,18 +60,6 @@ export default {
rightData: []
};
},
watch: {
value: function(newData, oldData) {
const that = this;
that.customDialog = newData;
},
storeChangeData: function(newData, oldData) {
const that = this;
that.leftData = newData.beforeContent;
that.rightData = newData.afterContent;
}
},
/* 接收数据 */
mounted() {
const that = this;
......@@ -91,6 +79,17 @@ export default {
that.customDialog = false;
that.$emit('input', that.customDialog);
}
},
watch: {
value: function(newData, oldData) {
const that = this;
that.customDialog = newData;
},
storeChangeData: function(newData, oldData) {
const that = this;
that.leftData = newData.beforeContent;
that.rightData = newData.afterContent;
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditTime: 2020-08-14 15:50:05
* @LastEditTime: 2020-08-17 09:32:52
-->
<!--
<add-self-app :editRow="editRow" @closeText="closeText" @submitText="submitText"></add-self-app>
......@@ -73,14 +73,7 @@ export default {
brandOptions: [] //品牌
};
},
watch: {
editRow(newData) {
const that = this;
if (Object.keys(newData).length) {
that.ruleForm = JSON.parse(JSON.stringify(newData));
}
}
},
mounted() {
const that = this;
if (Object.keys(that.editRow).length) {
......@@ -136,6 +129,14 @@ export default {
that.loadBtn = false;
});
}
},
watch: {
editRow(newData) {
const that = this;
if (Object.keys(newData).length) {
that.ruleForm = JSON.parse(JSON.stringify(newData));
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-07 12:30:57
* @LastEditTime: 2020-08-17 09:32:37
-->
<!--
授权选择门店绑定弹窗
......@@ -123,31 +123,6 @@ export default {
selectStoreData: [] // 选择的门店数据
};
},
watch: {
showAuthFlag(val) {
this.visibleFlag = val;
},
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
selectMode(val) {
const that = this;
that.formData.sendRange = String(val) == 'null' ? '' : String(val);
},
rangeData(val) {
const that = this;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(val)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(val)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(val)) || [];
},
enterpriseId(val) {
const that = this;
that.selectEnterpriseId = val;
if (!!val) {
that.getData();
}
}
},
mounted() {
const that = this;
that.selectEnterpriseId = that.enterpriseId;
......@@ -246,6 +221,31 @@ export default {
}
that.$emit('closeSet', String(that.formData.sendRange), that.formData.selectList);
}
},
watch: {
showAuthFlag(val) {
this.visibleFlag = val;
},
searchSelect(val) {
this.$refs.groupTree.filter(val);
},
selectMode(val) {
const that = this;
that.formData.sendRange = String(val) == 'null' ? '' : String(val);
},
rangeData(val) {
const that = this;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(val)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(val)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(val)) || [];
},
enterpriseId(val) {
const that = this;
that.selectEnterpriseId = val;
if (!!val) {
that.getData();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-11 16:35:06
* @LastEditTime: 2020-08-17 09:32:05
-->
<!--
选择管理员
......@@ -80,11 +80,7 @@ export default {
checkedPeople: [] // 选择的所有管理员
};
},
watch: {
showAdminFlag(val) {
this.setVisible = val;
}
},
mounted() {
const that = this;
that.totalNum = that.selectAdmin.length;
......@@ -295,6 +291,11 @@ export default {
});
}
},
watch: {
showAdminFlag(val) {
this.setVisible = val;
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-12 10:06:00
* @LastEditTime: 2020-08-17 09:31:42
-->
<!--
门店绑定-选择分组(仅展示)
......@@ -58,7 +58,21 @@ export default {
}
};
},
computed: {},
mounted() {
const that = this;
if (that.companyId) {
that.getGroup();
}
if (that.selectGroup.length) {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys(that.selectGroup.map(ele=>ele.storeGroupId));
})
}else {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys([]);
})
}
},
methods: {
/**
* 过滤搜索
......@@ -190,7 +204,6 @@ export default {
});
},
},
components: {},
watch: {
searchSelect(val) {
this.$refs.groupTree.filter(val);
......@@ -214,21 +227,7 @@ export default {
}
}
},
mounted() {
const that = this;
if (that.companyId) {
that.getGroup();
}
if (that.selectGroup.length) {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys(that.selectGroup.map(ele=>ele.storeGroupId));
})
}else {
that.$nextTick(()=>{
that.$refs.groupTree.setCheckedKeys([]);
})
}
}
};
</script>
<style lang="less" scoped>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-10 13:56:43
* @LastEditTime: 2020-08-17 09:31:05
-->
<!--
门店绑定-选择门店(仅展示)
......@@ -72,24 +72,6 @@ export default {
pageSize: 300
};
},
watch: {
selectStore: function(newData, oldData) {
const that = this;
if (!!newData.length) {
that.dailyRuleForm.stores = newData.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
},
companyId(val) {
const that = this;
if (!!val) {
that.pageNum = 1;
that.getStoreData();
}
}
},
mounted() {
const that = this;
that.stores = [];
......@@ -184,6 +166,23 @@ export default {
});
}
},
watch: {
selectStore: function(newData, oldData) {
const that = this;
if (!!newData.length) {
that.dailyRuleForm.stores = newData.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
},
companyId(val) {
const that = this;
if (!!val) {
that.pageNum = 1;
that.getStoreData();
}
}
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-10-10 17:21:32
* @LastEditors: 无尘
* @LastEditTime: 2020-08-11 12:26:58
* @LastEditTime: 2020-08-17 09:29:53
-->
<template>
<div class="nav-header">
......@@ -102,16 +102,6 @@ export default {
}
};
},
watch: {
$route: {
handler: function(val, oldVal) {
// const that = this;
// that.getMenuDetail();
},
// 深度观察监听
deep: true
}
},
mounted() {
const that = this;
that.pathName = that.$route.path;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-08-07 09:35:10
* @LastEditTime: 2020-08-17 09:29:08
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -136,9 +136,6 @@ export default {
tableData: [],
};
},
watch: {
},
mounted() {
const that = this;
that.getTableList();
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-08-07 11:14:06
* @LastEditTime: 2020-08-17 09:28:48
-->
<template>
<div class="contacts-wrap common-set-wrap">
......@@ -97,17 +97,7 @@ export default {
syncTime: null
};
},
watch: {
$route: {
handler: function(to, from) {
const that = this;
window.clearInterval(that.syncTime);
that.syncTime = null;
},
// 深度观察监听
deep: true
}
},
async beforeMount() {
const that = this;
await that.getTableList();
......@@ -342,6 +332,17 @@ export default {
that.loading = false;
});
}
},
watch: {
$route: {
handler: function(to, from) {
const that = this;
window.clearInterval(that.syncTime);
that.syncTime = null;
},
// 深度观察监听
deep: true
}
}
};
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-08-14 09:56:57
* @LastEditTime: 2020-08-17 09:28:24
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -151,7 +151,6 @@ export default {
adminList: [] // 审核管理员
};
},
watch: {},
mounted() {
const that = this;
if (!!that.$route.query.enterpriseId) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-08-13 09:47:17
* @LastEditTime: 2020-08-17 09:27:01
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -87,19 +87,6 @@ export default {
showAsideMenu: true,
};
},
watch: {
'$route.path'() {
this.showAsideMenu = true;
},
activeBrand: function(newData, oldData) {
const that = this;
that.activeBrand = newData;
},
activeGroup: function(newData, oldData) {
const that = this;
that.activeGroup = newData;
}
},
mounted() {
// const that = this;
document.documentElement.style.backgroundColor = '#f0f2f5';
......@@ -205,7 +192,20 @@ export default {
}
})
}
}
},
watch: {
'$route.path'() {
this.showAsideMenu = true;
},
activeBrand: function(newData, oldData) {
const that = this;
that.activeBrand = newData;
},
activeGroup: function(newData, oldData) {
const that = this;
that.activeGroup = newData;
}
},
};
</script>
<style type="text/less" lang="less" scoped>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-03-16 09:59:39
* @LastEditors: 无尘
* @LastEditTime: 2020-08-13 09:47:41
* @LastEditTime: 2020-08-17 09:27:43
-->
<template>
<div class="daily-set-wrap ">
......@@ -39,6 +39,14 @@ import commonAlertTip from '@/components/common/common-alert-tip.vue';
export default {
name: 'super-admin-page',
components: {commonAlertTip},
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
tipContent: '超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限。',
loading: false,
tableData: []
};
},
mounted() {
const that = this;
that.$emit('showTab', '/superAdmin');
......@@ -48,14 +56,6 @@ export default {
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
tipContent: '超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限。',
loading: false,
tableData: []
};
},
methods: {
changeToggle(item) {
item.expand = item.expand ? false : true;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 10:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-07-27 18:11:17
* @LastEditTime: 2020-08-17 09:25:13
-->
<template>
<div class="login-wrap">
......@@ -46,7 +46,6 @@ export default {
qrcodeNum: '', // 二维码数据
};
},
computed: {},
mounted() {
const that = this;
that.getQrcode();
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-08-13 09:42:43
* @LastEditTime: 2020-08-17 09:24:28
-->
<template>
<div class="reviewed-wrap common-set-wrap">
......@@ -141,6 +141,9 @@ const { getReview, getWxEnterprise } = fetch;
import { _debounce } from '@/common/js/public';
export default {
name: 'reviewed-page',
components: {
storeChange
},
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
......@@ -181,6 +184,12 @@ export default {
}
};
},
mounted() {
const that = this;
that.$emit('showTab', '/reviewed');
that.getTableList();
that.getBrandData();
},
methods: {
changeTableList() {
const that = this;
......@@ -251,96 +260,87 @@ export default {
* 获取头像处显示信息
*/
/* eslint-disable */
showSingleInfo(submitStaffId) {
const that = this;
const para = {
staffId: submitStaffId
};
getStaffDetail(para)
.then(res => {
that.userData = res.result || {
staffName: '',
phoneNumber: '',
nationCode: '',
postion: '',
departmentInfo: [],
headImg: '',
wxUserId: '',
sex: 1
};
})
.catch(function(error) {});
},
/**
* 显示门店变更
*/
showStoreChange(item) {
const that = this;
that.storeChangeData = {
beforeContent: [],
afterContent: []
};
that.showStoreDialog = true;
that.storeChangeData = {
beforeContent: item.oldValue != '' ? item.oldValue.split(',') : [],
afterContent: item.newValue != '' ? item.newValue.split(',') : []
};
},
/**
* 获取品牌
*/
getBrandData() {
const that = this;
getWxEnterprise({wxEnterpriseId: that.wxEnterpriseId})
.then(res => {
if (!!res.result && !!res.result.length) {
that.brandOptions = res.result;
}
})
.catch(function(error) {
});
},
/**
* 获取列表数据
*/
getTableList(val) {
const that = this;
if (val) {
that.currentPage = 1;
}
that.loading = true;
let para = {
wxEnterpriseId: that.wxEnterpriseId,
auditType: that.auditType,
searchType: '1', // 0待审核,1已审核
search: that.searchValue || '', // 搜索字段
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize, // 一页显示个数
enterpriseId: that.filterBrand // 20190918新增品牌
};
getReview(para)
.then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount;
})
.catch(function(error) {
that.loading = false;
});
}
showSingleInfo(submitStaffId) {
const that = this;
const para = {
staffId: submitStaffId
};
getStaffDetail(para)
.then(res => {
that.userData = res.result || {
staffName: '',
phoneNumber: '',
nationCode: '',
postion: '',
departmentInfo: [],
headImg: '',
wxUserId: '',
sex: 1
};
})
.catch(function(error) {});
},
mounted() {
/**
* 显示门店变更
*/
showStoreChange(item) {
const that = this;
that.$emit('showTab', '/reviewed');
that.getTableList();
that.getBrandData();
that.storeChangeData = {
beforeContent: [],
afterContent: []
};
that.showStoreDialog = true;
that.storeChangeData = {
beforeContent: item.oldValue != '' ? item.oldValue.split(',') : [],
afterContent: item.newValue != '' ? item.newValue.split(',') : []
};
},
/**
* 获取品牌
*/
getBrandData() {
const that = this;
getWxEnterprise({wxEnterpriseId: that.wxEnterpriseId})
.then(res => {
if (!!res.result && !!res.result.length) {
that.brandOptions = res.result;
}
})
.catch(function(error) {
});
},
components: {
storeChange
/**
* 获取列表数据
*/
getTableList(val) {
const that = this;
if (val) {
that.currentPage = 1;
}
that.loading = true;
let para = {
wxEnterpriseId: that.wxEnterpriseId,
auditType: that.auditType,
searchType: '1', // 0待审核,1已审核
search: that.searchValue || '', // 搜索字段
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize, // 一页显示个数
enterpriseId: that.filterBrand // 20190918新增品牌
};
getReview(para)
.then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount;
})
.catch(function(error) {
that.loading = false;
});
}
};
},
};
</script>
<style lang="less" scoped>
.w-m-100 {
......
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