|
@@ -356,6 +356,7 @@
|
|
|
...data,
|
|
|
isEmpower: [0], //[data.canAuthLook ? 0 : '', data.canEditLook ? 1 : ''],
|
|
|
};
|
|
|
+ console.log(setData, 'setData')
|
|
|
let lookEndTime = checkAuthOther.lookEndTime
|
|
|
? checkAuthOther.lookEndTime
|
|
|
: dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
@@ -369,7 +370,7 @@
|
|
|
modelRef.value = data.id ? true : false;
|
|
|
setFieldsValue({
|
|
|
...setData,
|
|
|
- editAuth: data.qxType ? 0 : 1,
|
|
|
+ editAuth: setData.editAuth?setData.editAuth:data.qxType ? 0 : 1,
|
|
|
isAuthor: 0,
|
|
|
});
|
|
|
} else {
|
|
@@ -393,7 +394,7 @@
|
|
|
field: 'editAuth',
|
|
|
defaultValue: 1,
|
|
|
componentProps: {
|
|
|
- options: fileFlow.qxType
|
|
|
+ options: (fileFlow.qxType || setData.editAuth)
|
|
|
? getOptionList('editAuth', setData.editAuth)
|
|
|
: [
|
|
|
{ label: '不限时编辑', value: 1 },
|
|
@@ -411,7 +412,7 @@
|
|
|
},
|
|
|
{
|
|
|
field: 'editEndTime',
|
|
|
- ifShow: data.editAuth == 2,
|
|
|
+ ifShow: setData.editAuth == 2,
|
|
|
componentProps: {
|
|
|
disabled: checkAuthOther.editEndTime,
|
|
|
disabledDate: (current) => {
|
|
@@ -532,6 +533,7 @@
|
|
|
],
|
|
|
};
|
|
|
let option = optionList[type];
|
|
|
+ console.log((!auth && auth != 0) , auth == 1, 'optionListauth', type);
|
|
|
if ((!auth && auth != 0) || auth == 1) {
|
|
|
return option;
|
|
|
} else if (auth == 2) {
|