|
|
@ -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 |
|
|
|