Browse Source

外部应用列表显示客户Id;复制时复制一套信息

preview
jianjun 4 years ago
parent
commit
fe6d68c6cc
  1. 14
      epmet-oper-web/src/js/columns/miniPro/partnerApp.js
  2. 6
      epmet-oper-web/src/views/modules/partner/app/index.vue

14
epmet-oper-web/src/js/columns/miniPro/partnerApp.js

@ -12,15 +12,23 @@ export default [{
display: ['formA', 'formU', 'table', 'model'],
fixed: false,
block: true,
width: 100
width: 80
},
{
key: 'customerId',
title: '所属客户Id',
display: ['formA', 'formU', 'table', 'model'],
fixed: false,
block: true,
width: 100
},
{
key: 'customerName',
title: '所属客户',
display: ['formA', 'formU', 'table', 'model'],
fixed: false,
block: true,
width: 100
width: 80
},
{
key: 'customerTypeName',
@ -38,4 +46,4 @@ export default [{
block: true,
width: 200
},
]
]

6
epmet-oper-web/src/views/modules/partner/app/index.vue

@ -231,14 +231,14 @@ export default {
this.$refs["edit"].init(row, "A");
},
copySecret (row) {
const { secret } = row;
const { } = row;
let info = {'appId':row.appId,"secret":row.secret,"customerId":row.customerId}
var aux = document.createElement("input");
aux.setAttribute("value", secret);
aux.setAttribute("value", JSON.stringify(info));
document.body.appendChild(aux);
aux.select();
document.execCommand("copy");
document.body.removeChild(aux);
console.log("复制成功", secret);
this.$message({
type: "success",
message: "复制成功",

Loading…
Cancel
Save