This commit is contained in:
yuping
2022-12-09 17:35:32 +08:00
parent aaa6064911
commit f331d302a4
2 changed files with 665 additions and 663 deletions

View File

@@ -95,7 +95,8 @@ function getMemberData() {
const list = res.data.data.rows.filter(e => !(props.value + '').includes(e.id)).map(e => ({ const list = res.data.data.rows.filter(e => !(props.value + '').includes(e.id)).map(e => ({
label: e.realName, label: e.realName,
value: e.id, value: e.id,
deptId: e.departId deptId: e.departId,
departName: e.departName
})); }));
memberParam.value.pageNo === 1 && props.value ? (options.value = list) : options.value.push(...list) memberParam.value.pageNo === 1 && props.value ? (options.value = list) : options.value.push(...list)
loading.value = false loading.value = false
@@ -125,7 +126,7 @@ function blur() {
function change(e, l) { function change(e, l) {
isOpen.value = false isOpen.value = false
Array.isArray(l) && (selectOptions.value = l) Array.isArray(l) && (selectOptions.value = l)
Array.isArray(selectOptions.value) && emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId) Array.isArray(selectOptions.value) && emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId, selectOptions.value.find(e => e.deptId)?.departName)
if (Array.isArray(l)) { if (Array.isArray(l)) {
emit('update:name', l.map(t => t.label).join(',')) emit('update:name', l.map(t => t.label).join(','))
emit('update:value', l.map(t => t.value).join(',')) emit('update:value', l.map(t => t.value).join(','))

View File

@@ -1782,8 +1782,9 @@ export default {
} }
); );
function managerChange(e, l, d) { function managerChange(e, l, d, t) {
state.projectInfo.sourceBelongId = d; state.projectInfo.sourceBelongId = d;
state.projectInfo.sourceBelongName = t;
} }
return { return {