Browse Source

各种细节修改

master
aBin 3 years ago
parent
commit
d57ce639ee
  1. 2
      .env.development
  2. 2
      .env.production
  3. 2
      src/components/BayWindow/BayWindow.vue
  4. 1
      src/components/Carousel/Carousel.vue
  5. 6
      src/components/Footer/Footer.vue
  6. 13
      src/components/HeadNav/HeadNav.vue
  7. 55
      src/components/LeftNav/LeftNav.vue
  8. 4
      src/components/RichText/Relevant.vue
  9. 544
      src/views/OtherPages/Department.vue
  10. 44
      src/views/OtherPages/Information.vue

2
.env.development

@ -1,7 +1,7 @@
VUE_APP_MODE=development VUE_APP_MODE=development
VUE_APP_NODE_ENV=development VUE_APP_NODE_ENV=development
VUE_APP_SCENE=/datang/ VUE_APP_SCENE=/datang/
VUE_APP_BASE_URL=http://test.tall.wiki/ VUE_APP_BASE_URL=http://test.tall.wiki
VUE_APP_API_URL=http://test.tall.wiki/datang/v1.0 VUE_APP_API_URL=http://test.tall.wiki/datang/v1.0
VUE_APP_PROXY_URL=/datang/v1.0 VUE_APP_PROXY_URL=/datang/v1.0
VUE_APP_PUBLIC_PATH=/datang VUE_APP_PUBLIC_PATH=/datang

2
.env.production

@ -1,7 +1,7 @@
VUE_APP_MODE=production VUE_APP_MODE=production
VUE_APP_NODE_ENV=production VUE_APP_NODE_ENV=production
VUE_APP_SCENE=/datang/ VUE_APP_SCENE=/datang/
VUE_APP_BASE_URL=http://test.tall.wiki/ VUE_APP_BASE_URL=http://test.tall.wiki
VUE_APP_API_URL=http://test.tall.wiki/datang/v1.0 VUE_APP_API_URL=http://test.tall.wiki/datang/v1.0
VUE_APP_PROXY_URL=/datang/v1.0 VUE_APP_PROXY_URL=/datang/v1.0
VUE_APP_PUBLIC_PATH=/datang VUE_APP_PUBLIC_PATH=/datang

2
src/components/BayWindow/BayWindow.vue

@ -87,7 +87,7 @@ export default {
openPage() { openPage() {
this.$router.push({ this.$router.push({
path: '/notice', path: '/notice',
query: { code: '0505' }, query: { code: '0505', introId: this.content.content.id },
}); });
}, },
}, },

1
src/components/Carousel/Carousel.vue

