|
@@ -88,7 +88,11 @@
|
|
|
v-else-if='form.DataRuleType == "需按公式转换"'
|
|
|
:formulaHandleShow='formulaHandleShow'
|
|
|
></formula-handle>
|
|
|
- <split-handle ref='splitHandle' v-else-if='form.DataRuleType == "需拆分处理"' :splitHandleShow='splitHandleShow'></split-handle>
|
|
|
+ <split-handle
|
|
|
+ ref='splitHandle'
|
|
|
+ v-else-if='form.DataRuleType == "需拆分处理"'
|
|
|
+ :splitHandleShow='splitHandleShow'
|
|
|
+ ></split-handle>
|
|
|
</el-form>
|
|
|
<div class='btn-box'>
|
|
|
<el-button type='primary' @click='save'>保存</el-button>
|
|
@@ -104,22 +108,15 @@ import autoHandle from './auto_handle'
|
|
|
import enumHandle from './enum_handle'
|
|
|
import formulaHandle from './formula_handle'
|
|
|
import splitHandle from './split_handle'
|
|
|
- import {
|
|
|
- mapGetters,
|
|
|
- mapActions
|
|
|
- } from "vuex";
|
|
|
+import { mapGetters, mapActions } from 'vuex'
|
|
|
//api
|
|
|
import { getEquipmentAll, getQueryProperty } from '@/fetch/data_plat'
|
|
|
import { batchCreate } from '@/fetch/point_http'
|
|
|
export default {
|
|
|
name: 'point_config_step3_edit',
|
|
|
computed: {
|
|
|
- ...mapGetters("project", [
|
|
|
- "projectId",
|
|
|
- "datasourceId",
|
|
|
- "protocolType"
|
|
|
- ])
|
|
|
- },
|
|
|
+ ...mapGetters('project', ['projectId', 'datasourceId', 'protocolType'])
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
options: [],
|
|
@@ -136,7 +133,7 @@ export default {
|
|
|
ValueDescription: '', //值/点位描述
|
|
|
form: {
|
|
|
dict: [],
|
|
|
- DataRuleType: ''
|
|
|
+ DataRuleType: '无需处理,直接使用'
|
|
|
},
|
|
|
rules: {
|
|
|
DataRuleType: [{ required: true, message: '请选择值处理方式', trigger: 'change' }]
|
|
@@ -399,7 +396,7 @@ export default {
|
|
|
},
|
|
|
handleChange(arr) {
|
|
|
this.unitObj = this.infoDict[arr[3]]
|
|
|
- this.InfomationPoint = this.unitObj ? (this.unitObj.infoPointName || '--') : '--'
|
|
|
+ this.InfomationPoint = this.unitObj ? this.unitObj.infoPointName || '--' : '--'
|
|
|
},
|
|
|
handleItemChange(val, cb) {
|
|
|
if (val.length == 3) {
|
|
@@ -475,6 +472,7 @@ export default {
|
|
|
async showValue(val) {
|
|
|
await this.getEqAll()
|
|
|
let length = val.RelationList.length
|
|
|
+ let eqMark = this.editData.Point.EquipmentMark
|
|
|
if (length) {
|
|
|
var data = val.RelationList[0]
|
|
|
let dict = [data.SpecialtyCode, data.SystemCode, data.EquipmentTypeCode]
|
|
@@ -560,6 +558,10 @@ export default {
|
|
|
devArr: devArr
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.noHandleShow = {
|
|
|
+ EquipmentMark: eqMark
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|