解决路由bug
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user