Browse Source

Merge branch 'dev-huji' into test

test
dai 3 years ago
parent
commit
e3f76e7f5e
  1. 2
      src/views/modules/base/huji/chusheng/cpts/edit.vue
  2. 6
      src/views/modules/base/huji/immigration/edit.vue
  3. 6
      src/views/modules/base/huji/immigration/index.vue

2
src/views/modules/base/huji/chusheng/cpts/edit.vue

@ -706,7 +706,7 @@ export default {
console.log(row); console.log(row);
if (row) { if (row) {
// this.fmData = { ...this.fmData, ...row }; // this.fmData = { ...this.fmData, ...row };
this.getInfo(row.id); await this.getInfo(row.id);
this.getValiheList(); this.getValiheList();
this.getBuildList(); this.getBuildList();
this.getUniList(); this.getUniList();

6
src/views/modules/base/huji/immigration/edit.vue

@ -468,8 +468,9 @@ export default {
watch: {}, watch: {},
async mounted() { async mounted() {
this.getGridList() console.log('mounted-----我执行了')
this.getValiheList() await this.getGridList()
this.getRelationList() this.getRelationList()
}, },
@ -750,6 +751,7 @@ export default {
await this.getDatail(id) await this.getDatail(id)
} }
if (this.formType != 'add') { if (this.formType != 'add') {
this.getValiheList()
this.getBuildList() this.getBuildList()
this.getUniList() this.getUniList()
this.getHouseList() this.getHouseList()

6
src/views/modules/base/huji/immigration/index.vue

@ -143,9 +143,9 @@
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
<el-form-item label="迁入时间" prop="rangeTime"> <el-form-item label="迁入时间" prop="startTime">
<el-date-picker <el-date-picker
v-model="fmData.rangeTime" v-model="rangeTime"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
@ -409,6 +409,7 @@
@closed="handleClose" @closed="handleClose"
> >
<edit-form <edit-form
v-if="formShow"
ref="eleEditForm" ref="eleEditForm"
@dialogCancle="handleClose" @dialogCancle="handleClose"
@dialogOk="handleEditSuccess" @dialogOk="handleEditSuccess"
@ -501,6 +502,7 @@ export default {
}, },
watch: { watch: {
rangeTime: function (val) { rangeTime: function (val) {
console.log('val----', val)
if (Array.isArray(val) && val.length == 2) { if (Array.isArray(val) && val.length == 2) {
this.fmData.startTime = val[0] this.fmData.startTime = val[0]
this.fmData.endTime = val[1] this.fmData.endTime = val[1]

Loading…
Cancel
Save