fix: BUG修改
This commit is contained in:
parent
a199afe1ff
commit
2a625a5a4f
@ -428,7 +428,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, watch, reactive } from "vue";
|
import { onMounted, ref, watch, reactive, nextTick } from "vue";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import type { FormInstance, UploadProps } from "element-plus";
|
import type { FormInstance, UploadProps } from "element-plus";
|
||||||
import {
|
import {
|
||||||
@ -612,6 +612,7 @@ const getRowDetails = async () => {
|
|||||||
inspectSignature: [],
|
inspectSignature: [],
|
||||||
otherSignature: []
|
otherSignature: []
|
||||||
};
|
};
|
||||||
|
selectedMemberList.value = [];
|
||||||
// 工程/项目详细信息
|
// 工程/项目详细信息
|
||||||
if (projectTreeData.value.id == 1) {
|
if (projectTreeData.value.id == 1) {
|
||||||
const res = await getEngineerInfo({ id: projectSelectedData.value.id });
|
const res = await getEngineerInfo({ id: projectSelectedData.value.id });
|
||||||
@ -649,14 +650,20 @@ const getMemberList = async () => {
|
|||||||
membertableData.value = res.result;
|
membertableData.value = res.result;
|
||||||
};
|
};
|
||||||
const selectMember = async () => {
|
const selectMember = async () => {
|
||||||
selectedMemberList.value.forEach(key => {
|
|
||||||
membertableData.value.forEach(row => {
|
|
||||||
if (row.userId == key.userId) {
|
|
||||||
multipleMemberTable.value.toggleRowSelection(row, true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
memberVisible.value = true;
|
memberVisible.value = true;
|
||||||
|
if (selectedMemberList.value.length > 0) {
|
||||||
|
selectedMemberList.value.forEach(key => {
|
||||||
|
membertableData.value.forEach(row => {
|
||||||
|
if (row.userId == key.userId) {
|
||||||
|
multipleMemberTable.value.toggleRowSelection(row, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
nextTick(() => {
|
||||||
|
multipleMemberTable.value.clearSelection();
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
// 删除用户信息
|
// 删除用户信息
|
||||||
const handleDeleteItem = async index => {
|
const handleDeleteItem = async index => {
|
||||||
|
|||||||
@ -427,7 +427,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, watch, reactive } from "vue";
|
import { onMounted, ref, watch, reactive, nextTick } from "vue";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import type { FormInstance, UploadProps } from "element-plus";
|
import type { FormInstance, UploadProps } from "element-plus";
|
||||||
import {
|
import {
|
||||||
@ -610,6 +610,7 @@ const getRowDetails = async () => {
|
|||||||
inspectSignature: [],
|
inspectSignature: [],
|
||||||
otherSignature: []
|
otherSignature: []
|
||||||
};
|
};
|
||||||
|
selectedMemberList.value = [];
|
||||||
// 工程/项目详细信息
|
// 工程/项目详细信息
|
||||||
if (projectTreeData.value.id == 1) {
|
if (projectTreeData.value.id == 1) {
|
||||||
const res = await getEngineerInfo({ id: projectSelectedData.value.id });
|
const res = await getEngineerInfo({ id: projectSelectedData.value.id });
|
||||||
@ -647,14 +648,20 @@ const getMemberList = async () => {
|
|||||||
membertableData.value = res.result;
|
membertableData.value = res.result;
|
||||||
};
|
};
|
||||||
const selectMember = async () => {
|
const selectMember = async () => {
|
||||||
selectedMemberList.value.forEach(key => {
|
|
||||||
membertableData.value.forEach(row => {
|
|
||||||
if (row.userId == key.userId) {
|
|
||||||
multipleMemberTable.value.toggleRowSelection(row, true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
memberVisible.value = true;
|
memberVisible.value = true;
|
||||||
|
if (selectedMemberList.value.length > 0) {
|
||||||
|
selectedMemberList.value.forEach(key => {
|
||||||
|
membertableData.value.forEach(row => {
|
||||||
|
if (row.userId == key.userId) {
|
||||||
|
multipleMemberTable.value.toggleRowSelection(row, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
nextTick(() => {
|
||||||
|
multipleMemberTable.value.clearSelection();
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
// 删除用户信息
|
// 删除用户信息
|
||||||
const handleDeleteItem = async index => {
|
const handleDeleteItem = async index => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user