Browse Source

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

dev
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'], display: ['formA', 'formU', 'table', 'model'],
fixed: false, fixed: false,
block: true, block: true,
width: 100 width: 80
}, },
{
key: 'customerId',
title: '所属客户Id',
display: ['formA', 'formU', 'table', 'model'],
fixed: false,
block: true,
width: 100
},
{ {
key: 'customerName', key: 'customerName',
title: '所属客户', title: '所属客户',
display: ['formA', 'formU', 'table', 'model'], display: ['formA', 'formU', 'table', 'model'],
fixed: false, fixed: false,
block: true, block: true,
width: 100 width: 80
}, },
{ {
key: 'customerTypeName', key: 'customerTypeName',
@ -38,4 +46,4 @@ export default [{
block: true, block: true,
width: 200 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"); this.$refs["edit"].init(row, "A");
}, },
copySecret (row) { copySecret (row) {
const { secret } = row; const { } = row;
let info = {'appId':row.appId,"secret":row.secret,"customerId":row.customerId}
var aux = document.createElement("input"); var aux = document.createElement("input");
aux.setAttribute("value", secret); aux.setAttribute("value", JSON.stringify(info));
document.body.appendChild(aux); document.body.appendChild(aux);
aux.select(); aux.select();
document.execCommand("copy"); document.execCommand("copy");
document.body.removeChild(aux); document.body.removeChild(aux);
console.log("复制成功", secret);
this.$message({ this.$message({
type: "success", type: "success",
message: "复制成功", message: "复制成功",

Loading…
Cancel
Save