modify terminalAdd page

This commit is contained in:
龚祖望 2023-09-04 17:08:20 +08:00
parent a5190e2173
commit ebbf478963
1 changed files with 30 additions and 28 deletions

View File

@ -67,8 +67,6 @@
<!-- 新增弹窗 -->
<el-dialog title="新增设备" :visible="visible" width="500px" @close="closeDialog">
<el-form ref="form" :rules="rules" label-width="130px" :model="form" size="medium">
<el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
<el-row>
<el-col :span="18" :offset="3">
<el-form-item label="产品分类:" prop="product">
@ -93,6 +91,8 @@
</el-form-item>
</el-col>
</el-row>
<!-- <el-tabs v-model="activeName">
<el-tab-pane label="基本信息" name="first">
</el-tab-pane>
<el-tab-pane label="TCP/IP" name="second">
<el-row>
@ -157,7 +157,7 @@
</el-col>
</el-row>
</el-tab-pane>
</el-tabs>
</el-tabs> -->
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="medium" @click="visible=false"> </el-button>
@ -448,8 +448,10 @@ export default {
const temp = {
src, productname, type, no, devicedesc, color
}
const runstatus = Math.round(Math.random() * 10) % 3
const statusdesc = runstatus === 0 ? '待机' : runstatus === 1 ? '运行' : '警告'
// const runstatus = Math.round(Math.random() * 10) % 3
// const statusdesc = runstatus === 0 ? '' : runstatus === 1 ? '' : ''
const runstatus = 1
const statusdesc = '运行'
const dataTemplate = {
runstatus,
statusdesc,