|
@@ -178,14 +178,13 @@ export default {
|
|
|
async mounted () {
|
|
|
//获取新闻列表
|
|
|
this.getNewList()
|
|
|
- this.getNoticeList()
|
|
|
- noticeNumber().toPromise().then(res => {
|
|
|
- const { task = 0, remind = 0, overdue = 0, news = 0 } = res
|
|
|
- this.number.task = task
|
|
|
- this.number.remind = remind
|
|
|
- this.number.overdue = overdue
|
|
|
- this.number.news = news
|
|
|
- })
|
|
|
+ // noticeNumber().toPromise().then(res => {
|
|
|
+ // const { task = 0, remind = 0, overdue = 0, news = 0 } = res
|
|
|
+ // this.number.task = task
|
|
|
+ // this.number.remind = remind
|
|
|
+ // this.number.overdue = overdue
|
|
|
+ // this.number.news = news
|
|
|
+ // })
|
|
|
if (this.vesselBankFlag !== 'V') {
|
|
|
EventBus.$emit('addShipScript', () => {
|
|
|
this.initShipMap()
|
|
@@ -196,19 +195,19 @@ export default {
|
|
|
}, 900)
|
|
|
|
|
|
this.showBlockList = []
|
|
|
- if (this.vesselBankFlag === 'V') {
|
|
|
- this.$refs.noticeList.style.width = 'calc(50% - 7px)'
|
|
|
- this.$refs.newsList.style.width = 'calc(50% - 7px)'
|
|
|
- } else {
|
|
|
- this.showBlockList = []
|
|
|
- this.blockList[1].flag = false
|
|
|
- this.$refs.noticeList.style.width = 'calc(50% - 7px)'
|
|
|
- this.$refs.newsList.style.width = 'calc(50% - 7px)'
|
|
|
- if (this.userSetting['shipMap'] && this.userSetting['shipMap'][0].showFlag) {
|
|
|
- this.showBlockList.push('船舶动态')
|
|
|
- this.blockList[1].flag = true
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (this.vesselBankFlag === 'V') {
|
|
|
+ // this.$refs.noticeList.style.width = 'calc(50% - 7px)'
|
|
|
+ // this.$refs.newsList.style.width = 'calc(50% - 7px)'
|
|
|
+ // } else {
|
|
|
+ // this.showBlockList = []
|
|
|
+ // this.blockList[1].flag = false
|
|
|
+ // this.$refs.noticeList.style.width = 'calc(50% - 7px)'
|
|
|
+ // this.$refs.newsList.style.width = 'calc(50% - 7px)'
|
|
|
+ // if (this.userSetting['shipMap'] && this.userSetting['shipMap'][0].showFlag) {
|
|
|
+ // this.showBlockList.push('船舶动态')
|
|
|
+ // this.blockList[1].flag = true
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
watch: {
|
|
|
getLanguage: function () {
|
|
@@ -319,17 +318,17 @@ export default {
|
|
|
toSetShow () {
|
|
|
this.showBlockList = []
|
|
|
this.setFlag = true
|
|
|
- getStaffHomeShowList({
|
|
|
- staffId: sessionStorage.getItem('ws-pf_userId')
|
|
|
- }).toPromise().then(data => {
|
|
|
- for (let i = 0; i < data.length; i++) {
|
|
|
- if (data[i].typeId === 'shipMap' && data[i].showFlag) {
|
|
|
- this.showBlockList.push('船舶动态')
|
|
|
- } else {
|
|
|
- this.showBlockList = []
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // getStaffHomeShowList({
|
|
|
+ // staffId: sessionStorage.getItem('ws-pf_userId')
|
|
|
+ // }).toPromise().then(data => {
|
|
|
+ // for (let i = 0; i < data.length; i++) {
|
|
|
+ // if (data[i].typeId === 'shipMap' && data[i].showFlag) {
|
|
|
+ // this.showBlockList.push('船舶动态')
|
|
|
+ // } else {
|
|
|
+ // this.showBlockList = []
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
},
|
|
|
|
|
|
toMap () {
|
|
@@ -372,13 +371,13 @@ export default {
|
|
|
},
|
|
|
//获取新闻
|
|
|
getNewList () {
|
|
|
- // let data = {
|
|
|
- // currentPage: 1,
|
|
|
- // pageSize: 2,
|
|
|
- // loginUserId: sessionStorage.getItem('ws-pf_userId'),
|
|
|
- // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- // releaseFlag: 0
|
|
|
- // }
|
|
|
+ let data = {
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 2,
|
|
|
+ loginUserId: sessionStorage.getItem('ws-pf_userId'),
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ releaseFlag: 0
|
|
|
+ }
|
|
|
// queryHomePage(data).toPromise().then(resNewList => {
|
|
|
// for (let i of resNewList) {
|
|
|
// i.content = '<p>' + i.content.replace(/<[^>]+>/g, '') + '</p>'
|
|
@@ -386,9 +385,6 @@ export default {
|
|
|
// this.newList = resNewList
|
|
|
// for (let i of this.newList) {
|
|
|
// if (i.ossCoverUrl && i.ossCoverUrl.length > 0) {
|
|
|
- // getFileList({ appendixIds: i.ossCoverUrl }).toPromise().then(res => {
|
|
|
- // this.$set(i, 'imgUrl', res[0].appendixPath)
|
|
|
- // })
|
|
|
// } else {
|
|
|
// this.$set(
|
|
|
// i,
|
|
@@ -400,25 +396,25 @@ export default {
|
|
|
// })
|
|
|
},
|
|
|
//获取通知通函
|
|
|
- getNoticeList () {
|
|
|
- let pagesize = Math.floor((this.$refs.noticeList.clientHeight - 44) / 80)
|
|
|
- let data = {
|
|
|
- currentPage: 1,
|
|
|
- pageSize: pagesize || 3,
|
|
|
- vesselDeptId:
|
|
|
- sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V'
|
|
|
- ? sessionStorage.getItem('ws-pf_vesselId')
|
|
|
- : sessionStorage.getItem('ws-pf_deptId'),
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId')
|
|
|
- }
|
|
|
- // debugger
|
|
|
- // TODO: 【此处有问题】接口变更的不对
|
|
|
- queryCircularManagementReceiveList(data)
|
|
|
- .toPromise()
|
|
|
- .then(response => {
|
|
|
- this.noticeList = response.records
|
|
|
- })
|
|
|
- },
|
|
|
+ // getNoticeList () {
|
|
|
+ // let pagesize = Math.floor((this.$refs.noticeList.clientHeight - 44) / 80)
|
|
|
+ // let data = {
|
|
|
+ // currentPage: 1,
|
|
|
+ // pageSize: pagesize || 3,
|
|
|
+ // vesselDeptId:
|
|
|
+ // sessionStorage.getItem('ws-pf_vesselBankFlag') === 'V'
|
|
|
+ // ? sessionStorage.getItem('ws-pf_vesselId')
|
|
|
+ // : sessionStorage.getItem('ws-pf_deptId'),
|
|
|
+ // compId: sessionStorage.getItem('ws-pf_compId')
|
|
|
+ // }
|
|
|
+ // // debugger
|
|
|
+ // // TODO: 【此处有问题】接口变更的不对
|
|
|
+ // queryCircularManagementReceiveList(data)
|
|
|
+ // .toPromise()
|
|
|
+ // .then(response => {
|
|
|
+ // this.noticeList = response.records
|
|
|
+ // })
|
|
|
+ // },
|
|
|
// 获取船舶状态
|
|
|
getNaviStatusStr (t) {
|
|
|
var array = [
|