Browse Source

【安宁pc端 】-【小程序码管理 - 添加网格党支部小程序码生成】

migration
weikai 5 years ago
parent
commit
1165844d0c
  1. 37
      src/views/modules/sys/deptmacode-optimize.vue

37
src/views/modules/sys/deptmacode-optimize.vue

@ -38,6 +38,12 @@
type="primary"
@click="createGridLeaderMaCodeHandle()">生成网格长注册码</el-button>
</el-form-item>
<el-form-item>
<el-button v-if="$hasPermission('sys:deptmacode:leader')"
type="primary"
@click="createGridBranchparty()">生成网格党支部注册码</el-button>
</el-form-item>
</el-form>
<el-table v-loading="dataListLoading"
:data="dataList"
@ -307,6 +313,37 @@ export default {
},
errorExceed (file, fileList) {
this.$message.error('上传失败请重试')
},
//
createGridBranchparty () {
this.$confirm(
this.$t('prompt.info', { handle: '生成网格党支部注册小程序码' }),
this.$t('生成'),
{
confirmButtonText: this.$t('confirm'),
cancelButtonText: this.$t('cancel'),
type: 'warning'
}
)
.then(() => {
this.$http
.post(`/sys/optimize/deptmacode/gridBranchparty`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.$message({
message: this.$t('prompt.success'),
type: 'success',
duration: 500,
onClose: () => {
this.getDataList()
}
})
})
.catch(() => { })
})
.catch(() => { })
}
}
}

Loading…
Cancel
Save