会议选人

This commit is contained in:
wyw 2024-09-13 09:25:52 +08:00
parent f4207282b6
commit b2f832612c

View File

@ -93,7 +93,7 @@
<query-selector :multiple="selectorInfo.isMultiple" :show="selectorInfo.showPopup" <query-selector :multiple="selectorInfo.isMultiple" :show="selectorInfo.showPopup"
:defaultChecked="selectorInfo.defaultChecked" :title="selectorInfo.title" :lists="selectorInfo.dataLists" :defaultChecked="selectorInfo.defaultChecked" :title="selectorInfo.title" :lists="selectorInfo.dataLists"
@search="handleSearch" @select="handleSelected" @close="selectorInfo.showPopup=false" /> @search="handleSearch" @select="handleSelected" @close="selectorInfo.showPopup=false" :total="selectorInfo.totalCount" />
<u-datetime-picker :show="dateTimePickerInfo.showCheckDate" mode="datetime" <u-datetime-picker :show="dateTimePickerInfo.showCheckDate" mode="datetime"
v-model='dateTimePickerInfo.defaultDateTime' @confirm="handleCheckDate" v-model='dateTimePickerInfo.defaultDateTime' @confirm="handleCheckDate"
@close="dateTimePickerInfo.showCheckDate = false" @close="dateTimePickerInfo.showCheckDate = false"
@ -132,7 +132,8 @@
} from '../../../../services/apply/subPages/SCMT/meeting' } from '../../../../services/apply/subPages/SCMT/meeting'
import { import {
OrderPagedUseful2 OrderPagedUseful2,
UserPagedLimit
} from '../../../../services/common' } from '../../../../services/common'
import { import {
@ -229,6 +230,7 @@
name: '', name: '',
itemData: {}, itemData: {},
index: 0, index: 0,
totalCount:0,
dataLists: [], dataLists: [],
defaultText: '', defaultText: '',
defaultValue: '', defaultValue: '',
@ -621,17 +623,40 @@
break; break;
case 'UserHost': case 'UserHost':
case 'UserRecorder': case 'UserRecorder':
OrderPagedUseful2(json).then(res => {
if (res.IsSuccessful) { // OrderPagedUseful2(json).then(res => {
this.selectorInfo.dataLists = res.Data.map(i => { // if (res.IsSuccessful) {
return { // this.selectorInfo.dataLists = res.Data.map(i => {
...i, // return {
name: i.NAME, // ...i,
code: i.CODE // name: i.NAME,
} // code: i.CODE
}) // }
} // })
// }
// })
json.PageIndex = pageIndex ?? 1
json.Limit = 20
json.Sort = 'NAME'
if (p.pageIndex) {
json.Start = (p.pageIndex - 1) * json.Limit;
}
// let dataSelect = []
UserPagedLimit(json).then(res => {
this.selectorInfo.totalCount = res.TotalCount
this.selectorInfo.dataLists = res.Data.map(i => {
return {
...i,
name: i.NAME,
code: i.CODE
}
})
}) })
break; break;
case 'CONTENT': case 'CONTENT':
OrderPagedContentName(json).then(res => { OrderPagedContentName(json).then(res => {