fix: 路由跳转路径更改

This commit is contained in:
JiangQiming 2023-02-01 10:27:27 +08:00
parent 419f5ff4a2
commit 42008555ac
2 changed files with 9 additions and 43 deletions

View File

@ -91,7 +91,10 @@
v-for="(o, i) in item.children" v-for="(o, i) in item.children"
:key="i" :key="i"
> >
<a-button type="link" @click="o.onClick"> <a-button
type="link"
@click="o.onClick"
>
<AIcon :type="o.icon" /> <AIcon :type="o.icon" />
<span>{{ o.text }}</span> <span>{{ o.text }}</span>
</a-button> </a-button>
@ -167,9 +170,8 @@
<script setup lang="ts"> <script setup lang="ts">
import ConfigApi from '@/api/notice/config'; import ConfigApi from '@/api/notice/config';
import type { ActionsType } from '@/components/Table/index.vue'; import type { ActionsType } from '@/components/Table/index.vue';
import { getImage, LocalStore } from '@/utils/comm';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import { BASE_API_PATH, TOKEN_KEY } from '@/utils/variable';
import { NOTICE_METHOD, MSG_TYPE } from '@/views/notice/const'; import { NOTICE_METHOD, MSG_TYPE } from '@/views/notice/const';
import SyncUser from './SyncUser/index.vue'; import SyncUser from './SyncUser/index.vue';
@ -266,7 +268,7 @@ const getMethodTxt = (type: string) => {
* 新增 * 新增
*/ */
const handleAdd = () => { const handleAdd = () => {
router.push(`/notice/Config/detail/:id`); router.push(`/iot/notice/Config/detail/:id`);
}; };
/** /**
@ -306,13 +308,6 @@ const handleExport = () => {
downloadObject(configRef.value.dataSource, `通知配置`); downloadObject(configRef.value.dataSource, `通知配置`);
}; };
/**
* 查看
*/
const handleView = (id: string) => {
message.warn(id + '暂未开发');
};
const syncVis = ref(false); const syncVis = ref(false);
const debugVis = ref(false); const debugVis = ref(false);
const logVis = ref(false); const logVis = ref(false);
@ -333,7 +328,7 @@ const getActions = (
onClick: () => { onClick: () => {
// visible.value = true; // visible.value = true;
// current.value = data; // current.value = data;
router.push(`/notice/Config/detail/${data.id}`); router.push(`/iot/notice/Config/detail/${data.id}`);
}, },
}, },
{ {
@ -360,35 +355,6 @@ const getActions = (
currentConfig.value = data; currentConfig.value = data;
}, },
}, },
// {
// key: 'others',
// text: '',
// children: [
// {
// key: 'debug',
// text: '',
// tooltip: {
// title: '',
// },
// icon: 'ArrowDownOutlined',
// onClick: () => {
// downloadObject(data, ``);
// },
// },
// {
// key: 'sync',
// text: '',
// tooltip: {
// title: '',
// },
// icon: 'TeamOutlined',
// onClick: () => {
// syncVis.value = true;
// currentConfig.value = data;
// },
// },
// ],
// },
{ {
key: 'delete', key: 'delete',
text: '删除', text: '删除',

View File

@ -256,7 +256,7 @@ const getMethodTxt = (type: string) => {
* 新增 * 新增
*/ */
const handleAdd = () => { const handleAdd = () => {
router.push(`/notice/Template/detail/:id`); router.push(`/iot/notice/Template/detail/:id`);
}; };
/** /**
@ -323,7 +323,7 @@ const getActions = (
onClick: () => { onClick: () => {
// visible.value = true; // visible.value = true;
// current.value = data; // current.value = data;
router.push(`/notice/Template/detail/${data.id}`); router.push(`/iot/notice/Template/detail/${data.id}`);
}, },
}, },
{ {