工作流路由重构
This commit is contained in:
@ -63,9 +63,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="变更内容" align="center" prop="changeContent" />
|
||||
<!-- <el-table-column label="变更费用估算" align="center" prop="costEstimation" /> -->
|
||||
<el-table-column label="变更文件" align="center" >
|
||||
<el-table-column label="变更文件" align="center">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.file" style="color: rgb(41 145 255); cursor: pointer" @click="onOpen(scope.row.file.url)"> {{ scope.row.file.originalName }}</span>
|
||||
<span v-if="scope.row.file" style="color: rgb(41 145 255); cursor: pointer" @click="onOpen(scope.row.file.url)">
|
||||
{{ scope.row.file.originalName }}</span
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="流程状态" align="center" prop="status">
|
||||
@ -98,8 +100,8 @@
|
||||
</template>
|
||||
|
||||
<script setup name="DesignChange" lang="ts">
|
||||
import { listDesignChange, delDesignChange } from '@/api/design/designChange';
|
||||
import { DesignChangeVO, } from '@/api/design/designChange/types';
|
||||
import { listDesignChange, delDesignChange } from '@/api/design/designChange';
|
||||
import { DesignChangeVO } from '@/api/design/designChange/types';
|
||||
import { useUserStoreHook } from '@/store/modules/user';
|
||||
import wordDetial from '@/components/wordDetial/index';
|
||||
|
||||
@ -134,10 +136,10 @@ const data = reactive({
|
||||
changeReason: undefined,
|
||||
status: undefined,
|
||||
params: {}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams} = toRefs(data);
|
||||
const { queryParams } = toRefs(data);
|
||||
|
||||
/** 查询设计变更管理列表 */
|
||||
const getList = async () => {
|
||||
@ -171,7 +173,7 @@ const handleSelectionChange = (selection: DesignChangeVO[]) => {
|
||||
const handleAdd = () => {
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/workflows/designChange/indexEdit`,
|
||||
path: `/test/designChange/indexEdit`,
|
||||
query: {
|
||||
type: 'add'
|
||||
}
|
||||
@ -182,7 +184,7 @@ const handleAdd = () => {
|
||||
const handleUpdate = async (row?: DesignChangeVO) => {
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/workflows/designChange/indexEdit`,
|
||||
path: `/test/designChange/indexEdit`,
|
||||
query: {
|
||||
id: row.id,
|
||||
type: 'update'
|
||||
@ -193,7 +195,7 @@ const handleUpdate = async (row?: DesignChangeVO) => {
|
||||
const handleViewInfo = (row) => {
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/workflows/designChange/indexEdit`,
|
||||
path: `/test/designChange/indexEdit`,
|
||||
query: {
|
||||
id: row.id,
|
||||
type: 'view'
|
||||
|
Reference in New Issue
Block a user