feature_0521
郑皇 5 years ago
parent 6ef2a253ef
commit 00ec56ab75

@ -58,7 +58,7 @@ export default {
}, },
data() { data() {
return { return {
currentStep: 0, currentStep: -1,
modal_loading: false, modal_loading: false,
showUse: false showUse: false
}; };
@ -75,6 +75,8 @@ export default {
watch: { watch: {
show() { show() {
this.showUse = this.show; this.showUse = this.show;
this.currentStep = 0;
console.log(344, store.getters.useData);
}, },
schedule() { schedule() {
store.getters.useData.scheduleId = this.schedule.id; store.getters.useData.scheduleId = this.schedule.id;
@ -84,7 +86,9 @@ export default {
methods: { methods: {
cancel() { cancel() {
this.currentStep = 0; this.currentStep = 0;
store.commit("RSET_useData"); if (!this.isModify) {
store.commit("RSET_useData");
}
this.$emit("doShow", false); this.$emit("doShow", false);
this.modal_loading = false; this.modal_loading = false;
this.showUse = false; this.showUse = false;

@ -55,7 +55,10 @@ export default {
_this.checkCompanys.push(item.id); _this.checkCompanys.push(item.id);
} }
}); });
} else if (store.getters.useData.stores) { } else if (
store.getters.useData.stores &&
store.getters.useData.stores.length > 0
) {
store.getters.useData.stores.forEach(item => { store.getters.useData.stores.forEach(item => {
if (item.parentId && _this.checkCompanys.indexOf(item.parentId) == -1) { if (item.parentId && _this.checkCompanys.indexOf(item.parentId) == -1) {
_this.checkCompanys.push(item.parentId); _this.checkCompanys.push(item.parentId);

@ -202,7 +202,6 @@ export default {
}, },
res => { res => {
_this.welcome = res.data.results; _this.welcome = res.data.results;
store.commit("SET_useData", { store.commit("SET_useData", {
...store.getters.useData, ...store.getters.useData,
...this.welcome ...this.welcome

Loading…
Cancel
Save