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

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

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

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

@ -236,7 +236,7 @@ function onCheckChange(checked: any, item: any) {
const showIds = computed(() => { const showIds = computed(() => {
return onList.value.map((item) => { 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> <span :style="{ 'margin-left': '18px', 'font-size': '16px','font-weight':'600' }">基本信息</span>
</div> </div>
</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-form-item class="wrapper-task-package-name" path="packagename" label="任务包名称">
<n-input v-model:value="model.packagename" maxlength="12" @keydown.enter.prevent /> <n-input v-model:value="model.packagename" maxlength="12" @keydown.enter.prevent />
</n-form-item> </n-form-item>
@ -109,7 +110,7 @@ function afterLeave() {
.wrapper { .wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 14px 14px 0 14px ;
&-title { &-title {
font-weight: 600; font-weight: 600;
// font-weight: bold; // font-weight: bold;
@ -135,6 +136,7 @@ function afterLeave() {
&-task-package-name { &-task-package-name {
::v-deep(.n-form-item-label) { ::v-deep(.n-form-item-label) {
color: #666; color: #666;
font-weight: 500;
} }
} }
@ -157,6 +159,7 @@ function afterLeave() {
&-footer { &-footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
padding-bottom:6px ;
} }
&-info { &-info {

Loading…
Cancel
Save