| | |
| | | console.log(response.data, "response.data"); |
| | | form.value.content = JSON.parse(response.data.content.value); |
| | | weekDaysSettingList.value = response.data.content.weekdays; |
| | | |
| | | // else if (form.value.type === "2") { |
| | | // holidays.value = JSON.parse(response.data.content.value).holidays; |
| | | // } |
| | | form.value.applicableTranslate= applicableTranslateArr(response.data); |
| | | console.log(form.value.applicableTranslate,"form.value.applicableTranslate") |
| | | }); |
| | | |
| | | } |
| | | // 设置节假日 |
| | | function handleSetHolidays(row) { |
| | | let applicableTranslateArr = JSON.parse(row.applicableTranslate).map( |
| | | let applicableTranslateArr = (row)=>{ |
| | | return JSON.parse(row.applicableTranslate).map( |
| | | (item) => { |
| | | return Object.keys(item).map((n) => { |
| | | console.log(item); |
| | |
| | | }); |
| | | } |
| | | ); |
| | | } |
| | | // 设置节假日 |
| | | function handleSetHolidays(row) { |
| | | console.log(applicableTranslateArr, "applicableTranslateArr"); |
| | | form.value = { |
| | | ...row, |
| | | applicableTranslate: applicableTranslateArr, |
| | | applicableTranslate: applicableTranslateArr(row), |
| | | }; |
| | | if (!row.holidays) { |
| | | formHolidays.value = { |