【修改】修改流程传参 修改名称样式

This commit is contained in:
zhoulingpo
2023-04-24 19:24:24 +08:00
parent 7f675d424b
commit 95b35ed77a
14 changed files with 196 additions and 127 deletions
@@ -69,7 +69,15 @@
export default {
name: 'AuditOperation',
props: ['query'],
props: {
isDisable:{
type:Boolean,
default:false
},
examine:{
type:Object
}
},
data () {
return {
@@ -93,8 +101,8 @@ export default {
},
created () {
// 判断穿过来的query里的参数 是不是查看
if (this.query.isViewDetails && this.query.isViewDetails === 1) {
this.examineForm = this.query
if (this.isDisable) {
this.examineForm = this.examine
this.formdisableflag = true
}
},
@@ -115,9 +115,9 @@ export default {
const name = []
const ids = []
this.alreadyData.forEach(item => {
if (this.checkIds.indexOf(item.id) > -1) {
if (this.checkIds.indexOf(item.reportId) > -1) {
name.push(item.name)
ids.push(item.id)
ids.push(item.reportId)
}
})
this.checkList = this.checkList.filter(item => {
@@ -157,7 +157,11 @@ export default {
// 列表
reportList () {
this.$api.permissionProcess.getReportLisy({ ...this.q, ...this.searchForm,usid:this.$store.getters.userInfo.USID }).then(({ data }) => {
this.tableData = data.records
this.tableData = data.records.map(item=>{
item.reportId=item['id']
delete item['id']
return item
})
this.total = data.total
this.q.pageNo = data.current
this.q.pageSize = data.size
@@ -184,14 +188,14 @@ export default {
const records = this.$refs.xTable.getCheckboxRecords()
this.checkList = records
this.checkIds = records.map(item => {
return item.id
return item.reportId
})
},
selectChangeEvent ({ checked }) {
const records = this.$refs.xTable.getCheckboxRecords()
this.checkList = records
this.checkIds = records.map(item => {
return item.id
return item.reportId
})
}
}