fix:account 配置秘钥由文件改为文本类型 & 导入导出下载模板补充提交

This commit is contained in:
bsdbc
2020-02-27 09:23:37 +08:00
parent d5f41c9ad0
commit 058eddd575
7 changed files with 111 additions and 203 deletions

View File

@@ -37,7 +37,6 @@
export-file-name="asset"
export-url="/asset/export"
:params="searchLabel"
:template-key="templateKey"
@afterImport="getAssetData"
class="float-right">
<template slot="optionZone">
@@ -371,25 +370,6 @@
checkAllFlag: false,
checkAllHandler: false,
assetClick: false,
templateHeader:['*Sn','*Type','*Vendor','*Model','*Idc','Cabinet','*Host','State','PurchaseDate','AuthType','User','Pwd','PrivateKey','Port','Exporter'],
templateDate:[{
sn:'0001',
type:'server/net',
vendor:'huawei',
model:'rongyao',
idc:'beijing',
cabinet:'cab-01',
host:'192.168.1.1',
state:'1:在库 2:出库 默认:在库',
purchaseData:'2020-02-11 19:30:33',
authType:'认证类型1密码2私钥证书',
user:'root',
pwd:'111111',
privateKey:'xxxxxxxx',
port:'22',
exporter:'是否安装node_exporter,1:安装0:不安装'
}],
templateKey:['sn','type','vendor','model','idc','cabinet','host','state','purchaseData','authType','user','pwd','privateKey','port','exporter']
}
},
computed: {