Commit 770f4774 by 无尘

fix: 修改组件选项顺序

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