|
@@ -269,7 +269,6 @@
|
|
|
isPropsData.isSetData = data.isSetData || false;
|
|
|
modalTitle.value = data.isSetData ? '查看' : data.isUpdate ? '编辑' : '新增';
|
|
|
// const = ref('编辑');
|
|
|
-
|
|
|
isPropsData.record = data.record || {};
|
|
|
if (data.isUpdate) {
|
|
|
//编辑
|
|
@@ -291,6 +290,9 @@
|
|
|
if (data.record && data.record.brandId) {
|
|
|
brandIdChange(data.record.brandId);
|
|
|
}
|
|
|
+ if (data.record && data.record.anchorUserId) {
|
|
|
+ UserIdChange(data.record.anchorUserId);
|
|
|
+ }
|
|
|
} else if (data.isSetData) {
|
|
|
//查看
|
|
|
let setSchemas = [];
|
|
@@ -386,10 +388,12 @@
|
|
|
});
|
|
|
}
|
|
|
function UserIdChange(data) {
|
|
|
- console.log('UserIdChange,', userinfo.value.id);
|
|
|
- setFieldsValue({
|
|
|
- assistantUserId: '',
|
|
|
- });
|
|
|
+ console.log('UserIdChange,', data, userinfo.value.id, isPropsData.isUpdate);
|
|
|
+ if (!isPropsData.isUpdate) {
|
|
|
+ setFieldsValue({
|
|
|
+ assistantUserId: '',
|
|
|
+ });
|
|
|
+ }
|
|
|
updateSchema({
|
|
|
field: 'assistantUserId',
|
|
|
componentProps: {
|