fix: 终审页面无法跳转bug修复 #151

Merged
liushilong merged 1 commits from fix/home_ui_erro into test 1 year ago

@ -197,12 +197,10 @@ export default defineComponent({
<!-- 菜单收起 -->
<div
class="ml-1 layout-header-trigger layout-header-trigger-min"
style="padding-top: 2px;"
@click="() => $emit('update:collapsed', !collapsed)"
>
<SvgIcon name="homepage" size="16" />
</div>
<div>当前位置{{ routename }}</div>
</div>
<div class="layout-header-right">
@ -228,7 +226,7 @@ export default defineComponent({
<!-- 个人中心 -->
<div class="layout-header-trigger layout-header-trigger-min">
<!-- <n-avatar :src="getImgUrl(useInfo.usericon)" round /> -->
<n-avatar :src="(useInfo.usericon && getImgUrl(useInfo.usericon)) || defaultAvatarSrc" round/>
<n-avatar style="width:36px;height:36px;" :src="(useInfo.usericon && getImgUrl(useInfo.usericon)) || defaultAvatarSrc" round/>
</div>
<!-- 设置 -->
<UserSettings @logout="doLogout" />
@ -254,6 +252,7 @@ export default defineComponent({
&-left {
display: flex;
align-items: center;
justify-content: flex-start;
color: #666666;
.logo {

@ -68,11 +68,14 @@ export default defineComponent({
return v;
});
}
console.log(userInfo.frontmenuTList,'frontmenuTList');
console.log(menus.value,'menus')
updateSelectedKeys();
}
//
function clickMenuItem(key: string) {
console.log('clickMenuItem',key)
if (/http(s)?:/.test(key)) window.open(key);
else router.push({ name: key });

@ -28,7 +28,7 @@ const routes: Array<RouteRecordRaw> = [
children: [
{
path: 'final',
name: 'FinalMain',
name: 'final-main',
meta: {
title: '任务终审',
keepAlive: true,

@ -101,7 +101,8 @@ onBeforeMount(async () => {
configStore.fetchCustomConfig();
});
configStore.$subscribe(() => {
nextTick(()=>{
configStore.$subscribe(() => {
const config = configStore.getConfig;
const customConfig = configStore.getCustomConfig;
if (
@ -122,7 +123,7 @@ configStore.$subscribe(() => {
let sortKeyList: any = [];
configStore.getFilterConfig.map((item: any) => {
sortKeyList.push(item.id);
sortKeyList.push(item?.id);
});
const showKeys = [...sortKeyList];
@ -172,10 +173,10 @@ configStore.$subscribe(() => {
}
// console.log("showKeys", showKeys);
const items = showKeys.reduce((acc, key) => {
const { render } = asideMap[key];
const currentData = asideMap[key];
const render = currentData?.render;
if (render !== false) {
const str = key.toLowerCase();
const str = key?.toLowerCase();
const o = {
key: str,
@ -191,6 +192,7 @@ configStore.$subscribe(() => {
configFilterRef.value = configStore.getFilterConfig;
});
})
const asideEnter = ref(false);
const showCollapse = computed(() => {

@ -236,7 +236,7 @@ function onCheckChange(checked: any, item: any) {
const showIds = computed(() => {
return onList.value.map((item) => {
return item.id
return item?.id
})
})

@ -80,7 +80,8 @@ function afterLeave() {
<span :style="{ 'margin-left': '18px', 'font-size': '16px','font-weight':'600' }">基本信息</span>
</div>
</div>
<n-form ref="formRef" :model="model" require-mark-placement="left" style="margin-top: 8px;" :rules="rules">
<!-- require-mark-placement="left" -->
<n-form ref="formRef" :model="model" style="margin-top: 8px;" :rules="rules">
<n-form-item class="wrapper-task-package-name" path="packagename" label="任务包名称">
<n-input v-model:value="model.packagename" maxlength="12" @keydown.enter.prevent />
</n-form-item>
@ -109,7 +110,7 @@ function afterLeave() {
.wrapper {
display: flex;
flex-direction: column;
padding: 14px 14px 0 14px ;
&-title {
font-weight: 600;
// font-weight: bold;
@ -135,6 +136,7 @@ function afterLeave() {
&-task-package-name {
::v-deep(.n-form-item-label) {
color: #666;
font-weight: 500;
}
}
@ -157,6 +159,7 @@ function afterLeave() {
&-footer {
display: flex;
justify-content: flex-end;
padding-bottom:6px ;
}
&-info {

Loading…
Cancel
Save