|
@@ -32,18 +32,20 @@
|
|
|
@change='treeConfirmPosition'
|
|
|
:hideClear='true'
|
|
|
/>
|
|
|
- <TreeSelect
|
|
|
- caption='专业/设备、位置类型:'
|
|
|
- tipPlace='top'
|
|
|
- width='250'
|
|
|
- style='margin:0 12px'
|
|
|
- :returnParentNode='false'
|
|
|
- :isShowAllChoice='true'
|
|
|
- :choseArea='true'
|
|
|
- :data='deviceList'
|
|
|
- :hideClear='true'
|
|
|
- @change='treeConfirmDevice'
|
|
|
- />
|
|
|
+ <span class='device-position'>
|
|
|
+ <TreeSelect
|
|
|
+ caption='专业/设备、位置类型:'
|
|
|
+ tipPlace='top'
|
|
|
+ width='300'
|
|
|
+ style='margin:0 12px'
|
|
|
+ :returnParentNode='false'
|
|
|
+ :isShowAllChoice='true'
|
|
|
+ :choseArea='true'
|
|
|
+ :data='deviceList'
|
|
|
+ :hideClear='true'
|
|
|
+ @change='treeConfirmDevice'
|
|
|
+ />
|
|
|
+ </span>
|
|
|
|
|
|
<!-- <TreeSelect
|
|
|
caption='专业:'
|
|
@@ -232,7 +234,22 @@ export default {
|
|
|
},
|
|
|
visualization() {
|
|
|
getVisualization({}).then(res => {
|
|
|
- this.typeVisualization = res.Data && res.Data.map(i => this.getTree(i))
|
|
|
+ this.typeVisualization =
|
|
|
+ res.Data &&
|
|
|
+ res.Data.map(i => {
|
|
|
+ return {
|
|
|
+ id: i.Id,
|
|
|
+ name: i.Name,
|
|
|
+ children: i.Children
|
|
|
+ ? i.Children.map(j => {
|
|
|
+ return {
|
|
|
+ id: j.Id,
|
|
|
+ name: j.Id + '-' + j.Name
|
|
|
+ }
|
|
|
+ })
|
|
|
+ : []
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
getTree(data) {
|
|
@@ -393,6 +410,13 @@ export default {
|
|
|
/deep/ .p-select-input-content {
|
|
|
line-height: 32px;
|
|
|
}
|
|
|
+ .device-position {
|
|
|
+ /deep/ .p-date-picker-caption {
|
|
|
+ display: block;
|
|
|
+ width: 200px !important;
|
|
|
+ max-width: 200px !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
<style lang="less">
|