{{ null }}
+ :label="scope.row.USID">{{ null }}
@@ -138,7 +130,7 @@
@@ -193,8 +185,8 @@
size="medium"
closable
v-for="item in checkedList"
- :key="item.usid || item.userId || item.id"
- @close="handleRemove(item)">{{ item.uname || item.userName || item.name }}
+ :key="item.usid || item.USID || item.id"
+ @close="handleRemove(item)">{{ item.uname || item.USNAME || item.name }}
diff --git a/src/components/ProcessChooseTree.vue b/src/components/ProcessChooseTree.vue
index 9acbeac..eae4260 100644
--- a/src/components/ProcessChooseTree.vue
+++ b/src/components/ProcessChooseTree.vue
@@ -91,7 +91,7 @@
@select-all="selectionRowAll">
- {{null}}
+ {{null}}
@@ -136,7 +136,7 @@
- {{ row.departmentName || row.departName || row.orgName }}
+ {{ row.DEPARTMENT }}
@@ -155,8 +155,8 @@
size="medium"
closable
v-for="item in checkedList"
- :key="item.usid || item.userId || item.id"
- @close="handleRemove(item)">{{ item.uname || item.userName || item.name }}
+ :key="item.usid || item.USID || item.id"
+ @close="handleRemove(item)">{{ item.uname || item.USNAME || item.name }}
{
- checkedIdList.push(chkItem.usid || chkItem.userId || chkItem.id)
+ checkedIdList.push(chkItem.usid || chkItem.USID || chkItem.id)
})
this.$emit('confirm', this.checkedList, checkedIdList)
this.isVisible = false
@@ -348,8 +348,8 @@ export default {
this.$message.warning(`${this.config.attrName} 只能选择一个用户`)
} else {
const dataItem = this.checkedList[0]
- this.checkedName = dataItem.uname || dataItem.userName || dataItem.orgName
- const id = dataItem.id || dataItem.userId || dataItem.usid
+ this.checkedName = dataItem.uname || dataItem.USNAME || dataItem.orgName
+ const id = dataItem.id || dataItem.USID || dataItem.usid
this.$emit('input', id)
this.$emit('on-checked', this.checkedName)
this.$emit('on-dept', dataItem.pOrgId, dataItem.pOrgName)
@@ -382,7 +382,7 @@ export default {
this.searchForm = {
orgId: '',
orgName: '',
- userName: '',
+ USNAME: '',
uname: ''
}
this.getRoleAndUserByOrgIdPage()
@@ -399,18 +399,6 @@ export default {
* @author: chenxiaoxi
* @time: 2021-03-21 14:40:59
*/
- getOrg () {
- this.$http.get('sys/org/getTree', {}, { _this: this },
- res => {
- if (res.ok) {
- res.data.map(item => {
- item.name = item.orgName
- item.icon = 'static/images/dept.png'
- })
- this.orgZNodes = res.data
- }
- }, e => {})
- },
/**
* @description: 分页查询用户
@@ -426,21 +414,19 @@ export default {
}
this.$api.process.getRoleAndUserByOrgIdPage({
- page: this.page,
+ pageNo: this.page,
pageSize: this.pageSize,
- ...this.searchForm,
- roleName: this.roleName,
- notUserId: JSON.parse(localStorage.getItem('userInfo')).userId
+ ...this.searchForm
}).then(res => {
this.loading.loadData = false
this.loading.searching = false
if (res.ok) {
- this.total = res.data.count
- this.tableData = res.data.list
+ this.total = res.data.total
+ this.tableData = res.data.records
const checkedRow = []
this.tableData.map(dataItem => {
- const id = dataItem.usid || dataItem.userId || dataItem.orgId || dataItem.id
+ const id = dataItem.usid || dataItem.USID || dataItem.orgId || dataItem.id
if (this.checkedIdList.includes(id)) {
checkedRow.push(dataItem)
}
@@ -454,10 +440,10 @@ export default {
},
// handleRowSelect(selection, row) {
- // const id = row.userId || row.id
+ // const id = row.USID || row.id
// // 当前行选中/取消选中,其他相同用户(角色不同)被选中/取消选中
// this.tableData.map(dataItem => {
- // if (dataItem.userId === id || dataItem.id === id) {
+ // if (dataItem.USID === id || dataItem.id === id) {
// this.$refs['orgTable'].toggleRowSelection(dataItem, selection.includes(row))
// }
// })
@@ -467,14 +453,14 @@ export default {
// console.log(e)
this.checkedIdList = []
this.checkedList = []
- this.checkedIdList.push(e.userId)
+ this.checkedIdList.push(e.USID)
this.checkedList.push(e)
},
selectionRow (selection, row) {
const selected = selection.length && selection.indexOf(row) !== -1 // 为true时选中,为 0 时(false)未选中
if (selected) {
selection.map(selItem => {
- const id = selItem.userId
+ const id = selItem.USID
if (!this.checkedIdList.includes(id)) {
this.checkedIdList.push(id)
this.checkedList.push(row)
@@ -487,7 +473,7 @@ export default {
selectionRowAll (selection) {
if (selection.length > 0) {
selection.map(selItem => {
- const id = selItem.userId
+ const id = selItem.USID
if (!this.checkedIdList.includes(id)) {
this.checkedIdList.push(id)
this.checkedList.push(selItem)
@@ -503,7 +489,7 @@ export default {
handleSelectionChange (selection) {
if (selection.length) {
selection.map(selItem => {
- const id = selItem.usid || selItem.userId || selItem.orgId || selItem.id
+ const id = selItem.usid || selItem.USID || selItem.orgId || selItem.id
// 如果exclude不含当前行
if (!this.excludeIdList.includes(id)) {
// 如果下面列表没有,就填到下面列表里
@@ -525,7 +511,7 @@ export default {
handleRemove (user, type) {
let delIndex = -1
this.checkedList.map((checkedItem, chkIndex) => {
- if (user.userId === checkedItem.userId) {
+ if (user.USID === checkedItem.USID) {
delIndex = chkIndex
if (type !== 'table') {
this.checkedRow([checkedItem])
@@ -566,7 +552,7 @@ export default {
},
isSelectable (row, index) {
- return !this.excludeIdList.includes(row.userId)
+ return !this.excludeIdList.includes(row.USID)
},
handleChooseByDialog () {
@@ -574,8 +560,8 @@ export default {
this.checkedName = this.config.valueName || ''
if (this.config.value) {
this.checkedList = [{
- userId: this.config.value,
- userName: this.config.valueName
+ USID: this.config.value,
+ USNAME: this.config.valueName
}]
}
const idList = this.config.value === '' || !this.config.value ? [] : this.config.value.split(',')
@@ -658,8 +644,8 @@ export default {
const checkedList = []
idList.map((id, index) => {
checkedList.push({
- userId: id,
- userName: nameList[index],
+ USID: id,
+ USNAME: nameList[index],
orgId: idListDepartment[index],
orgName: nameListDepartment[index]
})
@@ -697,8 +683,8 @@ export default {
this.checkedName = this.config.valueName || ''
if (this.config.value !== '') {
this.checkedList = [{
- userId: this.config.value,
- userName: this.config.valueName
+ USID: this.config.value,
+ USNAME: this.config.valueName
}]
const idList = this.config.value === '' ? [] : this.config.value.split(',')
this.checkedIdList = [...idList]
@@ -710,14 +696,14 @@ export default {
const checkedList = []
idList.map((id, index) => {
checkedList.push({
- userId: id,
- userName: nameList[index]
+ USID: id,
+ USNAME: nameList[index]
})
})
this.checkedList = checkedList
}
- this.getOrg()
+ // this.getOrg()
// this.getRoleAndUserByOrgIdPage()
}
}
diff --git a/src/components/ProcessHeader.vue b/src/components/ProcessHeader.vue
index 19e32ee..78b0ebe 100644
--- a/src/components/ProcessHeader.vue
+++ b/src/components/ProcessHeader.vue
@@ -3,7 +3,7 @@
diff --git a/src/views/permissionApplication/components/AuditOperation.vue b/src/views/permissionApplication/components/AuditOperation.vue
index fd262b8..223a485 100644
--- a/src/views/permissionApplication/components/AuditOperation.vue
+++ b/src/views/permissionApplication/components/AuditOperation.vue
@@ -4,10 +4,11 @@
ref="examineForm"
:model="examineForm"
:rules="examineFormRules"
+ size="medium"
class="label-input-form prc-content-border">