Browse Source

补全小程序小区码

feature/dev_information_register
zhaoyongnian 3 years ago
parent
commit
e149e97400
  1. 9
      src/views/modules/base/community/communityForm.vue
  2. 34
      src/views/modules/base/community/communityTable.vue

9
src/views/modules/base/community/communityForm.vue

@ -56,6 +56,15 @@
size="small" size="small"
@click="handleCode">生成</el-button> @click="handleCode">生成</el-button>
</el-form-item> </el-form-item>
<div v-if="dataForm.qrcodeUrl"
style="display: flex;flex-direction: column;">
<img style="margin-left: 70px;width: 200px;"
:src="dataForm.qrcodeUrl">
<a style="margin-left: 80px"
:href="dataForm.qrcodeUrl"
target="_blank">下载</a>
</div>
<el-form-item label="关联物业" <el-form-item label="关联物业"
prop="propertyId" prop="propertyId"
label-width="150px" label-width="150px"

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

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

Loading…
Cancel
Save