解决路由bug
This commit is contained in:
@ -15,13 +15,15 @@
|
||||
<el-table-column align="center" prop="changeContent" label="变更内容" />
|
||||
<el-table-column align="center" prop="costEstimate" label="变更费用估算1" />
|
||||
<el-table-column label="流程状态" align="center" prop="status">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="wf_business_status" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<template #default="scope">
|
||||
<dict-tag :options="wf_business_status" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" prop="content" label="操作" width="240">
|
||||
<template #default="scope">
|
||||
<el-button link type="warning" v-if="scope.row.status === 'draft'" icon="Edit" @click="handleUpdate(scope.row)" class="ml-3">审批 </el-button>
|
||||
<el-button link type="warning" v-if="scope.row.status === 'draft'" icon="Edit" @click="handleUpdate(scope.row)" class="ml-3"
|
||||
>审批
|
||||
</el-button>
|
||||
<el-button link type="primary" icon="View" @click="handleViewInfo(scope.row)" class="ml-3"> 查看流程 </el-button>
|
||||
<el-button link type="success" icon="View" @click="handleDetail(scope.row)" class="ml-3"> 详情 </el-button>
|
||||
<el-button link type="danger" icon="Delete" @click="handleDelete(scope.row)"> 删除 </el-button>
|
||||
@ -153,9 +155,9 @@ const props = defineProps({
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
thumbnail:{
|
||||
thumbnail: {
|
||||
type: String,
|
||||
default:''
|
||||
default: ''
|
||||
}
|
||||
});
|
||||
const tableDetail = ref<any>({});
|
||||
@ -195,8 +197,8 @@ const handleUpdate = (row) => {
|
||||
proxy.$router.push({
|
||||
path: `/cory/template/indexEdit`,
|
||||
query: {
|
||||
thumbnailUrl:props.thumbnail,
|
||||
row:JSON.stringify(row),
|
||||
thumbnailUrl: props.thumbnail,
|
||||
row: JSON.stringify(row),
|
||||
id: row.id,
|
||||
type: 'update'
|
||||
}
|
||||
@ -208,8 +210,8 @@ const handleViewInfo = (row) => {
|
||||
proxy.$router.push({
|
||||
path: `/cory/template/indexEdit`,
|
||||
query: {
|
||||
thumbnailUrl:props.thumbnail,
|
||||
row:JSON.stringify(row),
|
||||
thumbnailUrl: props.thumbnail,
|
||||
row: JSON.stringify(row),
|
||||
id: row.id,
|
||||
type: 'view'
|
||||
}
|
||||
|
||||
@ -39,11 +39,7 @@
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</template>
|
||||
<Contactform
|
||||
@selection-change="handleSelectionChange"
|
||||
:data="tableData"
|
||||
@delete="handleDelete"
|
||||
></Contactform>
|
||||
<Contactform @selection-change="handleSelectionChange" :data="tableData" @delete="handleDelete"></Contactform>
|
||||
<pagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
@ -127,7 +123,7 @@ const currentProject = computed(() => userStore.selectedProject);
|
||||
const thumbnailUrl = ref('');
|
||||
const tableData = ref([]);
|
||||
const total = ref(0);
|
||||
const activeName = ref('1')
|
||||
const activeName = ref('1');
|
||||
const formRef = ref<FormInstance>();
|
||||
const dialogVisible = ref<boolean>(false);
|
||||
const showSearch = ref(true);
|
||||
@ -274,23 +270,23 @@ const selectType = (value: string) => {
|
||||
getList();
|
||||
};
|
||||
|
||||
const handleClick=(val)=>{
|
||||
const handleClick = (val) => {
|
||||
console.log(val);
|
||||
queryParams.value.projectType=val.props.name;
|
||||
queryParams.value.projectType = val.props.name;
|
||||
getList();
|
||||
}
|
||||
const handleAddApp=(row)=>{
|
||||
};
|
||||
const handleAddApp = (row) => {
|
||||
// 添加审批
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/cory/template/indexEdit`,
|
||||
path: `/relation-management/template/indexEdit`,
|
||||
query: {
|
||||
thumbnailUrl: projectTypeOptions.value[1].thumbnail,
|
||||
row,
|
||||
type: 'add'
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
onMounted(() => {
|
||||
getList();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user