jiangyy 5 years ago
parent
commit
8da138577e
  1. 60
      epmet-oper-web/src/views/modules/customer/init/RegisterList.vue

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

@ -24,7 +24,6 @@
keyword="RegisterInfo"
:operations="operations"
:tableHeight="tableHeight"
@commitCode="commitCode"
@init="init">
</c-table>
</div>
@ -72,22 +71,6 @@ export default {
return false
}
}
},
{
lable: '上传代码', //
size: 'mini',
style: 'margin: 0 6px;',
type: 'text',
slot: '',
plain: false,
methodName: 'commitCode', //
isShow: (row) => {
if (row.initState === 1) {
return true
} else {
return false
}
}
}
],
//
@ -189,50 +172,7 @@ export default {
}
)
},
//
commitCode (row) {
const customerUrl =
'https://epmet-cloud.elinkservice.cn/api/third/pacustomer/registerbyauth'
const param = {
// workAuth: 1,
// resiAuth: 1,
source: this.env,
initState: 1
}
this.startLoading()
window.app.ajax.post(
customerUrl,
param,
(data, rspMsg) => {
this.endLoading()
if (data) {
let customerList = []
data.forEach((element) => {
let oneObj = {
value: element.customerId,
label: element.customerName
}
customerList.push(oneObj)
})
this.$router.push({
name: 'code-CommitList',
params: {
showCommit: true,
customerId: row.customerId,
name: row.agencyName,
customerList: customerList
}
})
}
},
(rspMsg, data) => {
this.endLoading()
this.$message.error(rspMsg)
}
)
},
//
startLoading () {
loading = Loading.service({

Loading…
Cancel
Save