mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-15 19:28:11 +00:00
no message
This commit is contained in:
parent
f70da2c4a2
commit
00f80e8db8
2
resources/assets/js/app.js
vendored
2
resources/assets/js/app.js
vendored
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user