@ -47,6 +47,7 @@ export default {
methods: { methods: {
async getImg() { async getImg() {
try { try {
if (this.code.length !== 4) return;
const params = { param: { showPage: this.code } }; const params = { param: { showPage: this.code } };
const res = await carouselQuery(params); const res = await carouselQuery(params);
const { data, code, msg } = res.data; const { data, code, msg } = res.data;

6
src/components/Footer/Footer.vue

@ -8,7 +8,8 @@
</div> </div>
</div> </div>
<div class="content-1180"> <div class="content-1180">
<div class="d-flex" style="margin-top:20px" :class="isTrue ? '' : 'justify-center'"> <div class="d-flex" style="margin-top:20px;" :class="isTrue ? '' : 'justify-center'">
<div class="d-flex" style="z-index: 10">
<div class="footer-title"> <div class="footer-title">
<p style="font-size:24px;rgb(51,51,51);font-weight:bold;">网上展厅</p> <p style="font-size:24px;rgb(51,51,51);font-weight:bold;">网上展厅</p>
<p style="font-size:18px;rgb(102,102,102)" @click="jumpPage('notice', '0503')">公示公告</p> <p style="font-size:18px;rgb(102,102,102)" @click="jumpPage('notice', '0503')">公示公告</p>
@ -24,6 +25,7 @@
<p style="font-size:18px;rgb(102,102,102)">责任报告</p> <p style="font-size:18px;rgb(102,102,102)">责任报告</p>
<p style="font-size:18px;rgb(102,102,102)" @click="jumpPage('profile', '0104')">企业VI</p> <p style="font-size:18px;rgb(102,102,102)" @click="jumpPage('profile', '0104')">企业VI</p>
</div> </div>
</div>
<img src="./erweima.png" style="width:164px;height:94px" alt="" /> <img src="./erweima.png" style="width:164px;height:94px" alt="" />
</div> </div>
<div style="position:absolute;bottom:30px;z-index: 10;width:640px;" :style="{ left: isTrue ? '' : '38%' }"> <div style="position:absolute;bottom:30px;z-index: 10;width:640px;" :style="{ left: isTrue ? '' : '38%' }">
@ -97,7 +99,7 @@ export default {
// path: url, // path: url,
// query: { code }, // query: { code },
// }); // });
window.open(`http://${window.location.host}/${url}?code=${code}`); window.open(`${process.env.VUE_APP_BASE_URL + process.env.VUE_APP_PUBLIC_PATH}/${url}?code=${code}`);
}, },
}, },
}; };

13
src/components/HeadNav/HeadNav.vue

@ -5,7 +5,7 @@
<img src="@/assets/titleLogo.png" style="height: 48px;" alt="" /> <img src="@/assets/titleLogo.png" style="height: 48px;" alt="" />
</div> </div>
<div> <div>
<a-input-search placeholder="输入关键字进行搜索..." style="width: 240px" @search="onSearch" /> <a-input-search v-model="text" placeholder="输入关键字进行搜索..." style="width: 240px" @search="onSearch" />
</div> </div>
</div> </div>
<div class="head-tab"> <div class="head-tab">
@ -394,10 +394,15 @@ export default {
}, },
], ],
showPage: 0, showPage: 0,
text: '',
}; };
}, },
watch: { watch: {
'$route.path'(val) { '$route.path'(val) {
if (this.$route.query.text) {
console.log('this.$route.query.text: ', this.$route.query.text);
this.text = this.$route.query.text;
}
for (let i = 0; i < this.tabList.length; i++) { for (let i = 0; i < this.tabList.length; i++) {
const item = this.tabList[i]; const item = this.tabList[i];
if (val === item.url) { if (val === item.url) {
@ -410,6 +415,10 @@ export default {
}, },
}, },
created() { created() {
if (this.$route.query.text) {
console.log('this.$route.query.text: ', this.$route.query.text);
this.text = this.$route.query.text;
}
setTimeout(() => { setTimeout(() => {
for (let i = 0; i < this.tabList.length; i++) { for (let i = 0; i < this.tabList.length; i++) {
if (this.tabList[i].url && this.$route.path === this.tabList[i].url) { if (this.tabList[i].url && this.$route.path === this.tabList[i].url) {
@ -420,7 +429,7 @@ export default {
}, },
methods: { methods: {
onSearch(e) { onSearch(e) {
window.open(`http://${window.location.host}/search?text=${e}`); window.open(`${process.env.VUE_APP_BASE_URL + process.env.VUE_APP_PUBLIC_PATH}/search?text=${e}`);
}, },
jumpPage(index, url, children) { jumpPage(index, url, children) {
if (this.showPage === index) { if (this.showPage === index) {

55
src/components/LeftNav/LeftNav.vue

@ -3,8 +3,8 @@
<div class="left-title d-flex align-center justify-center"> <div class="left-title d-flex align-center justify-center">
{{ list.title }} {{ list.title }}
</div> </div>
<template v-for="item in list.children">
<div <div
v-for="item in list.children"
: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' : ''"
@ -12,6 +12,18 @@
> >
{{ item.title }} {{ item.title }}
</div> </div>
<template v-if="item.children && item.children.length && getShow(item.code)">
<div
class="left-nav-child d-flex align-center justify-center"
v-for="child in item.children"
:class="childCode === child.code ? 'active' : ''"
:key="child.code"
@click="changeQuery(child.code, item.url)"
>
{{ child.title }}
</div>
</template>
</template>
</div> </div>
</template> </template>
<script> <script>
@ -28,21 +40,44 @@ export default {
}, },
}, },
data() { data() {
return {}; return {
childCode: '',
str: '',
};
}, },
methods: { methods: {
changeQuery(code, url) { changeQuery(code, status, 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 },
}); });
this.$emit('chanegCode', code); this.$emit('chanegCode', code);
this.childCode = code;
}
} else { } else {
if (url === '/') { if (url === '/') {
window.open(`http://${window.location.host}`); window.open(`${window.location.href}`);
} else {
window.open(`${process.env.VUE_APP_BASE_URL + process.env.VUE_APP_PUBLIC_PATH}${url}?code=${code}`);
}
}
},
getShow(code) {
if (code === this.code) {
return true;
} else { } else {
window.open(`http://${window.location.host}${url}?code=${code}`); console.log('code: ', code);
for (let i = 0; i < this.list.children.length; i++) {
const item = this.list.children[i];
if (item.children && item.children.length) {
for (let k = 0; k < item.children.length; k++) {
if (this.code === item.children[k].code && code === item.code) {
return true;
}
}
}
} }
} }
}, },
@ -67,6 +102,16 @@ export default {
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 {
width: 240px;
height: 28px;
border-bottom: 1px solid rgba(112, 112, 112, 0.1);
margin-bottom: 1px;
background-color: #f5f5f5;
font-size: 16px;
cursor: pointer;
transition: all 0.2s;
}
.left-child { .left-child {
background-color: #fff; background-color: #fff;
font-size: 20px; font-size: 20px;

4
src/components/RichText/Relevant.vue

@ -22,7 +22,9 @@ export default {
}, },
methods: { methods: {
openPages(id) { openPages(id) {
window.open(`http://${window.location.host}${this.$route.path}?code=${this.$route.query.code}&introId=${id}`); window.open(
`${process.env.VUE_APP_BASE_URL + process.env.VUE_APP_PUBLIC_PATH}${this.$route.path}?code=${this.$route.query.code}&introId=${id}`,
);
}, },
}, },
}; };

544
src/views/OtherPages/Department.vue

@ -34,66 +34,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',
},
],
}, },
], ],
}, },

44
src/views/OtherPages/Information.vue

@ -34,14 +34,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: '社会责任',
@ -50,6 +80,20 @@ export default {
{ {
title: '关于信息公开', title: '关于信息公开',
code: '0605', code: '0605',
children: [
{
title: '信息公开实施细则',
code: '060501',
},
{
title: '公司制度',
code: '060502',
},
{
title: '联系我们',
code: '060503',
},
],
}, },
], ],
}, },

Loading…
Cancel
Save