解决路由bug

This commit is contained in:
Teo
2025-07-14 16:10:03 +08:00
parent 748464b44a
commit d03efb8d6f
10 changed files with 62 additions and 66 deletions

View File

@ -16,15 +16,16 @@
<el-form-item label="专业" prop="specialty">
<el-input v-model="queryParams.specialty" placeholder="请输入专业" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="提出日期" prop="submitDate">
<el-date-picker clearable v-model="queryParams.submitDate" type="date" value-format="YYYY-MM-DD" placeholder="请选择提出日期" />
</el-form-item>
<el-form-item label="卷册名称" prop="volumeName">
<el-input v-model="queryParams.volumeName" placeholder="请输入卷册名称" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="卷册号" prop="volumeNo">
<el-input v-model="queryParams.volumeNo" placeholder="请输入卷册号" clearable @keyup.enter="handleQuery" />
</el-form-item>
<el-form-item label="提出日期" prop="submitDate">
<el-date-picker clearable v-model="queryParams.submitDate" type="date" value-format="YYYY-MM-DD" placeholder="请选择提出日期" />
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
@ -82,7 +83,7 @@
<el-button link type="primary" icon="View" @click="handleViewInfo(scope.row)"></el-button>
</el-tooltip>
<el-tooltip content="查看文档" placement="top">
<el-button link type="primary" icon="Word" @click="handleView(scope.row)"></el-button>
<el-button link type="primary" icon="Document" @click="handleView(scope.row)"></el-button>
</el-tooltip>
<el-tooltip content="修改" placement="top">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['design:designChange:edit']"></el-button>
@ -173,7 +174,7 @@ const handleSelectionChange = (selection: DesignChangeVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/designChange/indexEdit`,
path: `/design-management/designChange/indexEdit`,
query: {
type: 'add'
}
@ -184,7 +185,7 @@ const handleAdd = () => {
const handleUpdate = async (row?: DesignChangeVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/designChange/indexEdit`,
path: `/design-management/designChange/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -195,7 +196,7 @@ const handleUpdate = async (row?: DesignChangeVO) => {
const handleViewInfo = (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/designChange/indexEdit`,
path: `/design-management/designChange/indexEdit`,
query: {
id: row.id,
type: 'view'

View File

@ -161,7 +161,7 @@ const handleSelectionChange = (selection: DrawingVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/drawing/indexEdit`,
path: `/design-management/drawing/indexEdit`,
query: {
type: 'add'
}
@ -172,7 +172,7 @@ const handleAdd = () => {
const handleUpdate = async (row?: DrawingVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/drawing/indexEdit`,
path: `/design-management/drawing/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -198,7 +198,7 @@ const handleView = (row) => {
const handleViewInfo = (row?: LeaveVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/drawing/indexEdit`,
path: `/design-management/drawing/indexEdit`,
query: {
id: row.id,
type: 'view'

View File

@ -152,7 +152,7 @@ const handleSelectionChange = (selection: SpecialSchemeVO[]) => {
const handleAdd = () => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/specialScheme/indexEdit`,
path: `/design-management/specialScheme/indexEdit`,
query: {
type: 'add'
}
@ -163,7 +163,7 @@ const handleAdd = () => {
const handleUpdate = async (row?: SpecialSchemeVO) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/specialScheme/indexEdit`,
path: `/design-management/specialScheme/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -186,7 +186,7 @@ const handleView = (row) => {
const handleViewInfo = (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/test/specialScheme/indexEdit`,
path: `/design-management/specialScheme/indexEdit`,
query: {
id: row.id,
type: 'view'

View File

@ -475,7 +475,7 @@ onUnmounted(() => {
const handleApproval = (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/technicalStandard/indexEdit`,
path: `/design-management/technicalStandard/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -485,7 +485,7 @@ const handleApproval = (row) => {
const handleViewApproval = (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/technicalStandard/indexEdit`,
path: `/design-management/technicalStandard/indexEdit`,
query: {
id: row.id,
type: 'view'
@ -585,7 +585,7 @@ const handleViewApproval = (row) => {
}
}
.list_right {
width:79.5%;
width: 79.5%;
background: white;
border: 1px solid #ededed;
padding: 10px;