用户管理添加监测报告,评估报告
This commit is contained in:
@@ -41,11 +41,7 @@
|
||||
<Table ref="tableRef" />
|
||||
|
||||
<!-- 详情弹窗 -->
|
||||
<el-dialog title="定检详情" width="1000px" v-model="dialogShow" v-if="dialogShow">
|
||||
|
||||
</el-dialog>
|
||||
|
||||
|
||||
<el-dialog title="定检详情" width="1000px" v-model="dialogShow" v-if="dialogShow"></el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -60,7 +56,7 @@ import { useAdminInfo } from '@/stores/adminInfo'
|
||||
import { terminalCheckPage } from '@/api/device-boot/device'
|
||||
|
||||
defineOptions({
|
||||
name: 'BusinessAdministrator/PowerQualityCheck'
|
||||
name: 'terminal/terminaCkeck'
|
||||
})
|
||||
|
||||
// 公共依赖
|
||||
@@ -106,17 +102,15 @@ const tableStore = new TableStore({
|
||||
width: 80,
|
||||
render: 'customRender',
|
||||
customRender: props => {
|
||||
console.log(props.renderValue)
|
||||
const val = props.renderValue
|
||||
console.log(val)
|
||||
let text = ''
|
||||
let color = ''
|
||||
if (val === 1) {
|
||||
text = '是'
|
||||
color = '#f53f3f'
|
||||
color = '#f56c6c'
|
||||
} else if (val === 0) {
|
||||
text = '否'
|
||||
color = '#00b42a'
|
||||
color = '#67c23a'
|
||||
}
|
||||
return h('span', { style: { color, fontWeight: 'bold' } }, text)
|
||||
}
|
||||
@@ -132,10 +126,10 @@ const tableStore = new TableStore({
|
||||
let color = ''
|
||||
if (val > 0) {
|
||||
text = val
|
||||
color = '#f53f3f'
|
||||
color = '#f56c6c'
|
||||
} else if (val > -30) {
|
||||
text = Math.abs(val).toString()+'天后将逾期'
|
||||
color = 'rgba(236,143,21,0.92)'
|
||||
text = Math.abs(val).toString() + '天后将逾期'
|
||||
color = '#e6a23c'
|
||||
} else {
|
||||
text = '/'
|
||||
}
|
||||
@@ -167,9 +161,7 @@ const tableStore = new TableStore({
|
||||
type: 'primary',
|
||||
icon: 'el-icon-Open',
|
||||
render: 'basicButton',
|
||||
click: row => {
|
||||
|
||||
}
|
||||
click: row => {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -181,9 +173,9 @@ const tableStore = new TableStore({
|
||||
})
|
||||
|
||||
// 初始化查询参数
|
||||
tableStore.table.params.areaName = ''
|
||||
tableStore.table.params.bdName = ''
|
||||
tableStore.table.params.devName = ''
|
||||
tableStore.table.params.city = ''
|
||||
tableStore.table.params.substation = ''
|
||||
tableStore.table.params.terminalName = ''
|
||||
tableStore.table.params.orgId = adminInfo.$state.deptId
|
||||
|
||||
// 打开详情弹窗
|
||||
@@ -193,9 +185,7 @@ const openDetail = (id: string) => {
|
||||
}
|
||||
|
||||
// 新增按钮
|
||||
const addFormModel = () => {
|
||||
|
||||
}
|
||||
const addFormModel = () => {}
|
||||
|
||||
// 批量删除
|
||||
const deleteEven = () => {
|
||||
@@ -225,14 +215,13 @@ const props = defineProps({
|
||||
})
|
||||
watch(
|
||||
() => props.id,
|
||||
async (newVal) => {
|
||||
async newVal => {
|
||||
if (newVal === 'null') return
|
||||
const fullId = newVal.split('@')[0]
|
||||
const routeTime = Number(newVal.split('@')[1])
|
||||
if (isNaN(routeTime) || Date.now() - routeTime > import.meta.env.VITE_ROUTE_TIME_OUT) return
|
||||
const res = await getPqCheckById(fullId)
|
||||
if (res.code === 'A0000') {
|
||||
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
@@ -245,8 +234,5 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.default-main {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user