Browse Source

vs_test上提出的bug修复

master
aBin 4 years ago
parent
commit
3159f24316
  1. 4
      src/common/portrait.styl
  2. 610
      src/components/HeadNav/HeadNav.vue
  3. 34
      src/components/LeftNav/LeftNav.vue
  4. 634
      src/components/Location/Location.vue
  5. 3
      src/components/RichText/RichText.vue
  6. 2
      src/views/CompanyProfile/CompanyProfile.vue
  7. 2
      src/views/NewPages/NewPages.vue
  8. 2
      src/views/OtherPages/Department.vue
  9. 2
      src/views/OtherPages/Information.vue
  10. 2
      src/views/OtherPages/NoticeNotice.vue
  11. 2
      src/views/OtherPages/PartyBuilding.vue
  12. 2
      src/views/OtherPages/PilePages.vue
  13. 2
      src/views/OtherPages/SafeProduction.vue
  14. 2
      src/views/OtherPages/Search.vue
  15. 2
      src/views/OtherPages/System.vue

4
src/common/portrait.styl

@ -329,6 +329,10 @@
justify-content: center; justify-content: center;
} }
.justify-right{
justify-content: right;
}
.justify-space-between{ .justify-space-between{
justify-content: space-between; justify-content: space-between;
} }

610
src/components/HeadNav/HeadNav.vue

