代码调整

This commit is contained in:
dong 2023-02-06 14:34:42 +08:00
parent 9fd5ff89a4
commit be2bf8065d

View File

@ -2,12 +2,12 @@
<div>
<el-tabs v-model="activeName" type="card">
<el-tab-pane label="填写" name="write">
<div class="write-box">
<div class="write-box" :style="{height: boxHeight + 'px'}">
<ControlTable :is-creat="true" @creat="creatData" />
</div>
</el-tab-pane>
<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">
<ControlTable :is-creat="false" :info="item" />
</div>
@ -35,6 +35,12 @@ export default {
computed: {
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: {
@ -57,7 +63,6 @@ export default {
sendCommandNew(this.group, 'KEY_LINK_CONTROL_INFO_SAVE', obj).then((res) => {
console.log(res, '---res');
}).catch(error => {
console.log('🚀 ~ file: index.vue:51 ~ sendCommandNew ~ error', error);
this.$messageBox('提交失败:' + error.message);
});
}