|
|
|
@ -294,7 +294,7 @@ |
|
|
|
<el-table-column fixed="right" |
|
|
|
label="操作" |
|
|
|
align="center" |
|
|
|
width="120"> |
|
|
|
width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="false" |
|
|
|
@click="handleWatch(scope.$index)" |
|
|
|
@ -306,6 +306,11 @@ |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit">修改</el-button> |
|
|
|
|
|
|
|
<el-button @click="handleChangeRecord(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--detail">变更记录</el-button> |
|
|
|
|
|
|
|
<el-popconfirm v-if="false" |
|
|
|
title="删除之后无法回复,确认删除?" |
|
|
|
@onConfirm="handleDel(scope.row, scope.$index)" |
|
|
|
@ -316,6 +321,16 @@ |
|
|
|
class="div-table-button--delete" |
|
|
|
style="margin-left: 10px">删除</el-button> |
|
|
|
</el-popconfirm> |
|
|
|
<el-popconfirm v-if="true" |
|
|
|
title="删除之后无法回复,确认删除?" |
|
|
|
@onConfirm="handleDelNew(scope.row)" |
|
|
|
@confirm="handleDelNew(scope.row)"> |
|
|
|
<el-button slot="reference" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--delete" |
|
|
|
style="margin-left: 10px">删除</el-button> |
|
|
|
</el-popconfirm> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -360,19 +375,31 @@ |
|
|
|
ref="ref_form_detail" |
|
|
|
@diaDetailClose="detailFormCancle"></detail-form> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 变更记录 --> |
|
|
|
<el-dialog :visible.sync="changeRecordShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="'变更记录'" |
|
|
|
width="1150px" |
|
|
|
top="5vh" |
|
|
|
@closed="diaClose"> |
|
|
|
<resi-change-record ref="ref_changerecord"></resi-change-record> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { requestPost } from '@/js/dai/request' |
|
|
|
import nextTick from 'dai-js/tools/nextTick' |
|
|
|
import resiChangeRecord from '../../../../components/resiChangeRecord.vue' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
import editForm from './edit' |
|
|
|
import detailForm from './detail' |
|
|
|
import axios from 'axios' |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { editForm, detailForm }, |
|
|
|
components: { editForm, detailForm, resiChangeRecord}, |
|
|
|
data () { |
|
|
|
return { |
|
|
|
openSearch: false, |
|
|
|
@ -381,7 +408,6 @@ export default { |
|
|
|
detailShow: false, |
|
|
|
formTitle: '迁入登记', |
|
|
|
detailShow: false, |
|
|
|
|
|
|
|
pageNo: 1, |
|
|
|
pageSize: window.localStorage.getItem('pageSize') || 20, |
|
|
|
total: 1, |
|
|
|
@ -424,7 +450,8 @@ export default { |
|
|
|
importLoading: false, |
|
|
|
|
|
|
|
searchH: 0, |
|
|
|
tableHeight: 0 |
|
|
|
tableHeight: 0, |
|
|
|
changeRecordShow: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
@ -477,6 +504,17 @@ export default { |
|
|
|
console.log('searchH----', this.$refs.searchCard.$el.offsetHeight) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
diaClose () { |
|
|
|
this.changeRecordShow = false |
|
|
|
}, |
|
|
|
//变更记录 |
|
|
|
async handleChangeRecord (row) { |
|
|
|
this.changeRecordShow = true |
|
|
|
|
|
|
|
await nextTick(200) |
|
|
|
|
|
|
|
this.$refs.ref_changerecord.initForm(row) |
|
|
|
}, |
|
|
|
handleClearVillage () { |
|
|
|
this.fmData.buildId = '' |
|
|
|
this.fmData.homeId = '' |
|
|
|
@ -900,6 +938,20 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async handleDelNew (rowData) { |
|
|
|
const url = "/epmetuser/icMoveIn/deleteById"; |
|
|
|
let params = { |
|
|
|
id: rowData.moveInId |
|
|
|
} |
|
|
|
const { data, code, msg } = await requestPost(url,params); |
|
|
|
if (code === 0) { |
|
|
|
this.$message.success("删除成功!"); |
|
|
|
this.getTableData(); |
|
|
|
} else { |
|
|
|
this.$message.success("操作失败!"); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async getTableData () { |
|
|
|
const url = '/epmetuser/icMoveIn/list' |
|
|
|
const { pageSize, pageNo, fmData } = this |
|
|
|
|