|
@@ -1,6 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <a-modal centered class="modalBox" :footer="null" :title="titleText" v-model="isshow" @cancle="cancel" :width="900">
|
|
|
+ <a-modal
|
|
|
+ centered
|
|
|
+ class="modalBox"
|
|
|
+ :footer="null"
|
|
|
+ :title="titleText"
|
|
|
+ v-model="isshow"
|
|
|
+ @cancle="cancel"
|
|
|
+ :width="900">
|
|
|
<a-form :form="form" ref="form" @submit="handleSubmit">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
@@ -226,12 +233,17 @@ export default {
|
|
|
tenantsDetail({ id: id }).then(res => {
|
|
|
// console.log(res, 'rrrrrrr')
|
|
|
if (res.status == 200) {
|
|
|
+ // 获取市列表数据
|
|
|
+ this.getCityListRequest(res.data.addrProvince)
|
|
|
+ // 获取区列表数据
|
|
|
+ this.getAreaListRequest(res.data.addrCity)
|
|
|
this.formData = Object.assign(this.formData, res.data)
|
|
|
const now = moment().add(7, 'day').format('YYYY-MM-DD')
|
|
|
const expireDate = moment(now, 'YYYY-MM-DD')
|
|
|
this.formData.expireDate = this.formData.expireDate ? moment(this.formData.expireDate, 'YYYY-MM-DD') : expireDate
|
|
|
this.form.setFields({ 'formData.expireDate': { value: this.formData.expireDate, errors: '' } })
|
|
|
this.formData.status = Number(this.formData.status)
|
|
|
+
|
|
|
console.log(this.formData, 'this.formData')
|
|
|
}
|
|
|
})
|