|
|
@ -10,8 +10,8 @@ |
|
|
<icon-svg name="zhedie"></icon-svg> |
|
|
<icon-svg name="zhedie"></icon-svg> |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
</el-menu> |
|
|
</el-menu> |
|
|
<a class="site-navbar__brand-lg" href="javascript:;">{{pageLanguage.XjSysManage}}</a> |
|
|
|
|
|
<a class="site-navbar__brand-mini" href="javascript:;">{{pageLanguage.abbreviation}}</a> |
|
|
|
|
|
|
|
|
<a class="site-navbar__brand-lg" href="javascript:;">{{ pageLanguage.XjSysManage }}</a> |
|
|
|
|
|
<a class="site-navbar__brand-mini" href="javascript:;">{{ pageLanguage.abbreviation }}</a> |
|
|
</h1> |
|
|
</h1> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
@ -21,6 +21,11 @@ |
|
|
<el-menu |
|
|
<el-menu |
|
|
class="site-navbar__menu site-navbar__menu--right" |
|
|
class="site-navbar__menu site-navbar__menu--right" |
|
|
mode="horizontal"> |
|
|
mode="horizontal"> |
|
|
|
|
|
<el-menu-item class="site-navbar__avatar" index="1"> |
|
|
|
|
|
<span class="el-dropdown-link" @click="userSetting"> |
|
|
|
|
|
<icon-svg name="editTable" style="width: 25px;height: 25px;margin-top: 5px"></icon-svg> |
|
|
|
|
|
</span> |
|
|
|
|
|
</el-menu-item> |
|
|
<el-menu-item v-if="isAuth('review:show')" class="site-navbar__avatar" index="1"> |
|
|
<el-menu-item v-if="isAuth('review:show')" class="site-navbar__avatar" index="1"> |
|
|
<span class="el-dropdown-link"> |
|
|
<span class="el-dropdown-link"> |
|
|
<router-link :to="{path:'purchaseorder-procurementReview',query:{'': ''}}"> |
|
|
<router-link :to="{path:'purchaseorder-procurementReview',query:{'': ''}}"> |
|
|
@ -38,16 +43,16 @@ |
|
|
<el-submenu index="3"> |
|
|
<el-submenu index="3"> |
|
|
<template slot="title">{{ pageLanguage.setting }}</template> |
|
|
<template slot="title">{{ pageLanguage.setting }}</template> |
|
|
<el-submenu index="2-1"> |
|
|
<el-submenu index="2-1"> |
|
|
<template slot="title">{{pageLanguage.languageSetting}}</template> |
|
|
|
|
|
|
|
|
<template slot="title">{{ pageLanguage.languageSetting }}</template> |
|
|
<el-menu-item index="2-1-1" :key="index" :value="item.languageCode" v-for="(item,index) in languageList " |
|
|
<el-menu-item index="2-1-1" :key="index" :value="item.languageCode" v-for="(item,index) in languageList " |
|
|
@click.native="switch_the_language(item.languageCode)">{{item.languageName}} |
|
|
|
|
|
|
|
|
@click.native="switch_the_language(item.languageCode)">{{ item.languageName }} |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
</el-submenu> |
|
|
</el-submenu> |
|
|
<el-submenu index="2-2"> |
|
|
<el-submenu index="2-2"> |
|
|
<template slot="title">{{ pageLanguage.userSetting }}</template> |
|
|
<template slot="title">{{ pageLanguage.userSetting }}</template> |
|
|
<el-menu-item index="2-2-1" @click.native="updatePasswordHandle()">{{ pageLanguage.updatePassword }} |
|
|
<el-menu-item index="2-2-1" @click.native="updatePasswordHandle()">{{ pageLanguage.updatePassword }} |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
<el-menu-item index="2-2-2" @click.native="updateLanguageHandle()">{{pageLanguage.updateDefaultLanguage}} |
|
|
|
|
|
|
|
|
<el-menu-item index="2-2-2" @click.native="updateLanguageHandle()">{{ pageLanguage.updateDefaultLanguage }} |
|
|
</el-menu-item> |
|
|
</el-menu-item> |
|
|
</el-submenu> |
|
|
</el-submenu> |
|
|
<el-menu-item index="2-3" @click="$router.push({ name: 'theme' })">{{ pageLanguage.cssSetting }} |
|
|
<el-menu-item index="2-3" @click="$router.push({ name: 'theme' })">{{ pageLanguage.cssSetting }} |
|
|
@ -75,298 +80,322 @@ |
|
|
<FileListView ref="fileListView" v-if="helpFileVisible"></FileListView> |
|
|
<FileListView ref="fileListView" v-if="helpFileVisible"></FileListView> |
|
|
<!-- 打印机列表 --> |
|
|
<!-- 打印机列表 --> |
|
|
<UserPrintList ref="userPrintList" v-if="printListVisible"></UserPrintList> |
|
|
<UserPrintList ref="userPrintList" v-if="printListVisible"></UserPrintList> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 动态列 --> |
|
|
|
|
|
<column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column> |
|
|
</nav> |
|
|
</nav> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import UpdatePassword from './main-navbar-update-password' |
|
|
|
|
|
import UpdateLanguage from './main-navbar-update-language' |
|
|
|
|
|
import {clearLoginInfo} from '@/utils' |
|
|
|
|
|
import FileListView from './modules/common/file-list-view' |
|
|
|
|
|
import UserPrintList from './modules/common/user-print-list' |
|
|
|
|
|
import { |
|
|
|
|
|
searchFunctionButtonList, |
|
|
|
|
|
saveButtonList, |
|
|
|
|
|
searchSysLanguage, |
|
|
|
|
|
} from "@/api/sysLanguage.js" |
|
|
|
|
|
|
|
|
import UpdatePassword from './main-navbar-update-password' |
|
|
|
|
|
import UpdateLanguage from './main-navbar-update-language' |
|
|
|
|
|
import {clearLoginInfo} from '@/utils' |
|
|
|
|
|
import FileListView from './modules/common/file-list-view' |
|
|
|
|
|
import UserPrintList from './modules/common/user-print-list' |
|
|
|
|
|
import column from "./modules/common/column"; |
|
|
|
|
|
import { |
|
|
|
|
|
searchFunctionButtonList, |
|
|
|
|
|
saveButtonList, |
|
|
|
|
|
searchSysLanguage, |
|
|
|
|
|
} from "@/api/sysLanguage.js" |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getReviewToolCount |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getReviewToolCount |
|
|
|
|
|
|
|
|
} from '@/api/purchaseorder/procurementReview.js' |
|
|
|
|
|
|
|
|
} from '@/api/purchaseorder/procurementReview.js' |
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
updatePassowrdVisible: false, |
|
|
|
|
|
updateLanguageVisible: false, |
|
|
|
|
|
helpFileVisible: false, |
|
|
|
|
|
printListVisible: false, |
|
|
|
|
|
message: this.$t('language.name'), |
|
|
|
|
|
languageList: [], |
|
|
|
|
|
pageLanguage: { |
|
|
|
|
|
XjSysManage: '旭捷管理系统', |
|
|
|
|
|
abbreviation: '旭捷', |
|
|
|
|
|
setting: '设置', |
|
|
|
|
|
languageSetting: '语言设置', |
|
|
|
|
|
userSetting: '用户设置', |
|
|
|
|
|
updatePassword: '修改密码', |
|
|
|
|
|
updateDefaultLanguage: '修改默认语言', |
|
|
|
|
|
cssSetting: '主提设置', |
|
|
|
|
|
printSetting: '打印设置', |
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
visible: false, |
|
|
|
|
|
updatePassowrdVisible: false, |
|
|
|
|
|
updateLanguageVisible: false, |
|
|
|
|
|
helpFileVisible: false, |
|
|
|
|
|
printListVisible: false, |
|
|
|
|
|
message: this.$t('language.name'), |
|
|
|
|
|
languageList: [], |
|
|
|
|
|
pageLanguage: { |
|
|
|
|
|
XjSysManage: '旭捷管理系统', |
|
|
|
|
|
abbreviation: '旭捷', |
|
|
|
|
|
setting: '设置', |
|
|
|
|
|
languageSetting: '语言设置', |
|
|
|
|
|
userSetting: '用户设置', |
|
|
|
|
|
updatePassword: '修改密码', |
|
|
|
|
|
updateDefaultLanguage: '修改默认语言', |
|
|
|
|
|
cssSetting: '主提设置', |
|
|
|
|
|
printSetting: '打印设置', |
|
|
|
|
|
}, |
|
|
|
|
|
// 导出 end |
|
|
|
|
|
pageLanguageList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '旭捷管理系统', |
|
|
|
|
|
objectId: 'XjSysManage', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
}, |
|
|
}, |
|
|
// 导出 end |
|
|
|
|
|
pageLanguageList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '旭捷管理系统', |
|
|
|
|
|
objectId: 'XjSysManage', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '首页', |
|
|
|
|
|
objectId: 'homePage', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '旭捷', |
|
|
|
|
|
objectId: 'abbreviation', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '设置', |
|
|
|
|
|
objectId: 'setting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '语言设置', |
|
|
|
|
|
objectId: 'languageSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '用户设置', |
|
|
|
|
|
objectId: 'userSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '修改密码', |
|
|
|
|
|
objectId: 'updatePassword', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '修改用户语言', |
|
|
|
|
|
objectId: 'updateDefaultLanguage', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '主题设置', |
|
|
|
|
|
objectId: 'cssSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '打印设置', |
|
|
|
|
|
objectId: 'printSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
pending: { |
|
|
|
|
|
pendingReview: 0, |
|
|
|
|
|
pendingSum: 0, |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '首页', |
|
|
|
|
|
objectId: 'homePage', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
}, |
|
|
}, |
|
|
queryToolReview: { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
strUserId: this.$store.state.user.id, |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '旭捷', |
|
|
|
|
|
objectId: 'abbreviation', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
}, |
|
|
}, |
|
|
toolReviewTimer: null, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
pending: { |
|
|
|
|
|
deep: true, |
|
|
|
|
|
handler: function (newV, oldV) { |
|
|
|
|
|
this.pending.pendingSum = this.pending.pendingReview |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '设置', |
|
|
|
|
|
objectId: 'setting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '语言设置', |
|
|
|
|
|
objectId: 'languageSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '用户设置', |
|
|
|
|
|
objectId: 'userSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '修改密码', |
|
|
|
|
|
objectId: 'updatePassword', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '修改用户语言', |
|
|
|
|
|
objectId: 'updateDefaultLanguage', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '主题设置', |
|
|
|
|
|
objectId: 'cssSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
functionId: "systemInformation", |
|
|
|
|
|
languageValue: '打印设置', |
|
|
|
|
|
objectId: 'printSetting', |
|
|
|
|
|
objectType: "label", |
|
|
|
|
|
tableId: "systemInformation" |
|
|
} |
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
pending: { |
|
|
|
|
|
pendingReview: 0, |
|
|
|
|
|
pendingSum: 0, |
|
|
|
|
|
}, |
|
|
|
|
|
queryToolReview: { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
strUserId: this.$store.state.user.id, |
|
|
}, |
|
|
}, |
|
|
|
|
|
toolReviewTimer: null, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
pending: { |
|
|
|
|
|
deep: true, |
|
|
|
|
|
handler: function (newV, oldV) { |
|
|
|
|
|
this.pending.pendingSum = this.pending.pendingReview |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
|
|
|
UpdatePassword, |
|
|
|
|
|
UpdateLanguage, |
|
|
|
|
|
FileListView, |
|
|
|
|
|
UserPrintList |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
components: { |
|
|
|
|
|
UpdatePassword, |
|
|
|
|
|
UpdateLanguage, |
|
|
|
|
|
FileListView, |
|
|
|
|
|
UserPrintList, |
|
|
|
|
|
column, |
|
|
|
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
navbarLayoutType: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.common.navbarLayoutType |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
|
|
|
navbarLayoutType: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.common.navbarLayoutType |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
sidebarFold: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.common.sidebarFold |
|
|
}, |
|
|
}, |
|
|
sidebarFold: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.common.sidebarFold |
|
|
|
|
|
}, |
|
|
|
|
|
set(val) { |
|
|
|
|
|
this.$store.commit('common/updateSidebarFold', val) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
mainTabs: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.common.mainTabs |
|
|
|
|
|
}, |
|
|
|
|
|
set(val) { |
|
|
|
|
|
this.$store.commit('common/updateMainTabs', val) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
set(val) { |
|
|
|
|
|
this.$store.commit('common/updateSidebarFold', val) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
mainTabs: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.common.mainTabs |
|
|
}, |
|
|
}, |
|
|
userName: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.user.userDisplay |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
set(val) { |
|
|
|
|
|
this.$store.commit('common/updateMainTabs', val) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
activated() { |
|
|
|
|
|
|
|
|
userName: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.state.user.userDisplay |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
activated() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
|
|
|
this.toolReviewTimer = setInterval(this.getReviewToolCount, 1000 * 60); |
|
|
|
|
|
}, |
|
|
|
|
|
beforeDestroy() { |
|
|
|
|
|
clearInterval(this.toolReviewTimer); |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
// 打开页面设置 |
|
|
|
|
|
userSetting() { |
|
|
|
|
|
this.visible = true; |
|
|
|
|
|
let queryTable = { |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
|
|
tableId: '', |
|
|
|
|
|
} |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.column.init(queryTable); |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
|
|
|
this.toolReviewTimer = setInterval( this.getReviewToolCount, 1000*60); |
|
|
|
|
|
}, |
|
|
|
|
|
beforeDestroy() { |
|
|
|
|
|
clearInterval(this.toolReviewTimer); |
|
|
|
|
|
|
|
|
getTableUserColumn() { |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$router.go(0) |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
|
|
|
// 获取待审核的是工具申请单数量 |
|
|
|
|
|
getReviewToolCount() { |
|
|
|
|
|
getReviewToolCount(this.queryToolReview).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.pending.pendingReview = data.data |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 打印机列表 |
|
|
|
|
|
printList() { |
|
|
|
|
|
this.printListVisible = true; |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.userPrintList.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 帮助文档列表 |
|
|
|
|
|
helpFileList() { |
|
|
|
|
|
let fileMappingDto = { |
|
|
|
|
|
fileId: '', |
|
|
|
|
|
fileType: '功能帮助文档', |
|
|
|
|
|
orderRef1: this.$route.meta.menuId, |
|
|
|
|
|
orderRef2: '', |
|
|
|
|
|
orderRef3: '', |
|
|
|
|
|
|
|
|
// 获取待审核的是工具申请单数量 |
|
|
|
|
|
getReviewToolCount() { |
|
|
|
|
|
getReviewToolCount(this.queryToolReview).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.pending.pendingReview = data.data |
|
|
} |
|
|
} |
|
|
this.helpFileVisible = true; |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.fileListView.init(fileMappingDto) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取多语言列表 |
|
|
|
|
|
getLanguageList() { |
|
|
|
|
|
searchSysLanguage({languageCode: this.$i18n.locale}).then(({data}) => { |
|
|
|
|
|
this.languageList = data.rows |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取页面多语言数据 |
|
|
|
|
|
getFunctionButtonList() { |
|
|
|
|
|
let queryButton = { |
|
|
|
|
|
functionId: 'systemInformation', |
|
|
|
|
|
tableId: 'systemInformation', |
|
|
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
|
|
objectType: 'label' |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 打印机列表 |
|
|
|
|
|
printList() { |
|
|
|
|
|
this.printListVisible = true; |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.userPrintList.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 帮助文档列表 |
|
|
|
|
|
helpFileList() { |
|
|
|
|
|
let fileMappingDto = { |
|
|
|
|
|
fileId: '', |
|
|
|
|
|
fileType: '功能帮助文档', |
|
|
|
|
|
orderRef1: this.$route.meta.menuId, |
|
|
|
|
|
orderRef2: '', |
|
|
|
|
|
orderRef3: '', |
|
|
|
|
|
} |
|
|
|
|
|
this.helpFileVisible = true; |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.fileListView.init(fileMappingDto) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取多语言列表 |
|
|
|
|
|
getLanguageList() { |
|
|
|
|
|
searchSysLanguage({languageCode: this.$i18n.locale}).then(({data}) => { |
|
|
|
|
|
this.languageList = data.rows |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取页面多语言数据 |
|
|
|
|
|
getFunctionButtonList() { |
|
|
|
|
|
let queryButton = { |
|
|
|
|
|
functionId: 'systemInformation', |
|
|
|
|
|
tableId: 'systemInformation', |
|
|
|
|
|
languageCode: this.$i18n.locale, |
|
|
|
|
|
objectType: 'label' |
|
|
|
|
|
} |
|
|
|
|
|
searchFunctionButtonList(queryButton).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.pageLanguage = data.data |
|
|
} |
|
|
} |
|
|
searchFunctionButtonList(queryButton).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.pageLanguage = data.data |
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 注3:增加语言切换函数 |
|
|
|
|
|
switch_the_language(val) { |
|
|
|
|
|
localStorage.setItem('locale', val) |
|
|
|
|
|
location.reload() |
|
|
|
|
|
}, |
|
|
|
|
|
// 修改密码 |
|
|
|
|
|
updatePasswordHandle() { |
|
|
|
|
|
this.updatePassowrdVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.updatePassowrd.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 修改用户默认语言 |
|
|
|
|
|
updateLanguageHandle() { |
|
|
|
|
|
this.updateLanguageVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.updateLanguage.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 退出 |
|
|
|
|
|
logoutHandle() { |
|
|
|
|
|
this.$confirm(`确定进行[退出]操作?`, '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.$http({ |
|
|
|
|
|
url: this.$http.adornUrl('/sys/logout'), |
|
|
|
|
|
method: 'post', |
|
|
|
|
|
data: this.$http.adornData() |
|
|
|
|
|
}).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
clearLoginInfo() |
|
|
|
|
|
this.$router.push({name: 'login'}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
|
|
|
// 注3:增加语言切换函数 |
|
|
|
|
|
switch_the_language(val) { |
|
|
|
|
|
localStorage.setItem('locale', val) |
|
|
|
|
|
location.reload() |
|
|
|
|
|
}, |
|
|
|
|
|
// 修改密码 |
|
|
|
|
|
updatePasswordHandle() { |
|
|
|
|
|
this.updatePassowrdVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.updatePassowrd.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 修改用户默认语言 |
|
|
|
|
|
updateLanguageHandle() { |
|
|
|
|
|
this.updateLanguageVisible = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.updateLanguage.init() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 退出 |
|
|
|
|
|
logoutHandle() { |
|
|
|
|
|
this.$confirm(`确定进行[退出]操作?`, '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.$http({ |
|
|
|
|
|
url: this.$http.adornUrl('/sys/logout'), |
|
|
|
|
|
method: 'post', |
|
|
|
|
|
data: this.$http.adornData() |
|
|
|
|
|
}).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
clearLoginInfo() |
|
|
|
|
|
this.$router.push({name: 'login'}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
this.getLanguageList() |
|
|
|
|
|
this.getFunctionButtonList() |
|
|
|
|
|
this.getReviewToolCount() |
|
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
this.getLanguageList() |
|
|
|
|
|
this.getFunctionButtonList() |
|
|
|
|
|
this.getReviewToolCount() |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
<style lang="scss"> |
|
|
.icon-svg { |
|
|
|
|
|
width: 2em; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.icon-svg { |
|
|
|
|
|
width: 2em; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.el-menu--collapse .el-menu .el-submenu, .el-menu--popup, .el-menu-item { |
|
|
|
|
|
min-width: 50px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.el-menu--collapse .el-menu .el-submenu, .el-menu--popup, .el-menu-item { |
|
|
|
|
|
min-width: 50px !important; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.site-navbar__brand-lg, .site-navbar__brand-mini { |
|
|
|
|
|
margin: 0 5px; |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
margin-left: -45px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.site-navbar__brand-lg, .site-navbar__brand-mini { |
|
|
|
|
|
margin: 0 5px; |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
margin-left: -45px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.el-menu--horizontal > .el-menu-item { |
|
|
|
|
|
color: #3b4249; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.el-menu--horizontal > .el-menu-item { |
|
|
|
|
|
color: #3b4249; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|