|
@@ -167,7 +167,7 @@
|
|
|
<div class="label">二级地址偏移</div>
|
|
|
<div class="cotent">
|
|
|
<el-input-number
|
|
|
- v-model="opreateModelForm.cbAddrOffset"
|
|
|
+ v-model="opreateModelForm.cbSecondAddrOffset"
|
|
|
:controls="false"
|
|
|
label="label"
|
|
|
></el-input-number>
|
|
@@ -240,7 +240,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
opreateModelForm: {
|
|
|
- cbAddrOffset: 0,
|
|
|
+ cbSecondAddrOffset: 0,
|
|
|
cbCoEquipType: "对流",
|
|
|
apparatus_device_id: 0,
|
|
|
cbHeEquipType: "辐射",
|
|
@@ -287,7 +287,7 @@ export default {
|
|
|
if (this._props.operateModelType === "edit") {
|
|
|
if (n !== EndControlType) {
|
|
|
this.opreateModelForm = {
|
|
|
- cbAddrOffset: 0,
|
|
|
+ cbSecondAddrOffset: 0,
|
|
|
cbCoEquipType: "",
|
|
|
apparatus_device_id: 0,
|
|
|
cbHeEquipType: "",
|
|
@@ -304,7 +304,7 @@ export default {
|
|
|
};
|
|
|
} else {
|
|
|
this.opreateModelForm = {
|
|
|
- cbAddrOffset: 0,
|
|
|
+ cbSecondAddrOffset: 0,
|
|
|
cbCoEquipType: "对流",
|
|
|
apparatus_device_id: 0,
|
|
|
cbHeEquipType: "辐射",
|
|
@@ -330,7 +330,7 @@ export default {
|
|
|
if (this._props.operateModelType !== "create") {
|
|
|
console.log(n);
|
|
|
this.opreateModelForm = {
|
|
|
- cbAddrOffset: n.cbAddrOffset || 0,
|
|
|
+ cbSecondAddrOffset: n.cbSecondAddrOffset || 0,
|
|
|
cbCoEquipType: n.cbCoEquipType || "",
|
|
|
cbHeEquipType: n.cbHeEquipType || "",
|
|
|
apparatus_model_name: n.apparatus_model_name || "",
|
|
@@ -362,7 +362,7 @@ export default {
|
|
|
async makeSureOperateButton() {
|
|
|
if (this._props.operateModelType === "create") {
|
|
|
const {
|
|
|
- cbAddrOffset,
|
|
|
+ cbSecondAddrOffset,
|
|
|
cbCoEquipType,
|
|
|
apparatus_device_id,
|
|
|
cbHeEquipType,
|
|
@@ -379,7 +379,7 @@ export default {
|
|
|
consumption_cycle,
|
|
|
} = this.opreateModelForm;
|
|
|
const res = await createApparatusModel({
|
|
|
- cbAddrOffset,
|
|
|
+ cbSecondAddrOffset,
|
|
|
cbCoEquipType,
|
|
|
apparatus_device_id: this._props.operateForm.id,
|
|
|
cbHeEquipType,
|
|
@@ -410,7 +410,7 @@ export default {
|
|
|
this.$emit("update:addNewModelDialog", false);
|
|
|
} else if (this._props.operateModelType === "edit") {
|
|
|
const {
|
|
|
- cbAddrOffset,
|
|
|
+ cbSecondAddrOffset,
|
|
|
cbCoEquipType,
|
|
|
cbHeEquipType,
|
|
|
apparatus_model_name,
|
|
@@ -426,7 +426,7 @@ export default {
|
|
|
consumption_cycle,
|
|
|
} = this.opreateModelForm;
|
|
|
const res = await editApparatusModel({
|
|
|
- cbAddrOffset,
|
|
|
+ cbSecondAddrOffset,
|
|
|
cbCoEquipType,
|
|
|
apparatus_model_id: this._props.activeDeviceDetail
|
|
|
.apparatus_model_auto_id,
|