no message

This commit is contained in:
kuaifan 2022-04-26 08:45:04 +08:00
parent f70da2c4a2
commit 00f80e8db8
8 changed files with 14 additions and 17 deletions

View File

@ -8,6 +8,7 @@ import Vuex from 'vuex'
import App from './App.vue'
import routes from './routes'
import VueRouter from 'vue-router'
import VueClipboard from 'vue-clipboard2'
import ViewUI from 'view-design-hi';
import Language from './language/index'
import store from './store/index'
@ -18,6 +19,7 @@ Vue.use(ViewUI, {
checkEscClose: true
}
});
Vue.use(VueClipboard);
Vue.use(VueRouter);
Vue.use(Language);

View File

@ -361,11 +361,11 @@ export default {
onOk: () => {
this.$store.dispatch("removeTask", {task_id: data.id}).then(({msg}) => {
$A.messageSuccess(msg);
this.$Modal.remove();
}).catch(({msg}) => {
$A.modalError(msg, 301);
this.$Modal.remove();
this.setRenderRange();
}).finally(_ => {
this.$Modal.remove();
});
}
});

View File

@ -225,7 +225,6 @@ export default {
userids,
}
}).then(({msg}) => {
this.$Modal.remove();
$A.messageSuccess(msg);
if (userids.length > 0) {
this.getDialogUser();
@ -235,6 +234,7 @@ export default {
}
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
},
@ -253,12 +253,12 @@ export default {
dialog_id: this.dialogId,
}
}).then(({msg}) => {
this.$Modal.remove();
$A.messageSuccess(msg);
this.$store.dispatch("forgetDialog", this.dialogId);
this.goForward({name: 'manage-messenger'});
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
},

View File

@ -266,9 +266,9 @@ export default {
}).then(() => {
$A.messageSuccess("消息已撤回");
this.$store.dispatch("forgetDialogMsg", this.msgData.id);
this.$Modal.remove();
}).catch(({msg}) => {
$A.messageError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
}

View File

@ -452,10 +452,6 @@
</template>
<script>
import Vue from 'vue'
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
import Draggable from 'vuedraggable'
import TaskPriority from "./TaskPriority";
import TaskAdd from "./TaskAdd";
@ -1053,10 +1049,10 @@ export default {
this.$store.dispatch("removeColumn", column.id).then(({data, msg}) => {
$A.messageSuccess(msg);
this.$set(this.columnLoad, column.id, false);
this.$Modal.remove();
}).catch(({msg}) => {
$A.modalError(msg, 301);
this.$set(this.columnLoad, column.id, false);
}).finally(_ => {
this.$Modal.remove();
});
}
@ -1134,9 +1130,9 @@ export default {
onOk: () => {
this.$store.dispatch("archivedProject", this.projectId).then(({msg}) => {
$A.messageSuccess(msg);
this.$Modal.remove();
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
}
@ -1151,9 +1147,9 @@ export default {
onOk: () => {
this.$store.dispatch("removeProject", this.projectId).then(({msg}) => {
$A.messageSuccess(msg);
this.$Modal.remove();
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
}
@ -1168,9 +1164,9 @@ export default {
onOk: () => {
this.$store.dispatch("exitProject", this.projectId).then(({msg}) => {
$A.messageSuccess(msg);
this.$Modal.remove();
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
}

View File

@ -247,11 +247,11 @@ export default {
}
}).then(({data, msg}) => {
$A.messageSuccess(msg);
this.$Modal.remove();
this.$store.dispatch("saveTask", data);
this.getLists(true);
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
}

View File

@ -348,7 +348,6 @@ export default {
},
}).then(({msg}) => {
$.messageSuccess(msg);
this.$Modal.remove();
//
let index = this.list.findIndex(({id}) => id == data.id)
if (index > -1) {
@ -356,8 +355,8 @@ export default {
}
}).catch(({msg}) => {
$A.modalError(msg, 301);
this.$Modal.remove();
}).finally(_ => {
this.$Modal.remove();
this.loadIng--;
});
} else {

View File

@ -311,9 +311,9 @@ export default {
}
this.$store.dispatch(typeDispatch, typeData).then(({msg}) => {
$A.messageSuccess(msg);
this.$Modal.remove();
}).catch(({msg}) => {
$A.modalError(msg, 301);
}).finally(_ => {
this.$Modal.remove();
});
}