调度命令调整
This commit is contained in:
parent
e2b2f80e4d
commit
8555ae081a
@ -19,7 +19,7 @@
|
|||||||
<el-tab-pane label="操作" name="operate">
|
<el-tab-pane label="操作" name="operate">
|
||||||
<div class="operate-box">
|
<div class="operate-box">
|
||||||
<div class="create-cmd">
|
<div class="create-cmd">
|
||||||
<el-button type="primary" @click="initData">新建调度命令</el-button>
|
<el-button type="primary" @click="createCmd">新建调度命令</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
@ -253,6 +253,16 @@ export default {
|
|||||||
beforeDestroy() {},
|
beforeDestroy() {},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods:{
|
methods:{
|
||||||
|
createCmd() {
|
||||||
|
this.$confirm('当前调度命令已经被编辑修改过了,你要放弃所有的修改吗?', '操作提示', {
|
||||||
|
confirmButtonText: '是',
|
||||||
|
cancelButtonText: '否'
|
||||||
|
}).then(() => {
|
||||||
|
this.initData();
|
||||||
|
}).catch(() => {
|
||||||
|
console.log('取消新建调度命令!');
|
||||||
|
});
|
||||||
|
},
|
||||||
initData() {
|
initData() {
|
||||||
this.command = {
|
this.command = {
|
||||||
title: '',
|
title: '',
|
||||||
@ -284,7 +294,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
getSenderName() {
|
getSenderName() {
|
||||||
debugger;
|
|
||||||
this.memberDataList = Object.values(this.memberData);
|
this.memberDataList = Object.values(this.memberData);
|
||||||
const activeUser = this.memberDataList.find(item => {
|
const activeUser = this.memberDataList.find(item => {
|
||||||
return item.userId == this.$store.state.user.id;
|
return item.userId == this.$store.state.user.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user