|
@@ -10,7 +10,7 @@
|
|
|
custom-class="xl-drawer"
|
|
|
direction="rtl"
|
|
|
>
|
|
|
- <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[0,4]">
|
|
|
+ <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px" :insertSlotArr="[0,5]">
|
|
|
<div slot="OI0" class="scoped-other-form">
|
|
|
<div class="scoped-img-area">
|
|
|
<div class="sia-title">项目图</div>
|
|
@@ -31,7 +31,7 @@
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div slot="OI4">
|
|
|
+ <div slot="OI5">
|
|
|
<div class="scoped-img-area">
|
|
|
<div class="sia-title">一房一价图</div>
|
|
|
<div class="sia-op" v-for="(imgsrc,index) in houseImg" :key="index">
|
|
@@ -195,11 +195,12 @@ export default {
|
|
|
},
|
|
|
getDef() {
|
|
|
let params = { ...this.cObj }
|
|
|
- params.time = params.lottery_time.split('至')
|
|
|
+ if (params.lottery_time) params.time = params.lottery_time.split('至')
|
|
|
this.formData = [
|
|
|
{ label: '摇号期数', key: 'batch', rules: 1 },
|
|
|
{ label: '排序', key: 'sort' },
|
|
|
{ label: '摇号中的标题', key: 'under_way' },
|
|
|
+ { label: '本期包含期数', key: 'building_num' },
|
|
|
{ label: '摇号中的日期', key: 'time', type: 'datePicker', rules: 1 },
|
|
|
{ label: '摇号结果的标题', key: 'lottery_res' },
|
|
|
]
|
|
@@ -225,6 +226,7 @@ export default {
|
|
|
}
|
|
|
newForm.lottery_time = newForm.time[0] + '至' + newForm.time[1]
|
|
|
delete newForm.time
|
|
|
+ newForm.building_num = newForm.building_num.replace(/,|、|\/|\\/g, ',')
|
|
|
// console.log(newForm)
|
|
|
// return
|
|
|
let apiStr = 'admestatelottery2add'
|