Commit 53382b58 authored by 皮倩雯's avatar 皮倩雯

fix: '修改设备库配置接口, 增加三周一次'

parent fa858fee
Pipeline #82659 passed with stages
...@@ -230,29 +230,8 @@ const BaseConfig = (props, ref) => { ...@@ -230,29 +230,8 @@ const BaseConfig = (props, ref) => {
}} }}
onChange={value => { onChange={value => {
setCycleLen(value); setCycleLen(value);
if (value === 1) {
setMonthType1(1);
setMonthType2(1);
if (MonthDayType1 < startLen) {
setMonthDayType1(startLen);
}
if (MonthDayType2 < startLen) {
setMonthDayType2('31');
}
} else if (value === 2) {
if (MonthType2 === 3) {
setMonthType1(1);
setMonthType2(1);
if (MonthDayType1 < startLen) {
setMonthDayType1(startLen);
}
if (MonthDayType2 < startLen) {
setMonthDayType2('31');
}
}
}
}} }}
options={[1, 2].map(province => ({ options={[1, 2, 3].map(province => ({
label: province, label: province,
value: province, value: province,
}))} }))}
......
...@@ -11,6 +11,7 @@ import { ...@@ -11,6 +11,7 @@ import {
CM_XWBPlan_ChangeOrder, CM_XWBPlan_ChangeOrder,
NewCM_XWBPlan_ChangeOrder, NewCM_XWBPlan_ChangeOrder,
GetDeviceConfigList, GetDeviceConfigList,
NewGetDeviceConfigList,
EditDeviceConfig, EditDeviceConfig,
} from '@/services/maintenance/api'; } from '@/services/maintenance/api';
import { import {
...@@ -102,7 +103,7 @@ const maintenance = () => { ...@@ -102,7 +103,7 @@ const maintenance = () => {
}; };
const getConfigList = () => { const getConfigList = () => {
GetDeviceConfigList().then(res => { NewGetDeviceConfigList().then(res => {
setTreeLoading(false); setTreeLoading(false);
if (res.code === 0) { if (res.code === 0) {
setTableData(res.data); setTableData(res.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment