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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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