|
|
@@ -185,7 +185,9 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
attendanceData: [],
|
|
|
scheduleShift: [],
|
|
|
todaySchedule: [],
|
|
|
- tempSelectedValue: ''
|
|
|
+ tempSelectedValue: '',
|
|
|
+ searchText: '',
|
|
|
+ keysList: []
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -201,8 +203,19 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
// this.scheduleData = await this.getScheduleData()
|
|
|
this.todaySchedule = await this.getTodaySchedule()
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 受控文件查阅模块搜索
|
|
|
+ searchFile () {
|
|
|
+ this.$router.push({ path: '/xxgl/nbwj', query: { searchText: this.searchText } })
|
|
|
+ },
|
|
|
+ goDetail(nodeInfo) {
|
|
|
+ if(!nodeInfo){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$router.push({ path: '/xxgl/nbwj', query: {info: JSON.parse(JSON.stringify(nodeInfo)), id:nodeInfo.id} })
|
|
|
+ },
|
|
|
fetchData(columns, params = {}) {
|
|
|
this.loading = true
|
|
|
this.data = []
|
|
|
@@ -252,7 +265,14 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
this.quickNavigationData = data
|
|
|
})
|
|
|
} else {
|
|
|
- getData(param, params)
|
|
|
+ const { first = '', second = '' } = this.$store.getters.level || {}
|
|
|
+ // console.log('11111111', param, params, typeof params)
|
|
|
+ let type = true
|
|
|
+ if(param.alias == 'newmk'){
|
|
|
+ type = false
|
|
|
+ params['diDian'] = second || first
|
|
|
+ }
|
|
|
+ getData(param, params, type)
|
|
|
.then((res) => {
|
|
|
let { data } = res || {}
|
|
|
if (Utils.isNotEmpty(data) && Utils.isString(data)) {
|
|
|
@@ -266,6 +286,9 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
Bus.$emit('getMessageCount', this.totalCount)
|
|
|
}
|
|
|
this.variables = res.variables
|
|
|
+ if(param.alias == 'newmk'){
|
|
|
+ this.keysList = Object.keys(this.variables)
|
|
|
+ }
|
|
|
this.loading = false
|
|
|
})
|
|
|
.catch((e) => {
|
|
|
@@ -273,6 +296,10 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 过滤日程提醒数据
|
|
|
filterAlertData(data, dayNumber = 3) {
|
|
|
if (dayNumber <= 0) return
|
|
|
@@ -487,7 +514,6 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
})
|
|
|
},
|
|
|
handleUnreadMessage(id, tableId, tableName) {
|
|
|
- console.log('99999999')
|
|
|
this.$emit('action-event', 'unRead', { id, tableId, tableName })
|
|
|
},
|
|
|
// 处理全屏
|
|
|
@@ -502,7 +528,8 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
myDiscard: 'lhjcgl/ypgqcl',
|
|
|
notice: 'tygl/tzgg',
|
|
|
myFacility: 'sshjgl/sshjjk/sshjkzzl',
|
|
|
- quickNavigation: 'xtgl/xtsjpz/tyglpz/kjdhpz'
|
|
|
+ quickNavigation: 'xtgl/xtsjpz/tyglpz/kjdhpz',
|
|
|
+ moreFile: 'xxgl/nbwj' //受控文件查阅
|
|
|
}
|
|
|
if (menuMap[url]) {
|
|
|
const alias = menuMap[url].split('/')[0]
|
|
|
@@ -693,7 +720,6 @@ export function buildComponent(name, column, preview, vm) {
|
|
|
}
|
|
|
|
|
|
})
|
|
|
- console.log(todaySchedule)
|
|
|
resolve(todaySchedule)
|
|
|
})
|
|
|
.catch((error) => {
|