liyan 5 years ago
parent
commit
c23010bc79
  1. 14
      epmet-oper-web/src/views/modules/customer/init/RegisterList.vue
  2. 21
      epmet-oper-web/src/views/modules/customer/init/TempList.vue
  3. 5
      epmet-oper-web/src/views/modules/customer/miniProAgent/MiniProList.vue

14
epmet-oper-web/src/views/modules/customer/init/RegisterList.vue

@ -281,7 +281,6 @@ export default {
selCustomerId: '',
diaSubVisible: false,
activeName: 'resi',
dataListLoading: false,
resiDataList: [],
workDataList: [],
@ -425,6 +424,7 @@ export default {
this.workDataList = []
this.$nextTick(() => {
this.selCustomerId = row.customerId
this.loadSubscribeData()
})
@ -433,7 +433,10 @@ export default {
//
async loadSubscribeData () {
this.dataListLoading = true
this.$refs.temp_list_resi_has.setTableLoading()
this.$refs.temp_list_resi_no.setTableLoading()
this.$refs.temp_list_work_has.setTableLoading()
this.$refs.temp_list_work_no.setTableLoading()
// const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/subscribe/getcustomerlist'
const url = 'https://epmet-cloud.elinkservice.cn/api/third/subscribe/getcustomerlist'
let params = {
@ -479,7 +482,10 @@ export default {
} else {
this.$message.error(msg + ":" + internalMsg)
}
this.dataListLoading = false
this.$refs.temp_list_resi_has.setTableLoading()
this.$refs.temp_list_resi_no.setTableLoading()
this.$refs.temp_list_work_has.setTableLoading()
this.$refs.temp_list_work_no.setTableLoading()
},
//
@ -504,7 +510,7 @@ export default {
}
}
</script>
<style lang="css" >
<style lang="css" scoped >
.dialogSub .el-dialog__body {
padding: 0 20px 10px 20px;
}

21
epmet-oper-web/src/views/modules/customer/init/TempList.vue

@ -8,7 +8,7 @@
@click="tableType==='sync'?delSubSure():syncSubSure()">{{btnName}}</el-button>
<el-table :height="subTabHeight"
ref="ref_table"
v-loading="dataListLoading"
v-loading="tableLoading"
:data="tableData"
border
style="width: 100%;"
@ -59,7 +59,7 @@ let loading // 加载动画
export default {
data () {
return {
dataListLoading: false,
tableLoading: false,
selCustomerId: '',
resiAppid: '',
workAppid: '',
@ -70,9 +70,7 @@ export default {
},
components: {},
activated () {
this.$nextTick(() => {
this.$refs.table.doLayout() //
})
},
mounted () {
@ -88,12 +86,15 @@ export default {
this.selList = val
},
getSelTemplIdList () {
let selTempIdList = []
setTableLoading () {
this.tableLoading = !this.tableLoading
},
getSelIdList () {
let selIdList = []
this.selList.forEach(element => {
selTempIdList.push(element.tmplId)
selIdList.push(element.id)
})
return selTempIdList
return selIdList
},
getSelPersonalIdList () {
let personalIdList = []
@ -117,7 +118,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let selList = this.getSelTemplIdList()
let selList = this.getSelIdList()
if (selList.length === 0) {
this.$message.info("请选择要同步的模板")
} else {

5
epmet-oper-web/src/views/modules/customer/miniProAgent/MiniProList.vue

@ -1,7 +1,8 @@
<!-- 代小程序管理 -->
<template>
<div>
<el-card shadow="never"
class="aui-card--fill">
<div v-show="!showVersion"
class="mod-demo__demo}">
@ -64,7 +65,7 @@
<basic-info ref="ref_basic_info"></basic-info>
<category ref="ref_catefoty"></category>
</el-card>
</div>
</template>

Loading…
Cancel
Save