|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
{ prop: 'sn', label: '序号', width: 60 },
|
|
|
{ prop: 'suoShuXiTong', label: '所属子系统', width: 100 },
|
|
|
{
|
|
|
- prop: 'gongNengMokuai',
|
|
|
+ prop: 'gongNengMoKuai',
|
|
|
label: '所属功能模块',
|
|
|
width: fieldWidth
|
|
|
},
|
|
|
@@ -183,67 +183,7 @@ export default {
|
|
|
}, 200)
|
|
|
},
|
|
|
methods: {
|
|
|
- // getGuide ({ parameters, requestPage, sorts }) {
|
|
|
- // // 获取查询角色信息
|
|
|
- // let roleParams = ''
|
|
|
- // let aboutMeParams = ''
|
|
|
- // const range = {
|
|
|
- // aboutMe: [],
|
|
|
- // sponsor: [],
|
|
|
- // review: [],
|
|
|
- // approve: []
|
|
|
- // }
|
|
|
- // const sortField = {
|
|
|
- // TABLE_NO_: 'biao_dan_bian_hao'
|
|
|
- // }
|
|
|
- // let sortParams = 'sn_ + 0 asc'
|
|
|
- // if (sorts && sorts.length) {
|
|
|
- // sortParams = sorts.map(i => `${sortField[i.field]} ${i.order}`).join(',')
|
|
|
- // }
|
|
|
- // this.role.forEach(i => {
|
|
|
- // range.aboutMe.push(`bian_zhi_jiao_se_ like '%${i.id}%' or shen_he_jiao_se_ like '%${i.id}%' or shen_pi_jiao_se_ like '%${i.id}%'`)
|
|
|
- // range.sponsor.push(`bian_zhi_jiao_se_ like '%${i.id}%'`)
|
|
|
- // range.review.push(`shen_he_jiao_se_ like '%${i.id}%'`)
|
|
|
- // range.approve.push(`shen_pi_jiao_se_ like '%${i.id}%'`)
|
|
|
- // })
|
|
|
- // parameters.forEach(item => {
|
|
|
- // if (item.key === 'range' && item.value !== 'all') {
|
|
|
- // aboutMeParams = ` and (${range[item.value].join(' or ')})`
|
|
|
- // }
|
|
|
- // if (item.key === 'role') {
|
|
|
- // roleParams = ` and (bian_zhi_jiao_se_ like '%${item.value}%')`
|
|
|
- // }
|
|
|
- // })
|
|
|
- // // 获取查询字段
|
|
|
- // let params = parameters.filter(i => i.key !== 'role' && i.key !== 'range').reduce((acc, curr) => {
|
|
|
- // return `${acc} and ${curr.key} like '%${curr.value}%'`
|
|
|
- // }, '')
|
|
|
- // params = params + aboutMeParams + roleParams
|
|
|
- // // and di_dian_ = '${level}'
|
|
|
- // const sql = `select sn_ as sn, suo_shu_xi_tong_ as sysName, gong_neng_mo_kuai as module, biao_dan_ming_che as tableName, biao_dan_bian_hao as tableNo, tian_xie_shi_ji_ as timing, shi_wu_lei_xing_ as taskType, cheng_xu_wen_jian as fileName, bian_zhi_ren_ as creator, shen_he_ren_ as reviewer, shen_pi_ren_ as approver, ye_mian_lu_jing_ as path, zi_yuan_lu_jing_ as res from t_bdbhpzb where sn_ + 0 > 0 ${params} order by ${sortParams}`
|
|
|
- // const { pageNo = 1, limit = 15 } = requestPage || {}
|
|
|
- // return new Promise((resolve, reject) => {
|
|
|
- // this.$common.request('sql', sql).then(res => {
|
|
|
- // const { data = [] } = res.variables || {}
|
|
|
- // const page = {
|
|
|
- // limit,
|
|
|
- // page: pageNo,
|
|
|
- // totalCount: data.length,
|
|
|
- // totalPages: Math.ceil(data.length / limit)
|
|
|
- // }
|
|
|
- // const result = {
|
|
|
- // data: {
|
|
|
- // dataResult: data.slice((pageNo - 1) * limit, pageNo * limit),
|
|
|
- // pageResult: page
|
|
|
- // }
|
|
|
- // }
|
|
|
- // resolve(result)
|
|
|
- // }).catch(error => {
|
|
|
- // reject(error)
|
|
|
- // })
|
|
|
- // })
|
|
|
- // },
|
|
|
- tableRowClassName({ row, rowIndex }) {
|
|
|
+ tableRowClassName({ rowIndex }) {
|
|
|
if (rowIndex % 2 === 1) return 'warning-row'
|
|
|
return 'success-row'
|
|
|
},
|
|
|
@@ -278,19 +218,6 @@ export default {
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
- // // 获取表格数据
|
|
|
- // getData () {
|
|
|
- // this.loading = true
|
|
|
- // const pageParams = this.pagination && this.pagination.page ? this.pagination : this.defaultPagination
|
|
|
- // this.getGuide(this.getFormatParams(null, pageParams)).then(response => {
|
|
|
- // const { dataResult, pageResult } = response.data
|
|
|
- // this.listData = dataResult
|
|
|
- // this.pagination = pageResult || {}
|
|
|
- // this.loading = false
|
|
|
- // }).catch(() => {
|
|
|
- // this.loading = false
|
|
|
- // })
|
|
|
- // },
|
|
|
/**
|
|
|
* 获取格式化参数
|
|
|
*/
|
|
|
@@ -368,11 +295,6 @@ export default {
|
|
|
ActionUtils.setPagination(this.pagination, page)
|
|
|
this.loadData()
|
|
|
},
|
|
|
- // getFormatParams (v, page) {
|
|
|
- // const params = this.$refs.guide ? this.$refs.guide.getSearcFormData() : {}
|
|
|
- // const pageParams = { ...page, limit: 100 }
|
|
|
- // return ActionUtils.formatParams(params, pageParams, this.sorts)
|
|
|
- // },
|
|
|
// 处理表格点击事件
|
|
|
handleRowClick(data) {
|
|
|
const { ziYuanLuJing = '' } = data
|