|
@@ -23,7 +23,7 @@
|
|
|
<TreeSelect
|
|
|
caption='说明书位置:'
|
|
|
tipPlace='top'
|
|
|
- height='180'
|
|
|
+ width='180'
|
|
|
style='margin:0 12px'
|
|
|
:returnParentNode='false'
|
|
|
:isShowAllChoice='true'
|
|
@@ -33,9 +33,9 @@
|
|
|
:hideClear='true'
|
|
|
/>
|
|
|
<TreeSelect
|
|
|
- caption='位置/设备分类:'
|
|
|
+ caption='专业/设备、位置类型:'
|
|
|
tipPlace='top'
|
|
|
- height='180'
|
|
|
+ width='250'
|
|
|
style='margin:0 12px'
|
|
|
:returnParentNode='false'
|
|
|
:isShowAllChoice='true'
|
|
@@ -45,7 +45,7 @@
|
|
|
@change='treeConfirmDevice'
|
|
|
/>
|
|
|
|
|
|
- <TreeSelect
|
|
|
+ <!-- <TreeSelect
|
|
|
caption='专业:'
|
|
|
tipPlace='top'
|
|
|
height='180'
|
|
@@ -56,12 +56,12 @@
|
|
|
:data='majorList'
|
|
|
@change='treeConfirmMajor'
|
|
|
:hideClear='true'
|
|
|
- />
|
|
|
+ />-->
|
|
|
|
|
|
<TreeSelect
|
|
|
caption='铺位可视化:'
|
|
|
tipPlace='top'
|
|
|
- height='250'
|
|
|
+ width='250'
|
|
|
:returnParentNode='false'
|
|
|
:isShowAllChoice='true'
|
|
|
:choseArea='true'
|
|
@@ -138,7 +138,16 @@
|
|
|
<script>
|
|
|
import addLegend from './addLegend'
|
|
|
import Select from '@/components/Select/Select.vue'
|
|
|
-import { graphElementSearch, getLegendTree, queryLegend, deleteLegend, queryTypeId, getVisualization, queryRelation } from '@/api/legendLibrary.js'
|
|
|
+import {
|
|
|
+ queryDeviceAndPOsition,
|
|
|
+ graphElementSearch,
|
|
|
+ getLegendTree,
|
|
|
+ queryLegend,
|
|
|
+ deleteLegend,
|
|
|
+ queryTypeId,
|
|
|
+ getVisualization,
|
|
|
+ queryRelation
|
|
|
+} from '@/api/legendLibrary.js'
|
|
|
export default {
|
|
|
components: { addLegend, Select },
|
|
|
data() {
|
|
@@ -154,9 +163,13 @@ export default {
|
|
|
{ id: '1', name: '正常' },
|
|
|
{ id: '0', name: '已作废' }
|
|
|
],
|
|
|
- Type: undefined, //所属分类
|
|
|
+ Type: 'all', //所属分类
|
|
|
typeOptions: [
|
|
|
{
|
|
|
+ id: 'all',
|
|
|
+ name: '全部'
|
|
|
+ },
|
|
|
+ {
|
|
|
id: 'None',
|
|
|
name: '非图例'
|
|
|
},
|
|
@@ -185,7 +198,7 @@ export default {
|
|
|
keyword: undefined,
|
|
|
typeVisualization: [],
|
|
|
visualizationList: [], //已选铺位可视化
|
|
|
- majorList: [], //专业
|
|
|
+ // majorList: [], //专业
|
|
|
deviceList: [],
|
|
|
GraphCategoryIds: undefined, //说明书位置勾选集合
|
|
|
InfoLocals: undefined, //工程信息化
|
|
@@ -194,6 +207,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //业下设备分类和位置分类树形结构
|
|
|
+ initQueryDeviceAndPOsition() {
|
|
|
+ let postParams = {}
|
|
|
+ queryDeviceAndPOsition({ postParams }).then(res => {
|
|
|
+ this.deviceList = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
//说明书位置
|
|
|
instruction() {
|
|
|
let getParams = {}
|
|
@@ -281,7 +301,7 @@ export default {
|
|
|
Name: this.keyword,
|
|
|
PageNumber: this.currentPage,
|
|
|
PageSize: this.size,
|
|
|
- Type: this.Type
|
|
|
+ Type: this.Type == 'all' ? undefined : this.Type
|
|
|
}
|
|
|
graphElementSearch({ postParams }).then(res => {
|
|
|
this.tableData = res.Content
|
|
@@ -301,14 +321,17 @@ export default {
|
|
|
this.getTableList()
|
|
|
},
|
|
|
//专业
|
|
|
- treeConfirmMajor(id, info) {
|
|
|
- this.InfoSystems = id
|
|
|
- this.getTableList()
|
|
|
- },
|
|
|
+ // treeConfirmMajor(id, info) {
|
|
|
+ // this.InfoSystems = id
|
|
|
+ // this.getTableList()
|
|
|
+ // },
|
|
|
//位置/设备
|
|
|
treeConfirmDevice(id, info) {
|
|
|
- this.InfoLocals = id
|
|
|
- this.getTableList()
|
|
|
+ console.log(id, info)
|
|
|
+ let type = id.map(i => i[i.length - 1])
|
|
|
+ console.log(type, 'type')
|
|
|
+ // this.InfoLocals = id
|
|
|
+ // this.getTableList()
|
|
|
},
|
|
|
//说明书位置
|
|
|
treeConfirmPosition(id, info) {
|
|
@@ -324,6 +347,7 @@ export default {
|
|
|
this.instruction()
|
|
|
this.visualization()
|
|
|
this.getTableList()
|
|
|
+ this.initQueryDeviceAndPOsition()
|
|
|
}
|
|
|
}
|
|
|
</script>
|