- 将维修工单查询的部门字段 deptId 改为 deptIdList 支持多值 - 将备件库存查询的类型字段 typeId 改为 typeIdList 支持多值 - 为树选择组件添加 multiple 和 allowClear 属性
@@ -429,7 +429,7 @@ export default {
const no = this.$route.query.no
const skipDeptDefault = no != null || this.searchType === 2
this.queryParam = {
- deptId: skipDeptDefault ? null : this.$store.getters.userInfo.deptId,
+ deptIdList: skipDeptDefault ? [] : [this.$store.getters.userInfo.deptId],
searchStartTime: null,
searchEndTime: null
}
@@ -17,7 +17,7 @@
</a-col>
<a-col :md="8" :sm="24">
<a-form-item label="类型">
- <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }" :treeData="spareTypeTreeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeId" placeholder="请选择">
+ <a-tree-select style="width: 100%" :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }" :treeData="spareTypeTreeData" :treeNodeFilterProp="'title'" :showSearch="true" v-model="queryParam.typeIdList" multiple allowClear placeholder="请选择">
</a-tree-select>
</a-form-item>