提取核心信息并应用到我的工作中的三个tab中
This commit is contained in:
@@ -77,7 +77,6 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
{ field: 'dutyOrgName', title: '负责单位', minWidth: '150' },
|
||||||
|
|
||||||
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
|
{ field: 'leafletName', title: '单据名称', minWidth: '150' },
|
||||||
{ field: 'issueDetail', title: '告警内容', minWidth: '150' },
|
{ field: 'issueDetail', title: '告警内容', minWidth: '150' },
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ const tableStore = new TableStore({
|
|||||||
return row.status !== 5
|
return row.status !== 5
|
||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
|
|
||||||
feedbackPopup.value.open('填报反馈单', row.id, row.status, row.issueDetail,row.problemPath)
|
feedbackPopup.value.open('填报反馈单', row.id, row.status, row.issueDetail,row.problemPath)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ const open = async (
|
|||||||
) => {
|
) => {
|
||||||
title.value = text
|
title.value = text
|
||||||
resetForm()
|
resetForm()
|
||||||
console.log(66666, reportPath)
|
|
||||||
if (takeStep) {
|
if (takeStep) {
|
||||||
form.value.takeStep = takeStep
|
form.value.takeStep = takeStep
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ const submit = async () => {
|
|||||||
let data = new FormData()
|
let data = new FormData()
|
||||||
data.append('file', form.file)
|
data.append('file', form.file)
|
||||||
await importSensitiveUserData(data).then((res: any) => {
|
await importSensitiveUserData(data).then((res: any) => {
|
||||||
debugger
|
|
||||||
if(res.type === 'application/json'){
|
if(res.type === 'application/json'){
|
||||||
// 说明是普通对象数据,读取信息
|
// 说明是普通对象数据,读取信息
|
||||||
const fileReader = new FileReader()
|
const fileReader = new FileReader()
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<el-form-item label="搜索">
|
<el-form-item label="搜索">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="tableStore.table.params.searchValue"
|
v-model="tableStore.table.params.searchValue"
|
||||||
placeholder="输入变电站.终端.监测点名称"
|
placeholder="输入变电站、终端、监测点名称"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<el-form-item label="搜索">
|
<el-form-item label="搜索">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="tableStore.table.params.searchValue"
|
v-model="tableStore.table.params.searchValue"
|
||||||
placeholder="输入变电站.终端.监测点名称"
|
placeholder="输入变电站、终端、监测点名称"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<el-form-item label="搜索">
|
<el-form-item label="搜索">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="tableStore.table.params.searchValue"
|
v-model="tableStore.table.params.searchValue"
|
||||||
placeholder="输入变电站.终端.监测点名称"
|
placeholder="输入变电站、终端、监测点名称"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -1,125 +1,128 @@
|
|||||||
<!--待办事项列表-->
|
<!--待办事项列表-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<TableHeader date-picker>
|
<TableHeader date-picker>
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label='任务名称'>
|
<el-form-item label='任务名称'>
|
||||||
<el-input v-model='tableStore.table.params.searchValue' placeholder='请输入任务名称' />
|
<el-input v-model='tableStore.table.params.searchValue' placeholder='请输入任务名称' />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<!--表格-->
|
<!--表格-->
|
||||||
<Table ref='tableRef'></Table>
|
<Table ref='tableRef'></Table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang='ts'>
|
<script setup lang='ts'>
|
||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
import Table from '@/components/table/index.vue'
|
import Table from '@/components/table/index.vue'
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import { onMounted, provide, ref,watch } from 'vue'
|
import { onMounted, provide, ref, watch } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { dateFormatter, formatPast2 } from '@/utils/formatTime'
|
import { dateFormatter, formatPast2 } from '@/utils/formatTime'
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'businessUser'
|
name: 'businessUser'
|
||||||
})
|
})
|
||||||
|
|
||||||
const { push, options, currentRoute } = useRouter()
|
const { push, options, currentRoute } = useRouter()
|
||||||
const flag = ref(false)
|
const flag = ref(false)
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
url: '/bpm-boot/bpm/task/doneList',
|
url: '/bpm-boot/bpm/task/doneList',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
publicHeight: 65,
|
publicHeight: 65,
|
||||||
column: [
|
column: [
|
||||||
{
|
|
||||||
field: 'index',
|
|
||||||
title: '序号',
|
|
||||||
width: '60',
|
|
||||||
formatter: (row: any) => {
|
|
||||||
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '任务名称', field: 'processInstance.name', minWidth: 130 },
|
|
||||||
{ title: '发起人', field: 'processInstance.startUser.name', minWidth: 130 },
|
|
||||||
{ title: '发起部门', field: 'processInstance.startUser.deptName', minWidth: 130 },
|
|
||||||
{ title: '当前任务', field: 'name', minWidth: 130 },
|
|
||||||
{ title: '发起时间', field: 'createTime', minWidth: 170 },
|
|
||||||
{ title: '结束时间', field: 'endTime', minWidth: 170 },
|
|
||||||
{
|
|
||||||
title: '审批状态',
|
|
||||||
field: 'status',
|
|
||||||
minWidth: 130,
|
|
||||||
render: 'tag',
|
|
||||||
custom: {
|
|
||||||
1: 'primary',
|
|
||||||
2: 'success',
|
|
||||||
3: 'danger',
|
|
||||||
4: 'warning'
|
|
||||||
},
|
|
||||||
replaceValue: {
|
|
||||||
1: '审批中',
|
|
||||||
2: '审批通过',
|
|
||||||
3: '审批不通过',
|
|
||||||
4: '已取消'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ title: '审批建议', field: 'reason', minWidth: 150 },
|
|
||||||
{
|
|
||||||
title: '耗时',
|
|
||||||
field: 'durationInMillis',
|
|
||||||
minWidth: 150,
|
|
||||||
formatter: (obj: any) => {
|
|
||||||
return formatPast2(obj.row.durationInMillis)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
align: 'center',
|
|
||||||
minWidth: '150',
|
|
||||||
fixed: 'right',
|
|
||||||
render: 'buttons',
|
|
||||||
buttons: [
|
|
||||||
{
|
{
|
||||||
name: 'productSetting',
|
field: 'index',
|
||||||
title: '流程详情',
|
title: '序号',
|
||||||
type: 'primary',
|
width: '60',
|
||||||
icon: 'el-icon-EditPen',
|
formatter: (row: any) => {
|
||||||
render: 'basicButton',
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
||||||
click: row => {
|
}
|
||||||
flag.value = true
|
},
|
||||||
handleAudit(row.processInstance.id)
|
{ title: '任务名称', field: 'processInstance.name', minWidth: 130 },
|
||||||
}
|
{ title: '任务内容', field: 'instanceSign', minWidth: 170 },
|
||||||
|
{ title: '发起人', field: 'processInstance.startUser.name', minWidth: 130 },
|
||||||
|
{ title: '发起部门', field: 'processInstance.startUser.deptName', minWidth: 130 },
|
||||||
|
{ title: '当前任务', field: 'name', minWidth: 130 },
|
||||||
|
{ title: '发起时间', field: 'createTime', minWidth: 170 },
|
||||||
|
{ title: '结束时间', field: 'endTime', minWidth: 170 },
|
||||||
|
{
|
||||||
|
title: '审批状态',
|
||||||
|
field: 'status',
|
||||||
|
minWidth: 130,
|
||||||
|
render: 'tag',
|
||||||
|
custom: {
|
||||||
|
1: 'primary',
|
||||||
|
2: 'success',
|
||||||
|
3: 'danger',
|
||||||
|
4: 'warning'
|
||||||
|
},
|
||||||
|
replaceValue: {
|
||||||
|
1: '审批中',
|
||||||
|
2: '审批通过',
|
||||||
|
3: '审批不通过',
|
||||||
|
4: '已取消'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ title: '审批建议', field: 'reason', minWidth: 150 },
|
||||||
|
{
|
||||||
|
title: '耗时',
|
||||||
|
field: 'durationInMillis',
|
||||||
|
minWidth: 150,
|
||||||
|
formatter: (obj: any) => {
|
||||||
|
return formatPast2(obj.row.durationInMillis)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
minWidth: '150',
|
||||||
|
fixed: 'right',
|
||||||
|
render: 'buttons',
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
name: 'productSetting',
|
||||||
|
title: '流程详情',
|
||||||
|
type: 'primary',
|
||||||
|
icon: 'el-icon-EditPen',
|
||||||
|
render: 'basicButton',
|
||||||
|
click: row => {
|
||||||
|
flag.value = true
|
||||||
|
handleAudit(row.processInstance.id, row.historyInstanceId)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
beforeSearchFun: () => {
|
||||||
|
for (let key in tableStore.table.params) {
|
||||||
|
if (tableStore.table.params[key] === '') {
|
||||||
|
delete tableStore.table.params[key]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
|
||||||
beforeSearchFun: () => {
|
|
||||||
for (let key in tableStore.table.params) {
|
|
||||||
if (tableStore.table.params[key] === '') {
|
|
||||||
delete tableStore.table.params[key]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 加载数据
|
// 加载数据
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
tableStore.table.params.searchValue = ''
|
tableStore.table.params.searchValue = ''
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
/** 处理审批按钮 */
|
/** 处理审批按钮 */
|
||||||
const handleAudit = (instanceId: any) => {
|
const handleAudit = (instanceId: string, historyInstanceId: string) => {
|
||||||
push({
|
push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
state: {
|
state: {
|
||||||
id: instanceId
|
id: instanceId,
|
||||||
}
|
historyInstanceId
|
||||||
})
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => currentRoute.value.path,
|
() => currentRoute.value.path,
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '任务名称', field: 'name', minWidth: 130 },
|
{ title: '任务名称', field: 'name', minWidth: 130 },
|
||||||
|
{ title: '任务内容', field: 'instanceSign', minWidth: 170 },
|
||||||
{
|
{
|
||||||
title: '流程分类',
|
title: '流程分类',
|
||||||
field: 'category',
|
field: 'category',
|
||||||
@@ -112,7 +113,7 @@ const tableStore = new TableStore({
|
|||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
click: row => {
|
click: row => {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
handleAudit(row.id)
|
handleAudit(row.id, row.historyInstanceId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -135,14 +136,16 @@ tableStore.table.params.searchValue = ''
|
|||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
/** 处理审批按钮 */
|
/** 处理审批按钮 */
|
||||||
const handleAudit = (instanceId: any) => {
|
const handleAudit = (instanceId: string, historyInstanceId: string) => {
|
||||||
push({
|
push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
state: {
|
state: {
|
||||||
id: instanceId
|
id: instanceId,
|
||||||
|
historyInstanceId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => currentRoute.value.path,
|
() => currentRoute.value.path,
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
@@ -3,17 +3,17 @@
|
|||||||
<div>
|
<div>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
<template v-slot:select>
|
<template v-slot:select>
|
||||||
<el-form-item label="任务名称">
|
<el-form-item label='任务名称'>
|
||||||
<el-input v-model="tableStore.table.params.searchValue" placeholder="请输入任务名称"></el-input>
|
<el-input v-model='tableStore.table.params.searchValue' placeholder='请输入任务名称'></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<!--表格-->
|
<!--表格-->
|
||||||
<Table ref="tableRef"></Table>
|
<Table ref='tableRef'></Table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang='ts'>
|
||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
import Table from '@/components/table/index.vue'
|
import Table from '@/components/table/index.vue'
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
@@ -41,6 +41,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '任务名称', field: 'processInstance.name', minWidth: 130 },
|
{ title: '任务名称', field: 'processInstance.name', minWidth: 130 },
|
||||||
|
{ title: '任务内容', field: 'instanceSign', minWidth: 170 },
|
||||||
{ title: '发起人', field: 'processInstance.startUser.name', minWidth: 130 },
|
{ title: '发起人', field: 'processInstance.startUser.name', minWidth: 130 },
|
||||||
{ title: '发起部门', field: 'processInstance.startUser.deptName', minWidth: 130 },
|
{ title: '发起部门', field: 'processInstance.startUser.deptName', minWidth: 130 },
|
||||||
{ title: '发起时间', field: 'createTime', minWidth: 170 },
|
{ title: '发起时间', field: 'createTime', minWidth: 170 },
|
||||||
@@ -59,7 +60,7 @@ const tableStore = new TableStore({
|
|||||||
render: 'basicButton',
|
render: 'basicButton',
|
||||||
click: row => {
|
click: row => {
|
||||||
flag.value = true
|
flag.value = true
|
||||||
handleAudit(row.processInstance.id)
|
handleAudit(row.processInstance.id, row.historyInstanceId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -82,15 +83,18 @@ tableStore.table.params.searchValue = ''
|
|||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
|
|
||||||
/** 处理审批按钮 */
|
/** 处理审批按钮 */
|
||||||
const handleAudit = (instanceId: any) => {
|
const handleAudit = (instanceId: string, historyInstanceId: string) => {
|
||||||
push({
|
push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
state: {
|
state: {
|
||||||
id: instanceId,
|
id: instanceId,
|
||||||
todo: 'todo'
|
todo: 'todo',
|
||||||
|
historyInstanceId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => currentRoute.value.path,
|
() => currentRoute.value.path,
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user