|
@@ -1,11 +1,10 @@
|
|
<template>
|
|
<template>
|
|
- <div class="system-dic-container">
|
|
|
|
|
|
+ <div class="page">
|
|
<div class="content">
|
|
<div class="content">
|
|
<div class="cont_box">
|
|
<div class="cont_box">
|
|
<div class="title">设备:{{ detail.name }}</div>
|
|
<div class="title">设备:{{ detail.name }}</div>
|
|
<div class="pro-status"><span :class="developer_status == 2 ? 'on' : 'off'"></span>{{ developer_status == 2 ? '在线'
|
|
<div class="pro-status"><span :class="developer_status == 2 ? 'on' : 'off'"></span>{{ developer_status == 2 ? '在线'
|
|
: '离线' }}</div>
|
|
: '离线' }}</div>
|
|
-
|
|
|
|
<!-- <div class="pro-option" @click="CkOption">{{ developer_status == 2 ? '下线' : '上线' }}</div> -->
|
|
<!-- <div class="pro-option" @click="CkOption">{{ developer_status == 2 ? '下线' : '上线' }}</div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -52,20 +51,19 @@
|
|
|
|
|
|
<div class="statusname" v-if="item.type != 'object'">
|
|
<div class="statusname" v-if="item.type != 'object'">
|
|
|
|
|
|
- {{getValueText(item.key,item.value)}}
|
|
|
|
|
|
+ {{ getValueText(item.key, item.value) }}
|
|
<!-- {{ item.value }}{{ item.unit }} -->
|
|
<!-- {{ item.value }}{{ item.unit }} -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div v-else>
|
|
<div v-else>
|
|
<div class="oblist" v-for="(vare, name) in item.value">
|
|
<div class="oblist" v-for="(vare, name) in item.value">
|
|
- <div> {{getStatusText(name,vare)}}</div>
|
|
|
|
|
|
+ <div> {{ getStatusText(name, vare) }}</div>
|
|
<!-- <div class="name">{{ name }}:</div>
|
|
<!-- <div class="name">{{ name }}:</div>
|
|
<div class="name">{{ vare }}</div> -->
|
|
<div class="name">{{ vare }}</div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="">
|
|
<div class="">
|
|
- <devantd :json="item.list" :antdid="item.key"
|
|
|
|
- v-if="item.type == 'int' || item.type == 'float' || item.type == 'string'" />
|
|
|
|
|
|
+ <devantd :json="item.list" :antdid="item.key" v-if="item.type == 'int' || item.type == 'float' || item.type == 'string'" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -75,52 +73,26 @@
|
|
<div class="pro-box">
|
|
<div class="pro-box">
|
|
<div class="protitle">设备信息</div>
|
|
<div class="protitle">设备信息</div>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" v-auth="'edit'" @click="onOpenEditDic(detail)">编辑</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" v-auth="'edit'" @click="onOpenEditDic(detail)">编辑</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="ant-descriptions-view">
|
|
|
|
- <table>
|
|
|
|
- <tbody>
|
|
|
|
- <tr class="ant-descriptions-row">
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">设备标识</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ detail.key }}</td>
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">设备名称</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ detail.name }}</td>
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">所属产品</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">
|
|
|
|
- <router-link :to="'/iotmanager/device/product/detail/' + prodetail.id" class="link-type">{{
|
|
|
|
- detail.productName }} </router-link>
|
|
|
|
- </td>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- <tr class="ant-descriptions-row">
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">消息协议</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.messageProtocol }}</td>
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">链接协议</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.transportProtocol }}</td>
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">设备类型</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ prodetail.deviceType }}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="ant-descriptions-row">
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">固件版本</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ detail.version }}</td>
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">注册时间</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ detail.updatedAt }}</td>
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">最后上线时间</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="1">{{ detail.lastOnlineTime || '' }}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="ant-descriptions-row">
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">详细地址</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="5">{{ detail.address }}</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr class="ant-descriptions-row">
|
|
|
|
- <th class="ant-descriptions-item-label ant-descriptions-item-colon">说明</th>
|
|
|
|
- <td class="ant-descriptions-item-content" colspan="5">{{ detail.desc }}</td>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-descriptions class="margin-top" :column="3" border>
|
|
|
|
+ <el-descriptions-item label="设备标识">{{ detail.key }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="设备名称">{{ detail.name }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="所属产品">
|
|
|
|
+ <router-link :to="'/iotmanager/device/product/detail/' + prodetail.id" class="link-type">{{
|
|
|
|
+ detail.productName }} </router-link>
|
|
|
|
+ </el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="消息协议">{{ prodetail.messageProtocol }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="链接协议">{{ prodetail.transportProtocol }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="设备类型">{{ prodetail.deviceType }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="固件版本">{{ detail.version }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="注册时间">{{ detail.updatedAt }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="最后上线时间">{{ detail.lastOnlineTime || '' }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="详细地址">{{ detail.address }}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="说明">{{ detail.desc }}</el-descriptions-item>
|
|
|
|
+ </el-descriptions>
|
|
<div class="flex" style="margin-top: 20px;">
|
|
<div class="flex" style="margin-top: 20px;">
|
|
<el-input type="number" style="width: 380px;margin-right: 20px;" v-model.number="detail.onlineTimeout">
|
|
<el-input type="number" style="width: 380px;margin-right: 20px;" v-model.number="detail.onlineTimeout">
|
|
<template #prepend>设备超时时间</template>
|
|
<template #prepend>设备超时时间</template>
|
|
@@ -137,7 +109,7 @@
|
|
<div class="wu-title">
|
|
<div class="wu-title">
|
|
<div class="title">属性定义</div>
|
|
<div class="title">属性定义</div>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" v-auth="'add'" @click="onOpenEditAttr()">添加</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" v-auth="'add'" @click="onOpenEditAttr()">添加</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -168,12 +140,9 @@
|
|
<el-table-column label="说明" prop="desc" show-overflow-tooltip />
|
|
<el-table-column label="说明" prop="desc" show-overflow-tooltip />
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" text type="warning" v-auth="'edit'"
|
|
|
|
- @click="onEditAttr(scope.row)">修改</el-button>
|
|
|
|
- <el-button size="small" text type="danger" v-auth="'del'"
|
|
|
|
- @click="onRowDel(scope.row.key, 'attr')">删除</el-button>
|
|
|
|
- <el-button size="small" text type="primary" v-auth="'edit'"
|
|
|
|
- @click="setAttr(scope.row)">设置属性</el-button>
|
|
|
|
|
|
+ <el-button size="small" text type="warning" v-auth="'edit'" @click="onEditAttr(scope.row)">修改</el-button>
|
|
|
|
+ <el-button size="small" text type="danger" v-auth="'del'" @click="onRowDel(scope.row.key, 'attr')">删除</el-button>
|
|
|
|
+ <el-button size="small" text type="primary" v-auth="'edit'" @click="setAttr(scope.row)">设置属性</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -182,7 +151,7 @@
|
|
<div class="wu-title">
|
|
<div class="wu-title">
|
|
<div class="title">功能定义</div>
|
|
<div class="title">功能定义</div>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" v-auth="'add'" @click="onOpenEditFun()">添加</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" v-auth="'add'" @click="onOpenEditFun()">添加</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -193,10 +162,8 @@
|
|
<el-table-column label="描述" prop="desc" show-overflow-tooltip />
|
|
<el-table-column label="描述" prop="desc" show-overflow-tooltip />
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" text type="warning" v-auth="'edit'"
|
|
|
|
- @click="onEditFun(scope.row)">修改</el-button>
|
|
|
|
- <el-button size="small" text type="danger" v-auth="'del'"
|
|
|
|
- @click="onRowDel(scope.row.key, 'fun')">删除</el-button>
|
|
|
|
|
|
+ <el-button size="small" text type="warning" v-auth="'edit'" @click="onEditFun(scope.row)">修改</el-button>
|
|
|
|
+ <el-button size="small" text type="danger" v-auth="'del'" @click="onRowDel(scope.row.key, 'fun')">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -205,7 +172,7 @@
|
|
<div class="wu-title">
|
|
<div class="wu-title">
|
|
<div class="title">事件定义</div>
|
|
<div class="title">事件定义</div>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" v-auth="'add'" @click="onOpenEditEvent()">添加</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="small" v-auth="'add'" @click="onOpenEditEvent()">添加</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -223,10 +190,8 @@
|
|
|
|
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" text type="warning" v-auth="'edit'"
|
|
|
|
- @click="onEditEvent(scope.row)">修改</el-button>
|
|
|
|
- <el-button size="small" text type="danger" v-auth="'del'"
|
|
|
|
- @click="onRowDel(scope.row.key, 'event')">删除</el-button>
|
|
|
|
|
|
+ <el-button size="small" text type="warning" v-auth="'edit'" @click="onEditEvent(scope.row)">修改</el-button>
|
|
|
|
+ <el-button size="small" text type="danger" v-auth="'del'" @click="onRowDel(scope.row.key, 'event')">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -235,7 +200,7 @@
|
|
<div class="wu-title">
|
|
<div class="wu-title">
|
|
<div class="title">标签定义</div>
|
|
<div class="title">标签定义</div>
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" v-auth="'add'" @click="onOpenEditTab()">添加</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="primary" v-auth="'add'" @click="onOpenEditTab()">添加</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -257,22 +222,18 @@
|
|
<el-table-column label="描述" prop="desc" show-overflow-tooltip />
|
|
<el-table-column label="描述" prop="desc" show-overflow-tooltip />
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" text type="warning" v-auth="'edit'"
|
|
|
|
- @click="onEditTag(scope.row)">修改</el-button>
|
|
|
|
- <el-button size="small" text type="danger" v-auth="'del'"
|
|
|
|
- @click="onRowDel(scope.row.key, 'tab')">删除</el-button>
|
|
|
|
|
|
+ <el-button size="small" text type="warning" v-auth="'edit'" @click="onEditTag(scope.row)">修改</el-button>
|
|
|
|
+ <el-button size="small" text type="danger" v-auth="'del'" @click="onRowDel(scope.row.key, 'tab')">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
- <pagination v-show="tableData.total > 0" :total="tableData.total" v-model:page="tableData.param.pageNum"
|
|
|
|
- v-model:limit="tableData.param.pageSize" @pagination="getList()" />
|
|
|
|
|
|
+ <pagination v-show="tableData.total > 0" :total="tableData.total" v-model:page="tableData.param.pageNum" v-model:limit="tableData.param.pageSize" @pagination="getList()" />
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="设备功能" name="5">
|
|
<el-tab-pane label="设备功能" name="5">
|
|
- <functionCom :device-key="detail.key" :product-key="prodetail.key"
|
|
|
|
- v-if="detail.key && prodetail.key && activeName === '5'"></functionCom>
|
|
|
|
|
|
+ <functionCom :device-key="detail.key" :product-key="prodetail.key" v-if="detail.key && prodetail.key && activeName === '5'"></functionCom>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="日志管理" name="4">
|
|
<el-tab-pane label="日志管理" name="4">
|
|
<div class="system-user-search mb15">
|
|
<div class="system-user-search mb15">
|
|
@@ -284,8 +245,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="创建时间" prop="dateRange">
|
|
<el-form-item label="创建时间" prop="dateRange">
|
|
- <el-date-picker v-model="logtableData.param.dateRange" value-format="YYYY-MM-DD"
|
|
|
|
- type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
|
|
|
+ <el-date-picker v-model="logtableData.param.dateRange" value-format="YYYY-MM-DD" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" class="ml10" @click="getlog">
|
|
<el-button type="primary" class="ml10" @click="getlog">
|
|
@@ -315,8 +275,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
|
|
|
|
- <pagination v-show="logtableData.total > 0" :total="logtableData.total"
|
|
|
|
- v-model:page="logtableData.param.pageNum" v-model:limit="logtableData.param.pageSize" @pagination="getlog" />
|
|
|
|
|
|
+ <pagination v-show="logtableData.total > 0" :total="logtableData.total" v-model:page="logtableData.param.pageNum" v-model:limit="logtableData.param.pageSize" @pagination="getlog" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane v-if="prodetail.deviceType == '网关'" label="子设备" name="6">
|
|
<el-tab-pane v-if="prodetail.deviceType == '网关'" label="子设备" name="6">
|
|
<div class="wu-box">
|
|
<div class="wu-box">
|
|
@@ -324,13 +283,11 @@
|
|
<div class="title">子设备列表</div>
|
|
<div class="title">子设备列表</div>
|
|
<div>
|
|
<div>
|
|
<el-button v-auth="'mutipleBind'" type="primary" @click="onOpenMutipleBind()">批量绑定</el-button>
|
|
<el-button v-auth="'mutipleBind'" type="primary" @click="onOpenMutipleBind()">批量绑定</el-button>
|
|
- <el-button v-auth="'cancleMutipleBind'" :disabled="!deviceKeyList.length" type="primary"
|
|
|
|
- @click="mutipleUnbind()">批量解绑</el-button>
|
|
|
|
|
|
+ <el-button v-auth="'cancleMutipleBind'" :disabled="!deviceKeyList.length" type="primary" @click="mutipleUnbind()">批量解绑</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-table :data="deviceTableData.data" style="width: 100%" @selection-change="handleSelectionChange"
|
|
|
|
- v-loading="deviceTableData.loading">
|
|
|
|
|
|
+ <el-table :data="deviceTableData.data" style="width: 100%" @selection-change="handleSelectionChange" v-loading="deviceTableData.loading">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column label="标识" prop="key" width="130" show-overflow-tooltip />
|
|
<el-table-column label="标识" prop="key" width="130" show-overflow-tooltip />
|
|
<el-table-column label="设备名称" prop="name" show-overflow-tooltip />
|
|
<el-table-column label="设备名称" prop="name" show-overflow-tooltip />
|
|
@@ -348,16 +305,12 @@
|
|
|
|
|
|
<el-table-column label="操作" width="160" align="center" fixed="right">
|
|
<el-table-column label="操作" width="160" align="center" fixed="right">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" text type="danger" v-auth="'del'"
|
|
|
|
- @click="deleteSubDevice(scope.row)">删除</el-button>
|
|
|
|
- <el-button size="small" text type="warning" v-auth="'detail'"
|
|
|
|
- @click="onOpenDetail(scope.row)">详情</el-button>
|
|
|
|
|
|
+ <el-button size="small" text type="danger" v-auth="'del'" @click="deleteSubDevice(scope.row)">删除</el-button>
|
|
|
|
+ <el-button size="small" text type="warning" v-auth="'detail'" @click="onOpenDetail(scope.row)">详情</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <pagination v-show="deviceTableData.total > 0" :total="deviceTableData.total"
|
|
|
|
- v-model:page="deviceTableData.param.pageNum" v-model:limit="deviceTableData.param.pageSize"
|
|
|
|
- @pagination="getDeviceTableData" />
|
|
|
|
|
|
+ <pagination v-show="deviceTableData.total > 0" :total="deviceTableData.total" v-model:page="deviceTableData.param.pageNum" v-model:limit="deviceTableData.param.pageSize" @pagination="getDeviceTableData" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
@@ -474,7 +427,7 @@ export default defineComponent({
|
|
setup(prop, context) {
|
|
setup(prop, context) {
|
|
const logqueryRef = ref();
|
|
const logqueryRef = ref();
|
|
|
|
|
|
- const array_list=ref([]);
|
|
|
|
|
|
+ const array_list = ref([]);
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
const editDicRef = ref();
|
|
const editDicRef = ref();
|
|
const setAttrRef = ref();
|
|
const setAttrRef = ref();
|
|
@@ -812,8 +765,8 @@ export default defineComponent({
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- const getValueText=(key, value)=>{
|
|
|
|
- let data =array_list.value;
|
|
|
|
|
|
+ const getValueText = (key, value) => {
|
|
|
|
+ let data = array_list.value;
|
|
for (let i = 0; i < data.length; i++) {
|
|
for (let i = 0; i < data.length; i++) {
|
|
const item = data[i];
|
|
const item = data[i];
|
|
if (item.key === key) {
|
|
if (item.key === key) {
|
|
@@ -830,8 +783,8 @@ export default defineComponent({
|
|
|
|
|
|
return value;
|
|
return value;
|
|
}
|
|
}
|
|
- const getStatusText=(name, value) =>{
|
|
|
|
- let data =array_list.value;
|
|
|
|
|
|
+ const getStatusText = (name, value) => {
|
|
|
|
+ let data = array_list.value;
|
|
for (let i = 0; i < data.length; i++) {
|
|
for (let i = 0; i < data.length; i++) {
|
|
const field = data[i];
|
|
const field = data[i];
|
|
if (field.valueType.type === "object") {
|
|
if (field.valueType.type === "object") {
|
|
@@ -842,7 +795,7 @@ export default defineComponent({
|
|
const element = property.valueType.elements.find((element) => element.value === value);
|
|
const element = property.valueType.elements.find((element) => element.value === value);
|
|
if (element) {
|
|
if (element) {
|
|
return `${property.name}: ${element.text}`;
|
|
return `${property.name}: ${element.text}`;
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
return `${property.name}: ${value}`;
|
|
return `${property.name}: ${value}`;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -863,7 +816,7 @@ export default defineComponent({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- return name+':'+value;
|
|
|
|
|
|
+ return name + ':' + value;
|
|
}
|
|
}
|
|
|
|
|
|
const getrunData = () => {
|
|
const getrunData = () => {
|
|
@@ -918,12 +871,12 @@ export default defineComponent({
|
|
state.logtableData.total = res.Total;
|
|
state.logtableData.total = res.Total;
|
|
});
|
|
});
|
|
};
|
|
};
|
|
- /** 重置按钮操作 */
|
|
|
|
- const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
|
- if (!formEl) return;
|
|
|
|
- formEl.resetFields();
|
|
|
|
- getlog();
|
|
|
|
- };
|
|
|
|
|
|
+ /** 重置按钮操作 */
|
|
|
|
+ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
|
+ if (!formEl) return;
|
|
|
|
+ formEl.resetFields();
|
|
|
|
+ getlog();
|
|
|
|
+ };
|
|
|
|
|
|
const CkOption = () => {
|
|
const CkOption = () => {
|
|
if (state.developer_status == 2) {
|
|
if (state.developer_status == 2) {
|
|
@@ -1014,7 +967,7 @@ export default defineComponent({
|
|
},
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
-<style>
|
|
|
|
|
|
+<style scoped>
|
|
.oblist {
|
|
.oblist {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
@@ -1026,16 +979,13 @@ export default defineComponent({
|
|
}
|
|
}
|
|
|
|
|
|
.content {
|
|
.content {
|
|
- background: #fff;
|
|
|
|
width: 100%;
|
|
width: 100%;
|
|
- padding: 20px;
|
|
|
|
|
|
+ padding: 20px 20px;
|
|
}
|
|
}
|
|
|
|
|
|
.content-box {
|
|
.content-box {
|
|
- background: #fff;
|
|
|
|
width: 100%;
|
|
width: 100%;
|
|
- padding: 20px;
|
|
|
|
- margin-top: 20px;
|
|
|
|
|
|
+ padding: 0 20px;
|
|
}
|
|
}
|
|
|
|
|
|
.cont_box {
|
|
.cont_box {
|
|
@@ -1114,54 +1064,6 @@ tr {
|
|
border-color: inherit;
|
|
border-color: inherit;
|
|
}
|
|
}
|
|
|
|
|
|
-.ant-descriptions-view {
|
|
|
|
- width: 100%;
|
|
|
|
- overflow: hidden;
|
|
|
|
- border-radius: 4px;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-view {
|
|
|
|
- border: 1px solid #e8e8e8;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-view table {
|
|
|
|
- width: 100%;
|
|
|
|
- table-layout: fixed;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-view>table {
|
|
|
|
- table-layout: auto;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-row {
|
|
|
|
- border-bottom: 1px solid #e8e8e8;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-item-label {
|
|
|
|
- color: rgba(0, 0, 0, 0.85);
|
|
|
|
- font-weight: 400;
|
|
|
|
- font-size: 14px;
|
|
|
|
- line-height: 1.5;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-item-label {
|
|
|
|
- padding: 16px 24px;
|
|
|
|
- border-right: 1px solid #e8e8e8;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-item-label {
|
|
|
|
- background-color: #fafafa;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.ant-descriptions-item-content {
|
|
|
|
- padding: 16px 24px;
|
|
|
|
- border-right: 1px solid #e8e8e8;
|
|
|
|
- display: table-cell;
|
|
|
|
- color: rgba(0, 0, 0, 0.65);
|
|
|
|
- font-size: 14px;
|
|
|
|
- line-height: 1.5;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
.wu-box {
|
|
.wu-box {
|
|
border: #e8e8e8 solid 1px;
|
|
border: #e8e8e8 solid 1px;
|
|
padding: 20px;
|
|
padding: 20px;
|
|
@@ -1216,6 +1118,7 @@ tr {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
height: 30px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
-}</style>
|
|
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
|
|
|
|
|