修改海南测试问题
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
<!--待办事项列表-->
|
||||
<template>
|
||||
<div>
|
||||
<TableHeader>
|
||||
<template v-slot:select>
|
||||
<el-form-item label='任务名称'>
|
||||
<el-input v-model='tableStore.table.params.searchValue' placeholder='请输入任务名称' clearable maxlength="32" show-word-limit></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</TableHeader>
|
||||
<!--表格-->
|
||||
<Table ref='tableRef'></Table>
|
||||
</div>
|
||||
<div>
|
||||
<TableHeader>
|
||||
<template v-slot:select>
|
||||
<el-form-item label='任务名称'>
|
||||
<el-input v-model='tableStore.table.params.searchValue' placeholder='请输入任务名称' clearable
|
||||
maxlength="32" show-word-limit></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
</TableHeader>
|
||||
<!--表格-->
|
||||
<Table ref='tableRef'></Table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -21,6 +22,10 @@ import { onMounted, provide, ref, watch } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { getById } from '@/api/supervision-boot/leaflet'
|
||||
import { getRunningDeviceById } from '@/api/supervision-boot/device/quitRunningDev'
|
||||
const props = defineProps({
|
||||
height: [String, Number],
|
||||
|
||||
})
|
||||
|
||||
const router = useRouter() // 路由对象
|
||||
defineOptions({
|
||||
@@ -215,6 +220,7 @@ const tableStore = new TableStore({
|
||||
}
|
||||
],
|
||||
beforeSearchFun: () => {
|
||||
|
||||
for (let key in tableStore.table.params) {
|
||||
if (tableStore.table.params[key] === '' && key != 'searchValue') {
|
||||
delete tableStore.table.params[key]
|
||||
@@ -222,6 +228,7 @@ const tableStore = new TableStore({
|
||||
}
|
||||
},
|
||||
loadCallback: () => {
|
||||
|
||||
if (tableStore.table.params.searchValue) {
|
||||
const searchProps = ['taskName', 'taskContent', 'startUser', 'taskCreateTime']
|
||||
const rest = tableStore.table.data.filter(item =>
|
||||
@@ -245,6 +252,11 @@ provide('tableStore', tableStore)
|
||||
onMounted(() => {
|
||||
// 加载数据
|
||||
tableStore.index()
|
||||
setTimeout(() => {
|
||||
if (props.height) {
|
||||
tableStore.table.height = props.height
|
||||
}
|
||||
}, 0)
|
||||
})
|
||||
/** 处理审批按钮 */
|
||||
const handleAudit = (instanceId: string, historyInstanceId: string) => {
|
||||
|
||||
Reference in New Issue
Block a user