BUG优化 人员类型不显示

dev
xiepeng 2024-05-23 10:39:58 +08:00
parent 49038e5d1e
commit ad35c2cf4c
1 changed files with 4 additions and 7 deletions

View File

@ -950,7 +950,6 @@ const fnGetData = async () => {
if (!USER_ID) return;
const resData = await getPractitionerForEdit({ USER_ID });
const form = resData.pd;
console.log(resData);
form.PASSWORD = "Aa@123456";
form.periodStr = resData.periodStr;
form.ISSTUDENT = resData.pd.ISSTUDENT.toString();
@ -1012,13 +1011,12 @@ const fnGetData = async () => {
}
});
data.form = { ...data.form, ...form };
if(!data.form.DUTIES_NAME || !data.form.DUTIES_NAME === '') {
data.form.DUTIES = '';
if (!data.form.DUTIES_NAME || !data.form.DUTIES_NAME === "") {
data.form.DUTIES = "";
}
if(!data.form.TITLE_NAME || !data.form.TITLE_NAME === '') {
data.form.TITLE = '';
if (!data.form.TITLE_NAME || !data.form.TITLE_NAME === "") {
data.form.TITLE = "";
}
console.log(data.form);
};
fnGetData();
const fnGetUserRole = async () => {
@ -1058,7 +1056,6 @@ const fnChangeSchedulingTwo = () => {
const fnGetUserCurrentShiftList = async (SHIFTWORKRULES_ID) => {
const resData = await getUserCurrentShiftList({ SHIFTWORKRULES_ID });
data.periodList = resData.varList;
console.log(data.periodList);
};
const fnChangePeriod = (event) => {
for (let i = 0; i < data.periodList.length; i++) {