Commit fdd39106 authored by 康振飞's avatar 康振飞

设备日历ok

parent f269eea4
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<Col span="20"> <Col span="20">
<FormItem label="工作日历" prop="work"> <FormItem label="工作日历" prop="work">
<Select v-model="formItem1.calendarwork_pk" clearable placeholder="请选择..."> <Select v-model="formItem1.calendarwork_pk" clearable placeholder="请选择...">
<Option v-for="item in cityList" :value="item.id" :key="item.value">{{ item.label }}</Option> <Option v-for="item in cityList" :value="item.id" :key="item.calName">{{ item.calName }}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<Col span="20" > <Col span="20" >
<FormItem label="加班日历" prop="overtime"> <FormItem label="加班日历" prop="overtime">
<Select v-model="formItem2.calendarovertime_pk" clearable placeholder="请选择..."> <Select v-model="formItem2.calendarovertime_pk" clearable placeholder="请选择...">
<Option v-for="item in cityList1" :value="item.id" :key="item.value">{{ item.label }}</Option> <Option v-for="item in cityList1" :value="item.id" :key="item.holidayCalName">{{ item.holidayCalName }}</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
...@@ -110,32 +110,22 @@ export default { ...@@ -110,32 +110,22 @@ export default {
conditions: [], conditions: [],
pageSize: 10 pageSize: 10
} }
let url = `${systemUrl}/mesdailyworksched/list`,//paged let url = `${systemUrl}/mesdailyworksched/list`;//paged
that = this; // that = this;
service.post(`${url}`, parmse).then(res => { service.post(`${url}`, parmse).then(res => {
let selectdata = res.result; if(res.success){
// console.log(selectdata) this.cityList = res.result;
selectdata.forEach(item => { }else{
that.cityList.push({ this.$Message.error("获取数据失败...")
value: item.calName, }
label: item.calName,
id: item.id,
})
// console.log(that.cityList)
});
}); });
let url1 = `${systemUrl}/mesholidaycal/list`; let url1 = `${systemUrl}/mesholidaycal/list`;
service.post(`${url1}`,parmse).then(res => { service.post(`${url1}`,parmse).then(res => {
let selectdata1 = res.result; if(res.success){
// console.log(selectdata1) this.cityList1 = res.result;
selectdata1.forEach(item => { }else{
this.cityList1.push({ this.$Message.error("获取数据失败...")
value: item.holidayCalName, }
label: item.holidayCalName,
id: item.id,
})
// console.log(that.cityList)
});
}); });
}, },
preservation() {}, preservation() {},
...@@ -145,9 +135,9 @@ export default { ...@@ -145,9 +135,9 @@ export default {
// 添加/编辑 弹框的保存 // 添加/编辑 弹框的保存
saveOk() { saveOk() {
var url = `${systemUrl}/equipcalendarwork/createorupdate` var url = `${systemUrl}/equipcalendarwork/createorupdate`
console.log(this.formItem1) // console.log(this.formItem1)
console.log(this.formItem2) // console.log(this.formItem2)
console.log(this.editId) // console.log(this.editId)
service.post(`${url}`,{ equipCalendarWork: this.formItem1,equipCalendarOverTime: this.formItem2 }) service.post(`${url}`,{ equipCalendarWork: this.formItem1,equipCalendarOverTime: this.formItem2 })
.then((res) => { .then((res) => {
......
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