feat:工单池添加上报类型
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
@@ -94,6 +94,10 @@ export interface WorkOrdersVO {
|
|||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
remark: string;
|
remark: string;
|
||||||
|
/**
|
||||||
|
* 图片
|
||||||
|
*/
|
||||||
|
orderImgUrl: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -32,20 +32,59 @@ export interface TaskDetailVO {
|
|||||||
patrolType: string;
|
patrolType: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签到类型
|
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||||
*/
|
*/
|
||||||
signType: string;
|
signType: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际巡检时间
|
||||||
|
*/
|
||||||
|
actualInspectionTime: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际签到状态(1已签到2.未签到)
|
||||||
|
*/
|
||||||
|
actualSignState: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检状态(0未完成,1已完成)
|
* 巡检状态(0未完成,1已完成)
|
||||||
*/
|
*/
|
||||||
inspectionState: string;
|
inspectionState: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检照片
|
* 巡检图片
|
||||||
*/
|
*/
|
||||||
inspectionImag
|
inspectionImage: string;
|
||||||
e: string;
|
|
||||||
|
/**
|
||||||
|
* 计划巡检人
|
||||||
|
*/
|
||||||
|
planInspectionPerson: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际巡检人
|
||||||
|
*/
|
||||||
|
actualInspectionPerson: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务状态
|
||||||
|
*/
|
||||||
|
taskStatus: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检结果
|
||||||
|
*/
|
||||||
|
inspectionResults: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检描述
|
||||||
|
*/
|
||||||
|
inspectionDesc: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检位置
|
||||||
|
*/
|
||||||
|
inspectionLocation: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实际巡检时间
|
* 实际巡检时间
|
||||||
@@ -67,6 +106,11 @@ e: string;
|
|||||||
*/
|
*/
|
||||||
pointEndTime: string;
|
pointEndTime: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索值
|
||||||
|
*/
|
||||||
|
searchValue: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TaskDetailForm extends BaseEntity {
|
export interface TaskDetailForm extends BaseEntity {
|
||||||
@@ -101,20 +145,60 @@ export interface TaskDetailForm extends BaseEntity {
|
|||||||
patrolType?: string;
|
patrolType?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签到类型
|
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||||
*/
|
*/
|
||||||
signType?: string;
|
signType?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际巡检时间
|
||||||
|
*/
|
||||||
|
actualInspectionTime?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际签到状态(1已签到2.未签到)
|
||||||
|
*/
|
||||||
|
actualSignState?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检状态(0未完成,1已完成)
|
* 巡检状态(0未完成,1已完成)
|
||||||
*/
|
*/
|
||||||
inspectionState?: string;
|
inspectionState?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检照片
|
* 巡检图片
|
||||||
*/
|
*/
|
||||||
inspectionImage?: string;
|
inspectionImage?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计划巡检人
|
||||||
|
*/
|
||||||
|
planInspectionPerson?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际巡检人
|
||||||
|
*/
|
||||||
|
actualInspectionPerson?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务状态
|
||||||
|
*/
|
||||||
|
taskStatus?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检结果
|
||||||
|
*/
|
||||||
|
inspectionResults?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检描述
|
||||||
|
*/
|
||||||
|
inspectionDesc?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检位置
|
||||||
|
*/
|
||||||
|
inspectionLocation?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实际巡检时间
|
* 实际巡检时间
|
||||||
*/
|
*/
|
||||||
@@ -135,6 +219,11 @@ export interface TaskDetailForm extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
pointEndTime?: string;
|
pointEndTime?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索值
|
||||||
|
*/
|
||||||
|
searchValue?: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TaskDetailQuery extends PageQuery {
|
export interface TaskDetailQuery extends PageQuery {
|
||||||
@@ -164,20 +253,59 @@ export interface TaskDetailQuery extends PageQuery {
|
|||||||
patrolType?: string;
|
patrolType?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 签到类型
|
* 签到类型(1.现场拍照、2.摄像头签到、3.现场扫码)
|
||||||
*/
|
*/
|
||||||
signType?: string;
|
signType?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际巡检时间
|
||||||
|
*/
|
||||||
|
actualInspectionTime?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际签到状态(1已签到2.未签到)
|
||||||
|
*/
|
||||||
|
actualSignState?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检状态(0未完成,1已完成)
|
* 巡检状态(0未完成,1已完成)
|
||||||
*/
|
*/
|
||||||
inspectionState?: string;
|
inspectionState?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 巡检照片
|
* 巡检图片
|
||||||
*/
|
*/
|
||||||
inspectionImag
|
inspectionImage?: string;
|
||||||
e?: string;
|
|
||||||
|
/**
|
||||||
|
* 计划巡检人
|
||||||
|
*/
|
||||||
|
planInspectionPerson?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实际巡检人
|
||||||
|
*/
|
||||||
|
actualInspectionPerson?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务状态
|
||||||
|
*/
|
||||||
|
taskStatus?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检结果
|
||||||
|
*/
|
||||||
|
inspectionResults?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检描述
|
||||||
|
*/
|
||||||
|
inspectionDesc?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 巡检位置
|
||||||
|
*/
|
||||||
|
inspectionLocation?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 实际巡检时间
|
* 实际巡检时间
|
||||||
@@ -194,6 +322,11 @@ e?: string;
|
|||||||
*/
|
*/
|
||||||
pointEndTime?: string;
|
pointEndTime?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索值
|
||||||
|
*/
|
||||||
|
searchValue?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日期范围参数
|
* 日期范围参数
|
||||||
*/
|
*/
|
||||||
|
@@ -51,6 +51,16 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
field: 'typeName',
|
field: 'typeName',
|
||||||
minWidth: 150,
|
minWidth: 150,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '上报类型',
|
||||||
|
field: 'reportingType',
|
||||||
|
slots: {
|
||||||
|
default: ({row}) => {
|
||||||
|
return renderDict(row.reportingType, 'wy_gdsblx');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
width: 100,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '派单时间',
|
title: '派单时间',
|
||||||
field: 'dispatchTime',
|
field: 'dispatchTime',
|
||||||
@@ -164,6 +174,15 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
},
|
},
|
||||||
rules: 'selectRequired',
|
rules: 'selectRequired',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '上报类型',
|
||||||
|
fieldName: 'reportingType',
|
||||||
|
component: 'Select',
|
||||||
|
componentProps: {
|
||||||
|
options: getDictOptions('wy_gdsblx'),
|
||||||
|
},
|
||||||
|
rules: 'selectRequired',
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// label: '状态',
|
// label: '状态',
|
||||||
// fieldName: 'status',
|
// fieldName: 'status',
|
||||||
@@ -206,6 +225,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
fieldName: 'location',
|
fieldName: 'location',
|
||||||
component: 'Input',
|
component: 'Input',
|
||||||
rules: 'selectRequired',
|
rules: 'selectRequired',
|
||||||
|
formItemClass:'col-span-2'
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// label: '计划完成时间',
|
// label: '计划完成时间',
|
||||||
@@ -234,6 +254,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
|||||||
label: '备注',
|
label: '备注',
|
||||||
fieldName: 'remark',
|
fieldName: 'remark',
|
||||||
component: 'Textarea',
|
component: 'Textarea',
|
||||||
|
formItemClass:'col-span-2'
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// label: '是否超时',
|
// label: '是否超时',
|
||||||
|
@@ -42,7 +42,7 @@ async function handleOpenChange(open: boolean) {
|
|||||||
<template>
|
<template>
|
||||||
<BasicModal :footer="false" :fullscreen-button="false" title="工单详情信息" class="w-[70%]">
|
<BasicModal :footer="false" :fullscreen-button="false" title="工单详情信息" class="w-[70%]">
|
||||||
<div v-if="orderDetail">
|
<div v-if="orderDetail">
|
||||||
<Descriptions size="small" :column="2" :labelStyle="{width:'120px'}">
|
<Descriptions size="small" :column="2" :labelStyle="{width:'130px'}" bordered>
|
||||||
<DescriptionsItem label="订单号">
|
<DescriptionsItem label="订单号">
|
||||||
{{ orderDetail.orderNo }}
|
{{ orderDetail.orderNo }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
@@ -52,6 +52,16 @@ async function handleOpenChange(open: boolean) {
|
|||||||
<DescriptionsItem label="工单类型">
|
<DescriptionsItem label="工单类型">
|
||||||
{{orderDetail.typeName}}
|
{{orderDetail.typeName}}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="上报类型">
|
||||||
|
<component
|
||||||
|
:is="renderDict(orderDetail.reportingType,'wy_gdsblx')"
|
||||||
|
/>
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="处理权重">
|
||||||
|
<component
|
||||||
|
:is="renderDict(orderDetail.processingWeight,'pro_processing_weight')"
|
||||||
|
/>
|
||||||
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="发起人">
|
<DescriptionsItem label="发起人">
|
||||||
{{ orderDetail.initiatorPeople }}
|
{{ orderDetail.initiatorPeople }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
@@ -68,26 +78,23 @@ async function handleOpenChange(open: boolean) {
|
|||||||
<!-- {{ orderDetail.planCompleTime }}-->
|
<!-- {{ orderDetail.planCompleTime }}-->
|
||||||
<!-- </DescriptionsItem>-->
|
<!-- </DescriptionsItem>-->
|
||||||
|
|
||||||
|
|
||||||
|
<DescriptionsItem label="备注" :span="2">
|
||||||
|
{{ orderDetail.remark }}
|
||||||
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="创建时间">
|
<DescriptionsItem label="创建时间">
|
||||||
{{ orderDetail.createTime }}
|
{{ orderDetail.createTime }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="备注">
|
|
||||||
{{ orderDetail.remark }}
|
|
||||||
</DescriptionsItem>
|
|
||||||
<DescriptionsItem label="完成时间">
|
<DescriptionsItem label="完成时间">
|
||||||
{{ orderDetail.compleTime }}
|
{{ orderDetail.compleTime }}
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="处理权重">
|
|
||||||
<component
|
|
||||||
:is="renderDict(orderDetail.processingWeight,'pro_processing_weight')"
|
|
||||||
/>
|
|
||||||
</DescriptionsItem>
|
|
||||||
<DescriptionsItem label="是否超时" v-if="orderDetail.isTimeOut!=null">
|
<DescriptionsItem label="是否超时" v-if="orderDetail.isTimeOut!=null">
|
||||||
<component
|
<component
|
||||||
:is="renderDict(orderDetail.isTimeOut,'wy_sf')"
|
:is="renderDict(orderDetail.isTimeOut,'wy_sf')"
|
||||||
/>
|
/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="服务评价" v-if="orderDetail.serviceEvalua!=null">
|
<DescriptionsItem label="服务评价" v-if="orderDetail.serviceEvalua!=null" :span="2">
|
||||||
<Rate :value="orderDetail.serviceEvalua" disabled/>
|
<Rate :value="orderDetail.serviceEvalua" disabled/>
|
||||||
</DescriptionsItem>
|
</DescriptionsItem>
|
||||||
<DescriptionsItem label="评价内容" v-if="orderDetail.serviceEvaluaText" :span="2">
|
<DescriptionsItem label="评价内容" v-if="orderDetail.serviceEvaluaText" :span="2">
|
||||||
|
@@ -52,6 +52,11 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
field: 'pointId',
|
field: 'pointId',
|
||||||
width:150
|
width:150
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '巡检位置',
|
||||||
|
field: 'inspectionLocation',
|
||||||
|
width:150
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '签到类型',
|
title: '签到类型',
|
||||||
field: 'signType',
|
field: 'signType',
|
||||||
@@ -64,7 +69,7 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '巡检状态',
|
title: '巡检状态',
|
||||||
field: 'status',
|
field: 'inspectionState',
|
||||||
width:150,
|
width:150,
|
||||||
slots: {
|
slots: {
|
||||||
default: ({ row }) => {
|
default: ({ row }) => {
|
||||||
@@ -92,6 +97,36 @@ export const columns: VxeGridProps['columns'] = [
|
|||||||
field: 'inspectionTime',
|
field: 'inspectionTime',
|
||||||
width:150
|
width:150
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '签到状态',
|
||||||
|
field: 'actualSignState',
|
||||||
|
width:120,
|
||||||
|
slots: {
|
||||||
|
default: ({ row }) => {
|
||||||
|
return renderDict(row.actualSignState, 'wy_xjqdzt');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '计划巡检人',
|
||||||
|
field: 'planInspectionPerson',
|
||||||
|
width:120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '实际巡检人',
|
||||||
|
field: 'actualInspectionPerson',
|
||||||
|
width:120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '巡检结果',
|
||||||
|
field: 'inspectionResults',
|
||||||
|
width:180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '巡检描述',
|
||||||
|
field: 'inspectionDesc',
|
||||||
|
width:180
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '备注',
|
title: '备注',
|
||||||
field: 'remark',
|
field: 'remark',
|
||||||
|
@@ -0,0 +1,98 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import {shallowRef} from 'vue';
|
||||||
|
import {useVbenModal} from '@vben/common-ui';
|
||||||
|
import {Descriptions, DescriptionsItem} from 'ant-design-vue';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
|
import duration from 'dayjs/plugin/duration';
|
||||||
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||||
|
import {renderDict} from "#/utils/render";
|
||||||
|
import {taskDetailInfo} from "#/api/property/inspectionManagement/inspectionDetail";
|
||||||
|
import type {TaskDetailVO} from "#/api/property/inspectionManagement/inspectionDetail/model";
|
||||||
|
|
||||||
|
dayjs.extend(duration);
|
||||||
|
dayjs.extend(relativeTime);
|
||||||
|
|
||||||
|
const [BasicModal, modalApi] = useVbenModal({
|
||||||
|
onOpenChange: handleOpenChange,
|
||||||
|
onClosed() {
|
||||||
|
taskDetail.value = null;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const taskDetail = shallowRef<null | TaskDetailVO>(null);
|
||||||
|
|
||||||
|
async function handleOpenChange(open: boolean) {
|
||||||
|
if (!open) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
modalApi.modalLoading(true);
|
||||||
|
const {id} = modalApi.getData() as { id: number | string };
|
||||||
|
taskDetail.value = await taskDetailInfo(id);
|
||||||
|
modalApi.modalLoading(false);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<BasicModal :footer="false" :fullscreen-button="false" title="巡检明细详情" class="w-[70%]">
|
||||||
|
<Descriptions v-if="taskDetail" size="small" :column="2" bordered
|
||||||
|
:labelStyle="{width:'100px'}">
|
||||||
|
<DescriptionsItem label="巡检计划">
|
||||||
|
{{ taskDetail.planId }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检任务">
|
||||||
|
{{ taskDetail.taskId }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检路线">
|
||||||
|
{{taskDetail.routeId}}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检点">
|
||||||
|
{{ taskDetail.pointId}}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检位置">
|
||||||
|
{{ taskDetail.inspectionLocation}}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="签到类型">
|
||||||
|
<component
|
||||||
|
:is="renderDict(taskDetail.signType,'wy_xjqdfs')"
|
||||||
|
/>
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检状态">
|
||||||
|
<component
|
||||||
|
:is="renderDict(taskDetail.inspectionState,'wy_xjzt')"
|
||||||
|
/>
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检照片" :span="2">
|
||||||
|
{{ taskDetail.inspectionImage }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="开始时间">
|
||||||
|
{{ taskDetail.pointStartTime }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="结束时间">
|
||||||
|
{{ taskDetail.pointEndTime }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="实际巡检时间">
|
||||||
|
{{ taskDetail.inspectionTime }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="签到状态">
|
||||||
|
<component
|
||||||
|
:is="renderDict(taskDetail.actualSignState,'wy_xjqdzt')"
|
||||||
|
/>
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="计划巡检人">
|
||||||
|
{{ taskDetail.planInspectionPerson }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="实际巡检人">
|
||||||
|
{{ taskDetail.actualInspectionPerson }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检结果" :span="2">
|
||||||
|
{{ taskDetail.inspectionResults }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="巡检描述" :span="2">
|
||||||
|
{{ taskDetail.inspectionDesc }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
<DescriptionsItem label="备注" :span="2">
|
||||||
|
{{ taskDetail.remark }}
|
||||||
|
</DescriptionsItem>
|
||||||
|
</Descriptions>
|
||||||
|
</BasicModal>
|
||||||
|
</template>
|
@@ -17,6 +17,7 @@ import {
|
|||||||
taskDetailExport,
|
taskDetailExport,
|
||||||
taskDetailList
|
taskDetailList
|
||||||
} from "#/api/property/inspectionManagement/inspectionDetail";
|
} from "#/api/property/inspectionManagement/inspectionDetail";
|
||||||
|
import detailModal from './detail.vue'
|
||||||
|
|
||||||
const formOptions: VbenFormProps = {
|
const formOptions: VbenFormProps = {
|
||||||
commonConfig: {
|
commonConfig: {
|
||||||
@@ -67,8 +68,12 @@ const [BasicTable, tableApi] = useVbenVxeGrid({
|
|||||||
gridOptions,
|
gridOptions,
|
||||||
});
|
});
|
||||||
|
|
||||||
const [InspectionDetailsModal, modalApi] = useVbenModal({
|
// const [InspectionDetailsModal, modalApi] = useVbenModal({
|
||||||
connectedComponent: inspectionDetailsModal,
|
// connectedComponent: inspectionDetailsModal,
|
||||||
|
// });
|
||||||
|
|
||||||
|
const [DetailModal, detailApi] = useVbenModal({
|
||||||
|
connectedComponent: detailModal,
|
||||||
});
|
});
|
||||||
|
|
||||||
async function handInfo(row: Required<InspectionTaskForm>) {
|
async function handInfo(row: Required<InspectionTaskForm>) {
|
||||||
@@ -97,17 +102,18 @@ function handleDownloadExcel() {
|
|||||||
|
|
||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
<!-- <template #action="{ row }">-->
|
<template #action="{ row }">
|
||||||
<!-- <Space>-->
|
<Space>
|
||||||
<!-- <ghost-button-->
|
<ghost-button
|
||||||
<!-- v-access:code="['property:inspectionTask:info']"-->
|
v-access:code="['property:inspectionTask:info']"
|
||||||
<!-- @click.stop="handInfo(row)"-->
|
@click.stop="handInfo(row)"
|
||||||
<!-- >-->
|
>
|
||||||
<!-- {{ $t('pages.common.info') }}-->
|
{{ $t('pages.common.info') }}
|
||||||
<!-- </ghost-button>-->
|
</ghost-button>
|
||||||
<!-- </Space>-->
|
</Space>
|
||||||
<!-- </template>-->
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
<InspectionDetailsModal @reload="tableApi.query()"/>
|
<DetailModal></DetailModal>
|
||||||
|
<!-- <InspectionDetailsModal @reload="tableApi.query()"/>-->
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
Reference in New Issue
Block a user