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: '', selCustomerId: '',
diaSubVisible: false, diaSubVisible: false,
activeName: 'resi', activeName: 'resi',
dataListLoading: false,
resiDataList: [], resiDataList: [],
workDataList: [], workDataList: [],
@ -425,6 +424,7 @@ export default {
this.workDataList = [] this.workDataList = []
this.$nextTick(() => { this.$nextTick(() => {
this.selCustomerId = row.customerId this.selCustomerId = row.customerId
this.loadSubscribeData() this.loadSubscribeData()
}) })
@ -433,7 +433,10 @@ export default {
// //
async loadSubscribeData () { 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://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/subscribe/getcustomerlist'
const url = 'https://epmet-cloud.elinkservice.cn/api/third/subscribe/getcustomerlist' const url = 'https://epmet-cloud.elinkservice.cn/api/third/subscribe/getcustomerlist'
let params = { let params = {
@ -479,7 +482,10 @@ export default {
} else { } else {
this.$message.error(msg + ":" + internalMsg) 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> </script>
<style lang="css" > <style lang="css" scoped >
.dialogSub .el-dialog__body { .dialogSub .el-dialog__body {
padding: 0 20px 10px 20px; 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> @click="tableType==='sync'?delSubSure():syncSubSure()">{{btnName}}</el-button>
<el-table :height="subTabHeight" <el-table :height="subTabHeight"
ref="ref_table" ref="ref_table"
v-loading="dataListLoading" v-loading="tableLoading"
:data="tableData" :data="tableData"
border border
style="width: 100%;" style="width: 100%;"
@ -59,7 +59,7 @@ let loading // 加载动画
export default { export default {
data () { data () {
return { return {
dataListLoading: false, tableLoading: false,
selCustomerId: '', selCustomerId: '',
resiAppid: '', resiAppid: '',
workAppid: '', workAppid: '',
@ -70,9 +70,7 @@ export default {
}, },
components: {}, components: {},
activated () { activated () {
this.$nextTick(() => {
this.$refs.table.doLayout() //
})
}, },
mounted () { mounted () {
@ -88,12 +86,15 @@ export default {
this.selList = val this.selList = val
}, },
getSelTemplIdList () { setTableLoading () {
let selTempIdList = [] this.tableLoading = !this.tableLoading
},
getSelIdList () {
let selIdList = []
this.selList.forEach(element => { this.selList.forEach(element => {
selTempIdList.push(element.tmplId) selIdList.push(element.id)
}) })
return selTempIdList return selIdList
}, },
getSelPersonalIdList () { getSelPersonalIdList () {
let personalIdList = [] let personalIdList = []
@ -117,7 +118,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let selList = this.getSelTemplIdList() let selList = this.getSelIdList()
if (selList.length === 0) { if (selList.length === 0) {
this.$message.info("请选择要同步的模板") this.$message.info("请选择要同步的模板")
} else { } else {

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

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

Loading…
Cancel
Save