修改任务待办

This commit is contained in:
shidongli 2024-08-12 11:35:18 +08:00
parent bfbe0e937a
commit f30bfaf4e4
2 changed files with 37 additions and 21 deletions

View File

@ -50,6 +50,8 @@ export default {
mounted() { mounted() {
// / // /
this.minShowCtrol() this.minShowCtrol()
this.$emit('fold',this.fold)
}, },
watch: { watch: {
'$store.state.app.sidebar.opened'(newVal, Val) { '$store.state.app.sidebar.opened'(newVal, Val) {
@ -76,6 +78,7 @@ export default {
}, },
shiftCollapsiable() { shiftCollapsiable() {
this.fold = !this.fold this.fold = !this.fold
this.$emit('fold',this.fold)
this.minShowCtrol() this.minShowCtrol()
}, },
// maxShow/ // maxShow/

View File

@ -10,7 +10,7 @@
</el-tabs> </el-tabs>
<div ref="topform" class="form"> <div ref="topform" class="form">
<SearchFilter labelWidth="90px" :labelWidths="310" size="small" @search="handleQuery" <SearchFilter labelWidth="90px" :labelWidths="310" size="small" @search="handleQuery"
@reset="resetQuery" @minShowCtrol="getMaxTableHeight"> @reset="resetQuery" @minShowCtrol="getMaxTableHeight" @fold="fold">
<el-form-item label="执行时间" prop="startDate"> <el-form-item label="执行时间" prop="startDate">
<el-date-picker <el-date-picker
v-model="intentionalTime" v-model="intentionalTime"
@ -190,13 +190,9 @@
style="width: 220px" style="width: 220px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> <span style="margin-left: 13px;" v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED' &&foldshow==true">
<el-form-item
label=""
prop="manageRouteName"
v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED'"
>
<el-switch <el-switch
class="switchStyle" class="switchStyle"
v-model="timeSignshow" v-model="timeSignshow"
active-color="#1890ff" active-color="#1890ff"
@ -205,7 +201,24 @@
inactive-text="待办" inactive-text="待办"
@change="changeswitch" @change="changeswitch"
/> />
</span>
</el-form-item> </el-form-item>
<!-- <el-form-item
label=""
prop="manageRouteName"
v-if="queryParams.nodeExecuteStatus == 'UNEXECUTED' &&foldshow==true"
>
<el-switch
style="width: 220px"
class="switchStyle"
v-model="timeSignshow"
active-color="#1890ff"
inactive-color="#5AC1A1"
active-text="全部"
inactive-text="待办"
@change="changeswitch"
/>
</el-form-item> -->
</SearchFilter> </SearchFilter>
</div> </div>
<div ref="table"> <div ref="table">
@ -421,23 +434,19 @@
label="计划时间" label="计划时间"
align="center" align="center"
prop="planTime" prop="planTime"
width="80" width="95"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.planTime, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.planTime, "{y}-{m}-{d}") }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
v-if="queryParams.nodeExecuteStatus=='EXECUTED'" v-if="queryParams.nodeExecuteStatus=='EXECUTED'"
label="执行时间"
label="执行时间'"
align="center" align="center"
prop="executeTime" prop="executeTime"
width="80" width="95"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.executeTime, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.executeTime, "{y}-{m}-{d}") }}</span>
@ -497,6 +506,7 @@ export default {
data() { data() {
return { return {
foldshow:null,
maxTableHeight: undefined, maxTableHeight: undefined,
// 访 // 访
intentionalTime: [], intentionalTime: [],
@ -1061,6 +1071,9 @@ export default {
this.getBoxPadding(layoutDiv) - this.getBoxPadding(layoutDiv) -
this.getBoxHeight(formDiv); this.getBoxHeight(formDiv);
}, },
fold(e){
this.foldshow=e
},
// resize // resize
screenChange() { screenChange() {
// resizeresize // resizeresize