fix: 路由跳转路径更改
This commit is contained in:
parent
419f5ff4a2
commit
42008555ac
|
@ -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: '删除',
|
||||||
|
|
|
@ -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}`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue