|
@@ -178,14 +178,15 @@
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-select v-decorator="['projectId']" placeholder="请选择">
|
|
|
- <a-select-option
|
|
|
- v-for="{name,id} in treeData"
|
|
|
- :key="id"
|
|
|
- :label="name"
|
|
|
- :value="id">{{ name }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <a-tree-select
|
|
|
+ style="width: 100%"
|
|
|
+ :treeData="treeData"
|
|
|
+ :showSearch="true"
|
|
|
+ :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
+ v-decorator="['projectId']"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ </a-tree-select>
|
|
|
</a-form-item>
|
|
|
|
|
|
<a-form-item
|
|
@@ -275,7 +276,7 @@ import BaseTool from '@/utils/tool'
|
|
|
import { queryUsersByParentDeptNatureAll } from '@/api/upms/user'
|
|
|
import { fetchStoreTree } from '@/api/store/store'
|
|
|
import { getSbPositions } from '@/api/repair/application-form'
|
|
|
-import { fetchSbTypeTree } from '@/api/project/project'
|
|
|
+import { fetchProjectTree } from '@/api/project/project'
|
|
|
import { stringify } from 'qs'
|
|
|
export default {
|
|
|
name: 'BaseOutStoreFormYY',
|
|
@@ -471,9 +472,8 @@ export default {
|
|
|
this.data = record.detailList
|
|
|
},
|
|
|
setTree () {
|
|
|
- fetchSbTypeTree({
|
|
|
- flag: this.tokenType,
|
|
|
- type: 2
|
|
|
+ fetchProjectTree({
|
|
|
+ flag: this.tokenType
|
|
|
}).then((res) => {
|
|
|
this.treeData = res.data
|
|
|
})
|