|
@@ -51,10 +51,11 @@
|
|
|
</p>-->
|
|
|
<p class='btm'>
|
|
|
<el-input
|
|
|
+ readonly
|
|
|
type='textarea'
|
|
|
:rows='2'
|
|
|
placeholder='信息点的单位及值的说明'
|
|
|
- v-model='form.ValueDescription'
|
|
|
+ v-model='ValueDescription'
|
|
|
></el-input>
|
|
|
</p>
|
|
|
</div>
|
|
@@ -121,9 +122,9 @@ export default {
|
|
|
label: 'name',
|
|
|
children: 'content'
|
|
|
},
|
|
|
+ ValueDescription: '', //值/点位描述
|
|
|
form: {
|
|
|
- dict: [],
|
|
|
- ValueDescription: '',
|
|
|
+ dict: [],
|
|
|
DataRuleType: ''
|
|
|
},
|
|
|
rules: {
|
|
@@ -252,7 +253,6 @@ export default {
|
|
|
DataRuleType: basic.DataRuleType, //值处理方式
|
|
|
DataSourceId: '4',
|
|
|
PointId: this.editData.Point.Id, //点位ID
|
|
|
- ValueDescription: basic.ValueDescription //信息点单位和值说明
|
|
|
}
|
|
|
let otherParams = {}
|
|
|
switch (type) {
|
|
@@ -469,11 +469,19 @@ export default {
|
|
|
this.handleItemChange(dict, () => {
|
|
|
this.form = {
|
|
|
dict: [...dict, data.InfomationPointCode],
|
|
|
- ValueDescription: data.ValueDescription || '',
|
|
|
DataRuleType: data.DataRuleType
|
|
|
}
|
|
|
this.unitObj = this.infoDict[data.InfomationPointCode]
|
|
|
- this.InfomationPoint = this.unitObj.infoPointName || '--'
|
|
|
+ this.InfomationPoint = this.unitObj.infoPointName || '--';
|
|
|
+ if(typeof this.unitObj.dataSource == "string") {
|
|
|
+ this.ValueDescription = this.unitObj.dataSource
|
|
|
+ } else {
|
|
|
+ let str = ''
|
|
|
+ this.unitObj.dataSource.forEach(ele => {
|
|
|
+ str = ele.code + '、' + ele.name + " "
|
|
|
+ })
|
|
|
+ this.ValueDescription = str;
|
|
|
+ }
|
|
|
})
|
|
|
if (length == 1) {
|
|
|
let flag = data.DataRuleType
|