From d2c3b08e69c6bc28709dda25f278d0b1f0a0cf65 Mon Sep 17 00:00:00 2001 From: yg3630536 <125480926@qq.com> Date: Tue, 23 Mar 2021 15:03:08 +0800 Subject: [PATCH] fix bug --- .../com/webank/weid/service/ConfigService.java | 3 +-- .../com/webank/weid/service/ContractService.java | 9 +++------ .../com/webank/weid/service/WeBaseService.java | 6 ++---- .../com/webank/weid/service/WeIdSdkService.java | 8 +++----- .../static/weid/weid-build-tools/index.html | 2 +- ...5395daae68c.js => 11.280e9c6e073faeeab77a.js} | 2 +- ...1b682f30fd8.js => 12.44b8e470927de690f569.js} | 2 +- ...4be07482a78.js => 13.a38afcc8a8bea4418cd7.js} | 2 +- .../static/js/15.4fa937c232ee60dba566.js | 1 - .../static/js/15.73e656ac862c707eda49.js | 1 + ...c76668b93cf.js => 16.af397b3b049d5ca1e90b.js} | 2 +- .../static/js/22.0f40d05fb37987d42b1b.js | 1 - .../static/js/22.9d0dab8cb90e3c25bf98.js | 1 + ...230fbcf9f6d.js => 24.414fa946cd76b0398f01.js} | 2 +- ...247a887b4488.js => 4.5344241724a6ad90655b.js} | 2 +- .../static/js/8.4f7ff4af3aabbb96cbea.js | 1 - .../static/js/8.e56ffb457506afd4302b.js | 1 + .../static/js/manifest.3b33ca972ecf0ffd10b8.js | 1 - .../static/js/manifest.7873cd434d142de6bd39.js | 1 + web/src/module/guide/step1.vue | 2 +- web/src/module/guide/step3.vue | 16 ++++++++-------- web/src/module/page/conf/accountPage.vue | 2 +- web/src/module/page/conf/dbPage.vue | 16 ++++++++-------- web/src/module/page/conf/nodePage.vue | 2 +- .../module/page/deploy/deployEvidencePage.vue | 2 +- web/src/module/page/deploy/deployWeIdPage.vue | 2 +- web/src/module/page/weid/cptListPage.vue | 2 +- web/src/module/page/weid/weidListPage.vue | 9 +++++++-- 28 files changed, 49 insertions(+), 52 deletions(-) rename src/main/resources/static/weid/weid-build-tools/static/js/{11.cf318dd7e5395daae68c.js => 11.280e9c6e073faeeab77a.js} (84%) rename src/main/resources/static/weid/weid-build-tools/static/js/{12.fce069a391b682f30fd8.js => 12.44b8e470927de690f569.js} (92%) rename src/main/resources/static/weid/weid-build-tools/static/js/{13.56c10c94b4be07482a78.js => 13.a38afcc8a8bea4418cd7.js} (41%) delete mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/15.4fa937c232ee60dba566.js create mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/15.73e656ac862c707eda49.js rename src/main/resources/static/weid/weid-build-tools/static/js/{16.da123b983c76668b93cf.js => 16.af397b3b049d5ca1e90b.js} (47%) delete mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/22.0f40d05fb37987d42b1b.js create mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/22.9d0dab8cb90e3c25bf98.js rename src/main/resources/static/weid/weid-build-tools/static/js/{24.c740886ac230fbcf9f6d.js => 24.414fa946cd76b0398f01.js} (42%) rename src/main/resources/static/weid/weid-build-tools/static/js/{4.9e9cbae9247a887b4488.js => 4.5344241724a6ad90655b.js} (93%) delete mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/8.4f7ff4af3aabbb96cbea.js create mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/8.e56ffb457506afd4302b.js delete mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/manifest.3b33ca972ecf0ffd10b8.js create mode 100644 src/main/resources/static/weid/weid-build-tools/static/js/manifest.7873cd434d142de6bd39.js diff --git a/src/main/java/com/webank/weid/service/ConfigService.java b/src/main/java/com/webank/weid/service/ConfigService.java index e681902..b478c78 100644 --- a/src/main/java/com/webank/weid/service/ConfigService.java +++ b/src/main/java/com/webank/weid/service/ConfigService.java @@ -63,8 +63,7 @@ public class ConfigService { private static boolean nodeCheck = false; - @Autowired - private WeBaseService weBaseService; + private WeBaseService weBaseService = new WeBaseService(); // private FiscoConfig fiscoConfig; diff --git a/src/main/java/com/webank/weid/service/ContractService.java b/src/main/java/com/webank/weid/service/ContractService.java index 63e9185..6f3cb93 100644 --- a/src/main/java/com/webank/weid/service/ContractService.java +++ b/src/main/java/com/webank/weid/service/ContractService.java @@ -73,14 +73,11 @@ public class ContractService { private static String preMainHash; - @Autowired - private ConfigService configService; + private ConfigService configService = new ConfigService(); - @Autowired - private WeIdSdkService weIdSdkService; + private WeIdSdkService weIdSdkService = new WeIdSdkService(); - @Autowired - private WeBaseService weBaseService; + private WeBaseService weBaseService = new WeBaseService(); private static final String CONTRACT_JAR_PEFIX = "weid-contract-java-"; diff --git a/src/main/java/com/webank/weid/service/WeBaseService.java b/src/main/java/com/webank/weid/service/WeBaseService.java index 65da10d..9ed31c2 100644 --- a/src/main/java/com/webank/weid/service/WeBaseService.java +++ b/src/main/java/com/webank/weid/service/WeBaseService.java @@ -55,11 +55,9 @@ public class WeBaseService { private static final String WEBASE_CONTEXT = "/WeBASE-Node-Manager/"; - @Autowired - private RestTemplate restTemplate; + private RestTemplate restTemplate = new RestTemplate(); - @Autowired - private GuideService guideService; + private GuideService guideService = new GuideService(); /** * 服務注冊接口,weId向WeBase注册服务。 diff --git a/src/main/java/com/webank/weid/service/WeIdSdkService.java b/src/main/java/com/webank/weid/service/WeIdSdkService.java index 660c85e..fc559dd 100644 --- a/src/main/java/com/webank/weid/service/WeIdSdkService.java +++ b/src/main/java/com/webank/weid/service/WeIdSdkService.java @@ -109,11 +109,9 @@ public class WeIdSdkService { return cptService; } - @Autowired - private ConfigService configService; + private ConfigService configService = new ConfigService(); - @Autowired - private WeBaseService weBaseService; + private WeBaseService weBaseService = new WeBaseService(); public ResponseData getDataPanel() { DataPanel data = new DataPanel(); @@ -738,7 +736,7 @@ public class WeIdSdkService { cptInfo.setWeId(cpt.getCptPublisher()); cptInfo.setCptDesc((String)cpt.getCptJsonSchema().get("description")); cptInfo.setTime(cpt.getCreated()); - if (cptId < 1000) { + if (BuildToolsConstant.CPTID_LIST.contains(cptId)) { cptInfo.setCptType("sys"); } else { cptInfo.setCptType("user"); diff --git a/src/main/resources/static/weid/weid-build-tools/index.html b/src/main/resources/static/weid/weid-build-tools/index.html index 801d2fc..c95b1af 100644 --- a/src/main/resources/static/weid/weid-build-tools/index.html +++ b/src/main/resources/static/weid/weid-build-tools/index.html @@ -1 +1 @@ -WeIdentity 网页管理工具
\ No newline at end of file +WeIdentity 网页管理工具
\ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/11.cf318dd7e5395daae68c.js b/src/main/resources/static/weid/weid-build-tools/static/js/11.280e9c6e073faeeab77a.js similarity index 84% rename from src/main/resources/static/weid/weid-build-tools/static/js/11.cf318dd7e5395daae68c.js rename to src/main/resources/static/weid/weid-build-tools/static/js/11.280e9c6e073faeeab77a.js index e31407c..04976a0 100644 --- a/src/main/resources/static/weid/weid-build-tools/static/js/11.cf318dd7e5395daae68c.js +++ b/src/main/resources/static/weid/weid-build-tools/static/js/11.280e9c6e073faeeab77a.js @@ -1 +1 @@ -webpackJsonp([11],{pnpQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("lC5x"),s=a.n(l),i=a("J0Oq"),o=a.n(i),n=a("/p82"),d=a("gej+"),r={data:function(){return{page:{deployList:[],pageSize:5,total:0,pageIndex:1},roleType:localStorage.getItem("roleType"),dialog:{dialogFormVisible:!1,dialogDetailVisible:!1,dialogDepolyDetailVisible:!1,deployMessages:[],deployForm:{chainId:"",applyName:""},hash:"",deployBtn:null,deployDetail:{}}}},methods:{showAll:function(t){this.$alert(t,"温馨提示",{closeOnClickModal:"true"}).catch(function(){})},showDeployForm:function(){d.a.data.nodeStatus?(this.dialog.deployForm.chainId="",this.dialog.deployForm.applyName="",this.dialog.dialogFormVisible=!0):d.a.checkNodeState(!1)},showDeployDetail:function(t,e){var a=this;n.a.doGet("getDeployInfo/"+t).then(function(t){0===t.data.errorCode?(a.dialog.dialogDetailVisible=!0,a.dialog.deployDetail=t.data.result,a.dialog.deployDetail.owner=e):a.$alert("部署详细查询失败!","温馨提示",{}).catch(function(){})})},changeRoleType:function(){this.roleType=localStorage.getItem("roleType")},deleteRow:function(t,e){var a=this,l=e.currentTarget,s=this;this.$confirm("确认删除吗?","温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary"}).then(function(e){s.disableBtn(l),a.removeHash(t,l)}).catch(function(){})},removeHash:function(t,e){var a=this;n.a.doGet("removeHash/"+t+"/1").then(function(t){0===t.data.errorCode?(a.$alert("删除成功!","温馨提示").catch(function(){}),a.init()):a.$alert(t.data.errorMessage,"温馨提示",{}).catch(function(){}),a.enableBtn(e)})},checkInput:function(){return""===this.dialog.deployForm.chainId?(this.$alert("请输入ChainId!","温馨提示",{}).catch(function(){}),!1):""!==this.dialog.deployForm.applyName||(this.$alert("请输入应用名!","温馨提示",{}).catch(function(){}),!1)},comfirmBtn:function(){this.dialog.dialogDepolyDetailVisible=!1,this.dialog.dialogFormVisible=!1},deploy:function(t){var e=this;this.dialog.deployBtn=t.currentTarget,this.checkInput()&&(this.disableBtn(this.dialog.deployBtn),this.dialog.dialogDepolyDetailVisible=!0,this.dialog.deployMessages=[],this.dialog.deployMessages.push("合约部署中..."),n.a.doPost("deploy",this.dialog.deployForm,15).then(function(t){e.dialog.dialogDepolyDetailVisible=!0,0===t.data.errorCode?(e.dialog.hash=t.data.result,e.isEnableMasterCns()):(e.dialog.deployMessages.push("合约部署失败! 请查看日志。"),e.enableBtn(e.dialog.deployBtn))}))},isEnableMasterCns:function(){var t=this;n.a.doGet("isEnableMasterCns").then(function(e){t.dialog.dialogDepolyDetailVisible=!0,e.data.result?t.enableHash(!0):(t.dialog.deployMessages.push("合约部署成功。"),t.dialog.deployMessages.push("请继续操作。"),t.enableBtn(t.dialog.deployBtn),t.init())})},enableHash:function(t){var e=this;this.dialog.deployMessages.push("合约启用中..."),n.a.doGet("enableHash/"+this.dialog.hash,null,10).then(function(a){e.dialog.dialogDepolyDetailVisible=!0,0===a.data.errorCode?(e.dialog.deployMessages.push("合约启用成功。"),t?e.deploySystemCpt():(e.dialog.deployMessages.push("请继续操作。"),e.enableBtn(e.dialog.deployBtn),e.init())):(e.dialog.deployMessages.push("合约启用失败!请查看日志。"),e.enableBtn(e.dialog.deployBtn))})},deploySystemCptBtn:function(t){this.dialog.hash=t,this.deploySystemCpt()},deploySystemCpt:function(){var t=this;this.dialog.deployMessages.push("系统CPT部署中..."),this.dialog.dialogDepolyDetailVisible=!0,n.a.doGet("deploySystemCpt/"+this.dialog.hash,null,10).then(function(e){0===e.data.errorCode?(t.dialog.deployMessages.push("系统CPT部署成功。"),t.dialog.deployMessages.push("系统CPT部署成功! 请继续操作。"),t.init()):t.dialog.deployMessages.push("系统CPT部署失败!请查看日志。"),t.dialog.dialogDepolyDetailVisible=!0,t.enableBtn(t.dialog.deployBtn)})},enable:function(t,e,a){var l=this;this.dialog.deployBtn=a.currentTarget,this.$confirm("是否确定启用该主合约?","温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary"}).then(function(a){l.dialog.hash=t,l.dialog.deployMessages=[],l.dialog.dialogDepolyDetailVisible=!0,l.disableBtn(l.dialog.deployBtn),l.enableHash(e)}).catch(function(){})},handleCurrentChange:function(t){t<1&&(t=1),this.page.pageIndex=t},init:function(){var t=this;n.a.doGet("getDeployList").then(function(e){0===e.data.errorCode&&(t.page.deployList=e.data.result,t.page.total=t.page.deployList.length,t.page.total===t.page.pageSize*(t.page.pageIndex-1)&&t.handleCurrentChange(t.page.pageIndex-1))})},check:function(){var t=this;return o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.a.checkNodeState(!1);case 2:d.a.data.nodeStatus&&t.init();case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){var t=this;window.addEventListener("setItem",function(){t.changeRoleType()}),this.check()}},c={render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("section",{staticClass:"content app_main"},["1"===t.roleType?l("el-row",{staticClass:"app_main_header_row"},[l("el-col",{attrs:{span:5}},[l("el-button",{staticClass:"btn",staticStyle:{width:"250px"},attrs:{type:"primary"},on:{click:t.showDeployForm}},[t._v("主群组部署 WeIdentity 智能合约")])],1),t._v(" "),l("el-col",{staticClass:"head-icon",attrs:{span:19}},[l("a",{attrs:{href:"https://weid-doc-xml.readthedocs.io/zh/test/docs/weidentity-quick-tools-web.html?highlight=部署 WeIdentity 智能合约#id2",target:"blank_"}},[l("img",{staticClass:"icon_question",attrs:{src:a("JaJV"),alt:""}}),t._v(" "),l("span",{staticClass:"icon_question"},[t._v("多次部署合约")])])])],1):t._e(),t._v(" "),l("div",{staticClass:"app_view"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.page.deployList.slice((t.page.pageIndex-1)*t.page.pageSize,t.page.pageIndex*t.page.pageSize),border:"true",align:"center",cellpadding:"0",cellspacing:"0"}},[l("el-table-column",{attrs:{prop:"applyName",label:"应用名字",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"long_words",attrs:{title:e.row.applyName}},[t._v(t._s(e.row.applyName))])]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"智能合约部署ID",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"long_words link",attrs:{title:e.row.hash},on:{click:function(a){return t.showAll(e.row.hash)}}},[t._v(t._s(e.row.hashShow))])]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"部署的机构名称",align:"center",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return null!==e.row.issuer?[l("span",{staticClass:"icon_question",attrs:{title:e.row.issuer.name}},[t._v(t._s(e.row.issuer.name))]),t._v(" "),!0===e.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("MeCv"),widht:"50",height:"50",alt:""}}):t._e(),t._v(" "),!1===e.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("B7UN"),widht:"50",height:"50",alt:""}}):t._e()]:void 0}}],null,!0)}),t._v(" "),l("el-table-column",{attrs:{prop:"groupId",label:"所在群组",align:"center",width:"100"}}),t._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"170"}}),t._v(" "),l("el-table-column",{attrs:{label:"操作",align:"center",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.enable?l("el-button",{staticClass:"btn",attrs:{type:"primary",disabled:""}},[t._v("已启用")]):l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return t.enable(e.row.hash,e.row.needDeployCpt,a)}}},[t._v("启用")]),t._v(" "),l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return t.deleteRow(e.row.hash,a)}}},[t._v("删除")]),t._v(" "),0==e.row.enable||0==e.row.needDeployCpt?l("el-button",{staticClass:"btn",staticStyle:{width:"90px"},attrs:{type:"primary"},on:{click:function(a){return t.showDeployDetail(e.row.hash,e.row.weId)}}},[t._v("详细信息")]):t._e(),t._v(" "),e.row.enable&&e.row.needDeployCpt?l("el-button",{staticClass:"btn",staticStyle:{width:"120px"},attrs:{type:"primary"},on:{click:function(a){return t.deploySystemCptBtn(e.row.hash)}}},[t._v("部署系统CPT")]):t._e()]}}])})],1),t._v(" "),"1"===t.roleType?l("el-pagination",{attrs:{"current-page":t.page.pageIndex,"page-size":t.page.pageSize,layout:"total, prev, pager, next, jumper",total:t.page.total},on:{"current-change":t.handleCurrentChange}}):t._e()],1),t._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"主群组部署 WeIdentity 智能合约",width:"29%",visible:t.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogFormVisible",e)}}},[l("div",{staticClass:"dialog-body"},[l("el-form",{attrs:{model:t.dialog.deployForm}},[l("el-form-item",{attrs:{label:"链ID(chain_id)","label-width":t.formLabelWidth}},[l("div",{staticClass:"mark-icon"},[l("a",{attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-spec.html?highlight=chain-id#id4",target:"blank_"}},[l("img",{staticClass:"icon_question",attrs:{src:a("JaJV"),alt:""}}),t._v(" "),l("span",{staticClass:"icon_question"},[t._v("什么是chain id?")])])]),t._v(" "),l("el-input",{attrs:{placeholder:"Enter chainId",onKeyUp:"this.value=this.value.replace(/\\D/g,'')"},on:{blur:function(e){t.dialog.deployForm.chainId=e.target.value}},model:{value:t.dialog.deployForm.chainId,callback:function(e){t.$set(t.dialog.deployForm,"chainId",e)},expression:"dialog.deployForm.chainId"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"应用名字","label-width":t.formLabelWidth}},[l("div",{staticClass:"mark-text"},[l("span",{},[t._v("给自己的WeIdentity区块链应用起一个名字吧,用于在同一条链上区别不同的 WeIdentity 应用,例如“学历证书应用”,“区块链证件应用”。")])]),t._v(" "),l("el-input",{attrs:{placeholder:"Enter applyName"},model:{value:t.dialog.deployForm.applyName,callback:function(e){t.$set(t.dialog.deployForm,"applyName",e)},expression:"dialog.deployForm.applyName"}})],1)],1)],1),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.deploy(e)}}},[t._v("部 署")])],1)]),t._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"部署信息",width:"620px",visible:t.dialog.dialogDetailVisible,"close-on-click-modal":!0},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogDetailVisible",e)}}},[l("div",{staticClass:"dialog-body deployDetail"},[l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("智能合约部署ID")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[t._v(t._s(t.dialog.deployDetail.hash))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("部署账户")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[t._v(t._s(t.dialog.deployDetail.owner))])],1),t._v(" "),t.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("WeID SDK版本")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[t._v(t._s(t.dialog.deployDetail.weIdSdkVersion))]),t._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("WeID合约版本")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[t._v(t._s(t.dialog.deployDetail.contractVersion))])],1):t._e(),t._v(" "),t.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("部署来源")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[t._v(t._s(t.dialog.deployDetail.from))]),t._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("区块链节点版本")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[t._v(t._s(t.dialog.deployDetail.nodeVerion))])],1):t._e(),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("区块链节点")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[t._v(t._s(t.dialog.deployDetail.nodeAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("WeID智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.weIdAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("CPT智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.cptAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Authority Issuer 智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.authorityAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Evidence 智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.evidenceAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Specific Issuer 智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.specificAddress))])],1),t._v(" "),l("el-row",{staticClass:"none-border"},[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Chain Id")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.chainId))])],1)],1),t._v(" "),l("br")]),t._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"合约部署",width:"400px",visible:t.dialog.dialogDepolyDetailVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogDepolyDetailVisible",e)}}},[l("div",{staticClass:"dialog-body deployMessage"},t._l(t.dialog.deployMessages,function(e){return l("p",{key:e.value},[t._v(t._s(e))])}),0),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:t.comfirmBtn}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]},p=a("C7Lr")(r,c,!1,null,null,null);e.default=p.exports}}); \ No newline at end of file +webpackJsonp([11],{pnpQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("lC5x"),s=a.n(l),i=a("J0Oq"),o=a.n(i),n=a("/p82"),d=a("gej+"),r={data:function(){return{page:{deployList:[],pageSize:5,total:0,pageIndex:1},roleType:localStorage.getItem("roleType"),dialog:{dialogFormVisible:!1,dialogDetailVisible:!1,dialogDepolyDetailVisible:!1,deployMessages:[],deployForm:{chainId:"",applyName:""},hash:"",deployBtn:null,deployDetail:{}}}},methods:{showAll:function(t){this.$alert(t,"温馨提示",{closeOnClickModal:"true"}).catch(function(){})},showDeployForm:function(){d.a.data.nodeStatus?(this.dialog.deployForm.chainId="",this.dialog.deployForm.applyName="",this.dialog.dialogFormVisible=!0):d.a.checkNodeState(!1)},showDeployDetail:function(t,e){var a=this;n.a.doGet("getDeployInfo/"+t).then(function(t){0===t.data.errorCode?(a.dialog.dialogDetailVisible=!0,a.dialog.deployDetail=t.data.result,a.dialog.deployDetail.owner=e):a.$alert("部署详细查询失败!","温馨提示",{}).catch(function(){})})},changeRoleType:function(){this.roleType=localStorage.getItem("roleType")},deleteRow:function(t,e){var a=this,l=e.currentTarget,s=this;this.$confirm("确认删除吗?","温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary"}).then(function(e){s.disableBtn(l),a.removeHash(t,l)}).catch(function(){})},removeHash:function(t,e){var a=this;n.a.doGet("removeHash/"+t+"/1").then(function(t){0===t.data.errorCode?(a.$alert("删除成功!","温馨提示").catch(function(){}),a.init()):a.$alert(t.data.errorMessage,"温馨提示",{}).catch(function(){}),a.enableBtn(e)})},checkInput:function(){return""===this.dialog.deployForm.chainId?(this.$alert("请输入ChainId!","温馨提示",{}).catch(function(){}),!1):""!==this.dialog.deployForm.applyName||(this.$alert("请输入应用名!","温馨提示",{}).catch(function(){}),!1)},comfirmBtn:function(){this.dialog.dialogDepolyDetailVisible=!1,this.dialog.dialogFormVisible=!1},deploy:function(t){var e=this;this.dialog.deployBtn=t.currentTarget,this.checkInput()&&(this.disableBtn(this.dialog.deployBtn),this.dialog.dialogDepolyDetailVisible=!0,this.dialog.deployMessages=[],this.dialog.deployMessages.push("合约部署中..."),n.a.doPost("deploy",this.dialog.deployForm,15).then(function(t){e.dialog.dialogDepolyDetailVisible=!0,0===t.data.errorCode?(e.dialog.hash=t.data.result,e.isEnableMasterCns()):(e.dialog.deployMessages.push("合约部署失败! 请查看日志。"),e.enableBtn(e.dialog.deployBtn))}))},isEnableMasterCns:function(){var t=this;n.a.doGet("isEnableMasterCns").then(function(e){t.dialog.dialogDepolyDetailVisible=!0,e.data.result?t.enableHash(!0):(t.dialog.deployMessages.push("合约部署成功。"),t.dialog.deployMessages.push("请继续操作。"),t.enableBtn(t.dialog.deployBtn),t.init())})},enableHash:function(t){var e=this;this.dialog.deployMessages.push("合约启用中..."),n.a.doGet("enableHash/"+this.dialog.hash,null,10).then(function(a){e.dialog.dialogDepolyDetailVisible=!0,0===a.data.errorCode?(e.dialog.deployMessages.push("合约启用成功。"),t?e.deploySystemCpt():(e.dialog.deployMessages.push("请继续操作。"),e.enableBtn(e.dialog.deployBtn),e.init())):(e.dialog.deployMessages.push("合约启用失败!请查看日志。"),e.enableBtn(e.dialog.deployBtn))})},deploySystemCptBtn:function(t){this.dialog.hash=t,this.deploySystemCpt()},deploySystemCpt:function(){var t=this;this.dialog.deployMessages.push("系统CPT部署中..."),this.dialog.dialogDepolyDetailVisible=!0,n.a.doGet("deploySystemCpt/"+this.dialog.hash,null,10).then(function(e){0===e.data.errorCode?(t.dialog.deployMessages.push("系统CPT部署成功。"),t.dialog.deployMessages.push("系统CPT部署成功! 请继续操作。"),t.init()):t.dialog.deployMessages.push("系统CPT部署失败!请查看日志。"),t.dialog.dialogDepolyDetailVisible=!0,t.enableBtn(t.dialog.deployBtn)})},enable:function(t,e,a){var l=this;this.dialog.deployBtn=a.currentTarget,this.$confirm("是否确定启用该主合约?","温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary"}).then(function(a){l.dialog.hash=t,l.dialog.deployMessages=[],l.dialog.dialogDepolyDetailVisible=!0,l.disableBtn(l.dialog.deployBtn),l.enableHash(e)}).catch(function(){})},handleCurrentChange:function(t){t<1&&(t=1),this.page.pageIndex=t},init:function(){var t=this;n.a.doGet("getDeployList").then(function(e){0===e.data.errorCode&&(t.page.deployList=e.data.result,t.page.total=t.page.deployList.length,t.page.total===t.page.pageSize*(t.page.pageIndex-1)&&t.handleCurrentChange(t.page.pageIndex-1))})},check:function(){var t=this;return o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.a.checkNodeState(!1);case 2:d.a.data.nodeStatus&&t.init();case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){var t=this;window.addEventListener("setItem",function(){t.changeRoleType()}),this.check()}},c={render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("section",{staticClass:"content app_main"},["1"===t.roleType?l("el-row",{staticClass:"app_main_header_row"},[l("el-col",{attrs:{span:5}},[l("el-button",{staticClass:"btn",staticStyle:{width:"250px"},attrs:{type:"primary"},on:{click:t.showDeployForm}},[t._v("主群组部署 WeIdentity 智能合约")])],1),t._v(" "),l("el-col",{staticClass:"head-icon",attrs:{span:19}},[l("a",{attrs:{href:"https://weid-doc-xml.readthedocs.io/zh/test/docs/weidentity-quick-tools-web.html?highlight=部署 WeIdentity 智能合约#id2",target:"blank_"}},[l("img",{staticClass:"icon_question",attrs:{src:a("JaJV"),alt:""}}),t._v(" "),l("span",{staticClass:"icon_question"},[t._v("多次部署合约")])])])],1):t._e(),t._v(" "),l("div",{staticClass:"app_view"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.page.deployList.slice((t.page.pageIndex-1)*t.page.pageSize,t.page.pageIndex*t.page.pageSize),border:"true",align:"center",cellpadding:"0",cellspacing:"0"}},[l("el-table-column",{attrs:{prop:"applyName",label:"应用名字",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"long_words",attrs:{title:e.row.applyName}},[t._v(t._s(e.row.applyName))])]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"智能合约部署ID",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("span",{staticClass:"long_words link",attrs:{title:e.row.hash},on:{click:function(a){return t.showAll(e.row.hash)}}},[t._v(t._s(e.row.hashShow))])]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"部署的机构名称",align:"center",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return null!==e.row.issuer?[l("span",{staticClass:"icon_question",attrs:{title:e.row.issuer.name}},[t._v(t._s(e.row.issuer.name))]),t._v(" "),!0===e.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("MeCv"),widht:"50",height:"50",alt:""}}):t._e(),t._v(" "),!1===e.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("B7UN"),widht:"50",height:"50",alt:""}}):t._e()]:void 0}}],null,!0)}),t._v(" "),l("el-table-column",{attrs:{prop:"groupId",label:"所在群组",align:"center",width:"100"}}),t._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"170"}}),t._v(" "),l("el-table-column",{attrs:{label:"操作",align:"center",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.enable?l("el-button",{staticClass:"btn",attrs:{type:"primary",disabled:""}},[t._v("已启用")]):l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return t.enable(e.row.hash,e.row.needDeployCpt,a)}}},[t._v("启用")]),t._v(" "),l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return t.deleteRow(e.row.hash,a)}}},[t._v("删除")]),t._v(" "),0==e.row.enable||0==e.row.needDeployCpt?l("el-button",{staticClass:"btn",staticStyle:{width:"90px"},attrs:{type:"primary"},on:{click:function(a){return t.showDeployDetail(e.row.hash,e.row.weId)}}},[t._v("详细信息")]):t._e(),t._v(" "),e.row.enable&&e.row.needDeployCpt?l("el-button",{staticClass:"btn",staticStyle:{width:"120px"},attrs:{type:"primary"},on:{click:function(a){return t.deploySystemCptBtn(e.row.hash)}}},[t._v("部署系统CPT")]):t._e()]}}])})],1),t._v(" "),"1"===t.roleType?l("el-pagination",{attrs:{"current-page":t.page.pageIndex,"page-size":t.page.pageSize,layout:"total, prev, pager, next, jumper",total:t.page.total},on:{"current-change":t.handleCurrentChange}}):t._e()],1),t._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"主群组部署 WeIdentity 智能合约",width:"29%",visible:t.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogFormVisible",e)}}},[l("div",{staticClass:"dialog-body"},[l("el-form",{attrs:{model:t.dialog.deployForm}},[l("el-form-item",{attrs:{label:"链ID(chain_id)","label-width":t.formLabelWidth}},[l("div",{staticClass:"mark-icon"},[l("a",{attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-spec.html?highlight=chain-id#id4",target:"blank_"}},[l("img",{staticClass:"icon_question",attrs:{src:a("JaJV"),alt:""}}),t._v(" "),l("span",{staticClass:"icon_question"},[t._v("什么是chain id?")])])]),t._v(" "),l("el-input",{attrs:{placeholder:"Enter chainId",onKeyUp:"this.value=this.value.replace(/\\D/g,'')"},on:{blur:function(e){t.dialog.deployForm.chainId=e.target.value}},model:{value:t.dialog.deployForm.chainId,callback:function(e){t.$set(t.dialog.deployForm,"chainId",e)},expression:"dialog.deployForm.chainId"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"应用名字","label-width":t.formLabelWidth}},[l("div",{staticClass:"mark-text"},[l("span",{},[t._v("给自己的WeIdentity区块链应用起一个名字吧,用于在同一条链上区别不同的 WeIdentity 应用,例如“学历证书应用”,“区块链证件应用”。")])]),t._v(" "),l("el-input",{attrs:{placeholder:"Enter applyName"},model:{value:t.dialog.deployForm.applyName,callback:function(e){t.$set(t.dialog.deployForm,"applyName",e)},expression:"dialog.deployForm.applyName"}})],1)],1)],1),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.deploy(e)}}},[t._v("部 署")])],1)]),t._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"部署信息",width:"620px",visible:t.dialog.dialogDetailVisible,"close-on-click-modal":!0},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogDetailVisible",e)}}},[l("div",{staticClass:"dialog-body deployDetail"},[l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("智能合约部署ID")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[t._v(t._s(t.dialog.deployDetail.hash))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("部署账户")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[t._v(t._s(t.dialog.deployDetail.owner))])],1),t._v(" "),t.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("WeID SDK版本")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[t._v(t._s(t.dialog.deployDetail.weIdSdkVersion))]),t._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("WeID合约版本")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[t._v(t._s(t.dialog.deployDetail.contractVersion))])],1):t._e(),t._v(" "),t.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("部署来源")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[t._v(t._s(t.dialog.deployDetail.from))]),t._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("区块链节点版本")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[t._v(t._s(t.dialog.deployDetail.nodeVerion))])],1):t._e(),t._v(" "),t.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[t._v("区块链节点")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[t._v(t._s(t.dialog.deployDetail.nodeAddress))])],1):t._e(),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("WeID智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.weIdAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("CPT智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.cptAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Authority Issuer 智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.authorityAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Evidence 智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.evidenceAddress))])],1),t._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Specific Issuer 智能合约地址")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.specificAddress))])],1),t._v(" "),l("el-row",{staticClass:"none-border"},[l("el-col",{staticClass:"title",attrs:{span:8}},[t._v("Chain Id")]),t._v(" "),l("el-col",{staticClass:"value",attrs:{span:16}},[t._v(t._s(t.dialog.deployDetail.chainId))])],1)],1),t._v(" "),l("br")]),t._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"合约部署",width:"400px",visible:t.dialog.dialogDepolyDetailVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogDepolyDetailVisible",e)}}},[l("div",{staticClass:"dialog-body deployMessage"},t._l(t.dialog.deployMessages,function(e){return l("p",{key:e.value},[t._v(t._s(e))])}),0),t._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:t.comfirmBtn}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]},p=a("C7Lr")(r,c,!1,null,null,null);e.default=p.exports}}); \ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/12.fce069a391b682f30fd8.js b/src/main/resources/static/weid/weid-build-tools/static/js/12.44b8e470927de690f569.js similarity index 92% rename from src/main/resources/static/weid/weid-build-tools/static/js/12.fce069a391b682f30fd8.js rename to src/main/resources/static/weid/weid-build-tools/static/js/12.44b8e470927de690f569.js index 4f4178e..dac7f9c 100644 --- a/src/main/resources/static/weid/weid-build-tools/static/js/12.fce069a391b682f30fd8.js +++ b/src/main/resources/static/weid/weid-build-tools/static/js/12.44b8e470927de690f569.js @@ -1 +1 @@ -webpackJsonp([12],{F0QO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("lC5x"),i=a.n(l),s=a("J0Oq"),o=a.n(s),n=a("/p82"),r=a("gej+"),d={data:function(){return{page:{deployList:[],pageSize:5,total:0,pageIndex:1},dialog:{dialogTableVisible:!1,dialogFormVisible:!1,dialogDetailVisible:!1,dialogDepolyDetailVisible:!1,deployForm:{groupId:1,evidenceName:""},groupList:[],deployMessages:[],hash:"",groupId:"",deployBtn:null,deployDetail:{},userListPage:{userList:[],pageSize:3,total:0,pageIndex:1}}}},methods:{showAll:function(e){this.$alert(e,"温馨提示",{}).catch(function(){})},showDeploy:function(){r.a.data.nodeStatus?(this.dialog.deployForm.evidenceName="",this.dialog.dialogFormVisible=!0):r.a.checkNodeState(!1)},showDeployDetail:function(e,t){var a=this;n.a.doGet("getShareInfo/"+e).then(function(e){0===e.data.errorCode?(a.dialog.deployDetail=e.data.result,a.dialog.deployDetail.owner=t,a.dialog.dialogDetailVisible=!0):a.$alert("部署详情查询失败!","温馨提示").catch(function(){})})},enable:function(e,t,a){var l=this;this.dialog.deployBtn=a.currentTarget;var i="是否确定在此群组(group ID : "+t+")中使用这个 Evidence 合约地址?
* 启用后将直接同步到应用环境(如果是生产环境,请特别小心)。
* 每一个群组,只能有一个启用的 Evidence 合约(调用EvidenceService的createEvidence会将Evidence写入这个 Evidence 合约)。
* 不同群组,可以启用不同的 Evidence 合约。";this.$confirm(i,"温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary",dangerouslyUseHTMLString:!0}).then(function(a){l.disableBtn(l.dialog.deployBtn),l.dialog.hash=e,l.dialog.groupId=t,l.dialog.deployMessages=[],l.enableShareCns()}).catch(function(){})},deleteRow:function(e,t){var a=this;this.dialog.deployBtn=t.currentTarget,this.$confirm("确认删除吗?","温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary"}).then(function(t){a.disableBtn(a.dialog.deployBtn),a.removeHash(e)}).catch(function(){})},removeHash:function(e){var t=this;n.a.doGet("removeHash/"+e+"/2").then(function(e){0===e.data.errorCode?(t.$alert("删除成功!","温馨提示").catch(function(){}),t.getShareList()):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){}),t.enableBtn(t.dialog.deployBtn)})},comfirmBtn:function(){this.dialog.dialogDepolyDetailVisible=!1,this.dialog.dialogFormVisible=!1},enableShareCns:function(){var e=this,t={};t.hash=this.dialog.hash,t.groupId=this.dialog.groupId,this.dialog.deployMessages.push("存证合约启用中..."),this.dialog.dialogDepolyDetailVisible=!0,n.a.doPost("enableShareCns",t,15).then(function(t){e.dialog.dialogDepolyDetailVisible=!0,0===t.data.errorCode?(e.dialog.deployMessages.push("存证合约启用成功。"),e.dialog.deployMessages.push("请继续操作。"),e.getShareList()):"fail"===t.data.result?e.dialog.deployMessages.push("存证合约启用失败。"):e.dialog.deployMessages.push("存证合约启用失败:"+t.data.errorMessage),e.enableBtn(e.dialog.deployBtn)})},isEnableEvidenceCns:function(){var e=this;n.a.doGet("isEnableEvidenceCns/"+this.dialog.groupId).then(function(t){t.data.result?e.enableShareCns():(e.dialog.deployMessages.push("请继续操作。"),e.getShareList(),e.enableBtn(e.dialog.deployBtn))})},deployEvidence:function(e){var t=this;this.dialog.deployBtn=e.currentTarget,""!==this.dialog.deployForm.evidenceName?(this.disableBtn(this.dialog.deployBtn),this.dialog.deployMessages=[],this.dialog.deployMessages.push("存证合约部署中..."),this.dialog.dialogDepolyDetailVisible=!0,n.a.doPost("deployEvidence",this.dialog.deployForm,15).then(function(e){t.dialog.dialogDepolyDetailVisible=!0,0===e.data.errorCode?(t.dialog.hash=e.data.result,t.dialog.groupId=t.dialog.deployForm.groupId,t.dialog.deployMessages.push("存证合约部署成功。"),t.isEnableEvidenceCns()):(t.dialog.deployMessages.push("存证合约部署失败! 请查看日志。"),t.enableBtn(t.dialog.deployBtn))})):this.$alert("请输入存证应用名!","温馨提示").catch(function(){})},indexChange:function(e){e<1&&(e=1),this.page.pageIndex=e},getShareList:function(){var e=this;n.a.doGet("getShareList").then(function(t){0===t.data.errorCode&&(e.page.deployList=t.data.result,e.page.total=e.page.deployList.length,e.page.total===e.page.pageSize*(e.page.pageIndex-1)&&e.indexChange(e.page.pageIndex-1))})},indexChange2:function(e){this.dialog.userListPage.pageIndex=e},getUserListByHash:function(e){var t=this;n.a.doGet("getUserListByHash/"+e).then(function(e){0===e.data.errorCode&&(t.dialog.userListPage.userList=e.data.result,t.dialog.userListPage.total=e.data.result.length,t.dialog.dialogTableVisible=!0)})},init:function(){var e=this;n.a.doGet("getAllGroup/true").then(function(t){0===t.data.errorCode?(e.dialog.groupList=t.data.result,e.dialog.deployForm.groupId=e.dialog.groupList[0].value):e.$alert("启用列表失败!","温馨提示").catch(function(){})}),this.getShareList()},check:function(){var e=this;return o()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.checkNodeState(!1);case 2:r.a.data.nodeStatus&&e.init();case 3:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.check()}},c={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("section",{staticClass:"content app_main"},[l("el-row",{staticClass:"app_main_header_row"},[l("el-col",{attrs:{span:3}},[l("el-button",{staticClass:"btn",staticStyle:{width:"150px"},attrs:{type:"primary"},on:{click:function(t){return e.showDeploy()}}},[e._v("部署存证智能合约")])],1),e._v(" "),l("el-col",{staticClass:"head-icon",attrs:{span:21}},[l("a",{attrs:{target:"blank",href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=Evidence#evidence"}},[l("img",{staticClass:"icon_question",attrs:{src:a("JaJV"),alt:""}}),e._v(" "),l("span",{staticClass:"icon_question"},[e._v("存证智能合约部署使用教程")])])])],1),e._v(" "),l("div",{staticClass:"app_view"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:e.page.deployList.slice((e.page.pageIndex-1)*e.page.pageSize,e.page.pageIndex*e.page.pageSize),border:"true",align:"center",cellpadding:"0",cellspacing:"0"}},[l("el-table-column",{attrs:{prop:"evidenceName",label:"应用名字",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",{staticClass:"long_words",attrs:{title:t.row.evidenceName}},[e._v(e._s(t.row.evidenceName))])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"智能合约部署ID",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",{staticClass:"long_words link",attrs:{title:t.row.hash},on:{click:function(a){return e.showAll(t.row.hash)}}},[e._v(e._s(t.row.hashShow))])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"部署的机构名称",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return null!==t.row.issuer?[l("span",{staticClass:"icon_question",attrs:{title:t.row.issuer.name}},[e._v(e._s(t.row.issuer.name))]),e._v(" "),!0===t.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("MeCv"),widht:"50",height:"50",alt:""}}):e._e(),e._v(" "),!1===t.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("B7UN"),widht:"50",height:"50",alt:""}}):e._e()]:void 0}}],null,!0)}),e._v(" "),l("el-table-column",{attrs:{prop:"showGroupId",label:"所在群组",align:"center",width:"100"}}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"170"}}),e._v(" "),l("el-table-column",{attrs:{label:"操作",align:"center",width:"420"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.enable?l("el-button",{staticClass:"btn",attrs:{type:"primary",disabled:""}},[e._v("已启用")]):l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return e.enable(t.row.hash,t.row.groupId,a)}}},[e._v("启用")]),e._v(" "),l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return e.deleteRow(t.row.hash,a)}}},[e._v("删除")]),e._v(" "),l("el-button",{staticClass:"btn",staticStyle:{width:"90px"},attrs:{type:"primary"},on:{click:function(a){return e.showDeployDetail(t.row.hash,t.row.owner)}}},[e._v("详细信息")]),e._v(" "),l("el-button",{staticClass:"btn",staticStyle:{width:"120px"},attrs:{type:"primary"},on:{click:function(a){return e.getUserListByHash(t.row.hash)}}},[e._v("启用机构列表")])]}}])})],1),e._v(" "),l("el-pagination",{attrs:{"current-page":e.page.pageIndex,"page-size":e.page.pageSize,layout:"total, prev, pager, next, jumper",total:e.page.total},on:{"current-change":e.indexChange}})],1),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"启用的机构列表",width:"48%",visible:e.dialog.dialogTableVisible},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogTableVisible",t)}}},[l("el-table",{attrs:{data:e.dialog.userListPage.userList.slice((e.dialog.userListPage.pageIndex-1)*e.dialog.userListPage.pageSize,e.dialog.userListPage.pageIndex*e.dialog.userListPage.pageSize),border:"true",cellpadding:"0",cellspacing:"0"}},[l("el-table-column",{attrs:{property:"name",label:"权威机构名称",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.name)+"\n "),!0===t.row.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("MeCv"),widht:"50",height:"50",alt:""}}):e._e(),e._v(" "),!1===t.row.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("B7UN"),widht:"50",height:"50",alt:""}}):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{property:"weId",label:"WeID"}})],1),e._v(" "),l("el-pagination",{attrs:{"current-page":e.dialog.userListPage.pageIndex,"page-size":e.dialog.userListPage.pageSize,layout:"total, prev, pager, next, jumper",total:e.dialog.userListPage.total},on:{"current-change":e.indexChange2}}),e._v(" "),l("br")],1),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"部署存证智能合约",width:"33%",visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[l("div",{staticClass:"dialog-body"},[l("el-form",{attrs:{model:e.dialog.deployForm}},[l("el-form-item",{attrs:{label:"选择将存证合约部署到哪一个FISCO-BCOS群组ID(group ID)","label-width":e.formLabelWidth}},[l("div",{staticClass:"mark-text"},[l("div",[e._v("说明:")]),e._v(" "),l("div",[e._v("1. 找不到想找要的FISCO-BCOS群组ID?请确认下是否已经完成群组的部署。")]),e._v(" "),l("div",[e._v("2. 只能在“非主群组”上部署存证智能合约,主群组上的存证智能合约不能随意替换。")])]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"群组"},model:{value:e.dialog.deployForm.groupId,callback:function(t){e.$set(e.dialog.deployForm,"groupId",t)},expression:"dialog.deployForm.groupId"}},e._l(e.dialog.groupList,function(e){return l("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}),1)],1),e._v(" "),l("el-form-item",{attrs:{label:"存证应用名字","label-width":e.formLabelWidth}},[l("div",{staticClass:"mark-text"},[l("span",[e._v("给存证区块链应用起一个名字吧,用于不同的存证使用场景,例如“学历证书应用存证”。")])]),e._v(" "),l("el-input",{attrs:{placeholder:"Enter evidenceName"},model:{value:e.dialog.deployForm.evidenceName,callback:function(t){e.$set(e.dialog.deployForm,"evidenceName",t)},expression:"dialog.deployForm.evidenceName"}})],1)],1)],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(t){return e.deployEvidence(t)}}},[e._v("部 署")])],1)]),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"部署信息",width:"620px",visible:e.dialog.dialogDetailVisible,"close-on-click-modal":!0},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogDetailVisible",t)}}},[l("div",{staticClass:"dialog-body deployDetail"},[l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("智能合约部署ID")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[e._v(e._s(e.dialog.deployDetail.hash))])],1),e._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("部署账户")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[e._v(e._s(e.dialog.deployDetail.owner))])],1),e._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("群组")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[e._v(e._s(e.dialog.deployDetail.groupId))])],1),e._v(" "),e.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("WeID SDK版本")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[e._v(e._s(e.dialog.deployDetail.weIdSdkVersion))]),e._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("WeID合约版本")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[e._v(e._s(e.dialog.deployDetail.contractVersion))])],1):e._e(),e._v(" "),e.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("部署来源")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[e._v(e._s(e.dialog.deployDetail.from))]),e._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("区块链节点版本")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[e._v(e._s(e.dialog.deployDetail.nodeVerion))])],1):e._e(),e._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:5}},[e._v("区块链节点")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:19}},[e._v(e._s(e.dialog.deployDetail.nodeAddress))])],1),e._v(" "),l("el-row",{staticClass:"none-border"},[l("el-col",{staticClass:"title",attrs:{span:5}},[e._v("存证智能合约地址")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:19}},[e._v(e._s(e.dialog.deployDetail.evidenceAddress))])],1)],1),e._v(" "),l("br")]),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"存证合约部署",width:"400px",visible:e.dialog.dialogDepolyDetailVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogDepolyDetailVisible",t)}}},[l("div",{staticClass:"dialog-body deployMessage"},e._l(e.dialog.deployMessages,function(t){return l("p",{key:t.value},[e._v(e._s(t))])}),0),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:e.comfirmBtn}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]},g=a("C7Lr")(d,c,!1,null,null,null);t.default=g.exports}}); \ No newline at end of file +webpackJsonp([12],{F0QO:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("lC5x"),i=a.n(l),s=a("J0Oq"),o=a.n(s),n=a("/p82"),r=a("gej+"),d={data:function(){return{page:{deployList:[],pageSize:5,total:0,pageIndex:1},dialog:{dialogTableVisible:!1,dialogFormVisible:!1,dialogDetailVisible:!1,dialogDepolyDetailVisible:!1,deployForm:{groupId:1,evidenceName:""},groupList:[],deployMessages:[],hash:"",groupId:"",deployBtn:null,deployDetail:{},userListPage:{userList:[],pageSize:3,total:0,pageIndex:1}}}},methods:{showAll:function(e){this.$alert(e,"温馨提示",{}).catch(function(){})},showDeploy:function(){r.a.data.nodeStatus?(this.dialog.deployForm.evidenceName="",this.dialog.dialogFormVisible=!0):r.a.checkNodeState(!1)},showDeployDetail:function(e,t){var a=this;n.a.doGet("getShareInfo/"+e).then(function(e){0===e.data.errorCode?(a.dialog.deployDetail=e.data.result,a.dialog.deployDetail.owner=t,a.dialog.dialogDetailVisible=!0):a.$alert("部署详情查询失败!","温馨提示").catch(function(){})})},enable:function(e,t,a){var l=this;this.dialog.deployBtn=a.currentTarget;var i="是否确定在此群组(group ID : "+t+")中使用这个 Evidence 合约地址?
* 启用后将直接同步到应用环境(如果是生产环境,请特别小心)。
* 每一个群组,只能有一个启用的 Evidence 合约(调用EvidenceService的createEvidence会将Evidence写入这个 Evidence 合约)。
* 不同群组,可以启用不同的 Evidence 合约。";this.$confirm(i,"温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary",dangerouslyUseHTMLString:!0}).then(function(a){l.disableBtn(l.dialog.deployBtn),l.dialog.hash=e,l.dialog.groupId=t,l.dialog.deployMessages=[],l.enableShareCns()}).catch(function(){})},deleteRow:function(e,t){var a=this;this.dialog.deployBtn=t.currentTarget,this.$confirm("确认删除吗?","温馨提示",{closeOnClickModal:!1,cancelButtonClass:"el-button--primary"}).then(function(t){a.disableBtn(a.dialog.deployBtn),a.removeHash(e)}).catch(function(){})},removeHash:function(e){var t=this;n.a.doGet("removeHash/"+e+"/2").then(function(e){0===e.data.errorCode?(t.$alert("删除成功!","温馨提示").catch(function(){}),t.getShareList()):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){}),t.enableBtn(t.dialog.deployBtn)})},comfirmBtn:function(){this.dialog.dialogDepolyDetailVisible=!1,this.dialog.dialogFormVisible=!1},enableShareCns:function(){var e=this,t={};t.hash=this.dialog.hash,t.groupId=this.dialog.groupId,this.dialog.deployMessages.push("存证合约启用中..."),this.dialog.dialogDepolyDetailVisible=!0,n.a.doPost("enableShareCns",t,15).then(function(t){e.dialog.dialogDepolyDetailVisible=!0,0===t.data.errorCode?(e.dialog.deployMessages.push("存证合约启用成功。"),e.dialog.deployMessages.push("请继续操作。"),e.getShareList()):"fail"===t.data.result?e.dialog.deployMessages.push("存证合约启用失败。"):e.dialog.deployMessages.push("存证合约启用失败:"+t.data.errorMessage),e.enableBtn(e.dialog.deployBtn)})},isEnableEvidenceCns:function(){var e=this;n.a.doGet("isEnableEvidenceCns/"+this.dialog.groupId).then(function(t){t.data.result?e.enableShareCns():(e.dialog.deployMessages.push("请继续操作。"),e.getShareList(),e.enableBtn(e.dialog.deployBtn))})},deployEvidence:function(e){var t=this;this.dialog.deployBtn=e.currentTarget,""!==this.dialog.deployForm.evidenceName?(this.disableBtn(this.dialog.deployBtn),this.dialog.deployMessages=[],this.dialog.deployMessages.push("存证合约部署中..."),this.dialog.dialogDepolyDetailVisible=!0,n.a.doPost("deployEvidence",this.dialog.deployForm,15).then(function(e){t.dialog.dialogDepolyDetailVisible=!0,0===e.data.errorCode?(t.dialog.hash=e.data.result,t.dialog.groupId=t.dialog.deployForm.groupId,t.dialog.deployMessages.push("存证合约部署成功。"),t.isEnableEvidenceCns()):(t.dialog.deployMessages.push("存证合约部署失败! 请查看日志。"),t.enableBtn(t.dialog.deployBtn))})):this.$alert("请输入存证应用名!","温馨提示").catch(function(){})},indexChange:function(e){e<1&&(e=1),this.page.pageIndex=e},getShareList:function(){var e=this;n.a.doGet("getShareList").then(function(t){0===t.data.errorCode&&(e.page.deployList=t.data.result,e.page.total=e.page.deployList.length,e.page.total===e.page.pageSize*(e.page.pageIndex-1)&&e.indexChange(e.page.pageIndex-1))})},indexChange2:function(e){this.dialog.userListPage.pageIndex=e},getUserListByHash:function(e){var t=this;n.a.doGet("getUserListByHash/"+e).then(function(e){0===e.data.errorCode&&(t.dialog.userListPage.userList=e.data.result,t.dialog.userListPage.total=e.data.result.length,t.dialog.dialogTableVisible=!0)})},init:function(){var e=this;n.a.doGet("getAllGroup/true").then(function(t){0===t.data.errorCode?(e.dialog.groupList=t.data.result,e.dialog.deployForm.groupId=e.dialog.groupList[0].value):e.$alert("启用列表失败!","温馨提示").catch(function(){})}),this.getShareList()},check:function(){var e=this;return o()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.checkNodeState(!1);case 2:r.a.data.nodeStatus&&e.init();case 3:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.check()}},c={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("section",{staticClass:"content app_main"},[l("el-row",{staticClass:"app_main_header_row"},[l("el-col",{attrs:{span:3}},[l("el-button",{staticClass:"btn",staticStyle:{width:"150px"},attrs:{type:"primary"},on:{click:function(t){return e.showDeploy()}}},[e._v("部署存证智能合约")])],1),e._v(" "),l("el-col",{staticClass:"head-icon",attrs:{span:21}},[l("a",{attrs:{target:"blank",href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=Evidence#evidence"}},[l("img",{staticClass:"icon_question",attrs:{src:a("JaJV"),alt:""}}),e._v(" "),l("span",{staticClass:"icon_question"},[e._v("存证智能合约部署使用教程")])])])],1),e._v(" "),l("div",{staticClass:"app_view"},[l("el-table",{staticStyle:{width:"100%"},attrs:{data:e.page.deployList.slice((e.page.pageIndex-1)*e.page.pageSize,e.page.pageIndex*e.page.pageSize),border:"true",align:"center",cellpadding:"0",cellspacing:"0"}},[l("el-table-column",{attrs:{prop:"evidenceName",label:"应用名字",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",{staticClass:"long_words",attrs:{title:t.row.evidenceName}},[e._v(e._s(t.row.evidenceName))])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"智能合约部署ID",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("span",{staticClass:"long_words link",attrs:{title:t.row.hash},on:{click:function(a){return e.showAll(t.row.hash)}}},[e._v(e._s(t.row.hashShow))])]}}])}),e._v(" "),l("el-table-column",{attrs:{label:"部署的机构名称",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return null!==t.row.issuer?[l("span",{staticClass:"icon_question",attrs:{title:t.row.issuer.name}},[e._v(e._s(t.row.issuer.name))]),e._v(" "),!0===t.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("MeCv"),widht:"50",height:"50",alt:""}}):e._e(),e._v(" "),!1===t.row.issuer.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("B7UN"),widht:"50",height:"50",alt:""}}):e._e()]:void 0}}],null,!0)}),e._v(" "),l("el-table-column",{attrs:{prop:"showGroupId",label:"所在群组",align:"center",width:"100"}}),e._v(" "),l("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"170"}}),e._v(" "),l("el-table-column",{attrs:{label:"操作",align:"center",width:"420"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.enable?l("el-button",{staticClass:"btn",attrs:{type:"primary",disabled:""}},[e._v("已启用")]):l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return e.enable(t.row.hash,t.row.groupId,a)}}},[e._v("启用")]),e._v(" "),l("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(a){return e.deleteRow(t.row.hash,a)}}},[e._v("删除")]),e._v(" "),l("el-button",{staticClass:"btn",staticStyle:{width:"90px"},attrs:{type:"primary"},on:{click:function(a){return e.showDeployDetail(t.row.hash,t.row.owner)}}},[e._v("详细信息")]),e._v(" "),l("el-button",{staticClass:"btn",staticStyle:{width:"120px"},attrs:{type:"primary"},on:{click:function(a){return e.getUserListByHash(t.row.hash)}}},[e._v("启用机构列表")])]}}])})],1),e._v(" "),l("el-pagination",{attrs:{"current-page":e.page.pageIndex,"page-size":e.page.pageSize,layout:"total, prev, pager, next, jumper",total:e.page.total},on:{"current-change":e.indexChange}})],1),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"启用的机构列表",width:"48%",visible:e.dialog.dialogTableVisible},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogTableVisible",t)}}},[l("el-table",{attrs:{data:e.dialog.userListPage.userList.slice((e.dialog.userListPage.pageIndex-1)*e.dialog.userListPage.pageSize,e.dialog.userListPage.pageIndex*e.dialog.userListPage.pageSize),border:"true",cellpadding:"0",cellspacing:"0"}},[l("el-table-column",{attrs:{property:"name",label:"权威机构名称",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.name)+"\n "),!0===t.row.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("MeCv"),widht:"50",height:"50",alt:""}}):e._e(),e._v(" "),!1===t.row.recognized?l("img",{staticClass:"icon_question",attrs:{src:a("B7UN"),widht:"50",height:"50",alt:""}}):e._e()]}}])}),e._v(" "),l("el-table-column",{attrs:{property:"weId",label:"WeID"}})],1),e._v(" "),l("el-pagination",{attrs:{"current-page":e.dialog.userListPage.pageIndex,"page-size":e.dialog.userListPage.pageSize,layout:"total, prev, pager, next, jumper",total:e.dialog.userListPage.total},on:{"current-change":e.indexChange2}}),e._v(" "),l("br")],1),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"部署存证智能合约",width:"33%",visible:e.dialog.dialogFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogFormVisible",t)}}},[l("div",{staticClass:"dialog-body"},[l("el-form",{attrs:{model:e.dialog.deployForm}},[l("el-form-item",{attrs:{label:"选择将存证合约部署到哪一个FISCO-BCOS群组ID(group ID)","label-width":e.formLabelWidth}},[l("div",{staticClass:"mark-text"},[l("div",[e._v("说明:")]),e._v(" "),l("div",[e._v("1. 找不到想找要的FISCO-BCOS群组ID?请确认下是否已经完成群组的部署。")]),e._v(" "),l("div",[e._v("2. 只能在“非主群组”上部署存证智能合约,主群组上的存证智能合约不能随意替换。")])]),e._v(" "),l("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"群组"},model:{value:e.dialog.deployForm.groupId,callback:function(t){e.$set(e.dialog.deployForm,"groupId",t)},expression:"dialog.deployForm.groupId"}},e._l(e.dialog.groupList,function(e){return l("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})}),1)],1),e._v(" "),l("el-form-item",{attrs:{label:"存证应用名字","label-width":e.formLabelWidth}},[l("div",{staticClass:"mark-text"},[l("span",[e._v("给存证区块链应用起一个名字吧,用于不同的存证使用场景,例如“学历证书应用存证”。")])]),e._v(" "),l("el-input",{attrs:{placeholder:"Enter evidenceName"},model:{value:e.dialog.deployForm.evidenceName,callback:function(t){e.$set(e.dialog.deployForm,"evidenceName",t)},expression:"dialog.deployForm.evidenceName"}})],1)],1)],1),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(t){return e.deployEvidence(t)}}},[e._v("部 署")])],1)]),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"部署信息",width:"620px",visible:e.dialog.dialogDetailVisible,"close-on-click-modal":!0},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogDetailVisible",t)}}},[l("div",{staticClass:"dialog-body deployDetail"},[l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("智能合约部署ID")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[e._v(e._s(e.dialog.deployDetail.hash))])],1),e._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("部署账户")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[e._v(e._s(e.dialog.deployDetail.owner))])],1),e._v(" "),l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("群组")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:20}},[e._v(e._s(e.dialog.deployDetail.groupId))])],1),e._v(" "),e.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("WeID SDK版本")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[e._v(e._s(e.dialog.deployDetail.weIdSdkVersion))]),e._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("WeID合约版本")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[e._v(e._s(e.dialog.deployDetail.contractVersion))])],1):e._e(),e._v(" "),e.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("部署来源")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:7}},[e._v(e._s(e.dialog.deployDetail.from))]),e._v(" "),l("el-col",{staticClass:"title",attrs:{span:4}},[e._v("区块链节点版本")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:9}},[e._v(e._s(e.dialog.deployDetail.nodeVerion))])],1):e._e(),e._v(" "),e.dialog.deployDetail.local?l("el-row",[l("el-col",{staticClass:"title",attrs:{span:5}},[e._v("区块链节点")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:19}},[e._v(e._s(e.dialog.deployDetail.nodeAddress))])],1):e._e(),e._v(" "),l("el-row",{staticClass:"none-border"},[l("el-col",{staticClass:"title",attrs:{span:5}},[e._v("存证智能合约地址")]),e._v(" "),l("el-col",{staticClass:"value",attrs:{span:19}},[e._v(e._s(e.dialog.deployDetail.evidenceAddress))])],1)],1),e._v(" "),l("br")]),e._v(" "),l("el-dialog",{staticClass:"dialog-view",attrs:{title:"存证合约部署",width:"400px",visible:e.dialog.dialogDepolyDetailVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.dialog,"dialogDepolyDetailVisible",t)}}},[l("div",{staticClass:"dialog-body deployMessage"},e._l(e.dialog.deployMessages,function(t){return l("p",{key:t.value},[e._v(e._s(t))])}),0),e._v(" "),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:e.comfirmBtn}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]},g=a("C7Lr")(d,c,!1,null,null,null);t.default=g.exports}}); \ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/13.56c10c94b4be07482a78.js b/src/main/resources/static/weid/weid-build-tools/static/js/13.a38afcc8a8bea4418cd7.js similarity index 41% rename from src/main/resources/static/weid/weid-build-tools/static/js/13.56c10c94b4be07482a78.js rename to src/main/resources/static/weid/weid-build-tools/static/js/13.a38afcc8a8bea4418cd7.js index e7d01c2..f0fdd78 100644 --- a/src/main/resources/static/weid/weid-build-tools/static/js/13.56c10c94b4be07482a78.js +++ b/src/main/resources/static/weid/weid-build-tools/static/js/13.a38afcc8a8bea4418cd7.js @@ -1 +1 @@ -webpackJsonp([13],{"CgC/":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("aA9S"),l=i.n(a),r=i("/p82"),o={data:function(){return{useWeBase:!1,form:{caCrtFileName:"",nodeKeyFile:"",nodeCrtFileName:"",nodeCrtFile:"",nodeKeyFileName:"",caCrtFile:"",gmCaCrtFileName:"",gmCaCrtFile:"",gmSdkCrtFileName:"",gmSdkCrtFile:"",gmSdkKeyFileName:"",gmSdkKeyFile:"",gmenSdkCrtFileName:"",gmenSdkCrtFile:"",gmenSdkKeyFileName:"",gmenSdkKeyFile:"",encrypt_type:0,org_id:"",amop_id:"",blockchain_address:"",blockchain_fiscobcos_version:""},dialog:{checkDetailVisible:!1,checkMessages:[],nextBtn:null,dialogNodeListVisible:!1,nodeListPage:{nodeList:[],selectedRows:[]}}}},methods:{getkey:function(e){return e.frontId},chooseNode:function(){var e=this;if(0!==this.dialog.nodeListPage.selectedRows.length){var t="";this.dialog.nodeListPage.selectedRows.forEach(function(i,a){t=t+i.frontIp+":"+i.channelPort,a+1如果您需要使用到下列功能,则需要配置数据库
1.Transportation相关组件功能
2.Evidence异步存证功能
3.Persistence数据存储功能(例如:存储Credential)

","温馨提示",{dangerouslyUseHTMLString:!0}).catch(function(){})}},mounted:function(){this.init()},created:function(){this.checkStep()}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app_view_content"},[a("div",{staticClass:"app_view_register"},[a("section",{staticClass:"content"},[a("div",{staticClass:"guide_step_part box"},[a("div",{staticClass:"bottom_line"}),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),"1"==t.roleType?a("div",{staticClass:"guide_step_item"},[a("span",[t._v("5")]),t._v(" "),a("img",{attrs:{src:s("LyBL"),alt:""}}),t._v(" "),a("p",{staticStyle:{width:"200px",left:"-89px"}},[t._v("部署WeIdentity智能合约")])]):t._e()]),t._v(" "),a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"box"},[a("div",{staticClass:"card card-primary warning_box"},[t._m(4),t._v(" "),a("el-form",{ref:"dbForm",attrs:{"label-position":"right",model:t.dbForm,"label-width":"220px"}},[a("el-form-item",{attrs:{label:"数据库类型:",prop:"persistence_type"}},[a("el-select",{staticStyle:{width:"72%"},attrs:{placeholder:"数据库类型"},model:{value:t.dbForm.persistence_type,callback:function(e){t.$set(t.dbForm,"persistence_type",e)},expression:"dbForm.persistence_type"}},[a("el-option",{attrs:{label:"mysql",value:"mysql"}}),t._v(" "),a("el-option",{attrs:{label:"redis",value:"redis"}})],1),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v("目前暂只支持MySql与Redis数据库")])])],1),t._v(" "),"mysql"===t.dbForm.persistence_type?a("div",{attrs:{id:"mysqlForm"}},[a("el-form-item",{attrs:{label:"数据库IP:PORT:",prop:"mysql_address"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"IP:PORT",maxlength:"30",onKeyUp:"value=value=value.replace(/[^0-9::。.]/g,'');value=value.replace(/[。]/g,'.');value=value.replace(/[:]/g,':');value=value.replace(/\\s+/g,'');"},on:{blur:function(e){t.dbForm.mysql_address=e.target.value}},model:{value:t.dbForm.mysql_address,callback:function(e){t.$set(t.dbForm,"mysql_address",e)},expression:"dbForm.mysql_address"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据库名称:",prop:"mysql_database"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"Enter DataBase Name",maxlength:"30"},model:{value:t.dbForm.mysql_database,callback:function(e){t.$set(t.dbForm,"mysql_database",e)},expression:"dbForm.mysql_database"}}),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v("* 数据库需要提前自己搭建好,并建立好数据库,数据库名称(DataBase Name)可以自行决定")])])],1),t._v(" "),a("el-form-item",{attrs:{label:"数据库用户名:",prop:"mysql_username"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"Enter username",maxlength:"30"},model:{value:t.dbForm.mysql_username,callback:function(e){t.$set(t.dbForm,"mysql_username",e)},expression:"dbForm.mysql_username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据库密码:",prop:"mysql_password"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{type:"password",placeholder:"Enter password",maxlength:"30"},model:{value:t.dbForm.mysql_password,callback:function(e){t.$set(t.dbForm,"mysql_password",e)},expression:"dbForm.mysql_password"}})],1)],1):t._e(),t._v(" "),"redis"===t.dbForm.persistence_type?a("div",{attrs:{id:"redisForm"}},[a("el-form-item",{attrs:{label:"服务器IP:PORT:",prop:"redis_address"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"IP:PORT,IP:PORT",maxlength:"30",onKeyUp:"value=value=value.replace(/[^0-9::,,。.]/g,'');value=value.replace(/[。]/g,'.');value=value.replace(/[:]/g,':');value=value.replace(/\\s+/g,'');value=value.replace(/[,]/g,',');"},on:{blur:function(e){t.dbForm.redis_address=e.target.value}},model:{value:t.dbForm.redis_address,callback:function(e){t.$set(t.dbForm,"redis_address",e)},expression:"dbForm.redis_address"}}),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v('如:127.0.0.1:6379 ;如果多个节点,则请用半角逗号","分割:127.0.0.1:7100,127.0.0.1:7101')])])],1),t._v(" "),a("el-form-item",{attrs:{label:"服务器密码(选填):",prop:"redis_password"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{type:"password",placeholder:"Enter password",maxlength:"30"},model:{value:t.dbForm.redis_password,callback:function(e){t.$set(t.dbForm,"redis_password",e)},expression:"dbForm.redis_password"}}),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v("如未设置密码可不填写")])])],1)],1):t._e(),t._v(" "),a("div",{staticClass:"bt-part"},[a("el-button",{staticClass:"btn btn_150",attrs:{type:"primary"},on:{click:t.prev}},[t._v("上一步")]),t._v(" "),a("el-button",{staticClass:"btn btn_150",attrs:{type:"primary"},on:{click:t.jump}},[t._v("跳过")]),t._v(" "),a("el-button",{staticClass:"btn btn_150",attrs:{type:"primary"},on:{click:function(e){return t.next(e)}}},[t._v("下一步")])],1)],1),t._v(" "),t._m(5)],1)])])])]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"温馨提示",width:"400px",visible:t.dialog.checkDetailVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"checkDetailVisible",e)}}},[a("div",{staticClass:"dialog-body deployMessage"},t._l(t.dialog.checkMessages,function(e){return a("p",{key:e.value},[t._v(t._s(e))])}),0),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary",disabled:!t.dialog.checkStatus},on:{click:t.checkOrgId}},[t._v("下一步")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item guide_step_complated"},[e("span",[this._v("1")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("区块链节点配置")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item guide_step_complated"},[e("span",[this._v("2")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("设置主群组")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item guide_step_active"},[e("span",[this._v("3")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("数据库配置(可选)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item"},[e("span",[this._v("4")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("创建管理员WeID")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("h3",[this._v("配置数据库")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sql_warning"},[a("div",{staticClass:"warning_title"},[t._v("温馨提示")]),t._v(" "),a("p",[t._v("如果您需要使用到下列功能,则需要配置数据库")]),t._v(" "),a("p",[t._v("1.Transportation相关组件功能")]),t._v(" "),a("p",[t._v("2.Evidence异步存证功能")]),t._v(" "),a("p",[t._v("3.Persistence数据存储功能(例如:存储Credential)")]),t._v(" "),a("p",[a("a",{staticStyle:{display:"block"},attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/deploy-via-web.html?highlight=配置数据库#db-configuration",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:s("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("配置教程")])])]),t._v(" "),a("p",[a("a",{staticStyle:{display:"block"},attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/how-to-use-persisitence.html",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:s("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("使用教程")])])])])}]},l=s("C7Lr")(i,r,!1,null,null,null);e.default=l.exports}}); \ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/22.9d0dab8cb90e3c25bf98.js b/src/main/resources/static/weid/weid-build-tools/static/js/22.9d0dab8cb90e3c25bf98.js new file mode 100644 index 0000000..196527b --- /dev/null +++ b/src/main/resources/static/weid/weid-build-tools/static/js/22.9d0dab8cb90e3c25bf98.js @@ -0,0 +1 @@ +webpackJsonp([22],{M6ow:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("/p82"),i={data:function(){return{roleType:localStorage.getItem("roleType"),dbForm:{persistence_type:"",mysql_address:"",mysql_database:"",mysql_username:"",mysql_password:"",redis_address:"",redis_password:""},dialog:{checkDetailVisible:!1,checkMessages:[],nextBtn:null,checkStatus:!1}}},methods:{checkInput:function(){if("mysql"===this.dbForm.persistence_type){if(""===this.dbForm.mysql_address)return this.$alert("请输入数据库 IP 和 PORT !","温馨提示",{}).catch(function(){}),!1;if(""===this.dbForm.mysql_database)return this.$alert("请输入数据库名称!","温馨提示",{}).catch(function(){}),!1;if(""===this.dbForm.mysql_username)return this.$alert("请输入数据库用户名!","温馨提示",{}).catch(function(){}),!1;if(""===this.dbForm.mysql_password)return this.$alert("请输入数据库密码!","温馨提示",{}).catch(function(){}),!1}else if(""===this.dbForm.redis_address)return this.$alert("请输入Redis的服务 IP 和 PORT !","温馨提示",{}).catch(function(){}),!1;return!0},setGuideStatus:function(){var t=this;a.a.doPost("setGuideStatus",{step:"5"}).then(function(e){localStorage.setItem("step",""),t.$router.push({name:"deployWeId"})})},checkOrgId:function(){var t=this;a.a.doPost("checkOrgId",{}).then(function(e){0===e.data.errorCode&&(1===e.data.result?t.setGuideStatus():0===e.data.result?(localStorage.setItem("step",4),t.$router.push({name:"step4"})):t.$alert("程序出现异常,请查看日志。","温馨提示",{}).catch(function(){}))})},checkPersistence:function(){var t=this;this.dialog.checkDetailVisible=!0,this.dialog.checkMessages.push("数据库配置检测中..."),a.a.doGet("checkPersistence").then(function(e){t.dialog.checkDetailVisible=!0,t.enableBtn(t.dialog.nextBtn),e.data.result?(t.dialog.checkStatus=!0,t.dialog.checkMessages.push("数据库配置检测成功。"),t.dialog.checkMessages.push("请继续操作。")):t.dialog.checkMessages.push("数据库配置检测失败。")})},jump:function(){this.checkOrgId()},submitDbConfig:function(){var t=this;this.checkInput()&&(this.dialog.checkMessages=[],this.dialog.checkStatus=!1,this.dialog.checkDetailVisible=!0,this.dialog.checkMessages.push("数据库配置提交中..."),this.disableBtn(this.dialog.nextBtn),a.a.doPost("submitDbConfig",this.dbForm).then(function(e){t.dialog.checkDetailVisible=!0,0===e.data.errorCode?(t.dialog.checkMessages.push("数据库配置提交成功。"),t.checkPersistence()):(t.dialog.checkMessages.push("数据库配置提交失败。"),t.enableBtn(t.dialog.nextBtn))}))},next:function(t){this.dialog.nextBtn=t.currentTarget,this.submitDbConfig()},prev:function(){localStorage.setItem("step",2),this.$router.push({name:"step2"})},init:function(){var t=this;a.a.doGet("loadConfig").then(function(e){0===e.data.errorCode&&(t.dbForm=e.data.result,"mysql"!==t.dbForm.persistence_type&&"redis"!==t.dbForm.persistence_type&&(t.dbForm.persistence_type="mysql"))}),this.$alert("

如果您需要使用到下列功能,则需要配置数据库
1.Transportation相关组件功能
2.Evidence异步存证功能
3.Persistence数据存储功能(例如:存储Credential)

","温馨提示",{dangerouslyUseHTMLString:!0}).catch(function(){})}},mounted:function(){this.init()},created:function(){this.checkStep()}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app_view_content"},[a("div",{staticClass:"app_view_register"},[a("section",{staticClass:"content"},[a("div",{staticClass:"guide_step_part box"},[a("div",{staticClass:"bottom_line"}),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),"1"==t.roleType?a("div",{staticClass:"guide_step_item"},[a("span",[t._v("5")]),t._v(" "),a("img",{attrs:{src:s("LyBL"),alt:""}}),t._v(" "),a("p",{staticStyle:{width:"200px",left:"-89px"}},[t._v("部署WeIdentity智能合约")])]):t._e()]),t._v(" "),a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"box"},[a("div",{staticClass:"card card-primary warning_box"},[t._m(4),t._v(" "),a("el-form",{ref:"dbForm",attrs:{"label-position":"right",model:t.dbForm,"label-width":"220px"}},[a("el-form-item",{attrs:{label:"数据库类型:",prop:"persistence_type"}},[a("el-select",{staticStyle:{width:"72%"},attrs:{placeholder:"数据库类型"},model:{value:t.dbForm.persistence_type,callback:function(e){t.$set(t.dbForm,"persistence_type",e)},expression:"dbForm.persistence_type"}},[a("el-option",{attrs:{label:"mysql",value:"mysql"}}),t._v(" "),a("el-option",{attrs:{label:"redis",value:"redis"}})],1),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v("目前暂只支持MySql与Redis数据库")])])],1),t._v(" "),"mysql"===t.dbForm.persistence_type?a("div",{attrs:{id:"mysqlForm"}},[a("el-form-item",{attrs:{label:"数据库IP:PORT:",prop:"mysql_address"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"IP:PORT",onKeyUp:"value=value=value.replace(/[^0-9::。.]/g,'');value=value.replace(/[。]/g,'.');value=value.replace(/[:]/g,':');value=value.replace(/\\s+/g,'');"},on:{blur:function(e){t.dbForm.mysql_address=e.target.value}},model:{value:t.dbForm.mysql_address,callback:function(e){t.$set(t.dbForm,"mysql_address",e)},expression:"dbForm.mysql_address"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据库名称:",prop:"mysql_database"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"Enter DataBase Name"},model:{value:t.dbForm.mysql_database,callback:function(e){t.$set(t.dbForm,"mysql_database",e)},expression:"dbForm.mysql_database"}}),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v("* 数据库需要提前自己搭建好,并建立好数据库,数据库名称(DataBase Name)可以自行决定")])])],1),t._v(" "),a("el-form-item",{attrs:{label:"数据库用户名:",prop:"mysql_username"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"Enter username"},model:{value:t.dbForm.mysql_username,callback:function(e){t.$set(t.dbForm,"mysql_username",e)},expression:"dbForm.mysql_username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"数据库密码:",prop:"mysql_password"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{type:"password",placeholder:"Enter password"},model:{value:t.dbForm.mysql_password,callback:function(e){t.$set(t.dbForm,"mysql_password",e)},expression:"dbForm.mysql_password"}})],1)],1):t._e(),t._v(" "),"redis"===t.dbForm.persistence_type?a("div",{attrs:{id:"redisForm"}},[a("el-form-item",{attrs:{label:"服务器IP:PORT:",prop:"redis_address"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{placeholder:"IP:PORT,IP:PORT",onKeyUp:"value=value=value.replace(/[^0-9::,,。.]/g,'');value=value.replace(/[。]/g,'.');value=value.replace(/[:]/g,':');value=value.replace(/\\s+/g,'');value=value.replace(/[,]/g,',');"},on:{blur:function(e){t.dbForm.redis_address=e.target.value}},model:{value:t.dbForm.redis_address,callback:function(e){t.$set(t.dbForm,"redis_address",e)},expression:"dbForm.redis_address"}}),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v('如:127.0.0.1:6379 ;如果多个节点,则请用半角逗号","分割:127.0.0.1:7100,127.0.0.1:7101')])])],1),t._v(" "),a("el-form-item",{attrs:{label:"服务器密码(选填):",prop:"redis_password"}},[a("el-input",{staticStyle:{width:"72%"},attrs:{type:"password",placeholder:"Enter password"},model:{value:t.dbForm.redis_password,callback:function(e){t.$set(t.dbForm,"redis_password",e)},expression:"dbForm.redis_password"}}),t._v(" "),a("div",{staticClass:"mark-bottom"},[a("span",[t._v("如未设置密码可不填写")])])],1)],1):t._e(),t._v(" "),a("div",{staticClass:"bt-part"},[a("el-button",{staticClass:"btn btn_150",attrs:{type:"primary"},on:{click:t.prev}},[t._v("上一步")]),t._v(" "),a("el-button",{staticClass:"btn btn_150",attrs:{type:"primary"},on:{click:t.jump}},[t._v("跳过")]),t._v(" "),a("el-button",{staticClass:"btn btn_150",attrs:{type:"primary"},on:{click:function(e){return t.next(e)}}},[t._v("下一步")])],1)],1),t._v(" "),t._m(5)],1)])])])]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"温馨提示",width:"400px",visible:t.dialog.checkDetailVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"checkDetailVisible",e)}}},[a("div",{staticClass:"dialog-body deployMessage"},t._l(t.dialog.checkMessages,function(e){return a("p",{key:e.value},[t._v(t._s(e))])}),0),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary",disabled:!t.dialog.checkStatus},on:{click:t.checkOrgId}},[t._v("下一步")])],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item guide_step_complated"},[e("span",[this._v("1")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("区块链节点配置")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item guide_step_complated"},[e("span",[this._v("2")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("设置主群组")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item guide_step_active"},[e("span",[this._v("3")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("数据库配置(可选)")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"guide_step_item"},[e("span",[this._v("4")]),this._v(" "),e("img",{attrs:{src:s("LyBL"),alt:""}}),this._v(" "),e("p",[this._v("创建管理员WeID")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"card-header"},[e("h3",[this._v("配置数据库")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sql_warning"},[a("div",{staticClass:"warning_title"},[t._v("温馨提示")]),t._v(" "),a("p",[t._v("如果您需要使用到下列功能,则需要配置数据库")]),t._v(" "),a("p",[t._v("1.Transportation相关组件功能")]),t._v(" "),a("p",[t._v("2.Evidence异步存证功能")]),t._v(" "),a("p",[t._v("3.Persistence数据存储功能(例如:存储Credential)")]),t._v(" "),a("p",[a("a",{staticStyle:{display:"block"},attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/deploy-via-web.html?highlight=配置数据库#db-configuration",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:s("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("配置教程")])])]),t._v(" "),a("p",[a("a",{staticStyle:{display:"block"},attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/how-to-use-persisitence.html",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:s("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("使用教程")])])])])}]},l=s("C7Lr")(i,r,!1,null,null,null);e.default=l.exports}}); \ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/24.c740886ac230fbcf9f6d.js b/src/main/resources/static/weid/weid-build-tools/static/js/24.414fa946cd76b0398f01.js similarity index 42% rename from src/main/resources/static/weid/weid-build-tools/static/js/24.c740886ac230fbcf9f6d.js rename to src/main/resources/static/weid/weid-build-tools/static/js/24.414fa946cd76b0398f01.js index 4e28e5f..dbfcdd0 100644 --- a/src/main/resources/static/weid/weid-build-tools/static/js/24.c740886ac230fbcf9f6d.js +++ b/src/main/resources/static/weid/weid-build-tools/static/js/24.414fa946cd76b0398f01.js @@ -1 +1 @@ -webpackJsonp([24],{Hwbk:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("aA9S"),l=i.n(a),s=i("/p82"),r={data:function(){return{roleType:localStorage.getItem("roleType"),useWeBase:!1,form:{caCrtFileName:"",nodeKeyFile:"",nodeCrtFileName:"",nodeCrtFile:"",nodeKeyFileName:"",caCrtFile:"",gmCaCrtFileName:"",gmCaCrtFile:"",gmSdkCrtFileName:"",gmSdkCrtFile:"",gmSdkKeyFileName:"",gmSdkKeyFile:"",gmenSdkCrtFileName:"",gmenSdkCrtFile:"",gmenSdkKeyFileName:"",gmenSdkKeyFile:"",encrypt_type:0,org_id:"",amop_id:"",blockchain_address:"",blockchain_fiscobcos_version:""},dialog:{checkDetailVisible:!1,dialogNodeListVisible:!1,nodeListPage:{nodeList:[],selectedRows:[]},checkMessages:[],checkStatus:!1,nextBtn:null}}},methods:{getkey:function(t){return t.frontId},chooseNode:function(){var t=this;if(0!==this.dialog.nodeListPage.selectedRows.length){var e="";this.dialog.nodeListPage.selectedRows.forEach(function(i,a){e=e+i.frontIp+":"+i.channelPort,a+1i.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(o=0;oi.parts.length&&(n.parts.length=i.parts.length)}else{var s=[];for(o=0;othis.page.pageIndex?(e=this.page.weidList[0].weIdPojo.currentBlockNum,i=this.page.weidList[0].weIdPojo.index+1,a=!1):(e=this.page.weidList[this.page.weidList.length-1].weIdPojo.currentBlockNum,i=this.page.weidList[this.page.weidList.length-1].weIdPojo.index-1,a=!0),this.queryWeIdList(this.page.pageIndex,e,i,a)},queryWeIdList:function(t,e,i,a){var l=this,o={};o.blockNumber=e,o.pageSize=this.page.pageSize,o.indexInBlock=i,o.direction=a,o.iDisplayStart=t*this.page.pageSize,o.iDisplayLength=this.page.pageSize,r.a.doGet("getWeIdList",o).then(function(t){0===t.data.errorCode&&(l.page.weidList=t.data.result.dataList,l.page.total=t.data.result.allCount)})},init:function(t,e,i){this.queryWeIdList(1,0,0,!0)},initWihteList:function(){var t=this;r.a.doGet("getIssuerTypeList").then(function(e){0===e.data.errorCode&&(t.dialog.whiteList=e.data.result,t.dialog.whiteList.length>0&&(t.dialog.hashWihteList=!0,t.dialog.whiteListForm.issuerType=t.dialog.whiteList[0].type))})},dateFormat:function(t){return new Date(parseInt(1e3*t.weIdPojo.created)+288e5).toJSON().substr(0,19).replace("T"," ")},check:function(){var t=this;return s()(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.a.checkNodeState(!0);case 2:n.a.data.nodeStatus&&(t.init(),t.initWihteList());case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){var t=this;window.addEventListener("setItem",function(){t.changeRoleType()}),this.check()}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"content app_main"},[a("el-row",{staticClass:"app_main_header_row"},[a("el-col",{attrs:{span:2}},[a("el-button",{staticClass:"btn",staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:t.showCreateWeId}},[t._v("创建WeID")])],1),t._v(" "),a("el-col",{staticClass:"head-icon",attrs:{span:21}},[a("a",{attrs:{target:"blank",href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/terminologies.html?highlight=简称WeID"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question"},[t._v("什么是WeID?")])])])],1),t._v(" "),a("div",{staticClass:"app_view"},[a("el-table",{attrs:{data:t.page.weidList,border:"true",align:"center"}},[a("el-table-column",{attrs:{prop:"weId",label:"WeID",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"long_words link",attrs:{title:e.row.weId},on:{click:function(i){return t.showAll(e.row.weId,e.row.id)}}},[t._v(t._s(e.row.weId))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",align:"center",formatter:t.dateFormat,width:"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"400"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"btn",staticStyle:{width:"180px"},attrs:{type:"primary",disabled:e.row.issuer},on:{click:function(i){return t.showRegistIssuer(e.row.weId)}}},[t._v("注册为权威凭证发行者")]),t._v(" "),"1"===t.roleType?a("el-button",{staticClass:"btn",staticStyle:{width:"120px"},attrs:{type:"primary"},on:{click:function(i){return t.showRegistWhiteList(e.row.weId)}}},[t._v("添加到白名单")]):t._e()]}}])})],1),t._v(" "),a("el-pagination",{attrs:{"current-page":t.page.pageIndex,"page-size":t.page.pageSize,layout:"total, prev, slot, next",total:t.page.total},on:{"current-change":t.indexChange}},[a("span",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.page.pageIndex))])])],1),t._v(" "),a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"dialog-view",attrs:{title:"创建WeID",width:"25%",visible:t.dialog.dialogCreateWeIdVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogCreateWeIdVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-row",[a("el-col",[a("el-button",{staticClass:"btn width_100",attrs:{type:"primary"},on:{click:function(e){return t.createBySys()}}},[t._v("系统自动创建公私钥来创建WeID")])],1)],1),t._v(" "),a("el-row",[a("el-col",[a("el-button",{staticClass:"btn width_100",attrs:{type:"primary"},on:{click:function(e){return t.showCreateWeIdByPri()}}},[t._v("传入私钥创建WeID")])],1)],1),t._v(" "),a("el-row",[a("el-col",[a("el-button",{staticClass:"btn width_100",attrs:{type:"primary"},on:{click:function(e){return t.showCreateWeIdByPub()}}},[t._v("传入公钥,使用代理模式创建WeID")])],1)],1),t._v(" "),a("a",{staticStyle:{position:"absolute",right:"60px",top:"20px","font-size":"12px",color:"#017CFF"},attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=WeID 管理#weid",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV")}}),t._v(" "),a("span",{staticClass:"icon_question"},[t._v("使用教程")])])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"传入私钥创建WeID",width:"30%",visible:t.dialog.dialogCreateWeIdByPrivateVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogCreateWeIdByPrivateVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.createByPrivateForm}},[a("div",{staticClass:"file_part",staticStyle:{"margin-top":"15px"}},[a("el-form-item",[a("div",{staticClass:"mark-text"},[a("span",[t._v("备注:支持椭圆曲线的公私钥,并且为十进制私钥数据。")]),t._v(" "),a("a",{attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=创建密钥#weid",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("如何生成私钥?")])])]),t._v(" "),a("div",{staticClass:"input_item",staticStyle:{"margin-bottom":"-8px"}},[a("el-input",{staticStyle:{width:"75%"},attrs:{placeholder:"请选择私钥文件",maxlength:"30",readOnly:""},model:{value:t.dialog.createByPrivateForm.privateKeyFileName,callback:function(e){t.$set(t.dialog.createByPrivateForm,"privateKeyFileName",e)},expression:"dialog.createByPrivateForm.privateKeyFileName"}}),t._v(" "),a("button",{staticClass:"upload-btn btn btn-block btn-primary btn-flat",attrs:{type:"button"},on:{click:function(e){return t.chooseFile("privateKeyFile")}}},[t._v("选择文件")])],1)]),t._v(" "),a("input",{staticStyle:{display:"none"},attrs:{type:"file",id:"privateKeyFile"}})],1)])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.createByPri()}}},[t._v("创 建")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"传入公钥创建WeID",width:"30%",visible:t.dialog.dialogCreateWeIdByPublicVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogCreateWeIdByPublicVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.createByPublicForm}},[a("div",{staticClass:"file_part",staticStyle:{"margin-top":"15px"}},[a("el-form-item",[a("div",{staticClass:"mark-text"},[a("div",[t._v("* 只有联盟链委员会的管理员,才能作为代理,为其他机构创建WeID。")]),t._v(" "),a("span",[t._v("* 支持椭圆曲线的公私钥,并且为十进制私钥数据。")]),t._v(" "),a("a",{attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=创建密钥#weid",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("如何生成公钥?")])])]),t._v(" "),a("div",{staticClass:"input_item",staticStyle:{"margin-bottom":"-8px"}},[a("el-input",{staticStyle:{width:"75%"},attrs:{placeholder:"请选择公钥文件",maxlength:"30",readOnly:""},model:{value:t.dialog.createByPublicForm.publicKeyFileName,callback:function(e){t.$set(t.dialog.createByPublicForm,"publicKeyFileName",e)},expression:"dialog.createByPublicForm.publicKeyFileName"}}),t._v(" "),a("button",{staticClass:"upload-btn btn btn-block btn-primary btn-flat",attrs:{type:"button"},on:{click:function(e){return t.chooseFile("publicKeyFile")}}},[t._v("选择文件")])],1)]),t._v(" "),a("input",{staticStyle:{display:"none"},attrs:{type:"file",id:"publicKeyFile"}})],1)])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.createByPub()}}},[t._v("创 建")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"注册权威凭证发行者",width:"31%",visible:t.dialog.dialogissuerFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogissuerFormVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.registForm}},[a("el-form-item",{attrs:{label:"机构的WeID","label-width":t.formLabelWidth}},[a("el-input",{attrs:{disabled:"",placeholder:"填入这个机构WeID"},model:{value:t.dialog.registForm.weId,callback:function(e){t.$set(t.dialog.registForm,"weId",e)},expression:"dialog.registForm.weId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"权威机构名称","label-width":t.formLabelWidth}},[a("div",{staticClass:"mark-text"},[a("span",[t._v("\n 输入权威机构的名称(建议由英文或者数字组成,不建议包含类似空格字符的特殊符号,也不支持中文),\n 作为类似权威机构 ID 的方式使用,例如如果机构是微众银行,则可以输入类似“webank”作为其权威机构名称\n ")])]),t._v(" "),a("el-input",{attrs:{onkeyup:"this.value=this.value.replace(/[^a-zA-Z0-9]/g,'')",placeholder:"Enter issuer name"},on:{blur:function(e){t.dialog.registForm.name=e.target.value}},model:{value:t.dialog.registForm.name,callback:function(e){t.$set(t.dialog.registForm,"name",e)},expression:"dialog.registForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备注","label-width":t.formLabelWidth}},[a("el-input",{attrs:{placeholder:"Enter issuer description"},model:{value:t.dialog.registForm.description,callback:function(e){t.$set(t.dialog.registForm,"description",e)},expression:"dialog.registForm.description"}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.registerIssuer()}}},[t._v("注 册")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"添加到白名单",width:"31%",visible:t.dialog.dialogwhiteFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogwhiteFormVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.whiteListForm}},[a("el-form-item",{attrs:{label:"WeID","label-width":t.formLabelWidth}},[a("el-input",{attrs:{disabled:"",placeholder:"填入这个机构WeID"},model:{value:t.dialog.whiteListForm.weId,callback:function(e){t.$set(t.dialog.whiteListForm,"weId",e)},expression:"dialog.whiteListForm.weId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"选择待加入的白名单","label-width":t.formLabelWidth}},[0==t.dialog.hashWihteList?a("div",{staticClass:"mark-line"},[a("span",{attrs:{href:"#"},on:{click:function(e){return t.toAddWihte()}}},[t._v("前往新增白名单")])]):t._e(),t._v(" "),a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"白名单"},model:{value:t.dialog.whiteListForm.issuerType,callback:function(e){t.$set(t.dialog.whiteListForm,"issuerType",e)},expression:"dialog.whiteListForm.issuerType"}},t._l(t.dialog.whiteList,function(t){return a("el-option",{key:t.type,attrs:{label:t.type,value:t.type}})}),1)],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.addWeIdToWhiteList()}}},[t._v("添 加")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"温馨提示",width:"500px",visible:t.dialog.showWeIdVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"showWeIdVisible",e)}}},[a("div",{staticClass:"dialog-body deployMessage",staticStyle:{"min-height":"100px"}},[a("el-form",{attrs:{model:t.dialog.showData}},[a("el-form-item",{attrs:{label:"WeID:","label-width":t.formLabelWidth}},[a("el-input",{staticClass:"select_part",attrs:{readOnly:""},on:{focus:function(e){return t.selectCopy(e)}},model:{value:t.dialog.showData.weId,callback:function(e){t.$set(t.dialog.showData,"weId",e)},expression:"dialog.showData.weId"}})],1),t._v(" "),t.dialog.showData.hasPath?a("el-form-item",{attrs:{label:"该WeID密钥存放路径:","label-width":t.formLabelWidth}},[a("el-input",{staticClass:"select_part",attrs:{type:"textarea",resize:"none",rows:"4",readOnly:""},on:{focus:function(e){return t.selectCopy(e)}},model:{value:t.dialog.showData.path,callback:function(e){t.$set(t.dialog.showData,"path",e)},expression:"dialog.showData.path"}})],1):a("el-form-item",{attrs:{label:"该WeID密钥存放路径:","label-width":t.formLabelWidth}},[a("div",{staticClass:"select_part mark-text"},[t._v("该WeID非当前系统产生")])])],1)],1)])],1)},staticRenderFns:[]},u=i("C7Lr")(d,c,!1,null,null,null);e.default=u.exports}}); \ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/8.e56ffb457506afd4302b.js b/src/main/resources/static/weid/weid-build-tools/static/js/8.e56ffb457506afd4302b.js new file mode 100644 index 0000000..783b8a0 --- /dev/null +++ b/src/main/resources/static/weid/weid-build-tools/static/js/8.e56ffb457506afd4302b.js @@ -0,0 +1 @@ +webpackJsonp([8],{OKfr:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("lC5x"),l=i.n(a),o=i("J0Oq"),s=i.n(o),r=i("/p82"),n=i("gej+"),d={data:function(){return{page:{weidList:[],pageSize:6,total:0,pageIndex:1},roleType:localStorage.getItem("roleType"),dialog:{dialogCreateWeIdVisible:!1,dialogCreateWeIdByPrivateVisible:!1,dialogCreateWeIdByPublicVisible:!1,dialogissuerFormVisible:!1,dialogwhiteFormVisible:!1,showWeIdVisible:!1,createByPrivateForm:{privateKeyFileName:"",privateKeyFile:""},createByPublicForm:{publicKeyFileName:"",publicKeyFile:""},registForm:{name:"",weId:"",description:""},whiteListForm:{issuerType:"",weId:""},hashWihteList:!1,whiteList:[],showData:{weId:"",hasPath:!1}}}},methods:{showAll:function(t,e){var i=this;this.dialog.showData.weId=t,this.dialog.showData.hasPath=!1,r.a.doGet("getWeIdPath").then(function(a){if(0===a.data.errorCode){if(null!==e){var l=a.data.result+"/"+t.split(":")[3];i.dialog.showData.path=l,i.dialog.showData.hasPath=!0}i.dialog.showWeIdVisible=!0}})},selectCopy:function(t){t.currentTarget.select(),document.execCommand("Copy"),this.$message({message:"已复制",type:"success",duration:1e3})},showCreateWeId:function(){n.a.data.nodeStatus?this.dialog.dialogCreateWeIdVisible=!0:n.a.checkNodeState(!0)},showCreateWeIdByPri:function(){this.dialog.createByPrivateForm.privateKeyFileName="",this.dialog.dialogCreateWeIdByPrivateVisible=!0},showCreateWeIdByPub:function(){this.dialog.createByPublicForm.publicKeyFileName="",this.dialog.dialogCreateWeIdByPublicVisible=!0},showRegistIssuer:function(t){this.dialog.registForm.weId=t,this.dialog.registForm.name="",this.dialog.registForm.description="",this.dialog.dialogissuerFormVisible=!0},registerIssuer:function(){var t=this;""!==this.dialog.registForm.name?0!==this.dialog.registForm.name.indexOf("@")?r.a.doPost("registerIssuer",this.dialog.registForm).then(function(e){0===e.data.errorCode?(t.$alert("权威凭证发行者注册成功!","温馨提示",{}).then(function(){t.dialog.dialogissuerFormVisible=!1}).catch(function(){}),t.page.weidList.forEach(function(e){e.weId===t.dialog.registForm.weId&&(e.issuer=!0)})):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){})}):this.$alert("权威机构名称输入非法!","温馨提示",{}).catch(function(){}):this.$alert("请输入权威机构名称!","温馨提示",{}).catch(function(){})},showRegistWhiteList:function(t){this.dialog.whiteListForm.weId=t,this.dialog.dialogwhiteFormVisible=!0},addWeIdToWhiteList:function(){var t=this;r.a.doPost("addIssuerIntoIssuerType",this.dialog.whiteListForm).then(function(e){0===e.data.errorCode?t.$alert("添加白名单成功!","温馨提示",{}).then(function(){t.dialog.dialogwhiteFormVisible=!1}).catch(function(){}):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){})})},changeRoleType:function(){this.roleType=localStorage.getItem("roleType")},toAddWihte:function(){this.$router.push({name:"whiteList"}),this.resetSetItem("menu2",4)},chooseFile:function(t){var e=this,i=document.getElementById(t);i.value="",i.click(),i.onchange=function(i){i.target.files[0]&&("privateKeyFile"===t?(e.dialog.createByPrivateForm.privateKeyFileName=i.target.files[0].name,e.dialog.createByPrivateForm.privateKeyFile=i.target.files[0]):"publicKeyFile"===t&&(e.dialog.createByPublicForm.publicKeyFileName=i.target.files[0].name,e.dialog.createByPublicForm.publicKeyFile=i.target.files[0]))}},createBySys:function(){var t=this;r.a.doGet("createWeId").then(function(e){0===e.data.errorCode?(t.$alert("WeID创建成功!","温馨提示",{}).then(function(){t.dialog.dialogCreateWeIdVisible=!1}).catch(function(){}),t.init()):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){})})},createByPri:function(){var t=this;if(""!==this.dialog.createByPrivateForm.privateKeyFile){var e=new FormData;e.append("privateKey",this.dialog.createByPrivateForm.privateKeyFile),r.a.doPostAndUploadFile("createWeIdByPrivateKey",e).then(function(e){0===e.data.errorCode?(t.$alert("WeID创建成功!","温馨提示",{}).then(function(){t.dialog.dialogCreateWeIdByPrivateVisible=!1,t.dialog.dialogCreateWeIdVisible=!1}).catch(function(){}),t.init(),t.dialog.createByPrivateForm.privateKeyFile="",t.dialog.createByPrivateForm.privateKeyFileName=""):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){})})}else this.$alert("请选择私钥文件!","温馨提示",{}).catch(function(){})},createByPub:function(){var t=this;if(""!==this.dialog.createByPublicForm.publicKeyFile){var e=new FormData;e.append("publicKey",this.dialog.createByPublicForm.publicKeyFile),r.a.doPostAndUploadFile("createWeIdByPublicKey",e).then(function(e){0===e.data.errorCode?(t.$alert("WeID创建成功!","温馨提示",{}).then(function(){t.dialog.dialogCreateWeIdByPublicVisible=!1,t.dialog.dialogCreateWeIdVisible=!1}).catch(function(){}),t.init(),t.dialog.createByPublicForm.publicKeyFile="",t.dialog.createByPublicForm.publicKeyFileName=""):t.$alert(e.data.errorMessage,"温馨提示",{}).catch(function(){})})}else this.$alert("请选择公钥文件!","温馨提示",{}).catch(function(){})},indexChange:function(t){var e,i,a,l=this.page.pageIndex;this.page.pageIndex=t,l>this.page.pageIndex?(e=this.page.weidList[0].weIdPojo.currentBlockNum,i=this.page.weidList[0].weIdPojo.index+1,a=!1):(e=this.page.weidList[this.page.weidList.length-1].weIdPojo.currentBlockNum,i=this.page.weidList[this.page.weidList.length-1].weIdPojo.index-1,a=!0),this.queryWeIdList(this.page.pageIndex,e,i,a)},queryWeIdList:function(t,e,i,a){var l=this,o={};o.blockNumber=e,o.pageSize=this.page.pageSize,o.indexInBlock=i,o.direction=a,o.iDisplayStart=t*this.page.pageSize,o.iDisplayLength=this.page.pageSize,r.a.doGet("getWeIdList",o).then(function(t){0===t.data.errorCode&&(l.page.weidList=t.data.result.dataList,l.page.total=t.data.result.allCount)})},init:function(){this.page.pageIndex=1,this.queryWeIdList(1,0,0,!0)},initWihteList:function(){var t=this;r.a.doGet("getIssuerTypeList").then(function(e){0===e.data.errorCode&&(t.dialog.whiteList=e.data.result,t.dialog.whiteList.length>0&&(t.dialog.hashWihteList=!0,t.dialog.whiteListForm.issuerType=t.dialog.whiteList[0].type))})},dateFormat:function(t){return new Date(parseInt(1e3*t.weIdPojo.created)+288e5).toJSON().substr(0,19).replace("T"," ")},check:function(){var t=this;return s()(l.a.mark(function e(){return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.a.checkNodeState(!0);case 2:n.a.data.nodeStatus&&(t.init(),t.initWihteList());case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){var t=this;window.addEventListener("setItem",function(){t.changeRoleType()}),this.check()}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"content app_main"},[a("el-row",{staticClass:"app_main_header_row"},[a("el-col",{attrs:{span:2}},[a("el-button",{staticClass:"btn",staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:t.showCreateWeId}},[t._v("创建WeID")])],1),t._v(" "),a("el-col",{staticClass:"head-icon",attrs:{span:21}},[a("a",{attrs:{target:"blank",href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/terminologies.html?highlight=简称WeID"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question"},[t._v("什么是WeID?")])])])],1),t._v(" "),a("div",{staticClass:"app_view"},[a("el-table",{attrs:{data:t.page.weidList,border:"true",align:"center"}},[a("el-table-column",{attrs:{prop:"weId",label:"WeID",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"long_words link",attrs:{title:e.row.weId},on:{click:function(i){return t.showAll(e.row.weId,e.row.id)}}},[t._v(t._s(e.row.weId))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",align:"center",formatter:t.dateFormat,width:"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"400"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"btn",staticStyle:{width:"180px"},attrs:{type:"primary",disabled:e.row.issuer},on:{click:function(i){return t.showRegistIssuer(e.row.weId)}}},[t._v("注册为权威凭证发行者")]),t._v(" "),"1"===t.roleType?a("el-button",{staticClass:"btn",staticStyle:{width:"120px"},attrs:{type:"primary"},on:{click:function(i){return t.showRegistWhiteList(e.row.weId)}}},[t._v("添加到白名单")]):t._e()]}}])})],1),t._v(" "),a("el-pagination",{attrs:{"current-page":t.page.pageIndex,"page-size":t.page.pageSize,layout:"total, prev, slot, next",total:t.page.total},on:{"current-change":t.indexChange}},[a("span",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.page.pageIndex))])])],1),t._v(" "),a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"dialog-view",attrs:{title:"创建WeID",width:"25%",visible:t.dialog.dialogCreateWeIdVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogCreateWeIdVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-row",[a("el-col",[a("el-button",{staticClass:"btn width_100",attrs:{type:"primary"},on:{click:function(e){return t.createBySys()}}},[t._v("系统自动创建公私钥来创建WeID")])],1)],1),t._v(" "),a("el-row",[a("el-col",[a("el-button",{staticClass:"btn width_100",attrs:{type:"primary"},on:{click:function(e){return t.showCreateWeIdByPri()}}},[t._v("传入私钥创建WeID")])],1)],1),t._v(" "),a("el-row",[a("el-col",[a("el-button",{staticClass:"btn width_100",attrs:{type:"primary"},on:{click:function(e){return t.showCreateWeIdByPub()}}},[t._v("传入公钥,使用代理模式创建WeID")])],1)],1),t._v(" "),a("a",{staticStyle:{position:"absolute",right:"60px",top:"20px","font-size":"12px",color:"#017CFF"},attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=WeID 管理#weid",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV")}}),t._v(" "),a("span",{staticClass:"icon_question"},[t._v("使用教程")])])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"传入私钥创建WeID",width:"30%",visible:t.dialog.dialogCreateWeIdByPrivateVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogCreateWeIdByPrivateVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.createByPrivateForm}},[a("div",{staticClass:"file_part",staticStyle:{"margin-top":"15px"}},[a("el-form-item",[a("div",{staticClass:"mark-text"},[a("span",[t._v("备注:支持椭圆曲线的公私钥,并且为十进制私钥数据。")]),t._v(" "),a("a",{attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=创建密钥#weid",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("如何生成私钥?")])])]),t._v(" "),a("div",{staticClass:"input_item",staticStyle:{"margin-bottom":"-8px"}},[a("el-input",{staticStyle:{width:"75%"},attrs:{placeholder:"请选择私钥文件",maxlength:"30",readOnly:""},model:{value:t.dialog.createByPrivateForm.privateKeyFileName,callback:function(e){t.$set(t.dialog.createByPrivateForm,"privateKeyFileName",e)},expression:"dialog.createByPrivateForm.privateKeyFileName"}}),t._v(" "),a("button",{staticClass:"upload-btn btn btn-block btn-primary btn-flat",attrs:{type:"button"},on:{click:function(e){return t.chooseFile("privateKeyFile")}}},[t._v("选择文件")])],1)]),t._v(" "),a("input",{staticStyle:{display:"none"},attrs:{type:"file",id:"privateKeyFile"}})],1)])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.createByPri()}}},[t._v("创 建")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"传入公钥创建WeID",width:"30%",visible:t.dialog.dialogCreateWeIdByPublicVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogCreateWeIdByPublicVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.createByPublicForm}},[a("div",{staticClass:"file_part",staticStyle:{"margin-top":"15px"}},[a("el-form-item",[a("div",{staticClass:"mark-text"},[a("div",[t._v("* 只有联盟链委员会的管理员,才能作为代理,为其他机构创建WeID。")]),t._v(" "),a("span",[t._v("* 支持椭圆曲线的公私钥,并且为十进制私钥数据。")]),t._v(" "),a("a",{attrs:{href:"https://weidentity.readthedocs.io/zh_CN/latest/docs/weidentity-quick-tools-web.html?highlight=创建密钥#weid",target:"blank_"}},[a("img",{staticClass:"icon_question",attrs:{src:i("JaJV"),alt:""}}),t._v(" "),a("span",{staticClass:"icon_question",staticStyle:{color:"#017CFF","font-size":"12px",display:"inline-block"}},[t._v("如何生成公钥?")])])]),t._v(" "),a("div",{staticClass:"input_item",staticStyle:{"margin-bottom":"-8px"}},[a("el-input",{staticStyle:{width:"75%"},attrs:{placeholder:"请选择公钥文件",maxlength:"30",readOnly:""},model:{value:t.dialog.createByPublicForm.publicKeyFileName,callback:function(e){t.$set(t.dialog.createByPublicForm,"publicKeyFileName",e)},expression:"dialog.createByPublicForm.publicKeyFileName"}}),t._v(" "),a("button",{staticClass:"upload-btn btn btn-block btn-primary btn-flat",attrs:{type:"button"},on:{click:function(e){return t.chooseFile("publicKeyFile")}}},[t._v("选择文件")])],1)]),t._v(" "),a("input",{staticStyle:{display:"none"},attrs:{type:"file",id:"publicKeyFile"}})],1)])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.createByPub()}}},[t._v("创 建")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"注册权威凭证发行者",width:"31%",visible:t.dialog.dialogissuerFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogissuerFormVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.registForm}},[a("el-form-item",{attrs:{label:"机构的WeID","label-width":t.formLabelWidth}},[a("el-input",{attrs:{disabled:"",placeholder:"填入这个机构WeID"},model:{value:t.dialog.registForm.weId,callback:function(e){t.$set(t.dialog.registForm,"weId",e)},expression:"dialog.registForm.weId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"权威机构名称","label-width":t.formLabelWidth}},[a("div",{staticClass:"mark-text"},[a("span",[t._v("\n 输入权威机构的名称(建议由英文或者数字组成,不建议包含类似空格字符的特殊符号,也不支持中文),\n 作为类似权威机构 ID 的方式使用,例如如果机构是微众银行,则可以输入类似“webank”作为其权威机构名称\n ")])]),t._v(" "),a("el-input",{attrs:{onkeyup:"this.value=this.value.replace(/[^a-zA-Z0-9]/g,'')",placeholder:"Enter issuer name"},on:{blur:function(e){t.dialog.registForm.name=e.target.value}},model:{value:t.dialog.registForm.name,callback:function(e){t.$set(t.dialog.registForm,"name",e)},expression:"dialog.registForm.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"备注","label-width":t.formLabelWidth}},[a("el-input",{attrs:{placeholder:"Enter issuer description"},model:{value:t.dialog.registForm.description,callback:function(e){t.$set(t.dialog.registForm,"description",e)},expression:"dialog.registForm.description"}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.registerIssuer()}}},[t._v("注 册")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"添加到白名单",width:"31%",visible:t.dialog.dialogwhiteFormVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"dialogwhiteFormVisible",e)}}},[a("div",{staticClass:"dialog-body"},[a("el-form",{attrs:{model:t.dialog.whiteListForm}},[a("el-form-item",{attrs:{label:"WeID","label-width":t.formLabelWidth}},[a("el-input",{attrs:{disabled:"",placeholder:"填入这个机构WeID"},model:{value:t.dialog.whiteListForm.weId,callback:function(e){t.$set(t.dialog.whiteListForm,"weId",e)},expression:"dialog.whiteListForm.weId"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"选择待加入的白名单","label-width":t.formLabelWidth}},[0==t.dialog.hashWihteList?a("div",{staticClass:"mark-line"},[a("span",{attrs:{href:"#"},on:{click:function(e){return t.toAddWihte()}}},[t._v("前往新增白名单")])]):t._e(),t._v(" "),a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"白名单"},model:{value:t.dialog.whiteListForm.issuerType,callback:function(e){t.$set(t.dialog.whiteListForm,"issuerType",e)},expression:"dialog.whiteListForm.issuerType"}},t._l(t.dialog.whiteList,function(t){return a("el-option",{key:t.type,attrs:{label:t.type,value:t.type}})}),1)],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"width_100",attrs:{type:"primary"},on:{click:function(e){return t.addWeIdToWhiteList()}}},[t._v("添 加")])],1)]),t._v(" "),a("el-dialog",{staticClass:"dialog-view",attrs:{title:"温馨提示",width:"500px",visible:t.dialog.showWeIdVisible,"close-on-click-modal":!1},on:{"update:visible":function(e){return t.$set(t.dialog,"showWeIdVisible",e)}}},[a("div",{staticClass:"dialog-body deployMessage",staticStyle:{"min-height":"100px"}},[a("el-form",{attrs:{model:t.dialog.showData}},[a("el-form-item",{attrs:{label:"WeID:","label-width":t.formLabelWidth}},[a("el-input",{staticClass:"select_part",attrs:{readOnly:""},on:{focus:function(e){return t.selectCopy(e)}},model:{value:t.dialog.showData.weId,callback:function(e){t.$set(t.dialog.showData,"weId",e)},expression:"dialog.showData.weId"}})],1),t._v(" "),t.dialog.showData.hasPath?a("el-form-item",{attrs:{label:"该WeID密钥存放路径:","label-width":t.formLabelWidth}},[a("el-input",{staticClass:"select_part",attrs:{type:"textarea",resize:"none",rows:"4",readOnly:""},on:{focus:function(e){return t.selectCopy(e)}},model:{value:t.dialog.showData.path,callback:function(e){t.$set(t.dialog.showData,"path",e)},expression:"dialog.showData.path"}})],1):a("el-form-item",{attrs:{label:"该WeID密钥存放路径:","label-width":t.formLabelWidth}},[a("div",{staticClass:"select_part mark-text"},[t._v("该WeID非当前系统产生")])])],1)],1)])],1)},staticRenderFns:[]},u=i("C7Lr")(d,c,!1,null,null,null);e.default=u.exports}}); \ No newline at end of file diff --git a/src/main/resources/static/weid/weid-build-tools/static/js/manifest.3b33ca972ecf0ffd10b8.js b/src/main/resources/static/weid/weid-build-tools/static/js/manifest.3b33ca972ecf0ffd10b8.js deleted file mode 100644 index d295c1b..0000000 --- a/src/main/resources/static/weid/weid-build-tools/static/js/manifest.3b33ca972ecf0ffd10b8.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,o){for(var f,b,d,i=0,u=[];i - + 查询
例如:10.10.4.1:20200;如果多个节点,则请用半角逗号","分割:10.10.4.1:20200,10.10.4.2:20200
diff --git a/web/src/module/guide/step3.vue b/web/src/module/guide/step3.vue index 688ca43..e621c26 100644 --- a/web/src/module/guide/step3.vue +++ b/web/src/module/guide/step3.vue @@ -45,27 +45,27 @@
- + - +
* 数据库需要提前自己搭建好,并建立好数据库,数据库名称(DataBase Name)可以自行决定
- + - +
- +
如:127.0.0.1:6379 ;如果多个节点,则请用半角逗号","分割:127.0.0.1:7100,127.0.0.1:7101
- +
如未设置密码可不填写
@@ -192,7 +192,7 @@ export default { API.doGet('checkPersistence').then(res => { this.dialog.checkDetailVisible = true this.enableBtn(this.dialog.nextBtn) - if (res.data.errorCode === 0) { + if (res.data.result) { this.dialog.checkStatus = true this.dialog.checkMessages.push('数据库配置检测成功。') this.dialog.checkMessages.push('请继续操作。') @@ -239,7 +239,7 @@ export default { API.doGet('loadConfig').then(res => { // 获取配置信息 if (res.data.errorCode === 0) { this.dbForm = res.data.result - if (this.dbForm.persistence_type !== 'mysql' || this.dbForm.persistence_type !== 'redis') { + if (this.dbForm.persistence_type !== 'mysql' && this.dbForm.persistence_type !== 'redis') { this.dbForm.persistence_type = 'mysql' } } diff --git a/web/src/module/page/conf/accountPage.vue b/web/src/module/page/conf/accountPage.vue index cf544f4..e8dec3d 100644 --- a/web/src/module/page/conf/accountPage.vue +++ b/web/src/module/page/conf/accountPage.vue @@ -32,7 +32,7 @@
- 切换账户 + 切换账户
diff --git a/web/src/module/page/conf/dbPage.vue b/web/src/module/page/conf/dbPage.vue index ae3ca90..b6ecc0b 100644 --- a/web/src/module/page/conf/dbPage.vue +++ b/web/src/module/page/conf/dbPage.vue @@ -15,27 +15,27 @@
- + - +
* 数据库需要提前自己搭建好,并建立好数据库,数据库名称(DataBase Name)可以自行决定
- + - +
- +
如:127.0.0.1:6379 ;如果多个节点,则请用半角逗号","分割:127.0.0.1:7100,127.0.0.1:7101
- +
如未设置密码可不填写
@@ -135,7 +135,7 @@ export default { API.doGet('checkPersistence').then(res => { this.dialog.checkDetailVisible = true this.enableBtn(this.dialog.nextBtn) - if (res.data.errorCode === 0) { + if (res.data.result) { this.dialog.checkMessages.push('数据库配置检测成功。') this.dialog.checkMessages.push('提示:目前暂不支持修改配置动态实时生效,修改配置需重启服务才能生效') } else { @@ -170,7 +170,7 @@ export default { API.doGet('loadConfig').then(res => { // 获取配置信息 if (res.data.errorCode === 0) { this.dbForm = res.data.result - if (this.dbForm.persistence_type !== 'mysql' || this.dbForm.persistence_type !== 'redis') { + if (this.dbForm.persistence_type !== 'mysql' && this.dbForm.persistence_type !== 'redis') { this.dbForm.persistence_type = 'mysql' } } diff --git a/web/src/module/page/conf/nodePage.vue b/web/src/module/page/conf/nodePage.vue index 6a70f17..a1b1e03 100644 --- a/web/src/module/page/conf/nodePage.vue +++ b/web/src/module/page/conf/nodePage.vue @@ -19,7 +19,7 @@
- + 查询
例如:10.10.4.1:20200;如果多个节点,则请用半角逗号","分割:10.10.4.1:20200,10.10.4.2:20200
diff --git a/web/src/module/page/deploy/deployEvidencePage.vue b/web/src/module/page/deploy/deployEvidencePage.vue index 3dd1e8e..1a55dea 100644 --- a/web/src/module/page/deploy/deployEvidencePage.vue +++ b/web/src/module/page/deploy/deployEvidencePage.vue @@ -131,7 +131,7 @@ 区块链节点版本 {{dialog.deployDetail.nodeVerion}} - + 区块链节点 {{dialog.deployDetail.nodeAddress}} diff --git a/web/src/module/page/deploy/deployWeIdPage.vue b/web/src/module/page/deploy/deployWeIdPage.vue index 2c2df90..71018c7 100644 --- a/web/src/module/page/deploy/deployWeIdPage.vue +++ b/web/src/module/page/deploy/deployWeIdPage.vue @@ -105,7 +105,7 @@ 区块链节点版本 {{dialog.deployDetail.nodeVerion}} - + 区块链节点 {{dialog.deployDetail.nodeAddress}} diff --git a/web/src/module/page/weid/cptListPage.vue b/web/src/module/page/weid/cptListPage.vue index 89f3151..e753696 100644 --- a/web/src/module/page/weid/cptListPage.vue +++ b/web/src/module/page/weid/cptListPage.vue @@ -87,7 +87,7 @@ - +
只允许填入数字;如果不填,系统将自动按累加规则帮您生成CPT ID
diff --git a/web/src/module/page/weid/weidListPage.vue b/web/src/module/page/weid/weidListPage.vue index 6f1a164..4b3cb91 100644 --- a/web/src/module/page/weid/weidListPage.vue +++ b/web/src/module/page/weid/weidListPage.vue @@ -312,7 +312,11 @@ export default { this.$alert('权威凭证发行者注册成功!', '温馨提示', {}).then(() => { this.dialog.dialogissuerFormVisible = false }).catch(() => {}) - this.init() + this.page.weidList.forEach(weidInfo => { + if (weidInfo.weId === this.dialog.registForm.weId) { + weidInfo.issuer = true + } + }) } else { this.$alert(res.data.errorMessage, '温馨提示', {}).catch(() => {}) } @@ -441,7 +445,8 @@ export default { } }) }, - init (blockNumber, indexInBlock, direction) { + init () { + this.page.pageIndex = 1 this.queryWeIdList(1, 0, 0, true) }, initWihteList () { -- Gitee