代码调整
This commit is contained in:
parent
9fd5ff89a4
commit
be2bf8065d
@ -2,12 +2,12 @@
|
|||||||
<div>
|
<div>
|
||||||
<el-tabs v-model="activeName" type="card">
|
<el-tabs v-model="activeName" type="card">
|
||||||
<el-tab-pane label="填写" name="write">
|
<el-tab-pane label="填写" name="write">
|
||||||
<div class="write-box">
|
<div class="write-box" :style="{height: boxHeight + 'px'}">
|
||||||
<ControlTable :is-creat="true" @creat="creatData" />
|
<ControlTable :is-creat="true" @creat="creatData" />
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="查询" name="search">
|
<el-tab-pane label="查询" name="search">
|
||||||
<div v-if="activeName == 'search'" class="search-box">
|
<div v-if="activeName == 'search'" class="search-box" :style="{height: boxHeight + 'px'}">
|
||||||
<div v-for="(item, index) in searchList" :key="index" class="search-item">
|
<div v-for="(item, index) in searchList" :key="index" class="search-item">
|
||||||
<ControlTable :is-creat="false" :info="item" />
|
<ControlTable :is-creat="false" :info="item" />
|
||||||
</div>
|
</div>
|
||||||
@ -35,6 +35,12 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
group() {
|
group() {
|
||||||
return this.$route.query.group;
|
return this.$route.query.group;
|
||||||
|
},
|
||||||
|
boxHeight() {
|
||||||
|
const allH = this.$store.state.app.height;
|
||||||
|
let h = allH - 103 - 39 - 30 - 41 - 15;
|
||||||
|
h = h > 0 ? h : 0;
|
||||||
|
return h;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -57,7 +63,6 @@ export default {
|
|||||||
sendCommandNew(this.group, 'KEY_LINK_CONTROL_INFO_SAVE', obj).then((res) => {
|
sendCommandNew(this.group, 'KEY_LINK_CONTROL_INFO_SAVE', obj).then((res) => {
|
||||||
console.log(res, '---res');
|
console.log(res, '---res');
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.log('🚀 ~ file: index.vue:51 ~ sendCommandNew ~ error', error);
|
|
||||||
this.$messageBox('提交失败:' + error.message);
|
this.$messageBox('提交失败:' + error.message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user