添加运行图加载规则
This commit is contained in:
parent
a52c2d2126
commit
6b90da452b
@ -222,6 +222,11 @@ export default {
|
|||||||
{ name: '固定应答器', value: 'FB'},
|
{ name: '固定应答器', value: 'FB'},
|
||||||
{ name: '可变应答器', value: 'VB'},
|
{ name: '可变应答器', value: 'VB'},
|
||||||
{ name: '填充应答器', value: 'IB'}
|
{ name: '填充应答器', value: 'IB'}
|
||||||
|
],
|
||||||
|
loadRuleList: [
|
||||||
|
{ label: '每日加载', value:'EVERY_DAY' },
|
||||||
|
{ label: '周内加载', value: 'WITHIN_A_WEEK' },
|
||||||
|
{ label: '周末加载', value: 'WEEKEND' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -22,6 +22,11 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="加载规则" prop="loadRule">
|
||||||
|
<el-select v-model="model.loadRule">
|
||||||
|
<el-option v-for="item in loadRuleList" :key="item.value" :label="item.label" :value="item.value" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -39,6 +44,7 @@
|
|||||||
import { getPublishMapListOnline } from '@/api/jmap/map';
|
import { getPublishMapListOnline } from '@/api/jmap/map';
|
||||||
import { createRunPlanCommon } from '@/api/runplan';
|
import { createRunPlanCommon } from '@/api/runplan';
|
||||||
import ChooseTemplatePlan from './chooseTemplatePlan';
|
import ChooseTemplatePlan from './chooseTemplatePlan';
|
||||||
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CommonPlanDraft',
|
name: 'CommonPlanDraft',
|
||||||
@ -50,10 +56,12 @@ export default {
|
|||||||
display: 1,
|
display: 1,
|
||||||
loading: false,
|
loading: false,
|
||||||
mapList: [],
|
mapList: [],
|
||||||
|
loadRuleList: ConstConfig.ConstSelect.loadRuleList,
|
||||||
model: {
|
model: {
|
||||||
mapId: '',
|
mapId: '',
|
||||||
planId: '',
|
planId: '',
|
||||||
planName: ''
|
planName: '',
|
||||||
|
loadRule: ''
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -71,6 +79,9 @@ export default {
|
|||||||
],
|
],
|
||||||
planId: [
|
planId: [
|
||||||
{ required: true, message: this.$t('rules.inputTemplateRunPlan'), trigger: 'change' }
|
{ required: true, message: this.$t('rules.inputTemplateRunPlan'), trigger: 'change' }
|
||||||
|
],
|
||||||
|
loadRule: [
|
||||||
|
{ required: true, message: '请选择加载规则', trigger: 'change' }
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -98,7 +109,8 @@ export default {
|
|||||||
buildModel() {
|
buildModel() {
|
||||||
return {
|
return {
|
||||||
mapId: this.model.mapId,
|
mapId: this.model.mapId,
|
||||||
templatePlanId: this.model.planId
|
templatePlanId: this.model.planId,
|
||||||
|
loadRule: this.model.loadRule
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
create() {
|
create() {
|
||||||
|
@ -10,6 +10,7 @@ import { superAdmin } from '@/router/index';
|
|||||||
import { getRunPlanLoadList, listAllTempLateRunPlan, deleteDailyRunPlanLoad, postDailyRunPlanLoadGenerate, postSchedulingCommonGenerate } from '@/api/runplan';
|
import { getRunPlanLoadList, listAllTempLateRunPlan, deleteDailyRunPlanLoad, postDailyRunPlanLoadGenerate, postSchedulingCommonGenerate } from '@/api/runplan';
|
||||||
import { UrlConfig } from '@/scripts/ConstDic';
|
import { UrlConfig } from '@/scripts/ConstDic';
|
||||||
import CopyMap from './copyMap';
|
import CopyMap from './copyMap';
|
||||||
|
import ConstConfig from '@/scripts/ConstConfig';
|
||||||
import { getPublishMapListOnline } from '@/api/jmap/map';
|
import { getPublishMapListOnline } from '@/api/jmap/map';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -57,6 +58,13 @@ export default {
|
|||||||
columnValue: (row) => { return this.$convertField(row.templatePlanId, this.templatePlanList, ['id', 'name']); },
|
columnValue: (row) => { return this.$convertField(row.templatePlanId, this.templatePlanList, ['id', 'name']); },
|
||||||
tagType: (row) => { return 'success'; }
|
tagType: (row) => { return 'success'; }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '加载规则',
|
||||||
|
prop: 'loadRule',
|
||||||
|
type: 'tag',
|
||||||
|
columnValue: (row) => { return this.$convertField(row.loadRule, ConstConfig.ConstSelect.loadRuleList, ['value', 'label']); },
|
||||||
|
tagType: (row) => { return 'success'; }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'button',
|
type: 'button',
|
||||||
title: this.$t('global.operate'),
|
title: this.$t('global.operate'),
|
||||||
|
Loading…
Reference in New Issue
Block a user