Commit 770f4774 by 无尘

fix: 修改组件选项顺序

parent 9ed9739f
...@@ -73,7 +73,19 @@ export default { ...@@ -73,7 +73,19 @@ export default {
collapsFlag: true 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;
},
methods: { methods: {
/** /**
* 路由跳转 * 路由跳转
...@@ -115,19 +127,6 @@ export default { ...@@ -115,19 +127,6 @@ export default {
console.log(that.activeTab) console.log(that.activeTab)
that.$emit('setSelectTab', item); 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;
}
},
mounted() {
this.activeTab = this.activeSelTab;
} }
}; };
</script> </script>
......
...@@ -52,7 +52,16 @@ export default { ...@@ -52,7 +52,16 @@ export default {
topData: [] topData: []
}; };
}, },
watch: {
topMenuData: function(newData, oldData) {
const that = this;
that.topData = newData;
}
},
mounted() {
const that = this;
that.topData = this.topMenuData;
},
methods: { methods: {
/** /**
* 路由跳转 * 路由跳转
...@@ -70,16 +79,6 @@ export default { ...@@ -70,16 +79,6 @@ export default {
let that = this; let that = this;
that.$router.push('appcenter'); that.$router.push('appcenter');
} }
},
watch: {
topMenuData: function(newData, oldData) {
const that = this;
that.topData = newData;
}
},
mounted() {
const that = this;
that.topData = this.topMenuData;
} }
}; };
</script> </script>
......
...@@ -44,14 +44,7 @@ export default { ...@@ -44,14 +44,7 @@ export default {
return { return {
}; };
},
methods: {
},
watch: {
} }
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
import fetch from '@/api/contact.js'; import fetch from '@/api/contact.js';
const { getNationCode } = fetch; const { getNationCode } = fetch;
export default { export default {
name: 'countryMobile', name: 'country-mobile',
props: { props: {
// 传入 input value // 传入 input value
value: { value: {
...@@ -68,6 +68,23 @@ export default { ...@@ -68,6 +68,23 @@ export default {
nationCodeList: [] 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;
that.getNationalData();
that.itemValue = that.value || '';
that.selCode = that.nationCode || '86';
},
methods: { methods: {
/* eslint-disable */ /* eslint-disable */
inputFocus(num) {}, inputFocus(num) {},
...@@ -105,23 +122,6 @@ export default { ...@@ -105,23 +122,6 @@ export default {
}); });
} }
},
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;
that.getNationalData();
that.itemValue = that.value || '';
that.selCode = that.nationCode || '86';
} }
}; };
</script> </script>
......
...@@ -57,7 +57,7 @@ import fetch from '@/api/contact.js'; ...@@ -57,7 +57,7 @@ import fetch from '@/api/contact.js';
const { getGicGroup } = fetch; const { getGicGroup } = fetch;
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
export default { export default {
name: 'gic-select-group', name: 'gic-select-group-mult',
props: { props: {
width: { width: {
type: String, type: String,
...@@ -94,7 +94,39 @@ export default { ...@@ -94,7 +94,39 @@ export default {
checkedKeys: this.selectData.length ? this.selectData.map(ele => ele.departmentId) : [] 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;
// 对否有默认选中数据
if (!!that.selectData.length) {
that.groupIds = that.selectData;
} else {
that.groupIds = [];
}
that.getGroup();
},
methods: { methods: {
filterNode(value, data) { filterNode(value, data) {
if (!value || !data.label) return true; if (!value || !data.label) return true;
...@@ -235,39 +267,6 @@ export default { ...@@ -235,39 +267,6 @@ 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();
}
}
},
mounted() {
const that = this;
// 对否有默认选中数据
if (!!that.selectData.length) {
that.groupIds = that.selectData;
} else {
that.groupIds = [];
}
that.getGroup();
} }
}; };
</script> </script>
......
...@@ -94,7 +94,39 @@ export default { ...@@ -94,7 +94,39 @@ export default {
checkedKeys: this.selectData.length ? this.selectData.map(ele => ele.departmentId) : [] 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;
// 对否有默认选中数据
if (!!that.selectData.length) {
that.groupIds = that.selectData;
} else {
that.groupIds = [];
}
that.getGroup();
},
methods: { methods: {
filterNode(value, data) { filterNode(value, data) {
if (!value || !data.label) return true; if (!value || !data.label) return true;
...@@ -235,39 +267,6 @@ export default { ...@@ -235,39 +267,6 @@ 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();
}
}
},
mounted() {
const that = this;
// 对否有默认选中数据
if (!!that.selectData.length) {
that.groupIds = that.selectData;
} else {
that.groupIds = [];
}
that.getGroup();
} }
}; };
</script> </script>
......
...@@ -95,7 +95,41 @@ export default { ...@@ -95,7 +95,41 @@ export default {
pageSize: 200 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;
// 对否有默认选中数据
if (!!that.brandId) {
that.stores = [];
that.storesCopy = [];
that.getStoreData();
}
if (!!that.selectData.length) {
that.dailyRuleForm.stores = JSON.parse(JSON.stringify(that.selectData));
}else {
that.dailyRuleForm.stores = [];
}
},
methods: { methods: {
/** /**
* 全选 * 全选
...@@ -221,41 +255,7 @@ export default { ...@@ -221,41 +255,7 @@ 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 = [];
}
},
},
mounted() {
const that = this;
// 对否有默认选中数据
if (!!that.brandId) {
that.stores = [];
that.storesCopy = [];
that.getStoreData();
}
if (!!that.selectData.length) {
that.dailyRuleForm.stores = JSON.parse(JSON.stringify(that.selectData));
}else {
that.dailyRuleForm.stores = [];
}
}
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -148,6 +148,28 @@ export default { ...@@ -148,6 +148,28 @@ 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) {
that.partForm = that.memberObj;
that.partForm.departmentInfo = [];
that.getData();
} else {
that.partForm.departmentInfo = that.defaultDepart || [];
}
},
methods: { methods: {
/** /**
* 选择部门 * 选择部门
...@@ -228,28 +250,6 @@ export default { ...@@ -228,28 +250,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) {
that.partForm = that.memberObj;
that.partForm.departmentInfo = [];
that.getData();
} else {
that.partForm.departmentInfo = that.defaultDepart || [];
}
} }
}; };
</script> </script>
......
...@@ -240,21 +240,6 @@ export default { ...@@ -240,21 +240,6 @@ export default {
}); });
} }
},
watch: {
departObj(newData) {
// const that = this;
if (Object.keys(newData).length) {
// that.partForm = newData;
}
}
},
mounted() {
// const that = this;
// that.getData();
/* if (Object.keys(that.departObj).length) {
that.partForm = that.departObj;
} */
} }
}; };
</script> </script>
......
...@@ -45,11 +45,7 @@ export default { ...@@ -45,11 +45,7 @@ export default {
changeRoute(path) { changeRoute(path) {
this.$router.push(path); this.$router.push(path);
}, },
},
watch: {
} }
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -80,6 +80,16 @@ export default { ...@@ -80,6 +80,16 @@ export default {
loadBtn: false 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))
},
methods: { methods: {
/** /**
* 取消 * 取消
...@@ -116,17 +126,7 @@ export default { ...@@ -116,17 +126,7 @@ export default {
changeRoute(path) { changeRoute(path) {
this.$router.push(path); this.$router.push(path);
}, },
}, }
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))
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -39,9 +39,6 @@ export default { ...@@ -39,9 +39,6 @@ export default {
active: '0' active: '0'
}; };
}, },
methods: {
},
watch: { watch: {
activeStep(newData) { activeStep(newData) {
this.active = newData; this.active = newData;
......
...@@ -34,11 +34,6 @@ ...@@ -34,11 +34,6 @@
<script> <script>
export default { export default {
name: 'auth-tip', name: 'auth-tip',
components: {
},
props: {
},
data() { data() {
return { return {
...@@ -52,9 +47,6 @@ export default { ...@@ -52,9 +47,6 @@ export default {
this.$router.push(path); this.$router.push(path);
}, },
}, },
watch: {
}
}; };
</script> </script>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'contact-sync-dialog',
props: { props: {
syncData: { syncData: {
type: Object, type: Object,
......
...@@ -106,12 +106,7 @@ export default { ...@@ -106,12 +106,7 @@ export default {
that.selectData = obj; that.selectData = obj;
that.$emit('getSelectData', obj); that.$emit('getSelectData', obj);
}, },
}, }
watch: {
itemData: function(newData, oldData) {
}
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'expired-dialog',
props: { props: {
syncData: { syncData: {
type: Object, type: Object,
...@@ -37,15 +38,6 @@ export default { ...@@ -37,15 +38,6 @@ export default {
dialogVisible: true dialogVisible: true
}; };
}, },
methods: {
handleClose(done) {
const that = this;
that.dialogVisible = true;
},
toDamo() {
window.open('https://www.demogic.com/');
}
},
mounted() { mounted() {
const that = this; const that = this;
that.$nextTick(() => { that.$nextTick(() => {
...@@ -54,6 +46,15 @@ export default { ...@@ -54,6 +46,15 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
document.querySelector('.v-modal').style.top = '0px'; document.querySelector('.v-modal').style.top = '0px';
},
methods: {
handleClose(done) {
const that = this;
that.dialogVisible = true;
},
toDamo() {
window.open('https://www.demogic.com/');
}
} }
}; };
</script> </script>
......
...@@ -77,7 +77,25 @@ export default { ...@@ -77,7 +77,25 @@ export default {
tableData: [] tableData: []
}; };
}, },
computed: {}, watch: {
taskId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (that.taskId) {
that.getTableList();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
handleClose() { handleClose() {
const that = this; const that = this;
...@@ -129,27 +147,6 @@ export default { ...@@ -129,27 +147,6 @@ export default {
}); });
} }
},
watch: {
taskId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (that.taskId) {
that.getTableList();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
} }
}; };
</script> </script>
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'help-dialog',
data() { data() {
return { return {
dialogVisible: true dialogVisible: true
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'help-tip',
data() { data() {
return { return {
dialogVisible: true dialogVisible: true
......
...@@ -155,6 +155,22 @@ export default { ...@@ -155,6 +155,22 @@ export default {
tipShow: false 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)) {
that.currentPage = 1;
that.getTableList();
}
},
methods: { methods: {
toLog() { toLog() {
window.open('/haoban-4/#/syncLog'); window.open('/haoban-4/#/syncLog');
...@@ -307,22 +323,6 @@ export default { ...@@ -307,22 +323,6 @@ export default {
that.loading = false; that.loading = 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)) {
that.currentPage = 1;
that.getTableList();
}
} }
}; };
</script> </script>
......
...@@ -60,6 +60,9 @@ import showMsg from '@/common/js/showmsg'; ...@@ -60,6 +60,9 @@ import showMsg from '@/common/js/showmsg';
// import { _debounce } from '@/common/js/public'; // import { _debounce } from '@/common/js/public';
export default { export default {
name: 'related-table', name: 'related-table',
components: {
addRelate
},
props: { props: {
relateRow: { relateRow: {
type: Object, type: Object,
...@@ -79,7 +82,25 @@ export default { ...@@ -79,7 +82,25 @@ export default {
addShow: false addShow: false
}; };
}, },
computed: {}, watch: {
relateRow(newData, oldData) {
const that = this;
if (Object.keys(newData).length) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (Object.keys(that.relateRow).length) {
that.getTableList();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
refreshData(data) { refreshData(data) {
const that = this; const that = this;
...@@ -185,28 +206,6 @@ export default { ...@@ -185,28 +206,6 @@ export default {
}); });
} }
},
watch: {
relateRow(newData, oldData) {
const that = this;
if (Object.keys(newData).length) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (Object.keys(that.relateRow).length) {
that.getTableList();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
addRelate
} }
}; };
</script> </script>
......
...@@ -66,7 +66,24 @@ export default { ...@@ -66,7 +66,24 @@ export default {
} }
}; };
}, },
computed: {}, watch: {
storeRangeAuditId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (that.storeRangeAuditId) {
that.getTableList();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 改变 tab * 改变 tab
...@@ -133,26 +150,7 @@ export default { ...@@ -133,26 +150,7 @@ export default {
}); });
} }
}, }
watch: {
storeRangeAuditId(newData, oldData) {
const that = this;
if (newData) {
that.getTableList();
}
}
},
mounted() {
const that = this;
if (that.storeRangeAuditId) {
that.getTableList();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {}
}; };
</script> </script>
<style type="text/less" lang="less" scoped> <style type="text/less" lang="less" scoped>
......
...@@ -41,6 +41,11 @@ import storeAuthStore from '@/components/company/store-auth-store.vue'; ...@@ -41,6 +41,11 @@ import storeAuthStore from '@/components/company/store-auth-store.vue';
import { _debounce} from '@/common/js/public'; import { _debounce} from '@/common/js/public';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'store-auth-dialog',
components: {
storeAuthGroup,
storeAuthStore
},
props: { props: {
isSelectAll: { isSelectAll: {
type: [String, Number], type: [String, Number],
...@@ -76,7 +81,28 @@ export default { ...@@ -76,7 +81,28 @@ export default {
selectStoreData: [] // 选择的门店数据 selectStoreData: [] // 选择的门店数据
}; };
}, },
computed: {}, 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);
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(that.rangeData)) || [];
},
methods: { methods: {
/** /**
* 改变选择范围 * 改变选择范围
...@@ -155,32 +181,6 @@ export default { ...@@ -155,32 +181,6 @@ export default {
} }
that.$emit('closeSet', String(that.formData.sendRange), that.formData.selectList); that.$emit('closeSet', String(that.formData.sendRange), that.formData.selectList);
} }
},
components: {
storeAuthGroup,
storeAuthStore
},
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);
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(that.rangeData)) || [];
} }
}; };
</script> </script>
......
...@@ -31,6 +31,7 @@ import fetch from '@/api/merchant-auth.js'; ...@@ -31,6 +31,7 @@ import fetch from '@/api/merchant-auth.js';
const { getGroupList } = fetch; const { getGroupList } = fetch;
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'store-auth-group',
props: { props: {
companyId: { companyId: {
type: String, type: String,
...@@ -58,7 +59,44 @@ export default { ...@@ -58,7 +59,44 @@ export default {
} }
}; };
}, },
computed: {}, 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) {
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: { methods: {
/** /**
* 判断提示 * 判断提示
...@@ -269,46 +307,8 @@ export default { ...@@ -269,46 +307,8 @@ export default {
}); });
}, },
},
components: {},
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) {
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> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -42,6 +42,7 @@ import fetch from '@/api/merchant-auth.js'; ...@@ -42,6 +42,7 @@ import fetch from '@/api/merchant-auth.js';
const { getStoreList } = fetch; const { getStoreList } = fetch;
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'store-auth-store',
props: { props: {
companyId: { companyId: {
type: String, type: String,
...@@ -72,7 +73,37 @@ export default { ...@@ -72,7 +73,37 @@ export default {
pageSize: 300 pageSize: 300
}; };
}, },
computed: {}, 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 = [];
that.storesCopy = [];
if (!!that.companyId) {
that.pageNum = 1;
that.getStoreData();
}
if (!!that.selectStore.length) {
that.dailyRuleForm.stores = that.selectStore.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
},
methods: { methods: {
/** /**
* 判断提示 * 判断提示
...@@ -157,38 +188,6 @@ export default { ...@@ -157,38 +188,6 @@ export default {
}); });
} }
},
components: {},
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 = [];
that.storesCopy = [];
if (!!that.companyId) {
that.pageNum = 1;
that.getStoreData();
}
if (!!that.selectStore.length) {
that.dailyRuleForm.stores = that.selectStore.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
} }
}; };
</script> </script>
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'sync-dialog',
props: { props: {
syncData: { syncData: {
type: Object, type: Object,
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'sync-success',
props: { props: {
syncData: { syncData: {
type: Object, type: Object,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<script> <script>
import strLength from '@/common/js/strlen'; import strLength from '@/common/js/strlen';
export default { export default {
name: 'limitinput', name: 'limit-input-blur',
props: { props: {
// 传入 input value // 传入 input value
inputValue: { inputValue: {
...@@ -77,25 +77,6 @@ export default { ...@@ -77,25 +77,6 @@ export default {
itemValue: '' itemValue: ''
}; };
}, },
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
},
watch: { watch: {
maxLength: function(newData, oldData) { maxLength: function(newData, oldData) {
const that = this; const that = this;
...@@ -121,6 +102,25 @@ export default { ...@@ -121,6 +102,25 @@ export default {
} else { } else {
that.inputNum = strLength.getByteLen(that.inputValue); that.inputNum = strLength.getByteLen(that.inputValue);
} }
},
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
} }
}; };
</script> </script>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<script> <script>
import strLength from '@/common/js/strlen'; import strLength from '@/common/js/strlen';
export default { export default {
name: 'limitinput', name: 'limit-input',
props: { props: {
// 传入 input value // 传入 input value
inputValue: { inputValue: {
...@@ -77,29 +77,6 @@ export default { ...@@ -77,29 +77,6 @@ export default {
itemValue: '' itemValue: ''
}; };
}, },
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
inputBlur() {
const that = this;
that.$emit('update:inputValue', that.itemValue);
}
},
watch: { watch: {
maxLength: function(newData, oldData) { maxLength: function(newData, oldData) {
const that = this; const that = this;
...@@ -125,7 +102,31 @@ export default { ...@@ -125,7 +102,31 @@ export default {
} else { } else {
that.inputNum = strLength.getByteLen(that.inputValue); that.inputNum = strLength.getByteLen(that.inputValue);
} }
} },
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
inputBlur() {
const that = this;
that.$emit('update:inputValue', that.itemValue);
}
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<script> <script>
import strLength from '@/common/js/strlen'; import strLength from '@/common/js/strlen';
export default { export default {
name: 'limittextarea', name: 'limit-textarea',
props: { props: {
inputValue: { inputValue: {
// 传入 input value // 传入 input value
...@@ -72,29 +72,6 @@ export default { ...@@ -72,29 +72,6 @@ export default {
itemValue: '' itemValue: ''
}; };
}, },
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp;//.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp;//.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
inputBlur() {
const that = this;
that.$emit('update:inputValue', that.itemValue);
}
},
watch: { watch: {
maxLength: function(newData, oldData) { maxLength: function(newData, oldData) {
const that = this; const that = this;
...@@ -120,7 +97,31 @@ export default { ...@@ -120,7 +97,31 @@ export default {
}else { }else {
that.inputNum = strLength.getByteLen(that.inputValue); that.inputNum = strLength.getByteLen(that.inputValue);
} }
} },
methods: {
/* eslint-disable */
inputFocus(num) {},
// 输入
toInput: function(value) {
const that = this;
let temp = '';
if (that.getByType == 'word') {
temp = strLength.getByteVal(value.target.value, that.limitLength);
that.itemValue = temp;//.trim();
that.inputNum = strLength.getZhLen(that.itemValue);
} else {
temp = strLength.getCharVal(value.target.value, that.limitLength);
that.itemValue = temp;//.trim();
that.inputNum = strLength.getByteLen(that.itemValue);
}
that.$emit('update:inputValue', that.itemValue);
},
inputBlur() {
const that = this;
that.$emit('update:inputValue', that.itemValue);
}
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-27 11:19:11 * @LastEditTime: 2020-08-17 09:15:12
--> -->
<template> <template>
<div class="navwrap border-box flex flex-space-between"> <div class="navwrap border-box flex flex-space-between">
...@@ -37,14 +37,7 @@ ...@@ -37,14 +37,7 @@
import fetch from '@/api/review.js'; import fetch from '@/api/review.js';
const { getWxEnterprise } = fetch; const { getWxEnterprise } = fetch;
export default { export default {
name: 'navpath', name: 'nav-app-path',
data() {
return {
projectName: 'haoban', // 当前项目名
activeBrand: '',
brandListData: []
};
},
props: { props: {
navpath: { navpath: {
type: Array, type: Array,
...@@ -65,12 +58,23 @@ export default { ...@@ -65,12 +58,23 @@ export default {
default: '' default: ''
} }
}, },
data() {
return {
projectName: 'haoban', // 当前项目名
activeBrand: '',
brandListData: []
};
},
watch: { watch: {
brandId: function(newData, oldData) { brandId: function(newData, oldData) {
const that = this; const that = this;
that.getBrandData(); that.getBrandData();
} }
}, },
mounted() {
const that = this;
that.getBrandData();
},
methods: { methods: {
changeRoute(path, relocation) { changeRoute(path, relocation) {
let that = this; let that = this;
...@@ -115,10 +119,6 @@ export default { ...@@ -115,10 +119,6 @@ export default {
}) })
.catch(function(error) {}); .catch(function(error) {});
} }
},
mounted() {
const that = this;
that.getBrandData();
} }
}; };
</script> </script>
......
...@@ -28,23 +28,7 @@ ...@@ -28,23 +28,7 @@
<script> <script>
export default { export default {
name: 'navpath', name: 'nav-path',
data() {
return {
projectName: 'member' // 当前项目名
// navpath: [
// {
// name: '首页',
// path: ''
// },
// {
// name: '会员标签',
// path: ''
// },
// ],
};
},
props: { props: {
navpath: { navpath: {
type: Array, type: Array,
...@@ -65,6 +49,23 @@ export default { ...@@ -65,6 +49,23 @@ export default {
default: '' default: ''
} }
}, },
data() {
return {
projectName: 'member' // 当前项目名
// navpath: [
// {
// name: '首页',
// path: ''
// },
// {
// name: '会员标签',
// path: ''
// },
// ],
};
},
methods: { methods: {
changeRoute(path, relocation) { changeRoute(path, relocation) {
let that = this; let that = this;
......
...@@ -98,6 +98,29 @@ export default { ...@@ -98,6 +98,29 @@ export default {
success: '' 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;
that.customDialog = that.detailShow;
if (!!that.auditIds) {
that.multLength = that.auditIds.split(',').length;
that.getTableData();
}
},
methods: { methods: {
/** /**
* 关闭 * 关闭
...@@ -135,29 +158,6 @@ export default { ...@@ -135,29 +158,6 @@ export default {
}) })
.catch(function(error) {}); .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();
}
}
},
/* 接收数据 */
mounted() {
const that = this;
that.customDialog = that.detailShow;
if (!!that.auditIds) {
that.multLength = that.auditIds.split(',').length;
that.getTableData();
}
} }
}; };
</script> </script>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'custom-dialog', name: 'store-change-dialog',
props: { props: {
value: { value: {
type: Boolean, type: Boolean,
...@@ -60,20 +60,6 @@ export default { ...@@ -60,20 +60,6 @@ export default {
rightData: [] rightData: []
}; };
}, },
methods: {
// 关闭
handleCardClose() {
const that = this;
that.customCancel();
},
// 取消
customCancel() {
const that = this;
that.customDialog = false;
that.$emit('input', that.customDialog);
}
},
watch: { watch: {
value: function(newData, oldData) { value: function(newData, oldData) {
const that = this; const that = this;
...@@ -91,6 +77,20 @@ export default { ...@@ -91,6 +77,20 @@ export default {
const that = this; const that = this;
that.leftData = that.storeChangeData.beforeContent; that.leftData = that.storeChangeData.beforeContent;
that.rightData = that.storeChangeData.afterContent; that.rightData = that.storeChangeData.afterContent;
},
methods: {
// 关闭
handleCardClose() {
const that = this;
that.customCancel();
},
// 取消
customCancel() {
const that = this;
that.customDialog = false;
that.$emit('input', that.customDialog);
}
} }
}; };
</script> </script>
......
...@@ -40,6 +40,7 @@ import fetch from '@/api/enterprise.js'; ...@@ -40,6 +40,7 @@ import fetch from '@/api/enterprise.js';
const { addSelfApp } = fetch; const { addSelfApp } = fetch;
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'add-self-app',
props: { props: {
editRow: { editRow: {
type: Object, type: Object,
...@@ -54,7 +55,6 @@ export default { ...@@ -54,7 +55,6 @@ export default {
} }
} }
}, },
components: {},
data() { data() {
return { return {
dialogVisible: true, dialogVisible: true,
...@@ -73,6 +73,20 @@ export default { ...@@ -73,6 +73,20 @@ export default {
brandOptions: [] //品牌 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) {
that.ruleForm = JSON.parse(JSON.stringify(that.editRow));
}
},
methods: { methods: {
toCancel() { toCancel() {
...@@ -122,20 +136,6 @@ export default { ...@@ -122,20 +136,6 @@ export default {
that.loadBtn = false; that.loadBtn = false;
}); });
} }
},
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) {
that.ruleForm = JSON.parse(JSON.stringify(that.editRow));
}
} }
}; };
</script> </script>
......
...@@ -75,6 +75,14 @@ import showMsg from '@/common/js/showmsg'; ...@@ -75,6 +75,14 @@ import showMsg from '@/common/js/showmsg';
import api from '@/api/merchant-auth.js'; import api from '@/api/merchant-auth.js';
const { getAuthDetail } = api; const { getAuthDetail } = api;
export default { export default {
name: 'select-admin-store',
components: {
storeAuthGroup,
storeAuthStore,
storeAuthGroupDis,
storeAuthStoreDis,
commonAlertTip
},
props: { props: {
showAuthFlag:{ showAuthFlag:{
type: Boolean, type: Boolean,
...@@ -115,7 +123,43 @@ export default { ...@@ -115,7 +123,43 @@ export default {
selectStoreData: [] // 选择的门店数据 selectStoreData: [] // 选择的门店数据
}; };
}, },
computed: {}, 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;
that.visibleFlag = that.showAuthFlag;
that.formData.sendRange = String(that.selectMode) == 'null' ? '' : String(that.selectMode);;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(that.rangeData)) || [];
if (!!that.enterpriseId) {
that.getData();
}
},
methods: { methods: {
/** /**
* 获取编辑数据 * 获取编辑数据
...@@ -202,50 +246,6 @@ export default { ...@@ -202,50 +246,6 @@ export default {
} }
that.$emit('closeSet', String(that.formData.sendRange), that.formData.selectList); that.$emit('closeSet', String(that.formData.sendRange), that.formData.selectList);
} }
},
components: {
storeAuthGroup,
storeAuthStore,
storeAuthGroupDis,
storeAuthStoreDis,
commonAlertTip
},
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;
that.visibleFlag = that.showAuthFlag;
that.formData.sendRange = String(that.selectMode) == 'null' ? '' : String(that.selectMode);;
that.selectGroupData = that.selectMode == 1 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.selectStoreData = that.selectMode == 2 ? JSON.parse(JSON.stringify(that.rangeData)) : [];
that.formData.selectList = JSON.parse(JSON.stringify(that.rangeData)) || [];
if (!!that.enterpriseId) {
that.getData();
}
} }
}; };
</script> </script>
......
...@@ -48,6 +48,7 @@ import fetch from '@/api/edit-admin.js'; ...@@ -48,6 +48,7 @@ import fetch from '@/api/edit-admin.js';
const { getAdminList, getSearchAdminList } = fetch; const { getAdminList, getSearchAdminList } = fetch;
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'select-admin',
props: { props: {
showAdminFlag: { showAdminFlag: {
type: Boolean, type: Boolean,
...@@ -79,12 +80,22 @@ export default { ...@@ -79,12 +80,22 @@ export default {
checkedPeople: [] // 选择的所有管理员 checkedPeople: [] // 选择的所有管理员
}; };
}, },
computed: {},
watch: { watch: {
showAdminFlag(val) { showAdminFlag(val) {
this.setVisible = val; this.setVisible = val;
} }
}, },
mounted() {
const that = this;
that.totalNum = that.selectAdmin.length;
that.totalIds = that.selectAdmin.map(ele => ele.levelId) || [];
that.checkedList = that.selectAdmin.map(ele => ele.levelId) || [];
that.setVisible = that.showAdminFlag;
if (that.$route.query.staffId) {
return false;
}
that.getStaff();
},
methods: { methods: {
/** /**
* 单个选择 * 单个选择
...@@ -284,18 +295,6 @@ export default { ...@@ -284,18 +295,6 @@ export default {
}); });
} }
},
components: {},
mounted() {
const that = this;
that.totalNum = that.selectAdmin.length;
that.totalIds = that.selectAdmin.map(ele => ele.levelId) || [];
that.checkedList = that.selectAdmin.map(ele => ele.levelId) || [];
that.setVisible = that.showAdminFlag;
if (that.$route.query.staffId) {
return false;
}
that.getStaff();
} }
}; };
</script> </script>
......
...@@ -41,6 +41,7 @@ import fetch from '@/api/merchant-auth.js'; ...@@ -41,6 +41,7 @@ import fetch from '@/api/merchant-auth.js';
const { getStoreList } = fetch; const { getStoreList } = fetch;
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'store-auth-store',
props: { props: {
companyId: { companyId: {
type: String, type: String,
...@@ -71,7 +72,38 @@ export default { ...@@ -71,7 +72,38 @@ export default {
pageSize: 300 pageSize: 300
}; };
}, },
computed: {},
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 = [];
that.storesCopy = [];
if (!!that.companyId) {
that.pageNum = 1;
that.getStoreData();
}
if (!!that.selectStore.length) {
that.dailyRuleForm.stores = that.selectStore.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
},
methods: { methods: {
/** /**
* 判断提示 * 判断提示
...@@ -152,38 +184,6 @@ export default { ...@@ -152,38 +184,6 @@ export default {
}); });
} }
},
components: {},
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 = [];
that.storesCopy = [];
if (!!that.companyId) {
that.pageNum = 1;
that.getStoreData();
}
if (!!that.selectStore.length) {
that.dailyRuleForm.stores = that.selectStore.map(el=>el.storeInfoId) || [];
}else {
that.dailyRuleForm.stores = [];
}
} }
}; };
</script> </script>
......
...@@ -102,7 +102,31 @@ export default { ...@@ -102,7 +102,31 @@ export default {
} }
}; };
}, },
watch: {
$route: {
handler: function(val, oldVal) {
// const that = this;
// that.getMenuDetail();
},
// 深度观察监听
deep: true
}
},
mounted() {
const that = this;
that.pathName = that.$route.path;
// 获取项目名 pathname (路由的hash)
that.routePathName = window.location.hash.split('/')[1];
if (that.routePathName.indexOf('?') != -1) {
that.routePathName = that.routePathName.split('?')[0];
}
if (that.routePathName.indexOf('/') != -1) {
that.routePathName = that.routePathName.split('/')[0];
}
// 获取菜单
localStorage.removeItem('haoBanUser');
that.toLogin();
},
methods: { methods: {
/** /**
* 首页跳转 * 首页跳转
...@@ -285,34 +309,6 @@ export default { ...@@ -285,34 +309,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;
// 获取项目名 pathname (路由的hash)
that.routePathName = window.location.hash.split('/')[1];
if (that.routePathName.indexOf('?') != -1) {
that.routePathName = that.routePathName.split('?')[0];
}
if (that.routePathName.indexOf('/') != -1) {
that.routePathName = that.routePathName.split('/')[0];
}
// 获取菜单
localStorage.removeItem('haoBanUser');
that.toLogin();
} }
}; };
</script> </script>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-07 15:17:40 * @LastEditTime: 2020-08-17 09:12:13
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -109,7 +109,12 @@ import api from '@/api/merchant-auth.js'; ...@@ -109,7 +109,12 @@ import api from '@/api/merchant-auth.js';
const { getAuditLog, cancelAudit, getEnterpriseDetail } = api; const { getAuditLog, cancelAudit, getEnterpriseDetail } = api;
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'auditLog', name: 'audit-log',
components: {
navCrumb,
storeAuthDetail,
commonAlertTip
},
data() { data() {
return { return {
tipContent: '仅保存近一年失败日志', tipContent: '仅保存近一年失败日志',
...@@ -149,7 +154,15 @@ export default { ...@@ -149,7 +154,15 @@ export default {
storeRangeAuditId: '' storeRangeAuditId: ''
}; };
}, },
computed: {}, mounted() {
const that = this;
that.getEnterpriseData();
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 获取商户信息 * 获取商户信息
...@@ -267,23 +280,6 @@ export default { ...@@ -267,23 +280,6 @@ export default {
}); });
} }
},
watch: {
},
mounted() {
const that = this;
that.getEnterpriseData();
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
navCrumb,
storeAuthDetail,
commonAlertTip
} }
}; };
</script> </script>
......
...@@ -107,7 +107,10 @@ import fetch from '@/api/merchant-auth.js'; ...@@ -107,7 +107,10 @@ import fetch from '@/api/merchant-auth.js';
const { getAuthEnterprise } = fetch; const { getAuthEnterprise } = fetch;
// import { _debounce } from '@/common/js/public'; // import { _debounce } from '@/common/js/public';
export default { export default {
name: 'authMerchant', name: 'auth-merchant',
components: {
navCrumb
},
data() { data() {
return { return {
// 面包屑参数 // 面包屑参数
...@@ -133,7 +136,17 @@ export default { ...@@ -133,7 +136,17 @@ export default {
tableData: [], tableData: [],
}; };
}, },
computed: {}, watch: {
},
mounted() {
const that = this;
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 编辑授权 * 编辑授权
...@@ -196,20 +209,6 @@ export default { ...@@ -196,20 +209,6 @@ export default {
}); });
} }
},
watch: {
},
mounted() {
const that = this;
that.getTableList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
navCrumb
} }
}; };
</script> </script>
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
</el-tooltip> </el-tooltip>
</div> </div>
<div class="help-body flex flex-space-between" @click="toRefreshMember"><span class="font-12 color-2f54eb">刷新企业成员</span><span class="font-12 color-2f54eb iconfont iconshuaxin1"></span></div> <div class="help-body flex flex-space-between" @click="toRefreshMember"><span class="font-12 color-2f54eb">刷新企业成员</span><span class="font-12 color-2f54eb iconfont iconshuaxin1"></span></div>
<!-- <div class="p-t-14">
<el-button style="width: 100%;" :disabled="refreshTag" type="primary" @click="toRefreshMember">刷新企业成员</el-button>
</div> -->
<div class="left-tree p-t-14"> <div class="left-tree p-t-14">
<contact-tree v-if="!searchInput" :departObj="departObj" :itemData="wxData" v-model="wxData" @getSelectData="getSelectData"></contact-tree> <contact-tree v-if="!searchInput" :departObj="departObj" :itemData="wxData" v-model="wxData" @getSelectData="getSelectData"></contact-tree>
<div v-if="searchInput" class="contact-search-body"> <div v-if="searchInput" class="contact-search-body">
...@@ -62,7 +59,7 @@ import fetch from '@/api/contact.js'; ...@@ -62,7 +59,7 @@ import fetch from '@/api/contact.js';
const { getSyncCheck, refreshWx, getCompanyDepartList } = fetch; const { getSyncCheck, refreshWx, getCompanyDepartList } = fetch;
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
export default { export default {
name: 'reviewed', name: 'contacts-page',
components: { components: {
// navCrumb, // navCrumb,
contactTree, contactTree,
...@@ -100,15 +97,48 @@ export default { ...@@ -100,15 +97,48 @@ export default {
syncTime: null syncTime: null
}; };
}, },
computed: {}, 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();
},
mounted() {
const that = this;
that.getSyncStatus();
that.syncTime = null;
that.syncTime = window.setInterval(() => {
that.getSyncStatus();
}, 3000);
that.$once('hook:beforeDestroy', () => {
clearInterval(that.syncTime);
});
document.documentElement.style.backgroundColor = '#f0f2f5';
},
beforeDestroy() {
const that = this;
window.clearInterval(that.syncTime);
that.syncTime = null;
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 获取同步状态 * 获取同步状态
*/ */
getSyncStatus() { getSyncStatus() {
const that = this; const that = this;
let para = {}; getSyncCheck({})
getSyncCheck(para)
.then(res => { .then(res => {
that.syncStatusData = res.result || {}; that.syncStatusData = res.result || {};
if (!res.result || (res.result.syncStatus !== 1 && res.result.syncStatus !== 2 && res.result.syncStatus !== 3)) { if (!res.result || (res.result.syncStatus !== 1 && res.result.syncStatus !== 2 && res.result.syncStatus !== 3)) {
...@@ -136,8 +166,7 @@ export default { ...@@ -136,8 +166,7 @@ export default {
toRefreshMember: _debounce(function() { toRefreshMember: _debounce(function() {
const that = this; const that = this;
that.refreshTag = true; that.refreshTag = true;
let para = {}; refreshWx({})
refreshWx(para)
.then(res => { .then(res => {
that.refreshTag = false; that.refreshTag = false;
// 同步后需要刷新数据 // 同步后需要刷新数据
...@@ -219,8 +248,6 @@ export default { ...@@ -219,8 +248,6 @@ export default {
*/ */
getSelectData(obj) { getSelectData(obj) {
const that = this; const that = this;
// console.log(obj);
// obj.label = '测试';
that.selectData = obj; that.selectData = obj;
that.departObj = obj; that.departObj = obj;
}, },
...@@ -250,9 +277,6 @@ export default { ...@@ -250,9 +277,6 @@ export default {
clearInput() { clearInput() {
const that = this; const that = this;
that.searchData = []; that.searchData = [];
// that.groupData = JSON.parse(JSON.stringify(that.groupDataCopy));
/* that.currentPage = 1;
that.getTableList(); */
}, },
/** /**
* 获取搜索数据 * 获取搜索数据
...@@ -288,7 +312,7 @@ export default { ...@@ -288,7 +312,7 @@ export default {
getTableList(val) { getTableList(val) {
const that = this; const that = this;
that.loading = true; that.loading = true;
let para = { const para = {
search: that.searchInput || '', // 搜索字段 search: that.searchInput || '', // 搜索字段
//wxEnterpriseId: that.wxEnterpriseId(避免多企业登录,去掉) //wxEnterpriseId: that.wxEnterpriseId(避免多企业登录,去掉)
}; };
...@@ -318,57 +342,12 @@ export default { ...@@ -318,57 +342,12 @@ export default {
that.loading = false; that.loading = false;
}); });
} }
},
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();
},
mounted() {
const that = this;
that.getSyncStatus();
that.syncTime = null;
that.syncTime = window.setInterval(() => {
that.getSyncStatus();
}, 3000);
that.$once('hook:beforeDestroy', () => {
clearInterval(that.syncTime);
});
document.documentElement.style.backgroundColor = '#f0f2f5';
},
beforeDestroy() {
const that = this;
window.clearInterval(that.syncTime);
that.syncTime = null;
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
} }
}; };
</script> </script>
<style type="text/less" lang="less" scoped> <style type="text/less" lang="less" scoped>
.bg-82C5FF {
background: #82c5ff;
}
.color-508CEE {
color: #508cee;
}
.color-FF585C {
color: #ff585c;
}
.line-h-18 {
line-height: 18px;
}
.w-225 { .w-225 {
width: 225px; width: 225px;
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
--> -->
<template> <template>
<div class="enterprise-wrap"> <div class="enterprise-wrap">
<!-- 公共头部菜单插件 --> <!-- 公共头部菜单 -->
<vue-office-header :projectName="projectName" @collapseTag="collapseTag" @toRouterView="toRouterView"> </vue-office-header> <vue-office-header :projectName="projectName" @collapseTag="collapseTag" @toRouterView="toRouterView"> </vue-office-header>
<div class="enterprise-wrap__body"> <div class="enterprise-wrap__body">
<div id="content" class="content"> <div id="content" class="content">
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<script> <script>
import vueOfficeHeader from '@/components/vue-office-header.vue'; import vueOfficeHeader from '@/components/vue-office-header.vue';
export default { export default {
name: 'enterprise', name: 'enterprise-page',
components: { components: {
vueOfficeHeader vueOfficeHeader
}, },
...@@ -35,7 +35,10 @@ export default { ...@@ -35,7 +35,10 @@ export default {
contentHeight: window.screen.availHeight - 5 + 'px' contentHeight: window.screen.availHeight - 5 + 'px'
}; };
}, },
computed: {}, mounted() {
const that = this;
that.contentHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 64 + 'px';
},
methods: { methods: {
// 处理路由跳转 // 处理路由跳转
toRouterView(val) { toRouterView(val) {
...@@ -56,10 +59,6 @@ export default { ...@@ -56,10 +59,6 @@ export default {
let that = this; let that = this;
that.collapseFlag = val; that.collapseFlag = val;
} }
},
mounted() {
const that = this;
that.contentHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 64 + 'px';
} }
}; };
</script> </script>
......
...@@ -89,7 +89,15 @@ import api from '@/api/merchant-auth.js'; ...@@ -89,7 +89,15 @@ import api from '@/api/merchant-auth.js';
const { getAuthDetail, getEnterprise, getEnterpriseDetail, getGicAdmin, postEnterpriseAuth } = api; const { getAuthDetail, getEnterprise, getEnterpriseDetail, getGicAdmin, postEnterpriseAuth } = api;
import { emojiToStr } from '@/common/js/public'; import { emojiToStr } from '@/common/js/public';
export default { export default {
name: 'newAuthMerchant', name: 'new-auth-merchant',
components: {
navCrumb,
authStep,
authTip,
authCommitSuccess,
authCommit,
storeAuthDialog
},
data() { data() {
return { return {
// 面包屑参数 // 面包屑参数
...@@ -143,7 +151,17 @@ export default { ...@@ -143,7 +151,17 @@ export default {
adminList: [] // 审核管理员 adminList: [] // 审核管理员
}; };
}, },
computed: {}, watch: {},
mounted() {
const that = this;
if (!!that.$route.query.enterpriseId) {
that.getData();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* closeSet * closeSet
...@@ -373,25 +391,6 @@ export default { ...@@ -373,25 +391,6 @@ export default {
}); });
} }
},
watch: {},
mounted() {
const that = this;
if (!!that.$route.query.enterpriseId) {
that.getData();
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
navCrumb,
authStep,
authTip,
authCommitSuccess,
authCommit,
storeAuthDialog
} }
}; };
</script> </script>
......
...@@ -149,7 +149,12 @@ import fetch from '@/api/contact.js'; ...@@ -149,7 +149,12 @@ import fetch from '@/api/contact.js';
const { getBindLog, getRefreshLog, getWxEnterprise } = fetch; const { getBindLog, getRefreshLog, getWxEnterprise } = fetch;
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
export default { export default {
name: 'reviewed', name: 'sync-log',
components: {
navCrumb,
failLog,
commonAlertTip
},
data() { data() {
return { return {
tipContent: '仅保存近一年绑定解绑的日志', tipContent: '仅保存近一年绑定解绑的日志',
...@@ -185,7 +190,15 @@ export default { ...@@ -185,7 +190,15 @@ export default {
brandOptions: [] brandOptions: []
}; };
}, },
computed: {}, mounted() {
const that = this;
that.getBrandData();
that.getBindList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 搜索标签清空 * 搜索标签清空
...@@ -328,23 +341,6 @@ export default { ...@@ -328,23 +341,6 @@ export default {
}); });
} }
},
watch: {
},
mounted() {
const that = this;
that.getBrandData();
that.getBindList();
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
navCrumb,
failLog,
commonAlertTip
} }
}; };
</script> </script>
......
...@@ -81,7 +81,12 @@ const { getRoleRange, addAdmin } = fetch; ...@@ -81,7 +81,12 @@ const { getRoleRange, addAdmin } = fetch;
// import { _debounce } from '@/common/js/public'; // import { _debounce } from '@/common/js/public';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'authMerchant', name: 'edit-admin-page',
components: {
navCrumb,
selectAdmin,
selectAdminStore
},
data() { data() {
return { return {
// 面包屑参数 // 面包屑参数
...@@ -133,7 +138,23 @@ export default { ...@@ -133,7 +138,23 @@ export default {
} }
}; };
}, },
computed: {}, mounted() {
const that = this;
that.$emit('showAsideMenu', false);
that.getTableList();
if (that.$route.query.staffId) {
that.adminForm.adminList = [
{
levelId: that.$route.query.staffId,
levelName: that.$route.query.levelName
}
]
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 保存管理员 * 保存管理员
...@@ -288,31 +309,6 @@ export default { ...@@ -288,31 +309,6 @@ export default {
}); });
} }
},
watch: {
},
mounted() {
const that = this;
that.$emit('showAsideMenu', false);
that.getTableList();
if (that.$route.query.staffId) {
that.adminForm.adminList = [
{
levelId: that.$route.query.staffId,
levelName: that.$route.query.levelName
}
]
}
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
navCrumb,
selectAdmin,
selectAdminStore
} }
}; };
</script> </script>
......
...@@ -80,7 +80,10 @@ const { wxEnterpriseRefresh, wxEnterpriseDetail, getSelfApp, delSelfApp, refresh ...@@ -80,7 +80,10 @@ const { wxEnterpriseRefresh, wxEnterpriseDetail, getSelfApp, delSelfApp, refresh
// import { _debounce } from '@/common/js/public'; // import { _debounce } from '@/common/js/public';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
props: {}, name: 'enterprise-set-page',
components: {
addSelfApp
},
data() { data() {
return { return {
checkShow: true, checkShow: true,
...@@ -104,7 +107,16 @@ export default { ...@@ -104,7 +107,16 @@ export default {
loadApp: false loadApp: false
}; };
}, },
computed: {}, mounted() {
const that = this;
that.$emit('showTab', '/enterpriseSet');
document.documentElement.style.backgroundColor = '#f0f2f5';
that.getData();
that.getApp();
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
/** /**
* 添加 * 添加
...@@ -250,20 +262,6 @@ export default { ...@@ -250,20 +262,6 @@ export default {
}); });
} }
},
watch: {},
mounted() {
const that = this;
that.$emit('showTab', '/enterpriseSet');
document.documentElement.style.backgroundColor = '#f0f2f5';
that.getData();
that.getApp();
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
addSelfApp
} }
}; };
</script> </script>
......
...@@ -39,7 +39,11 @@ import vueOfficeHeader from '@/components/vue-office-header.vue'; ...@@ -39,7 +39,11 @@ import vueOfficeHeader from '@/components/vue-office-header.vue';
/* import fetch from '@/api/menu-auth.js'; /* import fetch from '@/api/menu-auth.js';
const { getRoleMenu } = fetch; */ const { getRoleMenu } = fetch; */
export default { export default {
name: 'reviewed', name: 'enterprise-set-index',
components: {
commonDetailLeft,
vueOfficeHeader
},
data() { data() {
return { return {
bgHeight: window.screen.availHeight - 288 + 'px', bgHeight: window.screen.availHeight - 288 + 'px',
...@@ -83,7 +87,26 @@ export default { ...@@ -83,7 +87,26 @@ export default {
showAsideMenu: true, showAsideMenu: true,
}; };
}, },
computed: {}, 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';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
methods: { methods: {
// 处理路由跳转 // 处理路由跳转
toRouterView(val) { toRouterView(val) {
...@@ -182,30 +205,6 @@ export default { ...@@ -182,30 +205,6 @@ 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;
}
},
mounted() {
// const that = this;
document.documentElement.style.backgroundColor = '#f0f2f5';
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {
commonDetailLeft,
vueOfficeHeader
} }
}; };
</script> </script>
......
...@@ -37,7 +37,17 @@ import fetch from '@/api/enterprise.js'; ...@@ -37,7 +37,17 @@ import fetch from '@/api/enterprise.js';
const { getAdmin } = fetch; const { getAdmin } = fetch;
import commonAlertTip from '@/components/common/common-alert-tip.vue'; import commonAlertTip from '@/components/common/common-alert-tip.vue';
export default { export default {
props: {}, name: 'super-admin-page',
components: {commonAlertTip},
mounted() {
const that = this;
that.$emit('showTab', '/superAdmin');
document.documentElement.style.backgroundColor = '#f0f2f5';
that.getData();
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
data() { data() {
return { return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '', wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
...@@ -68,18 +78,7 @@ export default { ...@@ -68,18 +78,7 @@ export default {
that.loading = false; that.loading = false;
}); });
} }
}, }
watch: {},
mounted() {
const that = this;
that.$emit('showTab', '/superAdmin');
document.documentElement.style.backgroundColor = '#f0f2f5';
that.getData();
},
destroyed() {
document.documentElement.style.backgroundColor = '#fff';
},
components: {commonAlertTip}
}; };
</script> </script>
<style type="text/less" lang="less" scoped> <style type="text/less" lang="less" scoped>
......
<template> <template>
<div style="background:#f0f2f5;margin-top: -20px;height:100%;"> <div style="background: #f0f2f5; margin-top: -20px; height:100vh;">
<div class="wscn-http404"> <div class="wscn-http-404">
<div class="pic-404"> <div class="pic-404">
<img class="pic-404__parent" :src="img_403" alt="403" /> <img class="pic-404__parent" :src="img_403" alt="403" />
</div> </div>
<div class="bullshit"> <div class="bullshit">
<!-- <div class="bullshit__oops">403</div> -->
<div class="bullshit__headline">{{ message }}</div> <div class="bullshit__headline">{{ message }}</div>
<a href="#/companyGroup" class="bullshit__return-home">返回首页</a> <a href="#/index" class="bullshit__return-home">返回首页</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -17,7 +16,7 @@ ...@@ -17,7 +16,7 @@
import img_403 from '@/assets/403_images/error_403.svg'; import img_403 from '@/assets/403_images/error_403.svg';
export default { export default {
name: 'page403', name: 'forbid-page',
data() { data() {
return { return {
img_403 img_403
...@@ -32,7 +31,7 @@ export default { ...@@ -32,7 +31,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wscn-http404 { .wscn-http-404 {
position: relative; position: relative;
width: 1200px; width: 1200px;
margin: 20px auto 60px; margin: 20px auto 60px;
......
<template> <template>
<div style="background:#f0f2f5;margin-top: -20px;height:100%;"> <div style="background: #f0f2f5; margin-top: -20px; height: 100vh;">
<div class="wscn-http404"> <div class="wscn-http404">
<div class="pic-404"> <div class="pic-404">
<img class="pic-404__parent" :src="img_404" alt="404" /> <img class="pic-404__parent" :src="img_404" alt="404" />
</div> </div>
<div class="bullshit"> <div class="bullshit">
<!-- <div class="bullshit__oops">404</div> -->
<div class="bullshit__headline">{{ message }}</div> <div class="bullshit__headline">{{ message }}</div>
<a href="#/companyGroup" class="bullshit__return-home">返回首页</a> <a href="#/index" class="bullshit__return-home">返回首页</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -17,7 +16,7 @@ ...@@ -17,7 +16,7 @@
import img_404 from '@/assets/404_images/error_404.svg'; import img_404 from '@/assets/404_images/error_404.svg';
export default { export default {
name: 'page404', name: 'no-found-page',
data() { data() {
return { return {
img_404 img_404
...@@ -27,10 +26,6 @@ export default { ...@@ -27,10 +26,6 @@ export default {
message() { message() {
return '抱歉,你访问的页面不存在'; return '抱歉,你访问的页面不存在';
} }
},
/* eslint-disable */
mounted() {
} }
}; };
</script> </script>
......
<template> <template>
<div style="background:#f0f2f5;margin-top: -20px;height:100%;"> <div style="background: #f0f2f5; margin-top: -20px; height: 100vh;">
<div class="wscn-http404"> <div class="wscn-http-404">
<div class="pic-404"> <div class="pic-404">
<img class="pic-404__parent" :src="img_500" alt="500" /> <img class="pic-404__parent" :src="imgSrc" alt="500" />
</div> </div>
<div class="bullshit"> <div class="bullshit">
<!-- <div class="bullshit__oops">500</div> -->
<div class="bullshit__headline">{{ message }}</div> <div class="bullshit__headline">{{ message }}</div>
<a href="#/companyGroup" class="bullshit__return-home">返回首页</a> <a href="#/index" class="bullshit__return-home">返回首页</a>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import img_500 from '@/assets/500_images/error_500.svg'; import imgSrc from '@/assets/500_images/error_500.svg';
export default { export default {
name: 'page500', name: 'serve-no-page',
data() { data() {
return { return {
img_500 imgSrc
}; };
}, },
computed: { computed: {
...@@ -32,7 +31,7 @@ export default { ...@@ -32,7 +31,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wscn-http404 { .wscn-http-404 {
position: relative; position: relative;
width: 1200px; width: 1200px;
margin: 20px auto 60px; margin: 20px auto 60px;
......
...@@ -7,13 +7,12 @@ ...@@ -7,13 +7,12 @@
* @LastEditTime: 2020-07-22 15:42:06 * @LastEditTime: 2020-07-22 15:42:06
--> -->
<template> <template>
<div style="background:#f0f2f5;margin-top: -20px;height:100vh;"> <div style="background: #f0f2f5; margin-top: -20px; height: 100vh;">
<div class="wscn-http404"> <div class="wscn-http-404">
<div class="pic-404"> <div class="pic-404">
<img class="pic-404__parent" :src="img_404" alt="404" /> <img class="pic-404__parent" :src="imgError" alt="404" />
</div> </div>
<div class="bullshit"> <div class="bullshit">
<!-- <div class="bullshit__oops">404</div> -->
<div class="bullshit__headline">{{ message }}</div> <div class="bullshit__headline">{{ message }}</div>
<a href="#/login" class="bullshit__return-home" rel="noopener noreferrer">返回好办登录页</a> <a href="#/login" class="bullshit__return-home" rel="noopener noreferrer">返回好办登录页</a>
</div> </div>
...@@ -22,29 +21,25 @@ ...@@ -22,29 +21,25 @@
</template> </template>
<script> <script>
import img_404 from '@/assets/gic-error.png'; import imgError from '@/assets/gic-error.png';
export default { export default {
name: 'page404', name: 'page-no-auth',
data() { data() {
return { return {
img_404 imgError
}; };
}, },
computed: { computed: {
message() { message() {
return '暂无好办后台管理权限,请联系管理员添加权限'; return '暂无好办后台管理权限,请联系管理员添加权限';
} }
},
/* eslint-disable */
mounted() {
} }
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wscn-http404 { .wscn-http-404 {
position: relative; position: relative;
width: 1200px; width: 1200px;
margin: 20px auto 60px; margin: 20px auto 60px;
......
...@@ -7,13 +7,12 @@ ...@@ -7,13 +7,12 @@
* @LastEditTime: 2020-07-27 10:45:49 * @LastEditTime: 2020-07-27 10:45:49
--> -->
<template> <template>
<div style="background:#f0f2f5;margin-top: -20px;height:100vh;"> <div style="background: #f0f2f5; margin-top: -20px; height: 100vh;">
<div class="wscn-http404"> <div class="wscn-http-404">
<div class="pic-404"> <div class="pic-404">
<img class="pic-404__parent" :src="imgSrc" alt="404" /> <img class="pic-404__parent" :src="imgSrc" alt="404" />
</div> </div>
<div class="bullshit"> <div class="bullshit">
<!-- <div class="bullshit__oops">404</div> -->
<div class="bullshit__headline">{{ message }}</div> <div class="bullshit__headline">{{ message }}</div>
<a href="#/contactsList" class="bullshit__return-home">返回首页</a> <a href="#/contactsList" class="bullshit__return-home">返回首页</a>
</div> </div>
...@@ -27,7 +26,7 @@ import img_404 from '@/assets/404_images/error_404.svg'; ...@@ -27,7 +26,7 @@ import img_404 from '@/assets/404_images/error_404.svg';
import img_500 from '@/assets/500_images/error_500.svg'; import img_500 from '@/assets/500_images/error_500.svg';
export default { export default {
name: 'errpage', name: 'err-page',
data() { data() {
return { return {
imgSrc: '', imgSrc: '',
...@@ -45,8 +44,8 @@ export default { ...@@ -45,8 +44,8 @@ export default {
}; };
}, },
mounted() { mounted() {
var that = this; const that = this;
var path = that.$route.path.split('/')[1]; const path = that.$route.path.split('/')[1];
that.imgSrc = that.srcList[path]; that.imgSrc = that.srcList[path];
that.message = that.msgList[path]; that.message = that.msgList[path];
} }
...@@ -54,7 +53,7 @@ export default { ...@@ -54,7 +53,7 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.wscn-http404 { .wscn-http-404 {
position: relative; position: relative;
width: 1200px; width: 1200px;
margin: 20px auto 60px; margin: 20px auto 60px;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-30 17:14:29 * @LastEditTime: 2020-08-17 09:12:04
--> -->
<template> <template>
<div id="index"> <div id="index">
...@@ -127,7 +127,10 @@ ...@@ -127,7 +127,10 @@
import vueOfficeHeader from '@/components/vue-office-header.vue'; import vueOfficeHeader from '@/components/vue-office-header.vue';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'index', name: 'index-page',
components: {
vueOfficeHeader
},
data() { data() {
return { return {
checkShow: true, checkShow: true,
...@@ -170,6 +173,10 @@ export default { ...@@ -170,6 +173,10 @@ export default {
] ]
}; };
}, },
async mounted() {
const that = this;
that.wxEnterpriseId = await that.toLogin();
},
methods: { methods: {
/** /**
...@@ -352,13 +359,6 @@ export default { ...@@ -352,13 +359,6 @@ export default {
}); });
}, },
},
async mounted() {
const that = this;
that.wxEnterpriseId = await that.toLogin();
},
components: {
vueOfficeHeader
} }
}; };
</script> </script>
......
...@@ -40,13 +40,21 @@ import fetch from '@/api/login.js'; ...@@ -40,13 +40,21 @@ import fetch from '@/api/login.js';
const { getLoginQrcode } = fetch; const { getLoginQrcode } = fetch;
export default { export default {
name: 'login', name: 'login-page',
data() { data() {
return { return {
qrcodeNum: '', // 二维码数据 qrcodeNum: '', // 二维码数据
}; };
}, },
computed: {}, computed: {},
mounted() {
const that = this;
that.getQrcode();
// that.toLogin();
if (!!localStorage.getItem('haoBanUser')) {
localStorage.removeItem('haoBanUser');
}
},
methods: { methods: {
/** /**
* 处理路由跳转 * 处理路由跳转
...@@ -71,16 +79,7 @@ export default { ...@@ -71,16 +79,7 @@ export default {
}); });
} }
}, }
mounted() {
const that = this;
that.getQrcode();
// that.toLogin();
if (!!localStorage.getItem('haoBanUser')) {
localStorage.removeItem('haoBanUser');
}
},
components: {}
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
--> -->
<template> <template>
<div class="review-wrap"> <div class="review-wrap">
<!-- 公共头部菜单插件 --> <!-- 公共头部菜单 -->
<vue-office-header :projectName="projectName" @collapseTag="collapseTag" @toRouterView="toRouterView" @leftData="leftData"> </vue-office-header> <vue-office-header :projectName="projectName" @collapseTag="collapseTag" @toRouterView="toRouterView" @leftData="leftData"> </vue-office-header>
<div class="setting-wrap__body"> <div class="setting-wrap__body">
<div id="content" class="content"> <div id="content" class="content">
...@@ -34,7 +34,7 @@ import commonDetailLeft from '@/components/app/app-detail-left.vue'; ...@@ -34,7 +34,7 @@ import commonDetailLeft from '@/components/app/app-detail-left.vue';
import fetch from '@/api/menu-auth.js'; import fetch from '@/api/menu-auth.js';
const { getRoleMenu } = fetch; const { getRoleMenu } = fetch;
export default { export default {
name: 'reviewed', name: 'review-center',
components: { components: {
vueOfficeHeader, vueOfficeHeader,
commonDetailLeft commonDetailLeft
...@@ -62,7 +62,6 @@ export default { ...@@ -62,7 +62,6 @@ export default {
] ]
}; };
}, },
computed: {},
methods: { methods: {
/** /**
* 路由跳转 * 路由跳转
...@@ -88,7 +87,7 @@ export default { ...@@ -88,7 +87,7 @@ export default {
}, },
/** /**
* 各路由返回 tabId * 各路由返回 menuUrl
*/ */
showTab(menuUrl) { showTab(menuUrl) {
const that = this; const that = this;
...@@ -176,15 +175,6 @@ export default { ...@@ -176,15 +175,6 @@ export default {
}); });
} }
},
watch: {
$route: {
handler: function(val, oldVal) {
// this.$refs.asideMenu.refreshRoute();
},
// 深度观察监听
deep: true
}
} }
}; };
</script> </script>
......
...@@ -140,7 +140,7 @@ const { getStaffDetail } = api; ...@@ -140,7 +140,7 @@ const { getStaffDetail } = api;
const { getReview, getWxEnterprise } = fetch; const { getReview, getWxEnterprise } = fetch;
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
export default { export default {
name: 'reviewed', name: 'reviewed-page',
data() { data() {
return { return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '', wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
...@@ -181,7 +181,6 @@ export default { ...@@ -181,7 +181,6 @@ export default {
} }
}; };
}, },
computed: {},
methods: { methods: {
changeTableList() { changeTableList() {
const that = this; const that = this;
......
...@@ -148,7 +148,11 @@ import api from '@/api/contact.js'; ...@@ -148,7 +148,11 @@ import api from '@/api/contact.js';
const { getStaffDetail } = api; const { getStaffDetail } = api;
const { getReview, getWxEnterprise, postAudit, postBatchApprove, postRefuse, getAuditDetail } = fetch; const { getReview, getWxEnterprise, postAudit, postBatchApprove, postRefuse, getAuditDetail } = fetch;
export default { export default {
name: 'unreview', name: 'unreview-page',
components: {
storeChange,
reviewResultDetail
},
data() { data() {
return { return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '', wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
...@@ -228,7 +232,17 @@ export default { ...@@ -228,7 +232,17 @@ export default {
loadingFull: '' loadingFull: ''
}; };
}, },
computed: {}, mounted() {
const that = this;
that.$emit('showTab', '/unreview');
// that.wxEnterpriseId = await that.toLogin();
that.getTableList();
that.getBrandData();
},
beforeDestroy() { //清除定时器
window.clearInterval(this.timeFlag);
this.timeFlag = null;
},
methods: { methods: {
/** /**
* 搜索标签清空 * 搜索标签清空
...@@ -569,21 +583,6 @@ export default { ...@@ -569,21 +583,6 @@ export default {
that.loading = false; that.loading = false;
}); });
} }
},
mounted() {
const that = this;
that.$emit('showTab', '/unreview');
// that.wxEnterpriseId = await that.toLogin();
that.getTableList();
that.getBrandData();
},
beforeDestroy() { //清除定时器
window.clearInterval(this.timeFlag);
this.timeFlag = null;
},
components: {
storeChange,
reviewResultDetail
} }
}; };
</script> </script>
......
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