|
|
@ -42,7 +42,7 @@ |
|
|
<el-option label="Copy" value="Copy"></el-option> |
|
|
<el-option label="Copy" value="Copy"></el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="状态"> |
|
|
|
|
|
|
|
|
<el-form-item v-if="!queryOnly" label="状态"> |
|
|
<el-select v-model="searchData.statusDesc" clearable style="width: 90px"> |
|
|
<el-select v-model="searchData.statusDesc" clearable style="width: 90px"> |
|
|
<el-option label="全部" value=""></el-option> |
|
|
<el-option label="全部" value=""></el-option> |
|
|
<el-option label="草稿" value="cg"></el-option> |
|
|
<el-option label="草稿" value="cg"></el-option> |
|
|
@ -1160,13 +1160,17 @@ |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
buildExcludeStatusList () { |
|
|
buildExcludeStatusList () { |
|
|
return this.queryOnly ? ['death', 'dead'] : null |
|
|
|
|
|
|
|
|
return this.queryOnly ? ['cg', 'death', 'dead'] : null |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
applyQueryOnlyFilter (target) { |
|
|
applyQueryOnlyFilter (target) { |
|
|
if (this.queryOnly) { |
|
|
if (this.queryOnly) { |
|
|
|
|
|
target.statusDesc = '' |
|
|
target.excludeStatusList = this.buildExcludeStatusList() |
|
|
target.excludeStatusList = this.buildExcludeStatusList() |
|
|
target.menuId = '103002' |
|
|
target.menuId = '103002' |
|
|
|
|
|
if (Array.isArray(target.querySavedDetailList)) { |
|
|
|
|
|
target.querySavedDetailList = target.querySavedDetailList.filter(item => item && !['statusDesc', 'status', 'status_desc'].includes(item.fieldName)) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
delete target.excludeStatusList |
|
|
delete target.excludeStatusList |
|
|
delete target.excludeStatusClause |
|
|
delete target.excludeStatusClause |
|
|
|