样式一致性修改

This commit is contained in:
仲么了
2024-01-26 09:35:33 +08:00
parent f12af238f4
commit fa7ac01f6c
4 changed files with 11 additions and 32 deletions

View File

@@ -151,10 +151,10 @@ const tableStore = new TableStore({
buttons: [ buttons: [
{ {
name: 'edit', name: 'edit',
text: '波形分析', title: '波形分析',
type: 'primary', type: 'primary',
icon: 'el-icon-DataLine', icon: 'el-icon-DataLine',
render: 'basicButton', render: 'tipButton',
disabled: row => { disabled: row => {
return !row.wavePath && row.evtParamTm < 20 return !row.wavePath && row.evtParamTm < 20
}, },

View File

@@ -256,15 +256,15 @@ const tableStore = new TableStore({
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',
width: '340', width: '180',
render: 'buttons', render: 'buttons',
buttons: [ buttons: [
{ {
name: 'edit', name: 'edit',
text: '编辑', title:'编辑',
type: 'primary', type: 'primary',
icon: 'el-icon-Edit', icon: 'el-icon-Edit',
render: 'basicButton', render: 'tipButton',
click: async row => { click: async row => {
dialogFormVisible.value = true dialogFormVisible.value = true
@@ -276,11 +276,10 @@ const tableStore = new TableStore({
} }
}, },
{ {
name: 'edit', title: '二维码',
text: '二维码',
type: 'primary', type: 'primary',
icon: 'el-icon-Grid', icon: 'el-icon-Grid',
render: 'basicButton', render: 'tipButton',
click: row => { click: row => {
deivce.value = row deivce.value = row
@@ -300,32 +299,12 @@ const tableStore = new TableStore({
}, 0) }, 0)
} }
}, },
{
name: 'edit',
text: '出厂恢复',
type: 'primary',
icon: 'el-icon-Setting',
render: 'basicButton',
click: row => {
ElMessageBox.confirm('确定该设备恢复出厂吗?', '提示', {
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
resetEquipmentDelivery(row.ndid).then(res => {
ElMessage.success('恢复成功!')
tableStore.onTableAction('search', {})
})
})
}
},
{ {
name: 'del', name: 'del',
text: '删除', title: '删除',
type: 'danger', type: 'danger',
icon: 'el-icon-Delete', icon: 'el-icon-Delete',
render: 'basicButton', render: 'tipButton',
click: row => { click: row => {
ElMessageBox.confirm('确定删除该设备吗?', '提示', { ElMessageBox.confirm('确定删除该设备吗?', '提示', {

View File

@@ -16,7 +16,7 @@
<el-tag v-if="scoped.row.status == 1" type="warning">待处理</el-tag> <el-tag v-if="scoped.row.status == 1" type="warning">待处理</el-tag>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column title="操作" min-width="15px"> <vxe-column title="操作" width="180">
<template v-slot:default="scoped"> <template v-slot:default="scoped">
<el-button <el-button
size="small" size="small"

View File

@@ -1,5 +1,5 @@
<template> <template>
<el-dialog class="cn-operate-dialog statistical-type-binding" v-model="dialogVisible" title="绑定指标"> <el-dialog class="cn-operate-dialog statistical-type-binding" v-model="dialogVisible" title="绑定指标" style="width: 1040px;">
<el-scrollbar style="padding-right: 0"> <el-scrollbar style="padding-right: 0">
<div class="box"> <div class="box">
<div class="box-left"> <div class="box-left">