|
@ -149,11 +149,15 @@ |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
|
<el-button type="text" |
|
|
<el-button type="text" |
|
|
|
|
|
class="div-table-button--detail" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
|
|
<el-button v-if="agencyId===scope.row.agencyId" type="text" |
|
|
class="div-table-button--edit" |
|
|
class="div-table-button--edit" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="handleEdit(scope.row)">修改</el-button> |
|
|
@click="handleEdit(scope.row)">修改</el-button> |
|
|
|
|
|
|
|
|
<el-button type="text" |
|
|
<el-button v-if="agencyId===scope.row.agencyId" type="text" |
|
|
class="div-table-button--delete" |
|
|
class="div-table-button--delete" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
@ -182,7 +186,7 @@ |
|
|
class="dialog-h" |
|
|
class="dialog-h" |
|
|
@closed="diaClose"> |
|
|
@closed="diaClose"> |
|
|
<places-form ref="ref_form" |
|
|
<places-form ref="ref_form" |
|
|
:gridList="gridList" |
|
|
:agencyId="agencyId" |
|
|
:scaleList="scaleList" |
|
|
:scaleList="scaleList" |
|
|
:placeTypeList="placeTypeList" |
|
|
:placeTypeList="placeTypeList" |
|
|
@dialogCancle="addFormCancle" |
|
|
@dialogCancle="addFormCancle" |
|
@ -262,7 +266,8 @@ export default { |
|
|
const url = "/gov/org/customergrid/gridoption" |
|
|
const url = "/gov/org/customergrid/gridoption" |
|
|
|
|
|
|
|
|
let params = { |
|
|
let params = { |
|
|
agencyId: this.agencyId |
|
|
agencyId: this.agencyId, |
|
|
|
|
|
purpose:"query" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
@ -366,6 +371,13 @@ export default { |
|
|
this.$refs.ref_form.initForm('edit', row.placeOrgId) |
|
|
this.$refs.ref_form.initForm('edit', row.placeOrgId) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
handleDetail (row) { |
|
|
|
|
|
this.formTitle = '详情' |
|
|
|
|
|
this.formShow = true |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
this.$refs.ref_form.initForm('detail', row.placeOrgId) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
addFormCancle () { |
|
|
addFormCancle () { |
|
|
this.formShow = false |
|
|
this.formShow = false |
|
|