Browse Source

补全小程序小区码

test^2
zhaoyongnian 3 years ago
parent
commit
bc332423ba
  1. 33
      src/views/modules/base/community/communityTable.vue

33
src/views/modules/base/community/communityTable.vue

@ -8,6 +8,12 @@
size="small"
:loading="yhymLoading"
@click="handleYhymInfo">补全一房一码信息</el-button>
<el-button v-if="showYhymInfo"
style=""
class="diy-button--export"
size="small"
:loading="xcxmLoading"
@click="createBatchNeiQrUrl">补全小程序小区码</el-button>
<el-button style=""
class="diy-button--add"
size="small"
@ -247,6 +253,7 @@ export default {
roleList: [],//
showYhymInfo: false, //
yhymLoading: false,
xcxmLoading: false,
agencyObj: {},//
@ -443,7 +450,33 @@ export default {
this.$message.error(msg)
}
},
//
async createBatchNeiQrUrl () {
this.xcxmLoading = true
const url = "/gov/org/neighborhood/createBatchNeiQrUrl"
let params = {}
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
this.xcxmLoading = false
this.$message({
type: "success",
message: "批量生成成功"
});
} else if (code > 8000) {
this.xcxmLoading = false
this.$message({
showClose: true,
message: msg,
duration: 0
})
} else {
this.xcxmLoading = false
this.$message.error(msg)
}
},
async handleEdit (row) {
this.formTitle = '修改小区'
this.formShow = true

Loading…
Cancel
Save