|
@@ -57,6 +57,26 @@ export default {
|
|
|
mainData: {},
|
|
mainData: {},
|
|
|
mainAreaData: {},
|
|
mainAreaData: {},
|
|
|
detailInfo: [],
|
|
detailInfo: [],
|
|
|
|
|
+ bodystructure: [],
|
|
|
|
|
+ actuatordrivetype:[],
|
|
|
|
|
+ actuatortype:[],
|
|
|
|
|
+ func: [],
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ provide() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ bodystructure: () => {
|
|
|
|
|
+ return this.bodystructure;
|
|
|
|
|
+ },
|
|
|
|
|
+ actuatordrivetype: () => {
|
|
|
|
|
+ return this.actuatordrivetype;
|
|
|
|
|
+ },
|
|
|
|
|
+ actuatortype: () => {
|
|
|
|
|
+ return this.actuatortype;
|
|
|
|
|
+ },
|
|
|
|
|
+ func: () => {
|
|
|
|
|
+ return this.func;
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -129,6 +149,14 @@ export default {
|
|
|
label: "名称",
|
|
label: "名称",
|
|
|
value: this.mainData.itemname,
|
|
value: this.mainData.itemname,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "执行器类型",
|
|
|
|
|
+ value: this.mainData.actuatortype,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: "执行器驱动类型",
|
|
|
|
|
+ value: this.mainData.actuatordrivetype,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: "电源电压",
|
|
label: "电源电压",
|
|
|
value: this.mainData.supplyvoltage,
|
|
value: this.mainData.supplyvoltage,
|
|
@@ -235,6 +263,24 @@ export default {
|
|
|
];
|
|
];
|
|
|
console.log(this.mainAreaData);
|
|
console.log(this.mainAreaData);
|
|
|
},
|
|
},
|
|
|
|
|
+ optionList() {
|
|
|
|
|
+ this.$store.dispatch("optiontypeselect", "bodystructure").then((res) => {
|
|
|
|
|
+ this.bodystructure = res.data;
|
|
|
|
|
+ console.log(this.bodystructure, "结构");
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$store.dispatch("optiontypeselect", "func").then((res) => {
|
|
|
|
|
+ this.func = res.data;
|
|
|
|
|
+ console.log(this.func, "功能");
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$store.dispatch("optiontypeselect", "actuatortype").then((res) => {
|
|
|
|
|
+ this.actuatortype = res.data;
|
|
|
|
|
+ console.log(this.actuatortype, "执行器类型");
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$store.dispatch("optiontypeselect", "actuatordrivetype").then((res) => {
|
|
|
|
|
+ this.actuatordrivetype = res.data;
|
|
|
|
|
+ console.log(this.actuatordrivetype, "执行器驱动类型");
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 监听切换数据,上一页,下一页
|
|
// 监听切换数据,上一页,下一页
|
|
|
pageChange(id, rowindex, tabIndex) {
|
|
pageChange(id, rowindex, tabIndex) {
|
|
|
this.flag = false;
|
|
this.flag = false;
|
|
@@ -252,6 +298,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ this.optionList()
|
|
|
this.queryMainData(this.$route.query.id)
|
|
this.queryMainData(this.$route.query.id)
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|