feat: 同步2
This commit is contained in:
@ -18,9 +18,14 @@
|
||||
<MOSTY.Table :table-columns="data.tableColumn" :tableData="data.tableData" :tableloading="tableloading"
|
||||
:isSort="true">
|
||||
<template #sbzt="{ row }">
|
||||
<dict-tag v-if="row.sbzt" :options="D_BZ_DLSBZT" :value="row.sbzt" :tag="false" :color="row.sbzt == '01' ? 'green' : 'orange'" />
|
||||
<dict-tag v-if="row.sbzt" :options="D_BZ_DLSBZT" :value="row.sbzt" :tag="false"
|
||||
:color="row.sbzt == '01' ? 'green' : 'orange'" />
|
||||
<span v-else>无</span>
|
||||
</template>
|
||||
<template #cameraType="{ row }">
|
||||
<dict-tag v-if="row.cameraType" :options="D_BZ_SXTLX" :value="row.cameraType" :tag="false" />
|
||||
<span v-else>--</span>
|
||||
</template>
|
||||
<!--操作-->
|
||||
<template #actions="{ row }">
|
||||
<span class="operesee" @click="seeInfo(row)"><el-icon>
|
||||
@ -56,7 +61,7 @@ import { exportXlsx } from "@/excel/Export2Excel.js"
|
||||
import { ElMessage } from "element-plus"
|
||||
import { reactive, onMounted, ref, getCurrentInstance } from "vue"
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BZ_DLSBZT } = proxy.$dict("D_BZ_DLSBZT")
|
||||
const { D_BZ_DLSBZT, D_BZ_SXTLX } = proxy.$dict("D_BZ_DLSBZT", "D_BZ_SXTLX")
|
||||
const emit = defineEmits("changePage")
|
||||
const tableloading = ref(false)
|
||||
const listQuery = reactive({
|
||||
@ -72,6 +77,13 @@ const searchArr = reactive([
|
||||
width: "250px",
|
||||
placeholder: "请选择设备状态"
|
||||
},
|
||||
{
|
||||
showType: "select",
|
||||
prop: "cameraType",
|
||||
options: D_BZ_SXTLX,
|
||||
width: "250px",
|
||||
placeholder: "请选择设备类型"
|
||||
},
|
||||
{
|
||||
showType: "input",
|
||||
prop: "keywords",
|
||||
@ -99,6 +111,11 @@ const data = reactive({
|
||||
title: "端口号",
|
||||
prop: "port"
|
||||
},
|
||||
{
|
||||
title: "设备类型",
|
||||
prop: "cameraType",
|
||||
slot: true
|
||||
},
|
||||
{
|
||||
title: "设备状态",
|
||||
prop: "sbzt",
|
||||
@ -127,6 +144,7 @@ const changeSize = val => {
|
||||
const onSearch = obj => {
|
||||
listQuery.sbzt = obj.sbzt
|
||||
listQuery.keywords = obj.keywords
|
||||
listQuery.cameraType = obj.cameraType
|
||||
getTableData()
|
||||
}
|
||||
// 查询表格数据
|
||||
|
Reference in New Issue
Block a user