|
@@ -127,29 +127,29 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
-<!-- <a-tree-select-->
|
|
|
-<!-- style="width: 100%"-->
|
|
|
-<!-- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"-->
|
|
|
-<!-- :treeData="treeData"-->
|
|
|
-<!-- :treeNodeFilterProp="'title'"-->
|
|
|
-<!-- :showSearch="true"-->
|
|
|
-<!-- v-decorator="['parentId', {rules: [{required: isShowParent, message: '上层设备类型不能为空'}]}]"-->
|
|
|
-<!-- placeholder="请选择"-->
|
|
|
-<!-- >-->
|
|
|
+ <!-- <a-tree-select-->
|
|
|
+ <!-- style="width: 100%"-->
|
|
|
+ <!-- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"-->
|
|
|
+ <!-- :treeData="treeData"-->
|
|
|
+ <!-- :treeNodeFilterProp="'title'"-->
|
|
|
+ <!-- :showSearch="true"-->
|
|
|
+ <!-- v-decorator="['parentId', {rules: [{required: isShowParent, message: '上层设备类型不能为空'}]}]"-->
|
|
|
+ <!-- placeholder="请选择"-->
|
|
|
+ <!-- >-->
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
|
<a-form-item
|
|
|
label="项目:"
|
|
|
:labelCol="BaseTool.Constant.labelCol"
|
|
|
:wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
>
|
|
|
- <a-tree-select
|
|
|
- style="width: 100%"
|
|
|
- :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
- :treeData="treeData"
|
|
|
- v-decorator="['projectId', {rules: [{required: true, message: '上层设备类型不能为空'}]}]"
|
|
|
- placeholder="请选择"
|
|
|
- >
|
|
|
- </a-tree-select>
|
|
|
+ <a-tree-select
|
|
|
+ style="width: 100%"
|
|
|
+ :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
+ :treeData="treeData"
|
|
|
+ v-decorator="['projectId', {rules: [{required: true, message: '上层设备类型不能为空'}]}]"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ </a-tree-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
@@ -273,7 +273,7 @@ export default {
|
|
|
visible: false,
|
|
|
maskClosable: false,
|
|
|
outFlag: 1,
|
|
|
- tokenType:1,
|
|
|
+ tokenType: 1,
|
|
|
model: {},
|
|
|
sbPositionList: [],
|
|
|
feeFromMap: {},
|
|
@@ -431,11 +431,8 @@ export default {
|
|
|
this.data = record.detailList
|
|
|
},
|
|
|
setTree (record = {}) {
|
|
|
- console.log(111)
|
|
|
fetchSbTypeTree().then((res) => {
|
|
|
- this.treeData = res.data
|
|
|
- console.log(this.treeData)
|
|
|
- this.treeData = res.data.map( item =>{
|
|
|
+ this.treeData = res.data.map(item => {
|
|
|
item.selectable = item.children == null
|
|
|
return item
|
|
|
})
|
|
@@ -591,7 +588,7 @@ export default {
|
|
|
this.data = data.filter(item => record.autoId !== item.autoId)
|
|
|
},
|
|
|
handleSpareStoreSelect () {
|
|
|
- this.$refs.spareStoreSelectModal.base({tokenType:this.tokenType})
|
|
|
+ this.$refs.spareStoreSelectModal.base({ tokenType: this.tokenType })
|
|
|
},
|
|
|
handleSpareStoreSelected (record, keys, rows) {
|
|
|
console.log(rows)
|