@ -59,14 +59,14 @@ export default {
cityKey: 'city',
countyKey: 'county',
format: 'address',
width: 150
width: 120
},
{
key: 'gridNumber',
title: '网格数',
display: ['table', 'model'],
block: true,
width: 60
width: 40
key: 'validityTime',
@ -88,7 +88,7 @@ export default {
}
],
key: 'rootManagePhone',
@ -26,7 +26,8 @@
:tableHeight="tableHeight"
:operationWidth="80"
@config="config"
@edit="edit">
@edit="edit"
@init="init">
</c-table>
</div>
</el-card>
@ -79,6 +80,18 @@ export default {
isShow: (row) => {
return true
lable: '数字社区初始化', // 按钮显示名称
size: 'mini',
style: 'margin: 0 6px;',
type: 'text',
slot: '',
plain: false,
methodName: 'init', // 回调方法名称
@ -118,6 +131,23 @@ export default {
this.$refs['ref_edit_form'].initData(row)
// 初始化
init (row) {
let params = {
customerId: row.customerId,
areaCode: row.rootAgencyAreaCode,
this.$http.get(`/oper/customize/icform/initCustomerForm/resi_base_info/`, {params: params}).then(({ data: res }) => {
if (res.code === 0) {
return this.$message.info(res.data)
} else {
return this.$message.error(res.internalMsg)
})
// 网格数、有效期配置
config (row) {
this.$refs['ref_config_form'].initData(row)