From 2df883fcbed176f83d8d144fd007e7f72fcb54d6 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 01 二月 2024 17:21:24 +0800
Subject: [PATCH] 修改
---
web/src/views/layout/main-navbar.vue | 404 ---------------------------------------------------------
1 files changed, 0 insertions(+), 404 deletions(-)
diff --git a/web/src/views/layout/main-navbar.vue b/web/src/views/layout/main-navbar.vue
index 5337177..eb6e968 100644
--- a/web/src/views/layout/main-navbar.vue
+++ b/web/src/views/layout/main-navbar.vue
@@ -22,9 +22,6 @@
<el-menu-item index="3" @click="refresh()">
<i class="el-icon-refresh"></i>
</el-menu-item>
- <el-menu-item index="4" >
- <span style="font-size: 16px">鑱旂郴浜�: 鏉ㄥ嚡,15072707727</span>
- </el-menu-item>
</el-menu>
<!-- <el-form :inline="true" @submit.native.prevent @keyup.enter.native="search()" style="margin-right: 5px;">-->
<!-- <el-form-item>-->
@@ -39,13 +36,6 @@
<!-- <el-menu-item>-->
<!-- <local-ship-selector v-model="localShip" placeholder="鑸峰彿"/>-->
<!-- </el-menu-item>-->
- <el-menu-item v-if="help_show" index="4">
- <el-badge :value="feedCount" class="item" :hidden="!isAdmin">
- <el-tooltip class="item" effect="dark" content="鎰忚鍙嶉" placement="bottom">
- <i @click="toFeedBack()" style="font-size: 24px;margin-top:22px" class="el-icon-edit-outline"></i>
- </el-tooltip>
- </el-badge>
- </el-menu-item>
<!-- <el-menu-item>-->
<!-- <el-badge :value="feedCount" class="item" :hidden="!isAdmin">-->
<!-- <el-button @click="toFeedBack()" type="text">鎰忚鍙嶉</el-button>-->
@@ -182,7 +172,6 @@
<!-- </el-tab-pane>-->
<!-- </el-tabs>-->
<!-- </el-dialog>-->
- <sysFeedBack ref="sysFeedBack" @refreshDataList="getFeedCount"></sysFeedBack>
</div>
</template>
@@ -269,234 +258,6 @@
isAdmin:false
}
},
- computed: {
- systemList() {
- return [
- {
- permission: ['menu:technicalConditions'],
- path: 'http://' +
- location.hostname +
- ':8080/technicalConditions/boatSystemStructure',
-/* ?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),*/
- key: 'technicalConditions',
- text: '鎶�鏈姸鎬�'
- },
- {
- permission: ['menu:replaceProblem'],
- path: 'http://' +
- location.hostname +
- ':8080/replaceProblem/replaceProjectHomePage',
- // ?username=' +
- // Cookies.get('username') + '&loginType=' +
- // Cookies.get('loginType') + '&token=' +
- // Cookies.get('singleSignToken') + '&area=' +
- // Cookies.get('area'),
- key: 'replaceProblem',
- text: '鏀规崲瑁�'
- },
- {
- permission: ['menu:jszl'],
- path: 'http://' +
- location.hostname +
- ':1811/login?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- text: '鎶�鏈祫鏂�',
- },
- {
- permission: ['menu:smj'],
- path:
- 'http://' +
- location.hostname + ':8020/#/single?' + 'username=' +
- Cookies.get('username') + '&system=smj' +
- '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- text: '瀵垮懡浠舵暟鎹�'
- },
- {
- permission: ['menu:ajqc'],
- path:
- 'http://' +
- location.hostname +
- ':1812/login?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- text: '鍣ㄦ潗鏁版嵁',
- disabled: !(Cookies.get('area') === 'O')
- },
- {
- permission: ['menu:ajqc'],
- path:
- 'http://' +
- location.hostname +
- ':1800/login?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- text: '鍣ㄦ潗鏁版嵁',
- disabled: !(Cookies.get('area') === '1')
- },
- {
- permission: ['menu:syajqc'],
- path:
- 'http://' +
- location.hostname +
- ':1813/login?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- text: '鍣ㄦ潗鏁版嵁',
- disabled: !(Cookies.get('area') === '2')
- },
- {
- permission: ['menu:qddjxl'],
- path: 'http://' +
- location.hostname +
- ':8080/qdGradeRepair/maintenanceHome?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'qdGradeRepair',
- text: '绛夌骇淇悊',
- disabled: !(Cookies.get('area') === '1')
- },
- {
- permission: ['menu:qdlqx'],
- path: 'http://' +
- location.hostname +
- ':8080/qdRepair/qdlndex?username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'qdRepair',
- text: '涓存姠淇�',
- disabled: !(Cookies.get('area') === '1')
- },
- {
- permission: ['menu:sydjxl'],
- path: 'http://' +
- location.hostname + ':8020/#/single?' + 'username=' +
- Cookies.get('username') + '&system=wxxt' +
- '&loginType=' +
- Cookies.get('loginType') +
- '&token=' + Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'gradeRepair',
- text: '淇悊鏁版嵁',
- disabled: !(Cookies.get('area') === 'O')
- },
- {
- permission: ['menu:sydjxl'],
- path:
- 'http://' +
- location.hostname + ':8020/#/single?' + 'username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&system=djxl' +
- '&token=' + Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'gradeRepair',
- text: '绛夌骇淇悊',
- disabled: !(Cookies.get('area') === '2')
- },
- {
- permission: ['menu:peixun'],
- path:
- 'http://' +
- location.hostname + ':8221/single?' + 'username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') + '&token=' +
- Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'peixun',
- text: '鍩硅绯荤粺'
- },
- {
- permission: ['menu:preventivemaintenance'],
- path: 'http://' +
- location.hostname + ':8080/preventiveMaintenance/troopProject?username=' +
- Cookies.get('username') +
- '&loginType=' +
- Cookies.get('loginType') +
- '&token=' + Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'preventiveMaintenance',
- text: '棰勯槻鎬х淮淇�'
- },
- // {
- // permission: ['menu:checkManage'],
- // path: '/stateManagement/manage', key: 'stateManagement',
- // text: '搴旀�ユ帓鏌�'
- // },
- {
- permission: ['menu:pinggu'],
- path:
- 'http://' +
- location.hostname + ':8701/user/ssoLogin?' + 'username=' +
- Cookies.get('username') + '&loginType=' +
- Cookies.get('loginType') +
- '&token=' + Cookies.get('singleSignToken') + '&area=' +
- Cookies.get('area'),
- key: 'pinggu',
- disabled: Cookies.get('area') === '2',
- text: '鎶�鏈姸鎬佽瘎浼�'
- }
- // ,
- // {
- // permission: 0,
- // path: '/qualityProblem/inhandle', key: 'qualityProblem',
- // text: '璐ㄩ噺闂绠$悊'
- // },
- // {
- // permission: ['menu:feedback'], path: ' /feedback/knowledge', key: 'feedback',
- // text: '缁忛獙鍙嶉',
- // img: require('@/assets/image/select/situationlmg/21.png'),
- // imgdisabled: require('@/assets/image/select/situationImg/21.disabled.png')
- // },
- // {
- // permission: ['menu:system'], key: 'system',
- // text: '绯荤粺閰嶇疆'
- // },
- // {
- // permission: ['menu:workflow'], key: 'workflow',
- // text: '鍗忓悓鍔炲叕',
- // img: require('@/assets/image/select/situationlmg/22.png'),
- // imgdisabled: require('@/assets/image/select/situationlmg/22.disabled.png')
- // }
- ]
- },
- systemName() {
- if (Cookies.get('system') == 'djxl') {
- return this.systemList[10].text
- } else if (Cookies.get('system') == 'smj'){
- return this.systemList[3].text
- } else if (Cookies.get('system') == 'wxxt'){
- return this.systemList[9].text
- }
- }
- },
- // components: {
- // // UpdatePassword,
- // InfiniteLoading,
- // TableStructMaintain,
- // TableRelation,
- // QuestionSolution,
- // DatabaseTableInfo,
- // sysFeedBack
- // },
created() {
let that = this
this.getUserRoleInfo()
@@ -504,7 +265,6 @@
that.isOpen = true
})
//this.systemList = window.SITE_CONFIG['menuList']
- console.log(this.systemList, 'this.systemList')
this.loginType=Cookies.get('loginType')
// Cookies.get('loginType')
},
@@ -542,7 +302,6 @@
this.$EventBus.$on('formSubmit', (msg) => {
this.msg = msg
- this.getOneClassFile()
// console.log(msg)
})
this.$EventBus.$on('reLogin', () => {
@@ -576,29 +335,8 @@
})*/
this.getTaskCount()
- this.getFeedCount()
- this.getOneClassFile()
// console.log(this.$store.state.user,'this.$store.state.user.debug navbar6666666666')
- if (!this.$store.state.debug) {
- setInterval(this.getOneClassFile, 60000)
- }
- if (this.$store.state.user.isCjRole) {
- this.$http.get('/task/taskCenter/page').then(res => {
- console.log(res.data, 'res.data鍢垮樋鍢�')
- let data = res.data
- for (let val of data) {
- if (val.stepMarker == 'work_cjtx') {
- this.$http.get(`/task/planTask/${val.bizId}`).then(res => {
- let DiffDay = this.getDiffDay(res.data.checkDate, new Date())
- if (DiffDay <= 7 && DiffDay > -1) {
- return this.$tip.confirm('宸ョ▼椤圭洰' + val.topic + '鐨勭' + res.data.startPeriod + '鏈熺殑鍛ㄨ鍒掍换鍔″鏍告椂闂村墿浣�' + DiffDay + '澶╋紝璇峰敖蹇畬鎴愪换鍔″~鍐欙紒')
- }
- })
- }
- }
- })
- }
this.isAdmin = this.$store.state.user.isAdmin
},
methods: {
@@ -609,29 +347,6 @@
}else if(this.system==='djxl') {
window.open('./help/djxlVideo/index.html','_blank');
}
- },
- async load($state) {
- //璋冪敤鑾峰彇琛ㄦ牸鏁版嵁鐨勬帴鍙�
- await this.$http.get(`/task/OneClassFile/fileNotice?pageIndex=${this.pageIndex}&pageSize=${this.pageSize}`).then(res => {
- console.log(res, 'res')
- if (res && res.success) {
- if (this.pageIndex === 1) {
- this.gridData = res.data //棣栧厛鍔犺浇鍚庣杩斿洖鐨勭涓�椤电殑鏁版嵁鏄剧ず鍦ㄨ〃鏍间腑
- $state.complete() //鍔犺浇瀹屾垚鐨勭姸鎬�
- } else {
- if (!res.data || res.data.length < this.pageSize) {
- $state.complete() //鍔犺浇瀹屾垚鐨勭姸鎬�
- } else {
- this.gridData = this.gridData.concat(res.data) //灏嗗悗绔柊杩斿洖鐨勬暟鎹嫾鎺ュ湪鍘熻〃鏍煎悗闈�
- $state.loaded() //鍔犺浇涓殑鐘舵��
- }
- }
- this.pageIndex++ //榧犳爣鍦ㄨ〃鏍煎簳閮ㄦ粦鍔ㄦ椂锛岀炕椤碉紝鍗冲綋鍓嶉〉鏁�+1
- console.log('123333333333')
- } else {
- $state.complete() //鍔犺浇瀹屾垚鐨勭姸鎬�
- }
- })
},
getDiffDay(date_1, date_2) {
// 璁$畻涓や釜鏃ユ湡涔嬮棿鐨勫樊鍊�
@@ -652,16 +367,6 @@
return this.$message.error(res.msg)
}
this.userRoleInfo = res.data
- if(this.$store.state.user.isZcRole ||
- this.userRoleInfo.roleName=='鎬讳綋鎵�瑙掕壊' ||
- this.userRoleInfo.roleName=='浠h〃瀹よ鑹�' ||
- this.userRoleInfo.roleName=='鍔╃悊瑙掕壊'||
- this.userRoleInfo.roleName=='閮ㄩ暱瑙掕壊' ||
- this.userRoleInfo.roleName=='澶勯暱瑙掕壊'){
- this.$store.state.isGoToHome = true
- } else{
- this.$store.state.isGoToHome = false
- }
console.log(this.userRoleInfo, 'userRoleInfo')
}).catch(() => {
})
@@ -694,99 +399,8 @@
this.$router.push({name: 'login'})
}
},
- async addOneClassFile1() {
- let fileIds = ''
- for (let i = 0; i < this.gridData.length; i++) {
- if (this.gridData[i].code === 1) {
- fileIds = fileIds + this.gridData[i].fileId + ','
- }
- }
- let planId = {
- fileIds: fileIds,
- readerid: this.$store.state.user.id
- }
- let res = await this.$http.post(`/task/OneClassFile/documentReadingRecord`, planId)
- if (res.success) {
- this.getOneClassFile('allRead')
- }
- },
indexMethod(index) {
return index += 1
- },
- getJsfa(row) {
- let _this = this
- console.log(row, 'row')
- if (row.busiFieldName === '淇悊鎶�鏈柟妗�' || row.busiFieldName === '鎶�鏈柟妗�2') {
- _this.$router.push({
- name: 'sy-maintain-task-xqzb-repair-skill-scheme',
- params: {
- productId: row.productId
- }
- })
- }
- if (row.busiFieldName === '杩涘巶鍗忚') {
- _this.$router.push({
- name: 'sy-maintain-task-jcxl-JT-enteringPlant.vue',
- params: {
- productId: row.productId
- }
- })
- }
- if (row.busiFieldName === '缁煎悎楠屾敹') {
- _this.$router.push({
- name: 'sy-maintain-task-jyys-synthetical-test',
- params: {
- productId: row.productId
- }
- })
- }
- },
- async getOneClassFile(code) {
- //console.log(code)
- let res = await this.$http.get(`/task/OneClassFile/fileNotice?pageIndex=${this.pageIndex}&pageSize=${this.pageSize}`)
- if (res.success) {
- console.log(res.data)
- if(res.data.length>0){
- if(res.data[0].total!==undefined){
- this.taskCount = res.data[0].total
- }
- // res.data.sort((a, b) => new Date(b.createDate).getTime() - new Date(a.createDate).getTime())
- this.gridData = res.data
- if (code !== 'allRead') {
- this.pageIndex++
- }
- //console.log(this.gridData, 'this.gridData')
- }
- }
- },
- async addOneClassFile(row, code) {
- let fileIds = ''
- for (let i = 0; i < this.gridData.length; i++) {
- if (this.gridData[i].code === 1) {
- fileIds = fileIds + this.gridData[i].fileId + ','
-
- }
- }
- let planId
- if (code === 1) {
- planId = {
- fileid: row.fileId,
- readerid: this.$store.state.user.id
- }
- }
- if (code === 2) {
- planId = {
- fileIds: fileIds,
- readerid: this.$store.state.user.id
- }
- }
-
- // let userName = this.$store.state.user.id
- // console.log(userName,'userName userName')
- let res = await this.$http.post(`/task/OneClassFile/documentReadingRecord`, planId)
- if (res.success) {
- this.getOneClassFile()
- }
},
task(row) {
this.getRecordNumber(1)
@@ -815,28 +429,10 @@
// console.log(this.taskList, "12311")
}
},
- async getFeedCount() {
- let count = 0
- let res = await this.$http.get(`/sys/feedback/page`)
- if (res.success) {
- console.log(res.data, "feedback......")
- res.data.forEach((item) => {
- if (item.isFinish === null || item.isFinish === 'undefined') {
- count++
- }
- })
- this.feedCount = count
- }
- },
goToIndex() {
console.log(this.$store.state.user.roleName,'this.$store.state.user.roleName')
this.$router.push({name: 'TestDjxlHome',params: {roleName: this.$store.state.user.roleName}})
// window.console.log(this.$route.name)
- },
- async toFeedBack(){
- this.$nextTick(() => {
- this.$refs.sysFeedBack.$refs.dialog.init();
- })
},
themehangeHandle(val) {
this.themeColor = val
--
Gitblit v1.9.1