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