|
@@ -82,16 +82,40 @@
|
|
|
<span class='form4-span3'>铺位可视化typeid</span>
|
|
|
</div>
|
|
|
<div class='form3-bottom'>
|
|
|
- <el-select v-model='value' placeholder='请选择' size='small' style='width:200px;margin-right:48px;'>
|
|
|
+ <!-- <el-select v-model='value' placeholder='请选择' size='small' style='width:200px;margin-right:48px;'>
|
|
|
<el-option v-for='item in options1' :key='item.value' :label='item.label' :value='item.value'></el-option>
|
|
|
</el-select>
|
|
|
<el-select v-model='value' placeholder='请选择' size='small' style='width:200px;margin-right:48px'>
|
|
|
<el-option v-for='item in options2' :key='item.value' :label='item.label' :value='item.value'></el-option>
|
|
|
- </el-select>
|
|
|
+ </el-select>-->
|
|
|
+
|
|
|
+ <TreeSelect
|
|
|
+ tipPlace='top'
|
|
|
+ width='200'
|
|
|
+ style=' margin-right:48px;'
|
|
|
+ :notNull='true'
|
|
|
+ :returnParentNode='false'
|
|
|
+ :isShowAllChoice='true'
|
|
|
+ :choseArea='true'
|
|
|
+ :data='deviceList'
|
|
|
+ @change='treeConfirmDevice'
|
|
|
+ />
|
|
|
+
|
|
|
+ <TreeSelect
|
|
|
+ tipPlace='top'
|
|
|
+ width='200'
|
|
|
+ style=' margin-right:48px;'
|
|
|
+ :notNull='true'
|
|
|
+ :returnParentNode='false'
|
|
|
+ :isShowAllChoice='true'
|
|
|
+ :choseArea='true'
|
|
|
+ :data='majorList'
|
|
|
+ @change='treeConfirmMajor'
|
|
|
+ />
|
|
|
|
|
|
<TreeSelect
|
|
|
tipPlace='top'
|
|
|
- height='200'
|
|
|
+ width='200'
|
|
|
:notNull='true'
|
|
|
:returnParentNode='false'
|
|
|
:isShowAllChoice='true'
|
|
@@ -177,7 +201,9 @@ export default {
|
|
|
view: null,
|
|
|
scene: null,
|
|
|
typeVisualization: [],
|
|
|
- visualizationList: [] //已选铺位可视化
|
|
|
+ visualizationList: [], //已选铺位可视化
|
|
|
+ majorList: [], //专业
|
|
|
+ deviceList: []
|
|
|
}
|
|
|
},
|
|
|
props: ['ruleForm', 'title'],
|
|
@@ -349,10 +375,19 @@ export default {
|
|
|
},
|
|
|
// 多选返回的id组
|
|
|
treeConfirm(data) {
|
|
|
- console.log(data)
|
|
|
+ console.log(data, 'data')
|
|
|
+ this.visualizationList = data
|
|
|
+ },
|
|
|
+ //专业
|
|
|
+ treeConfirmMajor(id, info) {
|
|
|
+ console.log(id)
|
|
|
+ },
|
|
|
+ //位置/设备
|
|
|
+ treeConfirmDevice(id, info) {
|
|
|
+ console.log(id)
|
|
|
},
|
|
|
focusChange(status) {
|
|
|
- console.log('focusChange', status)
|
|
|
+ // console.log('focusChange', status)
|
|
|
},
|
|
|
visualization() {
|
|
|
getVisualization({}).then(res => {
|
|
@@ -367,11 +402,6 @@ export default {
|
|
|
children: data.Children ? data.Children.map(i => this.getTree(i)) : []
|
|
|
}
|
|
|
},
|
|
|
- treeConfirm(id) {
|
|
|
- this.visualizationList = id.map(i => {
|
|
|
- return { id: i }
|
|
|
- })
|
|
|
- },
|
|
|
focusChange(status) {
|
|
|
console.log('focusChange', status)
|
|
|
}
|