添加 一般隐患排查搜索项 整改部门

dev-shanao
shanao 2024-11-05 16:27:55 +08:00
parent dc18edd445
commit ca9ae7aa8b
1 changed files with 21 additions and 3 deletions

View File

@ -81,13 +81,23 @@
<el-input v-model="condform.rectificationorName" placeholder="请输入关键字"/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="整改部门" prop="reorganizeDept">
<el-cascader
ref="deptTree_Select10"
:options="hiddenCreatorDeptList"
:props="defaultProps1"
v-model="condform.reorganizeDept"
clearable/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col v-if="hiddenVueType !='ignore'" :span="4" >
<el-form-item label="验收人">
<el-input v-model="condform.checkrecordName" placeholder="请输入关键字"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item label="隐患部位">
<SelectTree
@ -279,7 +289,8 @@ export default {
hiddenpart: '', //
hiddenType: '', //
creatorUserDept: '', //
isrelevant: '' //
isrelevant: '', //
reorganizeDept: [] //
},
/** 条件中的字段,没有放在form表单中,是因为怕动态加载中出现问题 **/
sourceList: [
@ -306,6 +317,7 @@ export default {
{ ID: '16', NAME: '确认打回' },
{ ID: '10', NAME: '验收打回' }
],
defaultProps1: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false, checkStrictly: true },
defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false },
pickerOptions0: { disabledDate(time) { return time.getTime() < Date.now() - 8.64e6 } },
hiddenlevelList: [], //
@ -382,11 +394,17 @@ export default {
//
getList() {
this.listLoading = true
const reorganizeDept = this.condform.reorganizeDept
let deptIds = ''
if (reorganizeDept != null && reorganizeDept.length > 0) {
reorganizeDept.forEach(item => { deptIds = deptIds + ',' + item })
}
requestFN(
'/hiddenApi/getList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{
...this.condform,
hiddenVueType: this.hiddenVueType,
reorganizeDept: deptIds,
STARTTIME: this.condform.creatTime[0],
ENDTIME: this.condform.creatTime[1]
}