fix: bug#10191

This commit is contained in:
JiangQiming 2023-02-24 17:06:13 +08:00
parent 0dcdac0ee6
commit 164cec5aa5
1 changed files with 9 additions and 4 deletions

View File

@ -395,7 +395,11 @@ watch(
*/
const bindVis = ref(false);
const confirmLoading = ref(false);
const formData = ref({ userId: '' });
const formData = ref({
userId: '',
thirdPartyUserId: '',
thirdPartyUserName: '',
});
const formRules = ref({
userId: [{ required: true, message: '请选择用户', trigger: 'change' }],
});
@ -407,7 +411,8 @@ const { resetFields, validate, validateInfos, clearValidate } = useForm(
const handleBind = (row: any) => {
bindVis.value = true;
formData.value = row;
// formData.value = row;
Object.assign(formData.value, row);
getAllUsers();
};
@ -428,8 +433,8 @@ const filterOption = (input: string, option: any) => {
const handleBindSubmit = () => {
validate().then(async () => {
const params = {
// providerName: formData.value.thirdPartyUserName,
// thirdPartyUserId: formData.value.thirdPartyUserId,
providerName: formData.value.thirdPartyUserName,
thirdPartyUserId: formData.value.thirdPartyUserId,
userId: formData.value.userId,
};
confirmLoading.value = true;