@ -38,7 +38,7 @@
class="child one-text-2" class="child one-text-2"
v-for="child in item.children" v-for="child in item.children"
:key="child.title" :key="child.title"
@click="jumpDetail(index, item.url, child.code)" @click="jumpDetail(index, item.url, child.code, child)"
> >
{{ child.title }} {{ child.title }}
</div> </div>
@ -49,7 +49,7 @@
class="child-3 one-text-2" class="child-3 one-text-2"
v-for="child in item.children" v-for="child in item.children"
:key="child.title" :key="child.title"
@click="jumpDetail(index, item.url, child.code)" @click="jumpDetail(index, item.url, child.code, child)"
> >
{{ child.title }} {{ child.title }}
</div> </div>
@ -232,14 +232,44 @@ export default {
{ {
title: '基本信息', title: '基本信息',
code: '0601', code: '0601',
children: [
{
title: '工商登记信息',
code: '060101',
},
{
title: '重要人事变动',
code: '060102',
},
],
}, },
{ {
title: '经营管理', title: '经营管理',
code: '0602', code: '0602',
children: [
{
title: '重大改革重组',
code: '060201',
},
],
}, },
{ {
title: '公司公告', title: '公司公告',
code: '0603', code: '0603',
children: [
{
title: '工作通知',
code: '060301',
},
{
title: '公示公告',
code: '060302',
},
{
title: '人才招聘',
code: '060303',
},
],
}, },
{ {
title: '社会责任', title: '社会责任',
@ -248,6 +278,20 @@ export default {
{ {
title: '关于信息公开', title: '关于信息公开',
code: '0605', code: '0605',
children: [
{
title: '信息公开实施细则',
code: '060501',
},
{
title: '公司制度',
code: '060502',
},
{
title: '联系我们',
code: '060503',
},
],
}, },
], ],
}, },
@ -329,66 +373,610 @@ export default {
{ {
title: '总经理工作部', title: '总经理工作部',
code: '0901', code: '0901',
children: [
{
title: '部门职责',
code: '090101',
},
{
title: '岗位规范',
code: '090102',
},
{
title: '部门动态',
code: '090103',
},
{
title: '工作计划(月计划/年计划)',
code: '090104',
},
{
title: '管理制度',
code: '090105',
},
{
title: '资料下载',
code: '090106',
},
{
title: '学习园地',
code: '090107',
},
{
title: '常用表格',
code: '090108',
},
],
}, },
{ {
title: '计划营销部', title: '计划营销部',
code: '0902', code: '0902',
children: [
{
title: '部门职责',
code: '090201',
},
{
title: '岗位规范',
code: '090202',
},
{
title: '部门动态',
code: '090203',
},
{
title: '工作计划(月计划/年计划)',
code: '090204',
},
{
title: '管理制度',
code: '090205',
},
{
title: '资料下载',
code: '090206',
},
{
title: '学习园地',
code: '090207',
},
{
title: '常用表格',
code: '090208',
},
],
}, },
{ {
title: '财务管理部', title: '财务管理部',
code: '0903', code: '0903',
children: [
{
title: '部门职责',
code: '090301',
},
{
title: '岗位规范',
code: '090302',
},
{
title: '部门动态',
code: '090303',
},
{
title: '工作计划(月计划/年计划)',
code: '090304',
},
{
title: '管理制度',
code: '090305',
},
{
title: '资料下载',
code: '090306',
},
{
title: '学习园地',
code: '090307',
},
{
title: '常用表格',
code: '090308',
},
],
}, },
{ {
title: '人力资源部', title: '人力资源部',
code: '0904', code: '0904',
children: [
{
title: '部门职责',
code: '090401',
},
{
title: '岗位规范',
code: '090402',
},
{
title: '部门动态',
code: '090403',
},
{
title: '工作计划(月计划/年计划)',
code: '090404',
},
{
title: '管理制度',
code: '090405',
},
{
title: '资料下载',
code: '090406',
},
{
title: '学习园地',
code: '090407',
},
{
title: '常用表格',
code: '090408',
},
],
}, },
{ {
title: '党群工作部', title: '党群工作部',
code: '0905', code: '0905',
children: [
{
title: '部门职责',
code: '090501',
},
{
title: '岗位规范',
code: '090502',
},
{
title: '部门动态',
code: '090503',
},
{
title: '工作计划(月计划/年计划)',
code: '090504',
},
{
title: '管理制度',
code: '090505',
},
{
title: '资料下载',
code: '090506',
},
{
title: '学习园地',
code: '090507',
},
{
title: '常用表格',
code: '090508',
},
],
}, },
{ {
title: '纪委办公室(审计部)', title: '纪委办公室(审计部)',
code: '0906', code: '0906',
children: [
{
title: '部门职责',
code: '090601',
},
{
title: '岗位规范',
code: '090602',
},
{
title: '部门动态',
code: '090603',
},
{
title: '工作计划(月计划/年计划)',
code: '090604',
},
{
title: '管理制度',
code: '090605',
},
{
title: '资料下载',
code: '090606',
},
{
title: '学习园地',
code: '090607',
},
{
title: '常用表格',
code: '090608',
},
],
}, },
{ {
title: '燃料采购部', title: '燃料采购部',
code: '0907', code: '0907',
children: [
{
title: '部门职责',
code: '090701',
},
{
title: '岗位规范',
code: '090702',
},
{
title: '部门动态',
code: '090703',
},
{
title: '工作计划(月计划/年计划)',
code: '090704',
},
{
title: '管理制度',
code: '090705',
},
{
title: '资料下载',
code: '090706',
},
{
title: '学习园地',
code: '090707',
},
{
title: '常用表格',
code: '090708',
},
],
}, },
{ {
title: '物资管理部', title: '物资管理部',
code: '0908', code: '0908',
children: [
{
title: '部门职责',
code: '090801',
},
{
title: '岗位规范',
code: '090802',
},
{
title: '部门动态',
code: '090803',
},
{
title: '工作计划(月计划/年计划)',
code: '090804',
},
{
title: '管理制度',
code: '090805',
},
{
title: '资料下载',
code: '090806',
},
{
title: '学习园地',
code: '090807',
},
{
title: '常用表格',
code: '090808',
},
],
}, },
{ {
title: '项目开发部', title: '项目开发部',
code: '0909', code: '0909',
children: [
{
title: '部门职责',
code: '090901',
},
{
title: '岗位规范',
code: '090902',
},
{
title: '部门动态',
code: '090903',
},
{
title: '工作计划(月计划/年计划)',
code: '090904',
},
{
title: '管理制度',
code: '090905',
},
{
title: '资料下载',
code: '090906',
},
{
title: '学习园地',
code: '090907',
},
{
title: '常用表格',
code: '090908',
},
],
}, },
{ {
title: '燃料质量验收部', title: '燃料质量验收部',
code: '0910', code: '0910',
children: [
{
title: '部门职责',
code: '091001',
},
{
title: '岗位规范',
code: '091002',
},
{
title: '部门动态',
code: '091003',
},
{
title: '工作计划(月计划/年计划)',
code: '091004',
},
{
title: '管理制度',
code: '091005',
},
{
title: '资料下载',
code: '091006',
},
{
title: '学习园地',
code: '091007',
},
{
title: '常用表格',
code: '091008',
},
],
}, },
{ {
title: '安全监督部', title: '安全监督部',
code: '0911', code: '0911',
children: [
{
title: '部门职责',
code: '091101',
},
{
title: '岗位规范',
code: '091102',
},
{
title: '部门动态',
code: '091103',
},
{
title: '工作计划(月计划/年计划)',
code: '091104',
},
{
title: '管理制度',
code: '091105',
},
{
title: '资料下载',
code: '091106',
},
{
title: '学习园地',
code: '091107',
},
{
title: '常用表格',
code: '091108',
},
],
}, },
{ {
title: '设备部', title: '设备部',
code: '0912', code: '0912',
children: [
{
title: '部门职责',
code: '091201',
},
{
title: '岗位规范',
code: '091202',
},
{
title: '部门动态',
code: '091203',
},
{
title: '工作计划(月计划/年计划)',
code: '091204',
},
{
title: '管理制度',
code: '091205',
},
{
title: '资料下载',
code: '091206',
},
{
title: '学习园地',
code: '091207',
},
{
title: '常用表格',
code: '091208',
},
],
}, },
{ {
title: '发电部', title: '发电部',
code: '0913', code: '0913',
children: [
{
title: '部门职责',
code: '091301',
},
{
title: '岗位规范',
code: '091302',
},
{
title: '部门动态',
code: '091303',
},
{
title: '工作计划(月计划/年计划)',
code: '091304',
},
{
title: '管理制度',
code: '091305',
},
{
title: '资料下载',
code: '091306',
},
{
title: '学习园地',
code: '091307',
},
{
title: '常用表格',
code: '091308',
},
],
}, },
{ {
title: '维护部', title: '维护部',
code: '0914', code: '0914',
children: [
{
title: '部门职责',
code: '091401',
},
{
title: '岗位规范',
code: '091402',
},
{
title: '部门动态',
code: '091403',
},
{
title: '工作计划(月计划/年计划)',
code: '091404',
},
{
title: '管理制度',
code: '091405',
},
{
title: '资料下载',
code: '091406',
},
{
title: '学习园地',
code: '091407',
},
{
title: '常用表格',
code: '091408',
},
],
}, },
{ {
title: '热工专业', title: '热工专业',
code: '0915', code: '0915',
children: [
{
title: '部门职责',
code: '091501',
},
{
title: '岗位规范',
code: '091502',
},
{
title: '部门动态',
code: '091503',
},
{
title: '工作计划(月计划/年计划)',
code: '091504',
},
{
title: '管理制度',
code: '091505',
},
{
title: '资料下载',
code: '091506',
},
{
title: '学习园地',
code: '091507',
},
{
title: '常用表格',
code: '091508',
},
],
}, },
{ {
title: '电气专业', title: '电气专业',
code: '0916', code: '0916',
children: [
{
title: '部门职责',
code: '091601',
},
{
title: '岗位规范',
code: '091602',
},
{
title: '部门动态',
code: '091603',
},
{
title: '工作计划(月计划/年计划)',
code: '091604',
},
{
title: '管理制度',
code: '091605',
},
{
title: '资料下载',
code: '091606',
},
{
title: '学习园地',
code: '091607',
},
{
title: '常用表格',
code: '091608',
},
],
}, },
], ],
}, },
@ -438,9 +1026,15 @@ export default {
this.showPage = index; this.showPage = index;
if (url) { if (url) {
if (children.length && children[0].code) { if (children.length && children[0].code) {
let code = '';
if (children[0].children && children[0].children.length) {
code = children[0].children[0].code;
} else {
code = children[0].code;
}
this.$router.push({ this.$router.push({
path: url, path: url,
query: { code: children[0].code }, query: { code },
}); });
} else { } else {
this.$router.push(url); this.$router.push(url);
@ -448,7 +1042,13 @@ export default {
} }
} }
}, },
jumpDetail(index, url, code) { jumpDetail(index, url, code, child) {
let childCode = '';
if (child.children && child.children.length) {
childCode = child.children[0].code;
} else {
childCode = code;
}
const { query } = this.$route; const { query } = this.$route;
if (this.showPage === index && query.code === code) { if (this.showPage === index && query.code === code) {
this.$message.warning('已在当前界面!'); this.$message.warning('已在当前界面!');
@ -457,7 +1057,7 @@ export default {
if (url) { if (url) {
this.$router.push({ this.$router.push({
path: url, path: url,
query: { code }, query: { code: childCode },
}); });
} }
} }

34
src/components/LeftNav/LeftNav.vue

@ -8,7 +8,7 @@
:key="item.code" :key="item.code"
class="left-nav left-child d-flex align-center justify-center" class="left-nav left-child d-flex align-center justify-center"
:class="code === item.code ? 'active' : ''" :class="code === item.code ? 'active' : ''"
@click="changeQuery(item.code, item.url)" @click="changeQuery(item.code, item.url, item)"
> >
{{ item.title }} {{ item.title }}
</div> </div>
@ -46,12 +46,26 @@ export default {
}; };
}, },
watch: {
'$route.query.code'(val) {
this.childCode = val;
},
},
mounted() {
this.childCode = this.$route.query.code;
},
methods: { methods: {
changeQuery(code, status, url) { changeQuery(code, url, item) {
let childCode = code;
if (item && item.children && item.children.length) {
childCode = item.children[0].code;
}
if (!url) { if (!url) {
if (this.code && code !== this.code) { if (this.code && code !== this.code) {
this.$router.push({ this.$router.push({
query: { code }, query: { code: childCode },
}); });
this.$emit('chanegCode', code); this.$emit('chanegCode', code);
this.childCode = code; this.childCode = code;
@ -60,7 +74,7 @@ export default {
if (url === '/') { if (url === '/') {
window.open(`${window.location.href}`); window.open(`${window.location.href}`);
} else { } else {
window.open(`${process.env.VUE_APP_BASE_URL + process.env.VUE_APP_PUBLIC_PATH}${url}?code=${code}`); window.open(`${process.env.VUE_APP_BASE_URL + process.env.VUE_APP_PUBLIC_PATH}${url}?code=${childCode}`);
} }
} }
}, },
@ -68,7 +82,6 @@ export default {
if (code === this.code) { if (code === this.code) {
return true; return true;
} else { } else {
console.log('code: ', code);
for (let i = 0; i < this.list.children.length; i++) { for (let i = 0; i < this.list.children.length; i++) {
const item = this.list.children[i]; const item = this.list.children[i];
if (item.children && item.children.length) { if (item.children && item.children.length) {
@ -99,15 +112,16 @@ export default {
.left-nav { .left-nav {
width: 240px; width: 240px;
height: 56px; height: 56px;
border-bottom: 1px solid rgba(112, 112, 112, 0.1); /* border-bottom: 1px solid rgba(112, 112, 112, 0.1); */
margin-bottom: 1px; /* margin-bottom: 1px; */
} }
.left-nav-child { .left-nav-child {
width: 240px; width: 240px;
height: 28px; height: 28px;
border-bottom: 1px solid rgba(112, 112, 112, 0.1); padding-left: 20px;
margin-bottom: 1px; /* border-bottom: 1px solid rgba(112, 112, 112, 0.1); */
background-color: #f5f5f5; /* margin-bottom: 1px; */
background-color: #fff;
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;

634
src/components/Location/Location.vue

@ -6,13 +6,14 @@
<div style="font-size:16px"> <div style="font-size:16px">
<img src="@/assets/location.png" alt="" /> <img src="@/assets/location.png" alt="" />
您当前位置: 您当前位置:
<span class="ml-4" style="cursor: pointer;" @click="backFirst"> 首页 </span> <span class="title-name ml-4" @click="backFirst"> 首页 </span>
<template v-if="title !== '关键词'"> <template v-if="title !== '关键词'">
<span @click="backTitle" style="cursor: pointer;"> > {{ titleName }} </span> <span class="title-name" @click="backTitle"> > {{ titleName }} </span>
<span> > {{ titleTwo }} </span> <span v-if="titleTwo" class="title-name" :class="titleThree ? '' : 'acitve'"> > {{ titleTwo }} </span>
<span v-if="titleThree" class="title-name acitve"> > {{ titleThree }} </span>
</template> </template>
<template v-else> <template v-else>
<span> > {{ title }} </span> <span class="title-name"> > {{ title }} </span>
</template> </template>
</div> </div>
</div> </div>
@ -195,14 +196,44 @@ export default {
{ {
title: '基本信息', title: '基本信息',
code: '0601', code: '0601',
children: [
{
title: '工商登记信息',
code: '060101',
},
{
title: '重要人事变动',
code: '060102',
},
],
}, },
{ {
title: '经营管理', title: '经营管理',
code: '0602', code: '0602',
children: [
{
title: '重大改革重组',
code: '060201',
},
],
}, },
{ {
title: '公司公告', title: '公司公告',
code: '0603', code: '0603',
children: [
{
title: '工作通知',
code: '060301',
},
{
title: '公示公告',
code: '060302',
},
{
title: '人才招聘',
code: '060303',
},
],
}, },
{ {
title: '社会责任', title: '社会责任',
@ -211,6 +242,20 @@ export default {
{ {
title: '关于信息公开', title: '关于信息公开',
code: '0605', code: '0605',
children: [
{
title: '信息公开实施细则',
code: '060501',
},
{
title: '公司制度',
code: '060502',
},
{
title: '联系我们',
code: '060503',
},
],
}, },
], ],
}, },
@ -292,86 +337,617 @@ export default {
{ {
title: '总经理工作部', title: '总经理工作部',
code: '0901', code: '0901',
children: [
{
title: '部门职责',
code: '090101',
},
{
title: '岗位规范',
code: '090102',
},
{
title: '部门动态',
code: '090103',
},
{
title: '工作计划(月计划/年计划)',
code: '090104',
},
{
title: '管理制度',
code: '090105',
},
{
title: '资料下载',
code: '090106',
},
{
title: '学习园地',
code: '090107',
},
{
title: '常用表格',
code: '090108',
},
],
}, },
{ {
title: '计划营销部', title: '计划营销部',
code: '0902', code: '0902',
children: [
{
title: '部门职责',
code: '090201',
},
{
title: '岗位规范',
code: '090202',
},
{
title: '部门动态',
code: '090203',
},
{
title: '工作计划(月计划/年计划)',
code: '090204',
},
{
title: '管理制度',
code: '090205',
},
{
title: '资料下载',
code: '090206',
},
{
title: '学习园地',
code: '090207',
},
{
title: '常用表格',
code: '090208',
},
],
}, },
{ {
title: '财务管理部', title: '财务管理部',
code: '0903', code: '0903',
children: [
{
title: '部门职责',
code: '090301',
},
{
title: '岗位规范',
code: '090302',
},
{
title: '部门动态',
code: '090303',
},
{
title: '工作计划(月计划/年计划)',
code: '090304',
},
{
title: '管理制度',
code: '090305',
},
{
title: '资料下载',
code: '090306',
},
{
title: '学习园地',
code: '090307',
},
{
title: '常用表格',
code: '090308',
},
],
}, },
{ {
title: '人力资源部', title: '人力资源部',
code: '0904', code: '0904',
children: [
{
title: '部门职责',
code: '090401',
},
{
title: '岗位规范',
code: '090402',
},
{
title: '部门动态',
code: '090403',
},
{
title: '工作计划(月计划/年计划)',
code: '090404',
},
{
title: '管理制度',
code: '090405',
},
{
title: '资料下载',
code: '090406',
},
{
title: '学习园地',
code: '090407',
},
{
title: '常用表格',
code: '090408',
},
],
}, },
{ {
title: '党群工作部', title: '党群工作部',
code: '0905', code: '0905',
children: [
{
title: '部门职责',
code: '090501',
},
{
title: '岗位规范',
code: '090502',
},
{
title: '部门动态',
code: '090503',
},
{
title: '工作计划(月计划/年计划)',
code: '090504',
},
{
title: '管理制度',
code: '090505',
},
{
title: '资料下载',
code: '090506',
},
{
title: '学习园地',
code: '090507',
},
{
title: '常用表格',
code: '090508',
},
],
}, },
{ {
title: '纪委办公室(审计部)', title: '纪委办公室(审计部)',
code: '0906', code: '0906',
children: [
{
title: '部门职责',
code: '090601',
},
{
title: '岗位规范',
code: '090602',
},
{
title: '部门动态',
code: '090603',
},
{
title: '工作计划(月计划/年计划)',
code: '090604',
},
{
title: '管理制度',
code: '090605',
},
{
title: '资料下载',
code: '090606',
},
{
title: '学习园地',
code: '090607',
},
{
title: '常用表格',
code: '090608',
},
],
}, },
{ {
title: '燃料采购部', title: '燃料采购部',
code: '0907', code: '0907',
children: [
{
title: '部门职责',
code: '090701',
},
{
title: '岗位规范',
code: '090702',
},
{
title: '部门动态',
code: '090703',
},
{
title: '工作计划(月计划/年计划)',
code: '090704',
},
{
title: '管理制度',
code: '090705',
},
{
title: '资料下载',
code: '090706',
},
{
title: '学习园地',
code: '090707',
},
{
title: '常用表格',
code: '090708',
},
],
}, },
{ {
title: '物资管理部', title: '物资管理部',
code: '0908', code: '0908',
children: [
{
title: '部门职责',
code: '090801',
},
{
title: '岗位规范',
code: '090802',
},
{
title: '部门动态',
code: '090803',
},
{
title: '工作计划(月计划/年计划)',
code: '090804',
},
{
title: '管理制度',
code: '090805',
},
{
title: '资料下载',
code: '090806',
},
{
title: '学习园地',
code: '090807',
},
{
title: '常用表格',
code: '090808',
},
],
}, },
{ {
title: '项目开发部', title: '项目开发部',
code: '0909', code: '0909',
children: [
{
title: '部门职责',
code: '090901',
},
{
title: '岗位规范',
code: '090902',
},
{
title: '部门动态',
code: '090903',
},
{
title: '工作计划(月计划/年计划)',
code: '090904',
},
{
title: '管理制度',
code: '090905',
},
{
title: '资料下载',
code: '090906',
},
{
title: '学习园地',
code: '090907',
},
{
title: '常用表格',
code: '090908',
},
],
}, },
{ {
title: '燃料质量验收部', title: '燃料质量验收部',
code: '0910', code: '0910',
children: [
{
title: '部门职责',
code: '091001',
},
{
title: '岗位规范',
code: '091002',
},
{
title: '部门动态',
code: '091003',
},
{
title: '工作计划(月计划/年计划)',
code: '091004',
},
{
title: '管理制度',
code: '091005',
},
{
title: '资料下载',
code: '091006',
},
{
title: '学习园地',
code: '091007',
},
{
title: '常用表格',
code: '091008',
},
],
}, },
{ {
title: '安全监督部', title: '安全监督部',
code: '0911', code: '0911',
children: [
{
title: '部门职责',
code: '091101',
},
{
title: '岗位规范',
code: '091102',
},
{
title: '部门动态',
code: '091103',
},
{
title: '工作计划(月计划/年计划)',
code: '091104',
},
{
title: '管理制度',
code: '091105',
},
{
title: '资料下载',
code: '091106',
},
{
title: '学习园地',
code: '091107',
},
{
title: '常用表格',
code: '091108',
},
],
}, },
{ {
title: '设备部', title: '设备部',
code: '0912', code: '0912',
children: [
{
title: '部门职责',
code: '091201',
},
{
title: '岗位规范',
code: '091202',
},
{
title: '部门动态',
code: '091203',
},
{
title: '工作计划(月计划/年计划)',
code: '091204',
},
{
title: '管理制度',
code: '091205',
},
{
title: '资料下载',
code: '091206',
},
{
title: '学习园地',
code: '091207',
},
{
title: '常用表格',
code: '091208',
},
],
}, },
{ {
title: '发电部', title: '发电部',
code: '0913', code: '0913',
children: [
{
title: '部门职责',
code: '091301',
},
{
title: '岗位规范',
code: '091302',
},
{
title: '部门动态',
code: '091303',
},
{
title: '工作计划(月计划/年计划)',
code: '091304',
},
{
title: '管理制度',
code: '091305',
},
{
title: '资料下载',
code: '091306',
},
{
title: '学习园地',
code: '091307',
},
{
title: '常用表格',
code: '091308',
},
],
}, },
{ {
title: '维护部', title: '维护部',
code: '0914', code: '0914',
children: [
{
title: '部门职责',
code: '091401',
},
{
title: '岗位规范',
code: '091402',
},
{
title: '部门动态',
code: '091403',
},
{
title: '工作计划(月计划/年计划)',
code: '091404',
},
{
title: '管理制度',
code: '091405',
},
{
title: '资料下载',
code: '091406',
},
{
title: '学习园地',
code: '091407',
},
{
title: '常用表格',
code: '091408',
},
],
}, },
{ {
title: '热工专业', title: '热工专业',
code: '0915', code: '0915',
children: [
{
title: '部门职责',
code: '091501',
},
{
title: '岗位规范',
code: '091502',
},
{
title: '部门动态',
code: '091503',
},
{
title: '工作计划(月计划/年计划)',
code: '091504',
},
{
title: '管理制度',
code: '091505',
},
{
title: '资料下载',
code: '091506',
},
{
title: '学习园地',
code: '091507',
},
{
title: '常用表格',
code: '091508',
},
],
}, },
{ {
title: '电气专业', title: '电气专业',
code: '0916', code: '0916',
}, children: [
], {
}, title: '部门职责',
{ code: '091601',
title: '首页专题', },
url: '/pile', {
children: [ title: '岗位规范',
{ code: '091602',
title: '光荣榜', },
code: '9902', {
}, title: '部门动态',
{ code: '091603',
title: '今天我出镜', },
code: '9903', {
title: '工作计划(月计划/年计划)',
code: '091604',
},
{
title: '管理制度',
code: '091605',
},
{
title: '资料下载',
code: '091606',
},
{
title: '学习园地',
code: '091607',
},
{
title: '常用表格',
code: '091608',
},
],
}, },
], ],
}, },
], ],
titleName: '', titleName: '',
titleTwo: '', titleTwo: '',
titleThree: '',
}; };
}, },
watch: { watch: {
@ -384,6 +960,8 @@ export default {
}, },
methods: { methods: {
getLocal() { getLocal() {
this.titleTwo = '';
this.titleThree = '';
const path = this.$route.path; const path = this.$route.path;
const query = this.$route.query; const query = this.$route.query;
for (let i = 0; i < this.tabList.length; i++) { for (let i = 0; i < this.tabList.length; i++) {
@ -391,8 +969,18 @@ export default {
if (title.url === path) { if (title.url === path) {
this.titleName = title.title; this.titleName = title.title;
for (let k = 0; k < title.children.length; k++) { for (let k = 0; k < title.children.length; k++) {
const item = title.children[k];
if (query.code && query.code === title.children[k].code) { if (query.code && query.code === title.children[k].code) {
this.titleTwo = title.children[k].title; this.titleTwo = title.children[k].title;
return;
}
if (item.children && item.children.length) {
for (let m = 0; m < item.children.length; m++) {
if (query.code && query.code === item.children[m].code) {
this.titleTwo = title.children[k].title;
this.titleThree = item.children[m].title;
}
}
} }
} }
} }
@ -424,6 +1012,16 @@ export default {
}; };
</script> </script>
<style scoped> <style scoped>
.title-name {
cursor: pointer;
}
.acitve {
color: #b61412;
}
.title-name:hover {
font-size: 18px;
color: #b61412;
}
.red { .red {
color: #b61412; color: #b61412;
} }

3
src/components/RichText/RichText.vue

@ -8,7 +8,8 @@
<div>发表日期: {{ $moment(richObj.publishTime).format('YYYY-MM-DD') }}</div> <div>发表日期: {{ $moment(richObj.publishTime).format('YYYY-MM-DD') }}</div>
</div> </div>
</template> </template>
<div class="mt-4" v-dompurify-html="richObj.content"></div> <div class="mt-4" v-if="richObj.content" v-dompurify-html="richObj.content"></div>
<a-empty v-else />
<template v-if="richObj && richObj.title"> <template v-if="richObj && richObj.title">
<div class="mt-5" style="text-align: right">[责编: {{ richObj.editor }}]</div> <div class="mt-5" style="text-align: right">[责编: {{ richObj.editor }}]</div>
</template> </template>

2
src/views/CompanyProfile/CompanyProfile.vue

@ -82,7 +82,7 @@ export default {
introId: '', introId: '',
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.content = data; this.content = data || {};
} catch (error) {} } catch (error) {}
}, },
chanegCode(code) { chanegCode(code) {

2
src/views/NewPages/NewPages.vue

@ -155,7 +155,7 @@ export default {
introId: this.introId, introId: this.introId,
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.introContent = data; this.introContent = data || {};
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
} }

2
src/views/OtherPages/Department.vue

@ -675,7 +675,7 @@ export default {
introId: '', introId: '',
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.content = data; this.content = data || {};
} catch (error) {} } catch (error) {}
}, },
chanegCode(code) { chanegCode(code) {

2
src/views/OtherPages/Information.vue

@ -131,7 +131,7 @@ export default {
introId: '', introId: '',
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.content = data; this.content = data || {};
} catch (error) {} } catch (error) {}
}, },
chanegCode(code) { chanegCode(code) {

2
src/views/OtherPages/NoticeNotice.vue

@ -116,7 +116,7 @@ export default {
introId: this.introId, introId: this.introId,
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.introContent = data; this.introContent = data || {};
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
} }

2
src/views/OtherPages/PartyBuilding.vue

@ -120,7 +120,7 @@ export default {
introId: this.introId, introId: this.introId,
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.introContent = data; this.introContent = data || {};
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
} }

2
src/views/OtherPages/PilePages.vue

@ -105,7 +105,7 @@ export default {
introId: this.introId, introId: this.introId,
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.introContent = data; this.introContent = data || {};
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
} }

2
src/views/OtherPages/SafeProduction.vue

@ -119,7 +119,7 @@ export default {
introId: this.introId, introId: this.introId,
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.introContent = data; this.introContent = data || {};
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
} }

2
src/views/OtherPages/Search.vue

@ -121,7 +121,7 @@ export default {
introId: this.introId, introId: this.introId,
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.introContent = data; this.introContent = data || {};
} catch (error) { } catch (error) {
console.error('error: ', error); console.error('error: ', error);
} }

2
src/views/OtherPages/System.vue

@ -99,7 +99,7 @@ export default {
introId: '', introId: '',
}; };
const data = await this.getDetail(param); const data = await this.getDetail(param);
this.content = data; this.content = data || {};
} catch (error) {} } catch (error) {}
}, },
chanegCode(code) { chanegCode(code) {

Loading…
Cancel
Save