This commit is contained in:
zds
2022-09-08 23:05:19 +08:00
parent 362ba7e368
commit 68ab724be1
4 changed files with 224 additions and 32 deletions

View File

@@ -3,6 +3,7 @@
append-to-body
title="日计划重排"
:visible.sync="dialogVisible"
v-loading.fullscreen.lock="fullscreenLoading"
destroy-on-close
:show-close="false"
fullscreen
@@ -11,7 +12,22 @@
>
<el-row :gutter="20">
<el-col :span="20" style="border: 1px solid white">
<span />
状态:<el-select
v-model="queryrow.status"
clearable
size="mini"
placeholder="状态"
style="width: 200px"
class="filter-item"
@change="MyQuery"
>
<el-option
v-for="item in dict.planstatus"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-col>
<el-col :span="4">
<span>
@@ -82,7 +98,8 @@ export default {
tableDtl: [],
cxjList: [],
XLList: [],
queryrow: { device_id: '' },
fullscreenLoading: false,
queryrow: { device_id: '', status: '01' },
sortable: null,
rows: []
}
@@ -112,13 +129,18 @@ export default {
*/
getMsg(msg) {
this.queryrow.device_id = msg
this.queryrow.status = '01'
},
queryStruct() {
this.fullscreenLoading = true
dailyplan.query2(this.queryrow).then(res => {
this.tableDtl = res
this.$nextTick(() => {
/*this.$nextTick(() => {
this.setSort()
})
})*/
this.fullscreenLoading = false
}).catch(() => {
this.fullscreenLoading = false
})
},
setSort() {
@@ -154,18 +176,31 @@ export default {
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed', this.rows)
},
MyQuery(value) {
this.queryrow.status = value
this.fullscreenLoading = true
dailyplan.query2(this.queryrow).then(res => {
this.tableDtl = res
/*this.$nextTick(() => {
this.setSort()
})*/
this.fullscreenLoading = false
}).catch(() => {
this.fullscreenLoading = false
})
},
submit() {
this.rows = this.$refs.dragTable.data
if (this.rows.length === 0) {
this.crud.notify('无可提交的记录!')
/* if (this.rows.length === 0) {
this.crud.notify('无可操作的记录!')
return false
}
dailyplan.submit2({ query: this.queryrow, rows: this.rows }).then(res => {
this.crud.notify('操作成功!')
this.tableDtl = []
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed', this.rows)
})
})*/
this.crud.notify('操作成功!')
this.tableDtl = []
this.$emit('update:dialogShow', false)
this.$emit('StructIvtClosed', this.rows)
}
}
}