1
This commit is contained in:
parent
ef2baad230
commit
ecab6390f9
@ -58,7 +58,7 @@
|
||||
<view v-for="(item,index) in dataModel.Nav_Details.filter(i => !i.IS_DELETED)" :key="index" style="border-bottom: #ceccca 1px dashed;padding-bottom: 10px;">
|
||||
<u-form-item>
|
||||
<view style="display: flex;flex-direction: row;justify-content: space-between;align-items: center;flex: 1;">
|
||||
<view @click="handleChangeStep(index)" style="flex: 1;display: flex;flex-direction: row;align-items: center;">
|
||||
<view @click="handleChangeStep(item)" style="flex: 1;display: flex;flex-direction: row;align-items: center;">
|
||||
<view>
|
||||
{{'部门 : ' +item.Nav_Department.NAME}}
|
||||
</view>
|
||||
@ -70,7 +70,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-form-item>
|
||||
<u-form-item label="辨识人员" @click="handleShowUserSelector(item,index)">
|
||||
<u-form-item label="辨识人员" @click="handleShowUserSelector(item)">
|
||||
<u-icon name="man-add" size="24" color="#3d9cff" slot="right"></u-icon>
|
||||
</u-form-item>
|
||||
<view v-show="!!item.Nav_DetailUsers.length" class="tag-view">
|
||||
@ -325,10 +325,10 @@
|
||||
|
||||
this.showPopupRecitifyDate = false
|
||||
},
|
||||
handleChangeStep(index) {
|
||||
handleChangeStep(item) {
|
||||
this.currentOperateStep = {}
|
||||
this.showPopupStep = true
|
||||
this.nowIndex = index
|
||||
this.nowIndex = item
|
||||
this.handleSearchStep('init')
|
||||
},
|
||||
handleClosePopupStep() {
|
||||
@ -362,16 +362,13 @@
|
||||
})
|
||||
},
|
||||
handleSelectedStep(val) {
|
||||
this.dataModel.Nav_Details[this.nowIndex].DEPARTMENT_ID = val.ID
|
||||
this.dataModel.Nav_Details[this.nowIndex].Nav_Department.NAME = val.NAME
|
||||
this.nowIndex.DEPARTMENT_ID = val.ID
|
||||
this.nowIndex.Nav_Department.NAME = val.NAME
|
||||
this.showPopupStep = false
|
||||
|
||||
},
|
||||
handleSelectorPeople(e) {
|
||||
const {
|
||||
index: key
|
||||
} = this.peopleSelectOption
|
||||
this.dataModel.Nav_Details[key].Nav_DetailUsers = e.map(i => {
|
||||
this.peopleSelectOption.value.Nav_DetailUsers = e.map(i => {
|
||||
return {
|
||||
USER_ID: i.USER_ID,
|
||||
IS_DELETED: i.IS_DELETED,
|
||||
@ -384,18 +381,17 @@
|
||||
}
|
||||
})
|
||||
let arr = ''
|
||||
this.dataModel.Nav_Details[key].Nav_DetailUsers.map(item => {
|
||||
this.peopleSelectOption.value.Nav_DetailUsers.map(item => {
|
||||
if (!item.IS_DELETED) {
|
||||
arr += ' ' + item.Nav_User.NAME
|
||||
}
|
||||
})
|
||||
this.dataModel.Nav_Details[key].userlist = String(arr)
|
||||
this.peopleSelectOption.value.userlist = String(arr)
|
||||
},
|
||||
handleShowUserSelector(item, index) {
|
||||
handleShowUserSelector(item) {
|
||||
this.peopleSelectOption = {
|
||||
showSelector: true,
|
||||
value: item,
|
||||
index,
|
||||
depId: item.DEPARTMENT_ID,
|
||||
defaultChecked: item.Nav_DetailUsers.map(i => {
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user