Commit fd9c02ef authored by levante's avatar levante

123

parent 8fdb1ab9
...@@ -139,21 +139,21 @@ Vue.use(Calendar) ...@@ -139,21 +139,21 @@ Vue.use(Calendar)
// Vue.use(Carousel) // Vue.use(Carousel)
Vue.use(Tooltip) Vue.use(Tooltip)
import { NavBar } from 'vant'; import { NavBar } from 'vant'
import { Form as vantForm } from 'vant'; import { Form as vantForm } from 'vant'
import { Field } from 'vant'; import { Field } from 'vant'
import { Button as vantButton } from 'vant'; import { Button as vantButton } from 'vant'
import { Calendar as vanCalendar } from 'vant'; import { Calendar as vanCalendar } from 'vant'
import { Picker as vanPicker } from 'vant'; import { Picker as vanPicker } from 'vant'
import { DatetimePicker as vanDatetimePicker } from 'vant'; import { DatetimePicker as vanDatetimePicker } from 'vant'
import { Popup } from 'vant'; import { Popup } from 'vant'
import { Notify } from 'vant'; import { Notify } from 'vant'
import { Dialog } from 'vant'; import { Dialog } from 'vant'
Vue.use(vantForm); Vue.use(vantForm)
Vue.use(NavBar); Vue.use(NavBar)
Vue.use(Field); Vue.use(Field)
Vue.use(vantButton); Vue.use(vantButton)
Vue.use(vanCalendar) Vue.use(vanCalendar)
Vue.use(vanPicker) Vue.use(vanPicker)
Vue.use(vanDatetimePicker) Vue.use(vanDatetimePicker)
...@@ -161,8 +161,7 @@ Vue.use(Popup) ...@@ -161,8 +161,7 @@ Vue.use(Popup)
Vue.use(Notify) Vue.use(Notify)
Vue.use(Dialog) Vue.use(Dialog)
import 'vant/lib/index.css'
import 'vant/lib/index.css';
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$ajax = ajax Vue.prototype.$ajax = ajax
......
let BASE_URL = '', MOCK_URL='',WBX_URL = '', let BASE_URL = '', MOCK_URL='', WBX_URL = '',
FANGDI_URL = 'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye' FANGDI_URL = 'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
switch (process.env.NODE_ENV) { switch (process.env.NODE_ENV) {
......
...@@ -145,78 +145,78 @@ ...@@ -145,78 +145,78 @@
<script> <script>
export default { export default {
data() { data() {
return { return {
areaColumns: [], areaColumns: [],
typeColumns: [], typeColumns: [],
sectName: '', sectName: '',
sectAddrRoad: '', sectAddrRoad: '',
sectAddrLong: '', sectAddrLong: '',
mpzAddr: '', mpzAddr: '',
repairArea: '', repairArea: '',
repairType: '', repairType: '',
description: '', description: '',
dueDate: '', dueDate: '',
dueTime: '', dueTime: '',
repairAreaPicker: '', repairAreaPicker: '',
repairTypePicker: '', repairTypePicker: '',
showrepairAreaPicker: false, showrepairAreaPicker: false,
showrepairTypePicker: false, showrepairTypePicker: false,
showCalendar: false, showCalendar: false,
showTime: false, showTime: false,
showDialog: false showDialog: false
}
},
mounted() {
},
methods: {
onConfirm() {},
onSubmit() {
this.$ajax.post({
url: this.$api.POST_RESERVATION_FORM,
params: {
'stNameFrst': this.sectName,
'unitLoad': this.sectAddrRoad,
'unitLong': this.sectAddrLong,
'addrFrst': this.mpzAddr,
'place': this.repairArea,
'type': this.repairType,
'dscr': this.description,
'homeDate': this.dueDate,
'homeTime': this.dueTime
}
}).then(res => {
if(res.code == 200) {
this.$notify({ type: 'primary', message: '提交成功!' })
this.showDialog = !this.showDialog
} }
})
}, },
mounted() { repairAreaConfirm() {},
repairTypeConfirm() {},
calendarOnConfirm(val) {
this.dueDate = this.$moment(val).format('YYYY-MM-DD')
this.showCalendar = !this.showCalendar
}, },
methods:{ timeOnConfirm(val) {
onConfirm() {}, this.dueTime = val
onSubmit() { this.showTime = !this.showTime
this.$ajax.post({ },
url: this.$api.POST_RESERVATION_FORM, clearAllFormFields() {
params: { this.sectName = ''
"stNameFrst": this.sectName, this.sectAddrRoad = ''
"unitLoad": this.sectAddrRoad, this.sectAddrLong = ''
"unitLong": this.sectAddrLong, this.mpzAddr = ''
"addrFrst": this.mpzAddr, this.repairArea = ''
"place": this.repairArea, this.repairType = ''
"type": this.repairType, this.description = ''
"dscr": this.description, this.dueDate = ''
"homeDate": this.dueDate, this.dueTime = ''
"homeTime": this.dueTime
}
}).then(res => {
if(res.code == 200) {
this.$notify({ type: 'primary', message: '提交成功!' });
this.showDialog = !this.showDialog
}
})
},
repairAreaConfirm() {},
repairTypeConfirm() {},
calendarOnConfirm(val) {
this.dueDate = this.$moment(val).format('YYYY-MM-DD')
this.showCalendar = !this.showCalendar
},
timeOnConfirm(val) {
this.dueTime = val
this.showTime = !this.showTime
},
clearAllFormFields() {
this.sectName = ''
this.sectAddrRoad = ''
this.sectAddrLong = ''
this.mpzAddr = ''
this.repairArea = ''
this.repairType = ''
this.description = ''
this.dueDate = ''
this.dueTime = ''
}
} }
}
} }
</script> </script>
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