From 066db2ba4d7592c5ec9bc05a3af1b0e63c08b385 Mon Sep 17 00:00:00 2001 From: solley Date: Fri, 18 Mar 2022 20:27:06 +0800 Subject: [PATCH] add(mqtt bridging): add ssl enable --- .flattened-pom.xml | 6 +++ distribution/conf/application.properties | 2 +- mmq-config/.flattened-pom.xml | 6 +++ mmq-config/pom.xml | 4 ++ .../monkey/mmq/config/driver/MQTTDriver.java | 54 ++++++++++++++++++- .../ruleEngine/modules/ResourceModel.vue | 33 ++++++++++-- .../src/main/resources/application.properties | 2 +- mmq-web/src/main/resources/static/index.html | 2 +- .../main/resources/static/js/app.c49c5fca.js | 1 + .../main/resources/static/js/app.defb417a.js | 1 - ...ac21a632.js => chunk-00a4fb94.214e2208.js} | 0 ...603dd9ee.js => chunk-08eb694d.35696d76.js} | 0 ...3e6892d4.js => chunk-0c55d5dd.c8425a0d.js} | 0 ...54c8064a.js => chunk-199b3a26.93bd4366.js} | 0 ...aa3b8650.js => chunk-24a0b0bc.1b2f6a26.js} | 0 ...c0202474.js => chunk-2d0dd3d0.10b4db87.js} | 0 ...94b4469e.js => chunk-341e83a4.e9773f94.js} | 0 ...c59f8bd7.js => chunk-8c4d6b48.10460cf0.js} | 2 +- .../js/{fail.391541cf.js => fail.0ebc7f0d.js} | 0 .../js/{user.00b632de.js => user.6068d9fc.js} | 0 pom.xml | 7 +++ 21 files changed, 110 insertions(+), 10 deletions(-) create mode 100644 mmq-web/src/main/resources/static/js/app.c49c5fca.js delete mode 100644 mmq-web/src/main/resources/static/js/app.defb417a.js rename mmq-web/src/main/resources/static/js/{chunk-00a4fb94.ac21a632.js => chunk-00a4fb94.214e2208.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-08eb694d.603dd9ee.js => chunk-08eb694d.35696d76.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-0c55d5dd.3e6892d4.js => chunk-0c55d5dd.c8425a0d.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-199b3a26.54c8064a.js => chunk-199b3a26.93bd4366.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-24a0b0bc.aa3b8650.js => chunk-24a0b0bc.1b2f6a26.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-2d0dd3d0.c0202474.js => chunk-2d0dd3d0.10b4db87.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-341e83a4.94b4469e.js => chunk-341e83a4.e9773f94.js} (100%) rename mmq-web/src/main/resources/static/js/{chunk-8c4d6b48.c59f8bd7.js => chunk-8c4d6b48.10460cf0.js} (60%) rename mmq-web/src/main/resources/static/js/{fail.391541cf.js => fail.0ebc7f0d.js} (100%) rename mmq-web/src/main/resources/static/js/{user.00b632de.js => user.6068d9fc.js} (100%) diff --git a/.flattened-pom.xml b/.flattened-pom.xml index 255e190..74e6e38 100644 --- a/.flattened-pom.xml +++ b/.flattened-pom.xml @@ -113,6 +113,7 @@ 2.13.3 2.20 3.0 + 1.46 2.1.6.RELEASE 1.1.1 @@ -165,6 +166,11 @@ mmq-web ${project.version} + + org.bouncycastle + bcprov-jdk16 + ${bouncycastle.version} + io.jsonwebtoken jjwt-api diff --git a/distribution/conf/application.properties b/distribution/conf/application.properties index 3dcb9ab..8557988 100644 --- a/distribution/conf/application.properties +++ b/distribution/conf/application.properties @@ -23,7 +23,7 @@ server.port=8888 #*************** mqtt broker Configurations ***************# mmq.broker.websocketPort=2883 mmq.broker.port=3883 -mmq.broker.ssl.password=mmq@123 +mmq.broker.ssl.password=mmq mmq.broker.ssl.certPath=cert/mmq.pfx mmq.broker.ssl.port=1663 mmq.broker.ssl.websocketPort=2663 diff --git a/mmq-config/.flattened-pom.xml b/mmq-config/.flattened-pom.xml index 79bba9a..fbb171e 100644 --- a/mmq-config/.flattened-pom.xml +++ b/mmq-config/.flattened-pom.xml @@ -78,6 +78,12 @@ 1.1.1 compile + + org.bouncycastle + bcprov-jdk16 + 1.46 + compile + junit junit diff --git a/mmq-config/pom.xml b/mmq-config/pom.xml index f5f753d..b21b1ce 100644 --- a/mmq-config/pom.xml +++ b/mmq-config/pom.xml @@ -54,5 +54,9 @@ ${project.groupId} mmq-rule-engine + + org.bouncycastle + bcprov-jdk16 + \ No newline at end of file diff --git a/mmq-config/src/main/java/org/monkey/mmq/config/driver/MQTTDriver.java b/mmq-config/src/main/java/org/monkey/mmq/config/driver/MQTTDriver.java index 0ab8721..7401d2f 100644 --- a/mmq-config/src/main/java/org/monkey/mmq/config/driver/MQTTDriver.java +++ b/mmq-config/src/main/java/org/monkey/mmq/config/driver/MQTTDriver.java @@ -1,6 +1,8 @@ package org.monkey.mmq.config.driver; import com.alibaba.fastjson.JSON; +import org.bouncycastle.jce.provider.BouncyCastleProvider; +import org.bouncycastle.openssl.PEMReader; import org.eclipse.paho.client.mqttv3.*; import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence; import org.monkey.mmq.config.matedata.ResourcesMateData; @@ -8,6 +10,17 @@ import org.monkey.mmq.core.utils.StringUtils; import org.springframework.stereotype.Component; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManagerFactory; +import java.io.ByteArrayInputStream; +import java.io.InputStreamReader; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.security.KeyStore; +import java.security.SecureRandom; +import java.security.Security; +import java.security.cert.X509Certificate; import java.util.Map; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; @@ -56,11 +69,20 @@ public void addDriver(String resourceId, Map resource) { options.setConnectionTimeout(connectionTimeout); // 设置会话心跳时间 单位为秒 服务器会每隔1.5*20秒的时间向客户端发送个消息判断客户端是否在线,但这个方法并没有重连的机制 options.setKeepAliveInterval(keepAliveInterval); + // 判断是否启用SSL + if (resource.get("sslEnable") != null) { + boolean sslEnable = Boolean.parseBoolean(resource.get("sslEnable").toString()); + if (sslEnable) { + options.setSocketFactory(getSocketFactorySingle(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream("cert/mmq.cer")),"")); + } + } // 连接服务器 mqttClient.connect(options); mqttClientConcurrentHashMap.put(resourceId, mqttClient); } catch (MqttException e) { return; + } catch (Exception exception) { + return; } } @@ -120,11 +142,18 @@ public void deliveryComplete(IMqttDeliveryToken token){ options.setConnectionTimeout(1); // 设置会话心跳时间 单位为秒 服务器会每隔1.5*20秒的时间向客户端发送个消息判断客户端是否在线,但这个方法并没有重连的机制 options.setKeepAliveInterval(keepAliveInterval); + // 判断是否启用SSL + if (resourcesMateData.getResource().get("sslEnable") != null) { + boolean sslEnable = Boolean.parseBoolean(resourcesMateData.getResource().get("sslEnable").toString()); + if (sslEnable) { + options.setSocketFactory(getSocketFactorySingle(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream("cert/mmq.cer")),"")); + } + } // 连接服务器 mqttClient.connect(options); return true; - } catch (MqttException e) { + } catch (Exception e) { return false; } } @@ -145,4 +174,27 @@ public void handle(Map property, ResourcesMateData resourcesMateData, throw new MmqException(e.hashCode(), e.getMessage()); } } + + public static SSLSocketFactory getSocketFactorySingle(final InputStreamReader caCertStr, String protocol) throws Exception { + Security.addProvider(new BouncyCastleProvider()); + + // load CA certificate + PEMReader reader = new PEMReader(caCertStr); +// PEMReader reader = new PEMReader(new InputStreamReader(new ByteArrayInputStream(caCertStr.getBytes()))); + X509Certificate caCert = (X509Certificate)reader.readObject(); + reader.close(); + // client key and certificates are sent to server so it can authenticate us + KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());//"JKS" + ks.load(null, null); + ks.setCertificateEntry("ca-certificate", caCert); + TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());//"PKIX" + tmf.init(ks); + // finally, create SSL socket factory + if(StringUtils.isBlank(protocol)){ + protocol= "TLSv1.1"; + } + SSLContext context = SSLContext.getInstance(protocol);//"TLSv1.1" + context.init(null, tmf.getTrustManagers(), new SecureRandom()); + return context.getSocketFactory(); + } } diff --git a/mmq-ui/src/views/ruleEngine/modules/ResourceModel.vue b/mmq-ui/src/views/ruleEngine/modules/ResourceModel.vue index 5940be5..3983abf 100644 --- a/mmq-ui/src/views/ruleEngine/modules/ResourceModel.vue +++ b/mmq-ui/src/views/ruleEngine/modules/ResourceModel.vue @@ -204,14 +204,32 @@ v-decorator="[ 'resource.server', { - rules: [{ required: type === 'MQTT_BROKER' ? true : false, message: '请输入MQTT服务' }] + rules: [{ required: type === 'MQTT_BROKER' ? true : false, message: '请输入MQTT服务地址' }] } ]" - placeholder="请输入MQTT服务" + placeholder="[ssl://ip:port] OR [tcp://ip:port]" /> - + + + + + true + + + false + + + + @@ -301,6 +319,7 @@ export default { this.form.resetFields() this.visible = true if (record) { + console.log(record) this.curResourceID = record.resourceID this.setFieldsValueByType(record.type, record) } @@ -350,13 +369,19 @@ export default { resource: { server: record.resource.server, password: record.resource.password, - username: record.resource.username + username: record.resource.username, + sslEnable: record.resource.sslEnable ? record.resource.sslEnable : 'false' } }) }) break } }, + beforeUpload(flie) { + console.log(flie) + this.form.setFieldsValue('resource.caCertStr', flie) + return false + }, typeChange(value) { this.type = value }, diff --git a/mmq-web/src/main/resources/application.properties b/mmq-web/src/main/resources/application.properties index a8b4479..53d4fc9 100644 --- a/mmq-web/src/main/resources/application.properties +++ b/mmq-web/src/main/resources/application.properties @@ -26,7 +26,7 @@ mmq.broker.port=1883 mmq.broker.ssl.password=mmq mmq.broker.ssl.certPath=cert/mmq.pfx mmq.broker.ssl.port=17733 -mmq.broker.ssl.websocketPort=26633 +mmq.broker.ssl.websocketPort=36633 mmq.broker.default.user=admin mmq.broker.default.password=admin@mmq mmq.broker.default.anonymous=true diff --git a/mmq-web/src/main/resources/static/index.html b/mmq-web/src/main/resources/static/index.html index fc80ccd..859779d 100644 --- a/mmq-web/src/main/resources/static/index.html +++ b/mmq-web/src/main/resources/static/index.html @@ -92,4 +92,4 @@ to { opacity: 1 } - }

MMQ

MQTT Broker
\ No newline at end of file + }

MMQ

MQTT Broker
\ No newline at end of file diff --git a/mmq-web/src/main/resources/static/js/app.c49c5fca.js b/mmq-web/src/main/resources/static/js/app.c49c5fca.js new file mode 100644 index 0000000..4d4141f --- /dev/null +++ b/mmq-web/src/main/resources/static/js/app.c49c5fca.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var n,r,i=t[0],c=t[1],l=t[2],u=0,d=[];udiv[type=dialog]");i||(i=document.createElement("div"),i.setAttribute("type","dialog"),document.body.appendChild(i));var c=function(e,t){if(e instanceof Function){var a=e();a instanceof Promise?a.then((function(e){e&&t()})):a&&t()}else e||t()},l=new e({data:function(){return{visible:!0}},router:o.$router,store:o.$store,mounted:function(){var e=this;this.$on("close",(function(t){e.handleClose()}))},methods:{handleClose:function(){var e=this;c(this.$refs._component.onCancel,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("cancel"),l.$destroy()}))},handleOk:function(){var e=this;c(this.$refs._component.onOK||this.$refs._component.onOk,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("ok"),l.$destroy()}))}},render:function(e){var o=this,i=s&&s.model;i&&delete s.model;var c=Object.assign({},i&&{model:i}||{},{attrs:Object.assign({},Object(n["a"])({},s.attrs||s),{visible:this.visible}),on:Object.assign({},Object(n["a"])({},s.on||s),{ok:function(){o.handleOk()},cancel:function(){o.handleClose()}})}),l=a&&a.model;l&&delete a.model;var u=Object.assign({},l&&{model:l}||{},{ref:"_component",attrs:Object.assign({},Object(n["a"])({},a&&a.attrs||a)),on:Object.assign({},Object(n["a"])({},a&&a.on||a))});return e(r["a"],c,[e(t,u)])}}).$mount(i)}}Object.defineProperty(e.prototype,"$dialog",{get:function(){return function(){t.apply(this,arguments)}}})}},2263:function(e,t,a){},"29fd":function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("4404");t["default"]=Object(n["a"])({},r["default"])},"2a47":function(e,t,a){},"31fc":function(e,t,a){"use strict";var n,r,s=a("2b0e"),o=new s["a"],i=a("5530"),c=(a("b0c0"),a("7db0"),a("4de4"),a("caad"),a("2532"),a("159b"),a("d81d"),{name:"MultiTab",data:function(){return{fullPathList:[],pages:[],activeKey:"",newTabIndex:0}},created:function(){var e=this;o.$on("open",(function(t){if(!t)throw new Error("multi-tab: open tab ".concat(t," err"));e.activeKey=t})).$on("close",(function(t){t?e.closeThat(t):e.closeThat(e.activeKey)})).$on("rename",(function(t){var a=t.key,n=t.name;try{var r=e.pages.find((function(e){return e.path===a}));r.meta.customTitle=n,e.$forceUpdate()}catch(s){}})),this.pages.push(this.$route),this.fullPathList.push(this.$route.fullPath),this.selectedLastPath()},methods:{onEdit:function(e,t){this[t](e)},remove:function(e){this.pages=this.pages.filter((function(t){return t.fullPath!==e})),this.fullPathList=this.fullPathList.filter((function(t){return t!==e})),this.fullPathList.includes(this.activeKey)||this.selectedLastPath()},selectedLastPath:function(){this.activeKey=this.fullPathList[this.fullPathList.length-1]},closeThat:function(e){this.fullPathList.length>1?this.remove(e):this.$message.info("这是最后一个标签了, 无法被关闭")},closeLeft:function(e){var t=this,a=this.fullPathList.indexOf(e);a>0?this.fullPathList.forEach((function(e,n){na&&t.remove(e)})):this.$message.info("右侧没有标签")},closeAll:function(e){var t=this,a=this.fullPathList.indexOf(e);this.fullPathList.forEach((function(e,n){n!==a&&t.remove(e)}))},closeMenuClick:function(e,t){this[e](t)},renderTabPaneMenu:function(e){var t=this,a=this.$createElement;return a("a-menu",{on:Object(i["a"])({},{click:function(a){var n=a.key;a.item,a.domEvent;t.closeMenuClick(n,e)}})},[a("a-menu-item",{key:"closeThat"},["关闭当前标签"]),a("a-menu-item",{key:"closeRight"},["关闭右侧"]),a("a-menu-item",{key:"closeLeft"},["关闭左侧"]),a("a-menu-item",{key:"closeAll"},["关闭全部"])])},renderTabPane:function(e,t){var a=this.$createElement,n=this.renderTabPaneMenu(t);return a("a-dropdown",{attrs:{overlay:n,trigger:["contextmenu"]}},[a("span",{style:{userSelect:"none"}},[e])])}},watch:{$route:function(e){this.activeKey=e.fullPath,this.fullPathList.indexOf(e.fullPath)<0&&(this.fullPathList.push(e.fullPath),this.pages.push(e))},activeKey:function(e){this.$router.push({path:e})}},render:function(){var e=this,t=arguments[0],a=this.onEdit,n=this.$data.pages,r=n.map((function(a){return t("a-tab-pane",{style:{height:0},attrs:{tab:e.renderTabPane(a.meta.customTitle||a.meta.title,a.fullPath),closable:n.length>1},key:a.fullPath})}));return t("div",{class:"ant-pro-multi-tab"},[t("div",{class:"ant-pro-multi-tab-wrapper"},[t("a-tabs",{attrs:{hideAdd:!0,type:"editable-card",tabBarStyle:{background:"#FFF",margin:0,paddingLeft:"16px",paddingTop:"1px"}},on:Object(i["a"])({},{edit:a}),model:{value:e.activeKey,callback:function(t){e.activeKey=t}}},[r])])])}}),l=c,u=a("2877"),d=Object(u["a"])(l,n,r,!1,null,null,null),f=d.exports,m=(a("3489"),{open:function(e){o.$emit("open",e)},rename:function(e,t){o.$emit("rename",{key:e,name:t})},closeCurrentPage:function(){this.close()},close:function(e){o.$emit("close",e)}});f.install=function(e){e.prototype.$multiTab||(m.instance=o,e.prototype.$multiTab=m,e.component("multi-tab",f))};t["a"]=f},3489:function(e,t,a){},"36cf":function(e,t,a){"use strict";a("2263")},4360:function(e,t,a){"use strict";var n,r=a("2b0e"),s=a("2f62"),o=a("ade3"),i=(a("d3b7"),a("8ded")),c=a.n(i),l=a("9fb0"),u=a("bf0f"),d={state:{sideCollapsed:!1,isMobile:!1,theme:"dark",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:"",weak:!1,multiTab:!0,lang:"en-US",_antLocale:{}},mutations:(n={},Object(o["a"])(n,l["d"],(function(e,t){e.sideCollapsed=t,c.a.set(l["d"],t)})),Object(o["a"])(n,l["k"],(function(e,t){e.isMobile=t})),Object(o["a"])(n,l["m"],(function(e,t){e.theme=t,c.a.set(l["m"],t)})),Object(o["a"])(n,l["j"],(function(e,t){e.layout=t,c.a.set(l["j"],t)})),Object(o["a"])(n,l["g"],(function(e,t){e.fixedHeader=t,c.a.set(l["g"],t)})),Object(o["a"])(n,l["h"],(function(e,t){e.fixedSidebar=t,c.a.set(l["h"],t)})),Object(o["a"])(n,l["f"],(function(e,t){e.contentWidth=t,c.a.set(l["f"],t)})),Object(o["a"])(n,l["i"],(function(e,t){e.autoHideHeader=t,c.a.set(l["i"],t)})),Object(o["a"])(n,l["e"],(function(e,t){e.color=t,c.a.set(l["e"],t)})),Object(o["a"])(n,l["n"],(function(e,t){e.weak=t,c.a.set(l["n"],t)})),Object(o["a"])(n,l["b"],(function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.lang=t,e._antLocale=a,c.a.set(l["b"],t)})),Object(o["a"])(n,l["l"],(function(e,t){c.a.set(l["l"],t),e.multiTab=t})),n),actions:{setLang:function(e,t){var a=e.commit;return new Promise((function(e,n){a(l["b"],t),Object(u["c"])(t).then((function(){e()})).catch((function(e){n(e)}))}))}}},f=d,m=(a("b0c0"),a("d81d"),a("7ded")),h=a("ca00"),p={state:{token:"",name:"",welcome:"",avatar:"",roles:[],info:{}},mutations:{SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){var a=t.name,n=t.welcome;e.name=a,e.welcome=n},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_INFO:function(e,t){e.info=t}},actions:{Login:function(e,t){var a=e.commit;return new Promise((function(e,n){Object(m["d"])(t).then((function(t){var n=t.data;c.a.set(l["a"],n.accessToken,6048e5),a("SET_TOKEN",n.accessToken),e()})).catch((function(e){n(e)}))}))},GetInfo:function(e){var t=e.commit;return new Promise((function(e,a){Object(m["b"])().then((function(n){var r=n.data;if(r.role&&r.role.permissions.length>0){var s=r.role;s.permissions=r.role.permissions,s.permissions.map((function(e){if(null!=e.actionEntitySet&&e.actionEntitySet.length>0){var t=e.actionEntitySet.map((function(e){return e.action}));e.actionList=t}})),s.permissionList=s.permissions.map((function(e){return e.permissionId})),t("SET_ROLES",r.role),t("SET_INFO",r)}else a(new Error("getInfo: roles must be a non-null array !"));t("SET_NAME",{name:"mmq",welcome:Object(h["c"])()}),t("SET_AVATAR",""),e(n)})).catch((function(e){a(e)}))}))},Logout:function(e){var t=e.commit;e.state;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),c.a.remove(l["a"]),e()}))}}},g=p,b=(a("caad"),a("2532"),a("99af"),a("d73b"));var y={state:{routers:b["b"],addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t,e.routers=b["b"].concat(t)}},actions:{GenerateRoutes:function(e,t){var a=e.commit;return new Promise((function(e){a("SET_ROUTERS",b["a"]),e()}))}}},v=y,C={isMobile:function(e){return e.app.isMobile},lang:function(e){return e.app.lang},theme:function(e){return e.app.theme},color:function(e){return e.app.color},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},nickname:function(e){return e.user.name},welcome:function(e){return e.user.welcome},roles:function(e){return e.user.roles},userInfo:function(e){return e.user.info},addRouters:function(e){return e.permission.addRouters},multiTab:function(e){return e.app.multiTab}},w=C;r["a"].use(s["a"]);t["a"]=new s["a"].Store({modules:{app:f,user:g,permission:v},state:{},mutations:{},actions:{},getters:w})},4404:function(e,t,a){"use strict";a.r(t),t["default"]={"account.settings.menuMap.basic":"Basic Settings","account.settings.menuMap.security":"Security Settings","account.settings.menuMap.custom":"Custom Settings","account.settings.menuMap.binding":"Account Binding","account.settings.menuMap.notification":"New Message Notification","account.settings.basic.avatar":"Avatar","account.settings.basic.change-avatar":"Change avatar","account.settings.basic.email":"Email","account.settings.basic.email-message":"Please input your email!","account.settings.basic.nickname":"Nickname","account.settings.basic.nickname-message":"Please input your Nickname!","account.settings.basic.profile":"Personal profile","account.settings.basic.profile-message":"Please input your personal profile!","account.settings.basic.profile-placeholder":"Brief introduction to yourself","account.settings.basic.country":"Country/Region","account.settings.basic.country-message":"Please input your country!","account.settings.basic.geographic":"Province or city","account.settings.basic.geographic-message":"Please input your geographic info!","account.settings.basic.address":"Street Address","account.settings.basic.address-message":"Please input your address!","account.settings.basic.phone":"Phone Number","account.settings.basic.phone-message":"Please input your phone!","account.settings.basic.update":"Update Information","account.settings.basic.update.success":"Update basic information successfully","account.settings.security.strong":"Strong","account.settings.security.medium":"Medium","account.settings.security.weak":"Weak","account.settings.security.password":"Account Password","account.settings.security.password-description":"Current password strength:","account.settings.security.phone":"Security Phone","account.settings.security.phone-description":"Bound phone:","account.settings.security.question":"Security Question","account.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","account.settings.security.email":"Backup Email","account.settings.security.email-description":"Bound Email:","account.settings.security.mfa":"MFA Device","account.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","account.settings.security.modify":"Modify","account.settings.security.set":"Set","account.settings.security.bind":"Bind","account.settings.binding.taobao":"Binding Taobao","account.settings.binding.taobao-description":"Currently unbound Taobao account","account.settings.binding.alipay":"Binding Alipay","account.settings.binding.alipay-description":"Currently unbound Alipay account","account.settings.binding.dingding":"Binding DingTalk","account.settings.binding.dingding-description":"Currently unbound DingTalk account","account.settings.binding.bind":"Bind","account.settings.notification.password":"Account Password","account.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","account.settings.notification.messages":"System Messages","account.settings.notification.messages-description":"System messages will be notified in the form of a station letter","account.settings.notification.todo":"To-do Notification","account.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","account.settings.settings.open":"Open","account.settings.settings.close":"Close"}},"44e5":function(e,t,a){"use strict";a.r(t),t["default"]={"result.success.title":"Submission Success","result.success.description":"The submission results page is used to feed back the results of a series of operational tasks. If it is a simple operation, use the Message global prompt feedback. This text area can show a simple supplementary explanation. If there is a similar requirement for displaying “documents”, the following gray area can present more complicated content.","result.success.operate-title":"Project Name","result.success.operate-id":"Project ID","result.success.principal":"Principal","result.success.operate-time":"Effective time","result.success.step1-title":"Create project","result.success.step1-operator":"Qu Lili","result.success.step2-title":"Departmental preliminary review","result.success.step2-operator":"Zhou Maomao","result.success.step2-extra":"Urge","result.success.step3-title":"Financial review","result.success.step4-title":"Finish","result.success.btn-return":"Back List","result.success.btn-project":"View Project","result.success.btn-print":"Print"}},"4aa4":function(e,t,a){var n={"./en-US":["743d"],"./en-US.js":["743d"],"./en-US/account":["29fd"],"./en-US/account.js":["29fd"],"./en-US/account/settings":["4404"],"./en-US/account/settings.js":["4404"],"./en-US/dashboard":["dea1"],"./en-US/dashboard.js":["dea1"],"./en-US/dashboard/analysis":["b781"],"./en-US/dashboard/analysis.js":["b781"],"./en-US/form":["ffb6"],"./en-US/form.js":["ffb6"],"./en-US/form/basicForm":["0af2"],"./en-US/form/basicForm.js":["0af2"],"./en-US/global":["6e2f"],"./en-US/global.js":["6e2f"],"./en-US/menu":["771d"],"./en-US/menu.js":["771d"],"./en-US/overview":["6039"],"./en-US/overview.js":["6039"],"./en-US/result":["78a1"],"./en-US/result.js":["78a1"],"./en-US/result/fail":["69c3"],"./en-US/result/fail.js":["69c3"],"./en-US/result/success":["44e5"],"./en-US/result/success.js":["44e5"],"./en-US/setting":["5030"],"./en-US/setting.js":["5030"],"./en-US/user":["928e"],"./en-US/user.js":["928e"],"./zh-CN":["2807","lang-zh-CN"],"./zh-CN.js":["2807","lang-zh-CN"],"./zh-CN/account":["2a21","lang-zh-CN-account"],"./zh-CN/account.js":["2a21","lang-zh-CN-account"],"./zh-CN/account/settings":["0e6b","lang-zh-CN-account-settings"],"./zh-CN/account/settings.js":["0e6b","lang-zh-CN-account-settings"],"./zh-CN/dashboard":["dec6","lang-zh-CN-dashboard"],"./zh-CN/dashboard.js":["dec6","lang-zh-CN-dashboard"],"./zh-CN/dashboard/analysis":["5dd5","lang-zh-CN-dashboard-analysis"],"./zh-CN/dashboard/analysis.js":["5dd5","lang-zh-CN-dashboard-analysis"],"./zh-CN/form":["18c7","lang-zh-CN-form"],"./zh-CN/form.js":["18c7","lang-zh-CN-form"],"./zh-CN/form/basicForm":["12a1","lang-zh-CN-form-basicForm"],"./zh-CN/form/basicForm.js":["12a1","lang-zh-CN-form-basicForm"],"./zh-CN/global":["1858","lang-zh-CN-global"],"./zh-CN/global.js":["1858","lang-zh-CN-global"],"./zh-CN/menu":["1dec","lang-zh-CN-menu"],"./zh-CN/menu.js":["1dec","lang-zh-CN-menu"],"./zh-CN/overview":["ce35","lang-zh-CN-overview"],"./zh-CN/overview.js":["ce35","lang-zh-CN-overview"],"./zh-CN/result":["8176","lang-zh-CN-result"],"./zh-CN/result.js":["8176","lang-zh-CN-result"],"./zh-CN/result/fail":["d5c8","lang-zh-CN-result-fail"],"./zh-CN/result/fail.js":["d5c8","lang-zh-CN-result-fail"],"./zh-CN/result/success":["4fd4","lang-zh-CN-result-success"],"./zh-CN/result/success.js":["4fd4","lang-zh-CN-result-success"],"./zh-CN/setting":["5436","lang-zh-CN-setting"],"./zh-CN/setting.js":["5436","lang-zh-CN-setting"],"./zh-CN/user":["2518","lang-zh-CN-user"],"./zh-CN/user.js":["2518","lang-zh-CN-user"]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id="4aa4",e.exports=r},5030:function(e,t,a){"use strict";a.r(t),t["default"]={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.light":"Light style","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.realdark":"RealDark style","app.setting.themecolor":"Theme Color","app.setting.navigationmode":"Navigation Mode","app.setting.content-width":"Content Width","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/config/defaultSettings.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple"}},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79df"),a("a4d3"),a("e01a"),a("b636"),a("dc8d"),a("efe9"),a("d28b"),a("2a1b"),a("80e0"),a("6b9e"),a("197b"),a("2351"),a("8172"),a("944a"),a("81b8"),a("99af"),a("a874"),a("cb29"),a("4de4"),a("7db0"),a("c740"),a("0481"),a("5db7"),a("a630"),a("caad"),a("a15b"),a("d81d"),a("5ded"),a("fb6a"),a("f785"),a("a434"),a("4069"),a("73d9"),a("c19f"),a("82da"),a("ace4"),a("efec"),a("b56e"),a("b0c0"),a("0c47"),a("4ec9"),a("5327"),a("79a8"),a("9ff9"),a("3ea3"),a("40d9"),a("ff9c"),a("0ac8"),a("f664"),a("4057"),a("bc01"),a("6b93"),a("ca21"),a("90d7"),a("2af1"),a("0261"),a("7898"),a("23dc"),a("b65f"),a("a9e3"),a("35b3"),a("f00c"),a("8ba4"),a("9129"),a("583b"),a("aff5"),a("e6e1"),a("c35a"),a("25eb"),a("b680"),a("12a8"),a("e71b"),a("4fad"),a("dca8"),a("c1f9"),a("e439"),a("dbb4"),a("7039"),a("3410"),a("2b19"),a("c906"),a("e21d"),a("e43e"),a("b64b"),a("bf96"),a("5bf7"),a("cee8"),a("af93"),a("131a"),a("d3b7"),a("07ac"),a("a6fd"),a("4ae1"),a("3f3a"),a("ac16"),a("5d41"),a("9e4a"),a("7f78"),a("c760"),a("db96"),a("1bf2"),a("d6dd"),a("7ed3"),a("8b9a"),a("4d63"),a("ac1f"),a("5377"),a("25f0"),a("6062"),a("f5b2"),a("8a79"),a("f6d6"),a("2532"),a("3ca3"),a("466d"),a("843c"),a("4d90"),a("d80f"),a("38cf"),a("5319"),a("841c"),a("1276"),a("2ca0"),a("498a"),a("1e25"),a("eee7"),a("18a5"),a("1393"),a("04d3"),a("cc71"),a("c7cd"),a("9767"),a("1913"),a("c5d0"),a("9911"),a("c96a"),a("2315"),a("4c53"),a("664f"),a("cfc3"),a("4a9b"),a("fd87"),a("8b09"),a("143c"),a("5cc6"),a("8a59"),a("84c3"),a("fb2c"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("20bf"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ec97"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),a("10d1"),a("1fe2"),a("159b"),a("ddb0"),a("130f"),a("9f96"),a("2b3d"),a("bf19"),a("9861"),a("96cf");var n=a("2b0e"),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-config-provider",{attrs:{locale:e.locale}},[a("div",{attrs:{id:"app"}},[a("router-view")],1)])},s=[],o=a("e819"),i=function(e){document.title=e;var t=navigator.userAgent,a=/\bMicroMessenger\/([\d\.]+)/;if(a.test(t)&&/ip(hone|od|ad)/i.test(t)){var n=document.createElement("iframe");n.src="/favicon.ico",n.style.display="none",n.onload=function(){setTimeout((function(){n.remove()}),9)},document.body.appendChild(n)}},c=o["a"].title,l=a("bf0f"),u={data:function(){return{}},computed:{locale:function(){var e=this.$route.meta.title;return e&&i("".concat(Object(l["b"])(e)," - ").concat(c)),this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale}}},d=u,f=a("2877"),m=Object(f["a"])(d,r,s,!1,null,null,null),h=m.exports,p=a("8c4f"),g=a("d73b"),b=p["a"].prototype.push;p["a"].prototype.push=function(e,t,a){return t||a?b.call(this,e,t,a):b.call(this,e).catch((function(e){return e}))},n["a"].use(p["a"]);var y=new p["a"]({mode:"history",routes:g["b"]}),v=a("4360"),C=a("b775"),w=a("c0d2"),k={theme:[{key:"dark",fileName:"dark.css",theme:"dark"},{key:"#F5222D",fileName:"#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",fileName:"#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",fileName:"#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",fileName:"#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",fileName:"#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",fileName:"#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",fileName:"#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}},{key:"#F5222D",theme:"dark",fileName:"dark-#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",theme:"dark",fileName:"dark-#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",theme:"dark",fileName:"dark-#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",theme:"dark",fileName:"dark-#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",theme:"dark",fileName:"dark-#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",theme:"dark",fileName:"dark-#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",theme:"dark",fileName:"dark-#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}}]},N=(a("ca00"),a("8ded")),z=a.n(N),S=a("9fb0"),j=function(){'\n __ __ __ __ ___ \n | / || / | / _ \n | |/| || |/| || (_) | \n |_|__|_||_|__|_| ___ \n _|"""""|_|"""""|_|"""""| \n\t\t\t\t\tPublished '.concat("3.0.2","-").concat("v1.0.4-54-gdec761b"," @ antdv.com\n\t\t\t\t\tBuild date: ").concat("2022-3-18 8:03:10 ├F10: PM┤")};function _(){j(),v["a"].commit(S["j"],z.a.get(S["j"],o["a"].layout)),v["a"].commit(S["g"],z.a.get(S["g"],o["a"].fixedHeader)),v["a"].commit(S["h"],z.a.get(S["h"],o["a"].fixSiderbar)),v["a"].commit(S["f"],z.a.get(S["f"],o["a"].contentWidth)),v["a"].commit(S["i"],z.a.get(S["i"],o["a"].autoHideHeader)),v["a"].commit(S["m"],z.a.get(S["m"],o["a"].navTheme)),v["a"].commit(S["n"],z.a.get(S["n"],o["a"].colorWeak)),v["a"].commit(S["e"],z.a.get(S["e"],o["a"].primaryColor)),v["a"].commit(S["l"],z.a.get(S["l"],o["a"].multiTab)),v["a"].commit("SET_TOKEN",z.a.get(S["a"])),v["a"].dispatch("setLang",z.a.get(S["b"],"en-US"))}a("dc5a");var P=a("56cd"),O=(a("3b18"),a("f64c")),M=(a("ea98"),a("1d87")),x=(a("bffa"),a("6634")),E=(a("e7c6"),a("a8ba")),T=(a("dd98"),a("3779")),L=(a("34c0"),a("9fd0")),A=(a("2a26"),a("768f")),$=(a("cc70"),a("1fd5")),F=(a("1273"),a("f2ca")),U=(a("eb14"),a("39ab")),R=(a("0025"),a("27ab")),D=(a("9980"),a("0bb7")),B=(a("55ec"),a("a79d")),q=(a("b97c"),a("7571")),V=(a("ab9e"),a("2c92")),W=(a("9a33"),a("f933")),I=(a("6d2a"),a("9571")),G=(a("fbd8"),a("55f1")),H=(a("7f6b"),a("8592")),K=(a("b380"),a("bf7b")),Y=(a("dd48"),a("2fc4")),Q=(a("af3d"),a("27fd")),Z=(a("d88f"),a("fe2b")),J=(a("9d5c"),a("a600")),X=(a("5136"),a("681b")),ee=(a("4a96"),a("a071")),te=(a("8fb1"),a("0c63")),ae=(a("d13f"),a("ccb9")),ne=(a("c68a"),a("0020")),re=(a("cd17"),a("ed3b")),se=(a("0032"),a("e32c")),oe=(a("de6a"),a("9a63")),ie=(a("f2ef"),a("3af3")),ce=(a("288f"),a("cdeb")),le=(a("2ef0f"),a("9839")),ue=(a("ee00"),a("bb76")),de=(a("5783"),a("59a5")),fe=(a("fbd6"),a("160c")),me=(a("6ba6"),a("5efb")),he=(a("922d"),a("09d9")),pe=(a("5704"),a("b558")),ge=(a("1a62"),a("98c5")),be=(a("d2a3"),a("4df5")),ye=a("3654"),ve=a("7e79"),Ce=a.n(ve),we=a("1d4b"),ke=a("31fc"),Ne=a("5530"),ze={name:"PageLoading",props:{tip:{type:String,default:"Loading.."},size:{type:String,default:"large"}},render:function(){var e=arguments[0],t={textAlign:"center",background:"rgba(0,0,0,0.6)",position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1100},a={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%, -50%)"};return e("div",{style:t},[e(H["a"],{attrs:{size:this.size,tip:this.tip},style:a})])}},Se="0.0.1",je={newInstance:function(e,t){var a=document.querySelector("body>div[type=loading]");a||(a=document.createElement("div"),a.setAttribute("type","loading"),a.setAttribute("class","ant-loading-wrapper"),document.body.appendChild(a));var n=Object.assign({visible:!1,size:"large",tip:"Loading..."},t),r=new e({data:function(){return Object(Ne["a"])({},n)},render:function(){var e=arguments[0],t=this.tip,a={};return this.tip&&(a.tip=t),this.visible?e(ze,{props:Object(Ne["a"])({},a)}):null}}).$mount(a);function s(e){var t=Object(Ne["a"])(Object(Ne["a"])({},n),e),a=t.visible,s=t.size,o=t.tip;r.$set(r,"visible",a),o&&r.$set(r,"tip",o),s&&r.$set(r,"size",s)}return{instance:r,update:s}}},_e={show:function(e){this.instance.update(Object(Ne["a"])(Object(Ne["a"])({},e),{},{visible:!0}))},hide:function(){this.instance.update({visible:!1})}},Pe=function(e,t){e.prototype.$loading||(_e.instance=je.newInstance(e,t),e.prototype.$loading=_e)},Oe={version:Se,install:Pe},Me=a("3835"),xe={add:{key:"add",label:"新增"},delete:{key:"delete",label:"删除"},edit:{key:"edit",label:"修改"},query:{key:"query",label:"查询"},get:{key:"get",label:"详情"},enable:{key:"enable",label:"启用"},disable:{key:"disable",label:"禁用"},import:{key:"import",label:"导入"},export:{key:"export",label:"导出"}};function Ee(e){Ee.installed||(!e.prototype.$auth&&Object.defineProperties(e.prototype,{$auth:{get:function(){var e=this;return function(t){var a=t.split("."),n=Object(Me["a"])(a,2),r=n[0],s=n[1],o=e.$store.getters.roles.permissions;return o.find((function(e){return e.permissionId===r})).actionList.findIndex((function(e){return e===s}))>-1}}}}),!e.prototype.$enum&&Object.defineProperties(e.prototype,{$enum:{get:function(){return function(e){var t=xe;return e&&e.split(".").forEach((function(e){t=t&&t[e]||null})),t}}}}))}var Te=Ee;n["a"].directive("action",{inserted:function(e,t,a){var n=t.arg,r=v["a"].getters.roles,s=a.context.$route.meta.permission,o=s instanceof String&&[s]||s;r.permissions.forEach((function(t){o.includes(t.permissionId)&&t.actionList&&!t.actionList.includes(n)&&(e.parentNode&&e.parentNode.removeChild(e)||(e.style.display="none"))}))}});n["a"].use(be["a"]),n["a"].use(ge["a"]),n["a"].use(pe["a"]),n["a"].use(he["a"]),n["a"].use(me["a"]),n["a"].use(fe["a"]),n["a"].use(de["a"]),n["a"].use(ue["a"]),n["a"].use(le["b"]),n["a"].use(ce["a"]),n["a"].use(ie["a"]),n["a"].use(oe["a"]),n["a"].use(se["a"]),n["a"].use(re["a"]),n["a"].use(ne["a"]),n["a"].use(ae["a"]),n["a"].use(te["a"]),n["a"].use(ee["a"]),n["a"].use(X["a"]),n["a"].use(J["a"]),n["a"].use(Z["b"]),n["a"].use(Q["a"]),n["a"].use(Y["a"]),n["a"].use(K["a"]),n["a"].use(H["a"]),n["a"].use(G["a"]),n["a"].use(I["a"]),n["a"].use(W["a"]),n["a"].use(V["a"]),n["a"].use(q["a"]),n["a"].use(B["a"]),n["a"].use(D["a"]),n["a"].use(R["a"]),n["a"].use(U["a"]),n["a"].use(F["a"]),n["a"].use($["a"]),n["a"].use(A["a"]),n["a"].use(L["b"]),n["a"].use(T["a"]),n["a"].use(E["a"]),n["a"].use(x["a"]),n["a"].use(M["a"]),n["a"].prototype.$confirm=re["a"].confirm,n["a"].prototype.$message=O["a"],n["a"].prototype.$notification=P["a"],n["a"].prototype.$info=re["a"].info,n["a"].prototype.$success=re["a"].success,n["a"].prototype.$error=re["a"].error,n["a"].prototype.$warning=re["a"].warning,n["a"].use(ye["a"]),n["a"].use(we["a"]),n["a"].use(ke["a"]),n["a"].use(Oe),n["a"].use(Te),n["a"].use(Ce.a);var Le=a("323e"),Ae=a.n(Le);a("fddb");Ae.a.configure({showSpinner:!1});var $e=["login","register","registerResult"],Fe="/user/login",Ue="/dashboard/workplace";y.beforeEach((function(e,t,a){Ae.a.start(),e.meta&&"undefined"!==typeof e.meta.title&&i("".concat(Object(l["b"])(e.meta.title)," - ").concat(c)),z.a.get(S["a"])?e.path===Fe?(a({path:Ue}),Ae.a.done()):0===v["a"].getters.roles.length?v["a"].dispatch("GetInfo").then((function(n){v["a"].dispatch("GenerateRoutes",n).then((function(){y.addRoutes(v["a"].getters.addRouters);var n=decodeURIComponent(t.query.redirect||e.path);e.path===n?a(Object(Ne["a"])(Object(Ne["a"])({},e),{},{replace:!0})):a({path:n})}))})).catch((function(){P["a"].error({message:"错误",description:"请求用户信息失败,请重试"}),v["a"].dispatch("Logout").then((function(){a({path:Fe,query:{redirect:e.fullPath}})}))})):a():$e.includes(e.name)?a():(a({path:Fe,query:{redirect:e.fullPath}}),Ae.a.done())})),y.afterEach((function(){Ae.a.done()}));var Re=a("c1df"),De=a.n(Re);a("5c3a");De.a.locale("zh-cn"),n["a"].filter("NumberFormat",(function(e){if(!e)return"0";var t=e.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return t})),n["a"].filter("dayjs",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return De()(e).format(t)})),n["a"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return De()(e).format(t)}));a("861f");n["a"].config.productionTip=!1,n["a"].use(C["a"]),n["a"].component("pro-layout",w["d"]),n["a"].component("page-container",w["b"]),n["a"].component("page-header-wrapper",w["b"]),window.umi_plugin_ant_themeVar=k.theme,new n["a"]({router:y,store:v["a"],i18n:l["a"],created:_,render:function(e){return e(h)}}).$mount("#app")},6039:function(e,t,a){"use strict";a.r(t),t["default"]={"overview.systemName":"System Name"}},"63ca":function(e,t,a){},6692:function(e,t,a){"use strict";a("63ca")},"69c3":function(e,t,a){"use strict";a.r(t),t["default"]={"result.fail.error.title":"Submission Failed","result.fail.error.description":"Please check and modify the following information before resubmitting.","result.fail.error.hint-title":"The content you submitted has the following error:","result.fail.error.hint-text1":"Your account has been frozen","result.fail.error.hint-btn1":"Thaw immediately","result.fail.error.hint-text2":"Your account is not yet eligible to apply","result.fail.error.hint-btn2":"Upgrade immediately","result.fail.error.btn-text":"Return to modify"}},"6e2f":function(e,t,a){"use strict";a.r(t),t["default"]={submit:"Submit",save:"Save","submit.ok":"Submit successfully","save.ok":"Saved successfully"}},"705f":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a("5530"),r=a("2f62"),s={computed:Object(n["a"])({},Object(r["c"])({isMobile:function(e){return e.app.isMobile}}))}},"743d":function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("8b45"),s=a("0ff2"),o=a.n(s),i=a("6e2f"),c=a("771d"),l=a("5030"),u=a("928e"),d=a("6039"),f=a("dea1"),m=a("ffb6"),h=a("78a1"),p=a("29fd"),g={antLocale:r["a"],momentName:"eu",momentLocale:o.a};t["default"]=Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({message:"-","layouts.usermenu.dialog.title":"Message","layouts.usermenu.dialog.content":"Are you sure you would like to logout?","layouts.userLayout.title":"MQTT Broker System"},g),i["default"]),c["default"]),l["default"]),u["default"]),f["default"]),m["default"]),h["default"]),{},{overview:d["default"]},p["default"])},"771d":function(e,t,a){"use strict";a.r(t),t["default"]={"menu.welcome":"Welcome","menu.home":"Home","menu.dashboard":"Monitor","menu.dashboard.monitor":"Overview","menu.dashboard.topics":"Topics","menu.dashboard.clients":"clients","menu.dashboard.subscription":"Subscription","menu.ruleEngine":"RuleEngine","menu.ruleEngine.resources":"Resources","menu.ruleEngine.ruleEngine":"RuleEngine","menu.modules":"Modules","menu.modules.modules":"Modules"}},"78a1":function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("44e5"),s=a("69c3");t["default"]=Object(n["a"])(Object(n["a"])({},r["default"]),s["default"])},"7a73":function(e,t,a){},"7ded":function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return c}));var n=a("b775"),r={Login:"/v1/auth/users/login",Logout:"/auth/logout",ForgePassword:"/auth/forge-password",Register:"/auth/register",twoStepCode:"/auth/2step-code",SendSms:"/account/sms",SendSmsErr:"/account/sms_err",UserInfo:"/v1/auth/users/info",UserMenu:"/v1/auth/users/nav"};function s(e){return Object(n["c"])({url:r.Login,method:"post",params:e})}function o(e){return Object(n["c"])({url:r.SendSms,method:"post",data:e})}function i(){return Object(n["c"])({url:r.UserInfo,method:"get",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(n["c"])({url:r.twoStepCode,method:"post",data:e})}},"861f":function(e,t,a){},"86a0":function(e,t,a){"use strict";a("9f8d")},"8eeb4":function(e,t,a){var n=a("b2b7");e.exports={__esModule:!0,default:n.svgComponent({tag:"svg",attrsMap:{viewBox:"0 0 128 128",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},children:[{tag:"title",children:[{text:"Vue"}]},{tag:"desc",children:[{text:"Created with Sketch."}]},{tag:"defs",children:[{tag:"linearGradient",attrsMap:{x1:"69.644116%",y1:"0%",x2:"69.644116%",y2:"100%",id:"linearGradient-1"},children:[{tag:"stop",attrsMap:{"stop-color":"#29CDFF",offset:"0%"}},{tag:"stop",attrsMap:{"stop-color":"#148EFF",offset:"37.8600687%"}},{tag:"stop",attrsMap:{"stop-color":"#0A60FF",offset:"100%"}}]},{tag:"linearGradient",attrsMap:{x1:"-19.8191553%",y1:"-36.7931464%",x2:"138.57919%",y2:"157.637507%",id:"linearGradient-2"},children:[{tag:"stop",attrsMap:{"stop-color":"#29CDFF",offset:"0%"}},{tag:"stop",attrsMap:{"stop-color":"#0F78FF",offset:"100%"}}]},{tag:"linearGradient",attrsMap:{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-3"},children:[{tag:"stop",attrsMap:{"stop-color":"#FA8E7D",offset:"0%"}},{tag:"stop",attrsMap:{"stop-color":"#F74A5C",offset:"51.2635191%"}},{tag:"stop",attrsMap:{"stop-color":"#F51D2C",offset:"100%"}}]}]},{tag:"g",attrsMap:{id:"Vue",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},children:[{tag:"g",attrsMap:{id:"Group",transform:"translate(19.000000, 9.000000)"},children:[{tag:"path",attrsMap:{d:"M89.96,90.48 C78.58,93.48 68.33,83.36 67.62,82.48 L46.6604487,62.2292258 C45.5023849,61.1103236 44.8426845,59.5728835 44.8296987,57.9626396 L44.5035564,17.5209948 C44.4948861,16.4458744 44.0537714,15.4195095 43.2796864,14.6733517 L29.6459999,1.53153737 C28.055475,-0.00160504005 25.5232423,0.0449126588 23.9900999,1.63543756 C23.2715121,2.38092066 22.87,3.37600834 22.87,4.41143746 L22.87,64.3864751 C22.87,67.0807891 23.9572233,69.6611067 25.885409,71.5429748 L63.6004615,108.352061 C65.9466323,110.641873 69.6963584,110.624605 72.0213403,108.313281",id:"Path-Copy",fill:"url(#linearGradient-1)","fill-rule":"nonzero",transform:"translate(56.415000, 54.831157) scale(-1, 1) translate(-56.415000, -54.831157) "}},{tag:"path",attrsMap:{d:"M68,90.1163122 C56.62,93.1163122 45.46,83.36 44.75,82.48 L23.7904487,62.2292258 C22.6323849,61.1103236 21.9726845,59.5728835 21.9596987,57.9626396 L21.6335564,17.5209948 C21.6248861,16.4458744 21.1837714,15.4195095 20.4096864,14.6733517 L6.7759999,1.53153737 C5.185475,-0.00160504005 2.65324232,0.0449126588 1.12009991,1.63543756 C0.401512125,2.38092066 3.90211878e-13,3.37600834 3.90798505e-13,4.41143746 L3.94351218e-13,64.3864751 C3.94681177e-13,67.0807891 1.08722326,69.6611067 3.01540903,71.5429748 L40.7807092,108.401101 C43.1069304,110.671444 46.8180151,110.676525 49.1504445,108.412561",id:"Path",fill:"url(#linearGradient-2)","fill-rule":"nonzero"}},{tag:"path",attrsMap:{d:"M43.2983488,19.0991931 L27.5566079,3.88246244 C26.7624281,3.11476967 26.7409561,1.84862177 27.5086488,1.05444194 C27.8854826,0.664606611 28.4044438,0.444472651 28.9466386,0.444472651 L60.3925021,0.444472651 C61.4970716,0.444472651 62.3925021,1.33990315 62.3925021,2.44447265 C62.3925021,2.9858375 62.1730396,3.50407742 61.7842512,3.88079942 L46.0801285,19.0975301 C45.3051579,19.8484488 44.0742167,19.8491847 43.2983488,19.0991931 Z",id:"Path",fill:"url(#linearGradient-3)"}}]}]}]})}},"928e":function(e,t,a){"use strict";a.r(t),t["default"]={"user.login.userName":"userName","user.login.password":"password","user.login.username.placeholder":"Account: mmq","user.login.password.placeholder":"password: aaaaaa","user.login.message-invalid-credentials":"Invalid username or password(admin/ant.design)","user.login.message-invalid-verification-code":"Invalid verification code","user.login.tab-login-credentials":"Credentials","user.login.tab-login-mobile":"Mobile number","user.login.mobile.placeholder":"Mobile number","user.login.mobile.verification-code.placeholder":"Verification code","user.login.remember-me":"Remember me","user.login.forgot-password":"Forgot your password?","user.login.sign-in-with":"Sign in with","user.login.signup":"Sign up","user.login.login":"Login","user.register.register":"Register","user.register.email.placeholder":"Email","user.register.password.placeholder":"Password ","user.register.password.popover-message":"Please enter at least 6 characters. Please do not use passwords that are easy to guess. ","user.register.confirm-password.placeholder":"Confirm password","user.register.get-verification-code":"Get code","user.register.sign-in":"Already have an account?","user.register-result.msg":"Account:registered at {email}","user.register-result.activation-email":"The activation email has been sent to your email address and is valid for 24 hours. Please log in to the email in time and click on the link in the email to activate the account.","user.register-result.back-home":"Back to home","user.register-result.view-mailbox":"View mailbox","user.email.required":"Please enter your email!","user.email.wrong-format":"The email address is in the wrong format!","user.userName.required":"Please enter account name or email address","user.password.required":"Please enter your password!","user.password.twice.msg":"The passwords entered twice do not match!","user.password.strength.msg":"The password is not strong enough","user.password.strength.strong":"Strength: strong","user.password.strength.medium":"Strength: medium","user.password.strength.low":"Strength: low","user.password.strength.short":"Strength: too short","user.confirm-password.required":"Please confirm your password!","user.phone-number.required":"Please enter your phone number!","user.phone-number.wrong-format":"Please enter a valid phone number","user.verification-code.required":"Please enter the verification code!"}},"9b19":function(e,t,a){e.exports=a.p+"assets/logo.b36f7a7f.svg"},"9f8d":function(e,t,a){},"9fb0":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return r})),a.d(t,"k",(function(){return s})),a.d(t,"m",(function(){return o})),a.d(t,"j",(function(){return i})),a.d(t,"g",(function(){return c})),a.d(t,"h",(function(){return l})),a.d(t,"f",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"e",(function(){return f})),a.d(t,"n",(function(){return m})),a.d(t,"l",(function(){return h})),a.d(t,"b",(function(){return p})),a.d(t,"c",(function(){return g}));var n="Access-Token",r="sidebar_type",s="is_mobile",o="nav_theme",i="layout",c="fixed_header",l="fixed_sidebar",u="content_width",d="auto_hide_header",f="color",m="weak",h="multi_tab",p="app_language",g={Fluid:"Fluid",Fixed:"Fixed"}},b775:function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return d}));a("d3b7");var n=a("bc3a"),r=a.n(n),s=a("4360"),o=a("8ded"),i=a.n(o),c=a("56cd"),l={vm:{},install:function(e,t){this.installed||(this.installed=!0,t&&(e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})))}},u=a("9fb0"),d=r.a.create({baseURL:"/",timeout:6e3}),f=function(e){if(e.response){var t=e.response.data,a=i.a.get(u["a"]);403===e.response.status&&c["a"].error({message:"Forbidden",description:t.message}),401!==e.response.status||t.result&&t.result.isLogin||(c["a"].error({message:"Unauthorized",description:"Authorization verification failed"}),a&&s["a"].dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),1500)})))}return Promise.reject(e)};d.interceptors.request.use((function(e){var t=i.a.get(u["a"]);return t&&(e.headers["Authorization"]="Bearer "+t),e}),f),d.interceptors.response.use((function(e){return e.data}),f);var m={vm:{},install:function(e){e.use(l,d)}};t["c"]=d},b781:function(e,t,a){"use strict";a.r(t),t["default"]={"dashboard.analysis.test":"Gongzhuan No.{no} shop","dashboard.analysis.introduce":"Introduce","dashboard.analysis.total-sales":"Total Sales","dashboard.analysis.day-sales":"Daily Sales","dashboard.analysis.visits":"Visits","dashboard.analysis.visits-trend":"Visits Trend","dashboard.analysis.visits-ranking":"Visits Ranking","dashboard.analysis.day-visits":"Daily Visits","dashboard.analysis.week":"WoW Change","dashboard.analysis.day":"DoD Change","dashboard.analysis.payments":"Payments","dashboard.analysis.conversion-rate":"Conversion Rate","dashboard.analysis.operational-effect":"Operational Effect","dashboard.analysis.sales-trend":"Stores Sales Trend","dashboard.analysis.sales-ranking":"Sales Ranking","dashboard.analysis.all-year":"All Year","dashboard.analysis.all-month":"All Month","dashboard.analysis.all-week":"All Week","dashboard.analysis.all-day":"All day","dashboard.analysis.search-users":"Search Users","dashboard.analysis.per-capita-search":"Per Capita Search","dashboard.analysis.online-top-search":"Online Top Search","dashboard.analysis.the-proportion-of-sales":"The Proportion Of Sales","dashboard.analysis.dropdown-option-one":"Operation one","dashboard.analysis.dropdown-option-two":"Operation two","dashboard.analysis.channel.all":"ALL","dashboard.analysis.channel.online":"Online","dashboard.analysis.channel.stores":"Stores","dashboard.analysis.sales":"Sales","dashboard.analysis.traffic":"Traffic","dashboard.analysis.table.rank":"Rank","dashboard.analysis.table.search-keyword":"Keyword","dashboard.analysis.table.users":"Users","dashboard.analysis.table.weekly-range":"Weekly Range"}},bf0f:function(e,t,a){"use strict";a.d(t,"c",(function(){return g})),a.d(t,"b",(function(){return b}));var n=a("5530"),r=(a("d3b7"),a("caad"),a("3ca3"),a("ddb0"),a("2b0e")),s=a("a925"),o=a("8ded"),i=a.n(o),c=a("c1df"),l=a.n(c),u=a("743d");r["a"].use(s["a"]);var d="en-US",f={"en-US":Object(n["a"])({},u["default"])},m=new s["a"]({silentTranslationWarn:!0,locale:d,fallbackLocale:d,messages:f}),h=[d];function p(e){return m.locale=e,document.querySelector("html").setAttribute("lang",e),e}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return new Promise((function(t){return i.a.set("lang",e),m.locale!==e?h.includes(e)?t(p(e)):a("4aa4")("./".concat(e)).then((function(t){var a=t.default;return m.setLocaleMessage(e,a),h.push(e),l.a.updateLocale(a.momentName,a.momentLocale),p(e)})):t(e)}))}function b(e){return m.t("".concat(e))}t["a"]=m},c49c:function(e,t,a){"use strict";a("7a73")},ca00:function(e,t,a){"use strict";function n(){var e=new Date,t=e.getHours();return t<9?"早上好":t<=11?"上午好":t<=13?"中午好":t<20?"下午好":"晚上好"}function r(){var e=["休息一会儿吧","准备吃什么呢?","要不要打一把 DOTA","我猜你可能累了"],t=Math.floor(Math.random()*e.length);return e[t]}function s(e){var t=0;if(!e)return t;for(var a={},n=0;n-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)}))},methods:{i18nRender:m["b"],handleMediaQuery:function(e){this.query=e,!this.isMobile||e["screen-xs"]?!this.isMobile&&e["screen-xs"]&&(this.isMobile=!0,this.collapsed=!1,this.settings.contentWidth=$["c"].Fluid):this.isMobile=!1},handleCollapse:function(e){this.collapsed=e},handleSettingChange:function(e){var t=e.type,a=e.value;switch(t&&(this.settings[t]=a),t){case"contentWidth":this.settings[t]=a;break;case"layout":"sidemenu"===a?this.settings.contentWidth=$["c"].Fluid:(this.settings.fixSiderbar=!1,this.settings.contentWidth=$["c"].Fixed);break}}}},fe=de,me=(a("6692"),Object(S["a"])(fe,T,L,!1,null,null,null)),he=me.exports,pe={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,a=this.$store.getters,n=e("keep-alive",[e("router-view")]),r=e("router-view");return(a.multiTab||t.keepAlive)&&(this.keepAlive||a.multiTab||t.keepAlive)?n:r}},ge=pe,be=Object(S["a"])(ge,s,o,!1,null,null,null),ye=(be.exports,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("page-header-wrapper",[a("router-view")],1)}),ve=[],Ce={name:"PageView"},we=Ce,ke=Object(S["a"])(we,ye,ve,!1,null,null,null),Ne=(ke.exports,a("0dbd")),ze=a.n(Ne),Se={name:"RouteView",render:function(e){return e("router-view")}},je=[{path:"/",name:"index",component:he,meta:{title:"menu.home"},redirect:"/dashboard/monitor",children:[{path:"/dashboard",name:"dashboard",redirect:"/dashboard/monitor",component:Se,meta:{title:"menu.dashboard",keepAlive:!0,icon:ze.a,permission:["dashboard"]},children:[{path:"/dashboard/monitor",name:"Monitor",component:function(){return a.e("chunk-341e83a4").then(a.bind(null,"0b56"))},meta:{title:"menu.dashboard.monitor",keepAlive:!1}},{path:"/dashboard/clients/:pageNo([1-9]\\d*)?",name:"clients",component:function(){return Promise.all([a.e("chunk-24a0b0bc"),a.e("chunk-0c55d5dd")]).then(a.bind(null,"2588"))},meta:{title:"menu.dashboard.clients",keepAlive:!1,permission:["dashboard"]}},{path:"/dashboard/subscription",name:"subscription",component:function(){return Promise.all([a.e("chunk-24a0b0bc"),a.e("chunk-00a4fb94")]).then(a.bind(null,"72e4"))},meta:{title:"menu.dashboard.subscription",keepAlive:!0,permission:["dashboard"]}}]},{path:"/ruleEngine",name:"ruleEngine",component:Se,meta:{title:"menu.ruleEngine",keepAlive:!0,icon:ze.a,permission:["ruleEngine"]},children:[{path:"/ruleEngine/resources",name:"resources",component:function(){return a.e("chunk-8c4d6b48").then(a.bind(null,"7a56"))},meta:{title:"menu.ruleEngine.resources",keepAlive:!0,permission:["ruleEngine"]}},{path:"/ruleEngine/ruleEngine",name:"ruleEngine",component:function(){return Promise.all([a.e("chunk-24a0b0bc"),a.e("chunk-2d0dd3d0")]).then(a.bind(null,"8112"))},meta:{title:"menu.ruleEngine.ruleEngine",keepAlive:!0,permission:["ruleEngine"]}},{path:"/ruleEngine/RuleEngineModel",name:"RuleEngineModel",props:!0,component:function(){return a.e("chunk-08eb694d").then(a.bind(null,"6574"))},hidden:!0}]},{path:"/modules",name:"modules",component:Se,meta:{title:"menu.modules",keepAlive:!0,icon:ze.a,permission:["modules"]},children:[{path:"/modules/modulesManager",name:"modules",component:function(){return a.e("chunk-199b3a26").then(a.bind(null,"3682"))},meta:{title:"menu.modules.modules",keepAlive:!0,permission:["modules"]}}]}]},{path:"*",redirect:"/404",hidden:!0}],_e=[{path:"/user",component:_,redirect:"/user/login",hidden:!0,children:[{path:"login",name:"login",component:function(){return a.e("user").then(a.bind(null,"ac2a"))}},{path:"register",name:"register",component:function(){return a.e("user").then(a.bind(null,"1348"))}},{path:"register-result",name:"registerResult",component:function(){return a.e("user").then(a.bind(null,"1037"))}},{path:"recover",name:"recover",component:void 0}]},{path:"/404",component:function(){return a.e("fail").then(a.bind(null,"cc89"))}}]},dea1:function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("b781");t["default"]=Object(n["a"])({},r["default"])},e819:function(e,t,a){"use strict";t["a"]={navTheme:"dark",primaryColor:"#F5222D",layout:"sidemenu",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,colorWeak:!1,menu:{locale:!0},title:"MMQ Broker",pwa:!1,iconfontUrl:"",production:!0}},fddb:function(e,t,a){},ffb6:function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("0af2");t["default"]=Object(n["a"])({},r["default"])}}); \ No newline at end of file diff --git a/mmq-web/src/main/resources/static/js/app.defb417a.js b/mmq-web/src/main/resources/static/js/app.defb417a.js deleted file mode 100644 index 8cde96c..0000000 --- a/mmq-web/src/main/resources/static/js/app.defb417a.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var n,r,i=t[0],c=t[1],l=t[2],u=0,d=[];udiv[type=dialog]");i||(i=document.createElement("div"),i.setAttribute("type","dialog"),document.body.appendChild(i));var c=function(e,t){if(e instanceof Function){var a=e();a instanceof Promise?a.then((function(e){e&&t()})):a&&t()}else e||t()},l=new e({data:function(){return{visible:!0}},router:o.$router,store:o.$store,mounted:function(){var e=this;this.$on("close",(function(t){e.handleClose()}))},methods:{handleClose:function(){var e=this;c(this.$refs._component.onCancel,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("cancel"),l.$destroy()}))},handleOk:function(){var e=this;c(this.$refs._component.onOK||this.$refs._component.onOk,(function(){e.visible=!1,e.$refs._component.$emit("close"),e.$refs._component.$emit("ok"),l.$destroy()}))}},render:function(e){var o=this,i=s&&s.model;i&&delete s.model;var c=Object.assign({},i&&{model:i}||{},{attrs:Object.assign({},Object(n["a"])({},s.attrs||s),{visible:this.visible}),on:Object.assign({},Object(n["a"])({},s.on||s),{ok:function(){o.handleOk()},cancel:function(){o.handleClose()}})}),l=a&&a.model;l&&delete a.model;var u=Object.assign({},l&&{model:l}||{},{ref:"_component",attrs:Object.assign({},Object(n["a"])({},a&&a.attrs||a)),on:Object.assign({},Object(n["a"])({},a&&a.on||a))});return e(r["a"],c,[e(t,u)])}}).$mount(i)}}Object.defineProperty(e.prototype,"$dialog",{get:function(){return function(){t.apply(this,arguments)}}})}},2263:function(e,t,a){},"29fd":function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("4404");t["default"]=Object(n["a"])({},r["default"])},"2a47":function(e,t,a){},"31fc":function(e,t,a){"use strict";var n,r,s=a("2b0e"),o=new s["a"],i=a("5530"),c=(a("b0c0"),a("7db0"),a("4de4"),a("caad"),a("2532"),a("159b"),a("d81d"),{name:"MultiTab",data:function(){return{fullPathList:[],pages:[],activeKey:"",newTabIndex:0}},created:function(){var e=this;o.$on("open",(function(t){if(!t)throw new Error("multi-tab: open tab ".concat(t," err"));e.activeKey=t})).$on("close",(function(t){t?e.closeThat(t):e.closeThat(e.activeKey)})).$on("rename",(function(t){var a=t.key,n=t.name;try{var r=e.pages.find((function(e){return e.path===a}));r.meta.customTitle=n,e.$forceUpdate()}catch(s){}})),this.pages.push(this.$route),this.fullPathList.push(this.$route.fullPath),this.selectedLastPath()},methods:{onEdit:function(e,t){this[t](e)},remove:function(e){this.pages=this.pages.filter((function(t){return t.fullPath!==e})),this.fullPathList=this.fullPathList.filter((function(t){return t!==e})),this.fullPathList.includes(this.activeKey)||this.selectedLastPath()},selectedLastPath:function(){this.activeKey=this.fullPathList[this.fullPathList.length-1]},closeThat:function(e){this.fullPathList.length>1?this.remove(e):this.$message.info("这是最后一个标签了, 无法被关闭")},closeLeft:function(e){var t=this,a=this.fullPathList.indexOf(e);a>0?this.fullPathList.forEach((function(e,n){na&&t.remove(e)})):this.$message.info("右侧没有标签")},closeAll:function(e){var t=this,a=this.fullPathList.indexOf(e);this.fullPathList.forEach((function(e,n){n!==a&&t.remove(e)}))},closeMenuClick:function(e,t){this[e](t)},renderTabPaneMenu:function(e){var t=this,a=this.$createElement;return a("a-menu",{on:Object(i["a"])({},{click:function(a){var n=a.key;a.item,a.domEvent;t.closeMenuClick(n,e)}})},[a("a-menu-item",{key:"closeThat"},["关闭当前标签"]),a("a-menu-item",{key:"closeRight"},["关闭右侧"]),a("a-menu-item",{key:"closeLeft"},["关闭左侧"]),a("a-menu-item",{key:"closeAll"},["关闭全部"])])},renderTabPane:function(e,t){var a=this.$createElement,n=this.renderTabPaneMenu(t);return a("a-dropdown",{attrs:{overlay:n,trigger:["contextmenu"]}},[a("span",{style:{userSelect:"none"}},[e])])}},watch:{$route:function(e){this.activeKey=e.fullPath,this.fullPathList.indexOf(e.fullPath)<0&&(this.fullPathList.push(e.fullPath),this.pages.push(e))},activeKey:function(e){this.$router.push({path:e})}},render:function(){var e=this,t=arguments[0],a=this.onEdit,n=this.$data.pages,r=n.map((function(a){return t("a-tab-pane",{style:{height:0},attrs:{tab:e.renderTabPane(a.meta.customTitle||a.meta.title,a.fullPath),closable:n.length>1},key:a.fullPath})}));return t("div",{class:"ant-pro-multi-tab"},[t("div",{class:"ant-pro-multi-tab-wrapper"},[t("a-tabs",{attrs:{hideAdd:!0,type:"editable-card",tabBarStyle:{background:"#FFF",margin:0,paddingLeft:"16px",paddingTop:"1px"}},on:Object(i["a"])({},{edit:a}),model:{value:e.activeKey,callback:function(t){e.activeKey=t}}},[r])])])}}),l=c,u=a("2877"),d=Object(u["a"])(l,n,r,!1,null,null,null),f=d.exports,m=(a("3489"),{open:function(e){o.$emit("open",e)},rename:function(e,t){o.$emit("rename",{key:e,name:t})},closeCurrentPage:function(){this.close()},close:function(e){o.$emit("close",e)}});f.install=function(e){e.prototype.$multiTab||(m.instance=o,e.prototype.$multiTab=m,e.component("multi-tab",f))};t["a"]=f},3489:function(e,t,a){},"36cf":function(e,t,a){"use strict";a("2263")},4360:function(e,t,a){"use strict";var n,r=a("2b0e"),s=a("2f62"),o=a("ade3"),i=(a("d3b7"),a("8ded")),c=a.n(i),l=a("9fb0"),u=a("bf0f"),d={state:{sideCollapsed:!1,isMobile:!1,theme:"dark",layout:"",contentWidth:"",fixedHeader:!1,fixedSidebar:!1,autoHideHeader:!1,color:"",weak:!1,multiTab:!0,lang:"en-US",_antLocale:{}},mutations:(n={},Object(o["a"])(n,l["d"],(function(e,t){e.sideCollapsed=t,c.a.set(l["d"],t)})),Object(o["a"])(n,l["k"],(function(e,t){e.isMobile=t})),Object(o["a"])(n,l["m"],(function(e,t){e.theme=t,c.a.set(l["m"],t)})),Object(o["a"])(n,l["j"],(function(e,t){e.layout=t,c.a.set(l["j"],t)})),Object(o["a"])(n,l["g"],(function(e,t){e.fixedHeader=t,c.a.set(l["g"],t)})),Object(o["a"])(n,l["h"],(function(e,t){e.fixedSidebar=t,c.a.set(l["h"],t)})),Object(o["a"])(n,l["f"],(function(e,t){e.contentWidth=t,c.a.set(l["f"],t)})),Object(o["a"])(n,l["i"],(function(e,t){e.autoHideHeader=t,c.a.set(l["i"],t)})),Object(o["a"])(n,l["e"],(function(e,t){e.color=t,c.a.set(l["e"],t)})),Object(o["a"])(n,l["n"],(function(e,t){e.weak=t,c.a.set(l["n"],t)})),Object(o["a"])(n,l["b"],(function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.lang=t,e._antLocale=a,c.a.set(l["b"],t)})),Object(o["a"])(n,l["l"],(function(e,t){c.a.set(l["l"],t),e.multiTab=t})),n),actions:{setLang:function(e,t){var a=e.commit;return new Promise((function(e,n){a(l["b"],t),Object(u["c"])(t).then((function(){e()})).catch((function(e){n(e)}))}))}}},f=d,m=(a("b0c0"),a("d81d"),a("7ded")),h=a("ca00"),p={state:{token:"",name:"",welcome:"",avatar:"",roles:[],info:{}},mutations:{SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){var a=t.name,n=t.welcome;e.name=a,e.welcome=n},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_INFO:function(e,t){e.info=t}},actions:{Login:function(e,t){var a=e.commit;return new Promise((function(e,n){Object(m["d"])(t).then((function(t){var n=t.data;c.a.set(l["a"],n.accessToken,6048e5),a("SET_TOKEN",n.accessToken),e()})).catch((function(e){n(e)}))}))},GetInfo:function(e){var t=e.commit;return new Promise((function(e,a){Object(m["b"])().then((function(n){var r=n.data;if(r.role&&r.role.permissions.length>0){var s=r.role;s.permissions=r.role.permissions,s.permissions.map((function(e){if(null!=e.actionEntitySet&&e.actionEntitySet.length>0){var t=e.actionEntitySet.map((function(e){return e.action}));e.actionList=t}})),s.permissionList=s.permissions.map((function(e){return e.permissionId})),t("SET_ROLES",r.role),t("SET_INFO",r)}else a(new Error("getInfo: roles must be a non-null array !"));t("SET_NAME",{name:"mmq",welcome:Object(h["c"])()}),t("SET_AVATAR",""),e(n)})).catch((function(e){a(e)}))}))},Logout:function(e){var t=e.commit;e.state;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),c.a.remove(l["a"]),e()}))}}},g=p,b=(a("caad"),a("2532"),a("99af"),a("d73b"));var y={state:{routers:b["b"],addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.addRouters=t,e.routers=b["b"].concat(t)}},actions:{GenerateRoutes:function(e,t){var a=e.commit;return new Promise((function(e){a("SET_ROUTERS",b["a"]),e()}))}}},v=y,C={isMobile:function(e){return e.app.isMobile},lang:function(e){return e.app.lang},theme:function(e){return e.app.theme},color:function(e){return e.app.color},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},nickname:function(e){return e.user.name},welcome:function(e){return e.user.welcome},roles:function(e){return e.user.roles},userInfo:function(e){return e.user.info},addRouters:function(e){return e.permission.addRouters},multiTab:function(e){return e.app.multiTab}},w=C;r["a"].use(s["a"]);t["a"]=new s["a"].Store({modules:{app:f,user:g,permission:v},state:{},mutations:{},actions:{},getters:w})},4404:function(e,t,a){"use strict";a.r(t),t["default"]={"account.settings.menuMap.basic":"Basic Settings","account.settings.menuMap.security":"Security Settings","account.settings.menuMap.custom":"Custom Settings","account.settings.menuMap.binding":"Account Binding","account.settings.menuMap.notification":"New Message Notification","account.settings.basic.avatar":"Avatar","account.settings.basic.change-avatar":"Change avatar","account.settings.basic.email":"Email","account.settings.basic.email-message":"Please input your email!","account.settings.basic.nickname":"Nickname","account.settings.basic.nickname-message":"Please input your Nickname!","account.settings.basic.profile":"Personal profile","account.settings.basic.profile-message":"Please input your personal profile!","account.settings.basic.profile-placeholder":"Brief introduction to yourself","account.settings.basic.country":"Country/Region","account.settings.basic.country-message":"Please input your country!","account.settings.basic.geographic":"Province or city","account.settings.basic.geographic-message":"Please input your geographic info!","account.settings.basic.address":"Street Address","account.settings.basic.address-message":"Please input your address!","account.settings.basic.phone":"Phone Number","account.settings.basic.phone-message":"Please input your phone!","account.settings.basic.update":"Update Information","account.settings.basic.update.success":"Update basic information successfully","account.settings.security.strong":"Strong","account.settings.security.medium":"Medium","account.settings.security.weak":"Weak","account.settings.security.password":"Account Password","account.settings.security.password-description":"Current password strength:","account.settings.security.phone":"Security Phone","account.settings.security.phone-description":"Bound phone:","account.settings.security.question":"Security Question","account.settings.security.question-description":"The security question is not set, and the security policy can effectively protect the account security","account.settings.security.email":"Backup Email","account.settings.security.email-description":"Bound Email:","account.settings.security.mfa":"MFA Device","account.settings.security.mfa-description":"Unbound MFA device, after binding, can be confirmed twice","account.settings.security.modify":"Modify","account.settings.security.set":"Set","account.settings.security.bind":"Bind","account.settings.binding.taobao":"Binding Taobao","account.settings.binding.taobao-description":"Currently unbound Taobao account","account.settings.binding.alipay":"Binding Alipay","account.settings.binding.alipay-description":"Currently unbound Alipay account","account.settings.binding.dingding":"Binding DingTalk","account.settings.binding.dingding-description":"Currently unbound DingTalk account","account.settings.binding.bind":"Bind","account.settings.notification.password":"Account Password","account.settings.notification.password-description":"Messages from other users will be notified in the form of a station letter","account.settings.notification.messages":"System Messages","account.settings.notification.messages-description":"System messages will be notified in the form of a station letter","account.settings.notification.todo":"To-do Notification","account.settings.notification.todo-description":"The to-do list will be notified in the form of a letter from the station","account.settings.settings.open":"Open","account.settings.settings.close":"Close"}},"44e5":function(e,t,a){"use strict";a.r(t),t["default"]={"result.success.title":"Submission Success","result.success.description":"The submission results page is used to feed back the results of a series of operational tasks. If it is a simple operation, use the Message global prompt feedback. This text area can show a simple supplementary explanation. If there is a similar requirement for displaying “documents”, the following gray area can present more complicated content.","result.success.operate-title":"Project Name","result.success.operate-id":"Project ID","result.success.principal":"Principal","result.success.operate-time":"Effective time","result.success.step1-title":"Create project","result.success.step1-operator":"Qu Lili","result.success.step2-title":"Departmental preliminary review","result.success.step2-operator":"Zhou Maomao","result.success.step2-extra":"Urge","result.success.step3-title":"Financial review","result.success.step4-title":"Finish","result.success.btn-return":"Back List","result.success.btn-project":"View Project","result.success.btn-print":"Print"}},"4aa4":function(e,t,a){var n={"./en-US":["743d"],"./en-US.js":["743d"],"./en-US/account":["29fd"],"./en-US/account.js":["29fd"],"./en-US/account/settings":["4404"],"./en-US/account/settings.js":["4404"],"./en-US/dashboard":["dea1"],"./en-US/dashboard.js":["dea1"],"./en-US/dashboard/analysis":["b781"],"./en-US/dashboard/analysis.js":["b781"],"./en-US/form":["ffb6"],"./en-US/form.js":["ffb6"],"./en-US/form/basicForm":["0af2"],"./en-US/form/basicForm.js":["0af2"],"./en-US/global":["6e2f"],"./en-US/global.js":["6e2f"],"./en-US/menu":["771d"],"./en-US/menu.js":["771d"],"./en-US/overview":["6039"],"./en-US/overview.js":["6039"],"./en-US/result":["78a1"],"./en-US/result.js":["78a1"],"./en-US/result/fail":["69c3"],"./en-US/result/fail.js":["69c3"],"./en-US/result/success":["44e5"],"./en-US/result/success.js":["44e5"],"./en-US/setting":["5030"],"./en-US/setting.js":["5030"],"./en-US/user":["928e"],"./en-US/user.js":["928e"],"./zh-CN":["2807","lang-zh-CN"],"./zh-CN.js":["2807","lang-zh-CN"],"./zh-CN/account":["2a21","lang-zh-CN-account"],"./zh-CN/account.js":["2a21","lang-zh-CN-account"],"./zh-CN/account/settings":["0e6b","lang-zh-CN-account-settings"],"./zh-CN/account/settings.js":["0e6b","lang-zh-CN-account-settings"],"./zh-CN/dashboard":["dec6","lang-zh-CN-dashboard"],"./zh-CN/dashboard.js":["dec6","lang-zh-CN-dashboard"],"./zh-CN/dashboard/analysis":["5dd5","lang-zh-CN-dashboard-analysis"],"./zh-CN/dashboard/analysis.js":["5dd5","lang-zh-CN-dashboard-analysis"],"./zh-CN/form":["18c7","lang-zh-CN-form"],"./zh-CN/form.js":["18c7","lang-zh-CN-form"],"./zh-CN/form/basicForm":["12a1","lang-zh-CN-form-basicForm"],"./zh-CN/form/basicForm.js":["12a1","lang-zh-CN-form-basicForm"],"./zh-CN/global":["1858","lang-zh-CN-global"],"./zh-CN/global.js":["1858","lang-zh-CN-global"],"./zh-CN/menu":["1dec","lang-zh-CN-menu"],"./zh-CN/menu.js":["1dec","lang-zh-CN-menu"],"./zh-CN/overview":["ce35","lang-zh-CN-overview"],"./zh-CN/overview.js":["ce35","lang-zh-CN-overview"],"./zh-CN/result":["8176","lang-zh-CN-result"],"./zh-CN/result.js":["8176","lang-zh-CN-result"],"./zh-CN/result/fail":["d5c8","lang-zh-CN-result-fail"],"./zh-CN/result/fail.js":["d5c8","lang-zh-CN-result-fail"],"./zh-CN/result/success":["4fd4","lang-zh-CN-result-success"],"./zh-CN/result/success.js":["4fd4","lang-zh-CN-result-success"],"./zh-CN/setting":["5436","lang-zh-CN-setting"],"./zh-CN/setting.js":["5436","lang-zh-CN-setting"],"./zh-CN/user":["2518","lang-zh-CN-user"],"./zh-CN/user.js":["2518","lang-zh-CN-user"]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return Promise.all(t.slice(1).map(a.e)).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id="4aa4",e.exports=r},5030:function(e,t,a){"use strict";a.r(t),t["default"]={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.light":"Light style","app.setting.pagestyle.dark":"Dark style","app.setting.pagestyle.realdark":"RealDark style","app.setting.themecolor":"Theme Color","app.setting.navigationmode":"Navigation Mode","app.setting.content-width":"Content Width","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/config/defaultSettings.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple"}},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79df"),a("a4d3"),a("e01a"),a("b636"),a("dc8d"),a("efe9"),a("d28b"),a("2a1b"),a("80e0"),a("6b9e"),a("197b"),a("2351"),a("8172"),a("944a"),a("81b8"),a("99af"),a("a874"),a("cb29"),a("4de4"),a("7db0"),a("c740"),a("0481"),a("5db7"),a("a630"),a("caad"),a("a15b"),a("d81d"),a("5ded"),a("fb6a"),a("f785"),a("a434"),a("4069"),a("73d9"),a("c19f"),a("82da"),a("ace4"),a("efec"),a("b56e"),a("b0c0"),a("0c47"),a("4ec9"),a("5327"),a("79a8"),a("9ff9"),a("3ea3"),a("40d9"),a("ff9c"),a("0ac8"),a("f664"),a("4057"),a("bc01"),a("6b93"),a("ca21"),a("90d7"),a("2af1"),a("0261"),a("7898"),a("23dc"),a("b65f"),a("a9e3"),a("35b3"),a("f00c"),a("8ba4"),a("9129"),a("583b"),a("aff5"),a("e6e1"),a("c35a"),a("25eb"),a("b680"),a("12a8"),a("e71b"),a("4fad"),a("dca8"),a("c1f9"),a("e439"),a("dbb4"),a("7039"),a("3410"),a("2b19"),a("c906"),a("e21d"),a("e43e"),a("b64b"),a("bf96"),a("5bf7"),a("cee8"),a("af93"),a("131a"),a("d3b7"),a("07ac"),a("a6fd"),a("4ae1"),a("3f3a"),a("ac16"),a("5d41"),a("9e4a"),a("7f78"),a("c760"),a("db96"),a("1bf2"),a("d6dd"),a("7ed3"),a("8b9a"),a("4d63"),a("ac1f"),a("5377"),a("25f0"),a("6062"),a("f5b2"),a("8a79"),a("f6d6"),a("2532"),a("3ca3"),a("466d"),a("843c"),a("4d90"),a("d80f"),a("38cf"),a("5319"),a("841c"),a("1276"),a("2ca0"),a("498a"),a("1e25"),a("eee7"),a("18a5"),a("1393"),a("04d3"),a("cc71"),a("c7cd"),a("9767"),a("1913"),a("c5d0"),a("9911"),a("c96a"),a("2315"),a("4c53"),a("664f"),a("cfc3"),a("4a9b"),a("fd87"),a("8b09"),a("143c"),a("5cc6"),a("8a59"),a("84c3"),a("fb2c"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("20bf"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ec97"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),a("10d1"),a("1fe2"),a("159b"),a("ddb0"),a("130f"),a("9f96"),a("2b3d"),a("bf19"),a("9861"),a("96cf");var n=a("2b0e"),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-config-provider",{attrs:{locale:e.locale}},[a("div",{attrs:{id:"app"}},[a("router-view")],1)])},s=[],o=a("e819"),i=function(e){document.title=e;var t=navigator.userAgent,a=/\bMicroMessenger\/([\d\.]+)/;if(a.test(t)&&/ip(hone|od|ad)/i.test(t)){var n=document.createElement("iframe");n.src="/favicon.ico",n.style.display="none",n.onload=function(){setTimeout((function(){n.remove()}),9)},document.body.appendChild(n)}},c=o["a"].title,l=a("bf0f"),u={data:function(){return{}},computed:{locale:function(){var e=this.$route.meta.title;return e&&i("".concat(Object(l["b"])(e)," - ").concat(c)),this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale}}},d=u,f=a("2877"),m=Object(f["a"])(d,r,s,!1,null,null,null),h=m.exports,p=a("8c4f"),g=a("d73b"),b=p["a"].prototype.push;p["a"].prototype.push=function(e,t,a){return t||a?b.call(this,e,t,a):b.call(this,e).catch((function(e){return e}))},n["a"].use(p["a"]);var y=new p["a"]({mode:"history",routes:g["b"]}),v=a("4360"),C=a("b775"),w=a("c0d2"),k={theme:[{key:"dark",fileName:"dark.css",theme:"dark"},{key:"#F5222D",fileName:"#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",fileName:"#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",fileName:"#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",fileName:"#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",fileName:"#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",fileName:"#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",fileName:"#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}},{key:"#F5222D",theme:"dark",fileName:"dark-#F5222D.css",modifyVars:{"@primary-color":"#F5222D"}},{key:"#FA541C",theme:"dark",fileName:"dark-#FA541C.css",modifyVars:{"@primary-color":"#FA541C"}},{key:"#FAAD14",theme:"dark",fileName:"dark-#FAAD14.css",modifyVars:{"@primary-color":"#FAAD14"}},{key:"#13C2C2",theme:"dark",fileName:"dark-#13C2C2.css",modifyVars:{"@primary-color":"#13C2C2"}},{key:"#52C41A",theme:"dark",fileName:"dark-#52C41A.css",modifyVars:{"@primary-color":"#52C41A"}},{key:"#2F54EB",theme:"dark",fileName:"dark-#2F54EB.css",modifyVars:{"@primary-color":"#2F54EB"}},{key:"#722ED1",theme:"dark",fileName:"dark-#722ED1.css",modifyVars:{"@primary-color":"#722ED1"}}]},N=(a("ca00"),a("8ded")),z=a.n(N),S=a("9fb0"),j=function(){'\n __ __ __ __ ___ \n | / || / | / _ \n | |/| || |/| || (_) | \n |_|__|_||_|__|_| ___ \n _|"""""|_|"""""|_|"""""| \n\t\t\t\t\tPublished '.concat("3.0.2","-").concat("v1.0.4-44-ge70dae7"," @ antdv.com\n\t\t\t\t\tBuild date: ").concat("2022-1-27 11:49:03 ├F10: AM┤")};function _(){j(),v["a"].commit(S["j"],z.a.get(S["j"],o["a"].layout)),v["a"].commit(S["g"],z.a.get(S["g"],o["a"].fixedHeader)),v["a"].commit(S["h"],z.a.get(S["h"],o["a"].fixSiderbar)),v["a"].commit(S["f"],z.a.get(S["f"],o["a"].contentWidth)),v["a"].commit(S["i"],z.a.get(S["i"],o["a"].autoHideHeader)),v["a"].commit(S["m"],z.a.get(S["m"],o["a"].navTheme)),v["a"].commit(S["n"],z.a.get(S["n"],o["a"].colorWeak)),v["a"].commit(S["e"],z.a.get(S["e"],o["a"].primaryColor)),v["a"].commit(S["l"],z.a.get(S["l"],o["a"].multiTab)),v["a"].commit("SET_TOKEN",z.a.get(S["a"])),v["a"].dispatch("setLang",z.a.get(S["b"],"en-US"))}a("dc5a");var P=a("56cd"),O=(a("3b18"),a("f64c")),M=(a("ea98"),a("1d87")),x=(a("bffa"),a("6634")),E=(a("e7c6"),a("a8ba")),T=(a("dd98"),a("3779")),L=(a("34c0"),a("9fd0")),A=(a("2a26"),a("768f")),$=(a("cc70"),a("1fd5")),F=(a("1273"),a("f2ca")),U=(a("eb14"),a("39ab")),R=(a("0025"),a("27ab")),D=(a("9980"),a("0bb7")),B=(a("55ec"),a("a79d")),q=(a("b97c"),a("7571")),V=(a("ab9e"),a("2c92")),W=(a("9a33"),a("f933")),I=(a("6d2a"),a("9571")),G=(a("fbd8"),a("55f1")),H=(a("7f6b"),a("8592")),K=(a("b380"),a("bf7b")),Y=(a("dd48"),a("2fc4")),Q=(a("af3d"),a("27fd")),Z=(a("d88f"),a("fe2b")),J=(a("9d5c"),a("a600")),X=(a("5136"),a("681b")),ee=(a("4a96"),a("a071")),te=(a("8fb1"),a("0c63")),ae=(a("d13f"),a("ccb9")),ne=(a("c68a"),a("0020")),re=(a("cd17"),a("ed3b")),se=(a("0032"),a("e32c")),oe=(a("de6a"),a("9a63")),ie=(a("f2ef"),a("3af3")),ce=(a("288f"),a("cdeb")),le=(a("2ef0f"),a("9839")),ue=(a("ee00"),a("bb76")),de=(a("5783"),a("59a5")),fe=(a("fbd6"),a("160c")),me=(a("6ba6"),a("5efb")),he=(a("922d"),a("09d9")),pe=(a("5704"),a("b558")),ge=(a("1a62"),a("98c5")),be=(a("d2a3"),a("4df5")),ye=a("3654"),ve=a("7e79"),Ce=a.n(ve),we=a("1d4b"),ke=a("31fc"),Ne=a("5530"),ze={name:"PageLoading",props:{tip:{type:String,default:"Loading.."},size:{type:String,default:"large"}},render:function(){var e=arguments[0],t={textAlign:"center",background:"rgba(0,0,0,0.6)",position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1100},a={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%, -50%)"};return e("div",{style:t},[e(H["a"],{attrs:{size:this.size,tip:this.tip},style:a})])}},Se="0.0.1",je={newInstance:function(e,t){var a=document.querySelector("body>div[type=loading]");a||(a=document.createElement("div"),a.setAttribute("type","loading"),a.setAttribute("class","ant-loading-wrapper"),document.body.appendChild(a));var n=Object.assign({visible:!1,size:"large",tip:"Loading..."},t),r=new e({data:function(){return Object(Ne["a"])({},n)},render:function(){var e=arguments[0],t=this.tip,a={};return this.tip&&(a.tip=t),this.visible?e(ze,{props:Object(Ne["a"])({},a)}):null}}).$mount(a);function s(e){var t=Object(Ne["a"])(Object(Ne["a"])({},n),e),a=t.visible,s=t.size,o=t.tip;r.$set(r,"visible",a),o&&r.$set(r,"tip",o),s&&r.$set(r,"size",s)}return{instance:r,update:s}}},_e={show:function(e){this.instance.update(Object(Ne["a"])(Object(Ne["a"])({},e),{},{visible:!0}))},hide:function(){this.instance.update({visible:!1})}},Pe=function(e,t){e.prototype.$loading||(_e.instance=je.newInstance(e,t),e.prototype.$loading=_e)},Oe={version:Se,install:Pe},Me=a("3835"),xe={add:{key:"add",label:"新增"},delete:{key:"delete",label:"删除"},edit:{key:"edit",label:"修改"},query:{key:"query",label:"查询"},get:{key:"get",label:"详情"},enable:{key:"enable",label:"启用"},disable:{key:"disable",label:"禁用"},import:{key:"import",label:"导入"},export:{key:"export",label:"导出"}};function Ee(e){Ee.installed||(!e.prototype.$auth&&Object.defineProperties(e.prototype,{$auth:{get:function(){var e=this;return function(t){var a=t.split("."),n=Object(Me["a"])(a,2),r=n[0],s=n[1],o=e.$store.getters.roles.permissions;return o.find((function(e){return e.permissionId===r})).actionList.findIndex((function(e){return e===s}))>-1}}}}),!e.prototype.$enum&&Object.defineProperties(e.prototype,{$enum:{get:function(){return function(e){var t=xe;return e&&e.split(".").forEach((function(e){t=t&&t[e]||null})),t}}}}))}var Te=Ee;n["a"].directive("action",{inserted:function(e,t,a){var n=t.arg,r=v["a"].getters.roles,s=a.context.$route.meta.permission,o=s instanceof String&&[s]||s;r.permissions.forEach((function(t){o.includes(t.permissionId)&&t.actionList&&!t.actionList.includes(n)&&(e.parentNode&&e.parentNode.removeChild(e)||(e.style.display="none"))}))}});n["a"].use(be["a"]),n["a"].use(ge["a"]),n["a"].use(pe["a"]),n["a"].use(he["a"]),n["a"].use(me["a"]),n["a"].use(fe["a"]),n["a"].use(de["a"]),n["a"].use(ue["a"]),n["a"].use(le["b"]),n["a"].use(ce["a"]),n["a"].use(ie["a"]),n["a"].use(oe["a"]),n["a"].use(se["a"]),n["a"].use(re["a"]),n["a"].use(ne["a"]),n["a"].use(ae["a"]),n["a"].use(te["a"]),n["a"].use(ee["a"]),n["a"].use(X["a"]),n["a"].use(J["a"]),n["a"].use(Z["b"]),n["a"].use(Q["a"]),n["a"].use(Y["a"]),n["a"].use(K["a"]),n["a"].use(H["a"]),n["a"].use(G["a"]),n["a"].use(I["a"]),n["a"].use(W["a"]),n["a"].use(V["a"]),n["a"].use(q["a"]),n["a"].use(B["a"]),n["a"].use(D["a"]),n["a"].use(R["a"]),n["a"].use(U["a"]),n["a"].use(F["a"]),n["a"].use($["a"]),n["a"].use(A["a"]),n["a"].use(L["b"]),n["a"].use(T["a"]),n["a"].use(E["a"]),n["a"].use(x["a"]),n["a"].use(M["a"]),n["a"].prototype.$confirm=re["a"].confirm,n["a"].prototype.$message=O["a"],n["a"].prototype.$notification=P["a"],n["a"].prototype.$info=re["a"].info,n["a"].prototype.$success=re["a"].success,n["a"].prototype.$error=re["a"].error,n["a"].prototype.$warning=re["a"].warning,n["a"].use(ye["a"]),n["a"].use(we["a"]),n["a"].use(ke["a"]),n["a"].use(Oe),n["a"].use(Te),n["a"].use(Ce.a);var Le=a("323e"),Ae=a.n(Le);a("fddb");Ae.a.configure({showSpinner:!1});var $e=["login","register","registerResult"],Fe="/user/login",Ue="/dashboard/workplace";y.beforeEach((function(e,t,a){Ae.a.start(),e.meta&&"undefined"!==typeof e.meta.title&&i("".concat(Object(l["b"])(e.meta.title)," - ").concat(c)),z.a.get(S["a"])?e.path===Fe?(a({path:Ue}),Ae.a.done()):0===v["a"].getters.roles.length?v["a"].dispatch("GetInfo").then((function(n){v["a"].dispatch("GenerateRoutes",n).then((function(){y.addRoutes(v["a"].getters.addRouters);var n=decodeURIComponent(t.query.redirect||e.path);e.path===n?a(Object(Ne["a"])(Object(Ne["a"])({},e),{},{replace:!0})):a({path:n})}))})).catch((function(){P["a"].error({message:"错误",description:"请求用户信息失败,请重试"}),v["a"].dispatch("Logout").then((function(){a({path:Fe,query:{redirect:e.fullPath}})}))})):a():$e.includes(e.name)?a():(a({path:Fe,query:{redirect:e.fullPath}}),Ae.a.done())})),y.afterEach((function(){Ae.a.done()}));var Re=a("c1df"),De=a.n(Re);a("5c3a");De.a.locale("zh-cn"),n["a"].filter("NumberFormat",(function(e){if(!e)return"0";var t=e.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return t})),n["a"].filter("dayjs",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return De()(e).format(t)})),n["a"].filter("moment",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return De()(e).format(t)}));a("861f");n["a"].config.productionTip=!1,n["a"].use(C["a"]),n["a"].component("pro-layout",w["d"]),n["a"].component("page-container",w["b"]),n["a"].component("page-header-wrapper",w["b"]),window.umi_plugin_ant_themeVar=k.theme,new n["a"]({router:y,store:v["a"],i18n:l["a"],created:_,render:function(e){return e(h)}}).$mount("#app")},6039:function(e,t,a){"use strict";a.r(t),t["default"]={"overview.systemName":"System Name"}},"63ca":function(e,t,a){},6692:function(e,t,a){"use strict";a("63ca")},"69c3":function(e,t,a){"use strict";a.r(t),t["default"]={"result.fail.error.title":"Submission Failed","result.fail.error.description":"Please check and modify the following information before resubmitting.","result.fail.error.hint-title":"The content you submitted has the following error:","result.fail.error.hint-text1":"Your account has been frozen","result.fail.error.hint-btn1":"Thaw immediately","result.fail.error.hint-text2":"Your account is not yet eligible to apply","result.fail.error.hint-btn2":"Upgrade immediately","result.fail.error.btn-text":"Return to modify"}},"6e2f":function(e,t,a){"use strict";a.r(t),t["default"]={submit:"Submit",save:"Save","submit.ok":"Submit successfully","save.ok":"Saved successfully"}},"705f":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a("5530"),r=a("2f62"),s={computed:Object(n["a"])({},Object(r["c"])({isMobile:function(e){return e.app.isMobile}}))}},"743d":function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("8b45"),s=a("0ff2"),o=a.n(s),i=a("6e2f"),c=a("771d"),l=a("5030"),u=a("928e"),d=a("6039"),f=a("dea1"),m=a("ffb6"),h=a("78a1"),p=a("29fd"),g={antLocale:r["a"],momentName:"eu",momentLocale:o.a};t["default"]=Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({message:"-","layouts.usermenu.dialog.title":"Message","layouts.usermenu.dialog.content":"Are you sure you would like to logout?","layouts.userLayout.title":"MQTT Broker System"},g),i["default"]),c["default"]),l["default"]),u["default"]),f["default"]),m["default"]),h["default"]),{},{overview:d["default"]},p["default"])},"771d":function(e,t,a){"use strict";a.r(t),t["default"]={"menu.welcome":"Welcome","menu.home":"Home","menu.dashboard":"Monitor","menu.dashboard.monitor":"Overview","menu.dashboard.topics":"Topics","menu.dashboard.clients":"clients","menu.dashboard.subscription":"Subscription","menu.ruleEngine":"RuleEngine","menu.ruleEngine.resources":"Resources","menu.ruleEngine.ruleEngine":"RuleEngine","menu.modules":"Modules","menu.modules.modules":"Modules"}},"78a1":function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("44e5"),s=a("69c3");t["default"]=Object(n["a"])(Object(n["a"])({},r["default"]),s["default"])},"7a73":function(e,t,a){},"7ded":function(e,t,a){"use strict";a.d(t,"d",(function(){return s})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return c}));var n=a("b775"),r={Login:"/v1/auth/users/login",Logout:"/auth/logout",ForgePassword:"/auth/forge-password",Register:"/auth/register",twoStepCode:"/auth/2step-code",SendSms:"/account/sms",SendSmsErr:"/account/sms_err",UserInfo:"/v1/auth/users/info",UserMenu:"/v1/auth/users/nav"};function s(e){return Object(n["c"])({url:r.Login,method:"post",params:e})}function o(e){return Object(n["c"])({url:r.SendSms,method:"post",data:e})}function i(){return Object(n["c"])({url:r.UserInfo,method:"get",headers:{"Content-Type":"application/json;charset=UTF-8"}})}function c(e){return Object(n["c"])({url:r.twoStepCode,method:"post",data:e})}},"861f":function(e,t,a){},"86a0":function(e,t,a){"use strict";a("9f8d")},"8eeb4":function(e,t,a){var n=a("b2b7");e.exports={__esModule:!0,default:n.svgComponent({tag:"svg",attrsMap:{viewBox:"0 0 128 128",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},children:[{tag:"title",children:[{text:"Vue"}]},{tag:"desc",children:[{text:"Created with Sketch."}]},{tag:"defs",children:[{tag:"linearGradient",attrsMap:{x1:"69.644116%",y1:"0%",x2:"69.644116%",y2:"100%",id:"linearGradient-1"},children:[{tag:"stop",attrsMap:{"stop-color":"#29CDFF",offset:"0%"}},{tag:"stop",attrsMap:{"stop-color":"#148EFF",offset:"37.8600687%"}},{tag:"stop",attrsMap:{"stop-color":"#0A60FF",offset:"100%"}}]},{tag:"linearGradient",attrsMap:{x1:"-19.8191553%",y1:"-36.7931464%",x2:"138.57919%",y2:"157.637507%",id:"linearGradient-2"},children:[{tag:"stop",attrsMap:{"stop-color":"#29CDFF",offset:"0%"}},{tag:"stop",attrsMap:{"stop-color":"#0F78FF",offset:"100%"}}]},{tag:"linearGradient",attrsMap:{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-3"},children:[{tag:"stop",attrsMap:{"stop-color":"#FA8E7D",offset:"0%"}},{tag:"stop",attrsMap:{"stop-color":"#F74A5C",offset:"51.2635191%"}},{tag:"stop",attrsMap:{"stop-color":"#F51D2C",offset:"100%"}}]}]},{tag:"g",attrsMap:{id:"Vue",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},children:[{tag:"g",attrsMap:{id:"Group",transform:"translate(19.000000, 9.000000)"},children:[{tag:"path",attrsMap:{d:"M89.96,90.48 C78.58,93.48 68.33,83.36 67.62,82.48 L46.6604487,62.2292258 C45.5023849,61.1103236 44.8426845,59.5728835 44.8296987,57.9626396 L44.5035564,17.5209948 C44.4948861,16.4458744 44.0537714,15.4195095 43.2796864,14.6733517 L29.6459999,1.53153737 C28.055475,-0.00160504005 25.5232423,0.0449126588 23.9900999,1.63543756 C23.2715121,2.38092066 22.87,3.37600834 22.87,4.41143746 L22.87,64.3864751 C22.87,67.0807891 23.9572233,69.6611067 25.885409,71.5429748 L63.6004615,108.352061 C65.9466323,110.641873 69.6963584,110.624605 72.0213403,108.313281",id:"Path-Copy",fill:"url(#linearGradient-1)","fill-rule":"nonzero",transform:"translate(56.415000, 54.831157) scale(-1, 1) translate(-56.415000, -54.831157) "}},{tag:"path",attrsMap:{d:"M68,90.1163122 C56.62,93.1163122 45.46,83.36 44.75,82.48 L23.7904487,62.2292258 C22.6323849,61.1103236 21.9726845,59.5728835 21.9596987,57.9626396 L21.6335564,17.5209948 C21.6248861,16.4458744 21.1837714,15.4195095 20.4096864,14.6733517 L6.7759999,1.53153737 C5.185475,-0.00160504005 2.65324232,0.0449126588 1.12009991,1.63543756 C0.401512125,2.38092066 3.90211878e-13,3.37600834 3.90798505e-13,4.41143746 L3.94351218e-13,64.3864751 C3.94681177e-13,67.0807891 1.08722326,69.6611067 3.01540903,71.5429748 L40.7807092,108.401101 C43.1069304,110.671444 46.8180151,110.676525 49.1504445,108.412561",id:"Path",fill:"url(#linearGradient-2)","fill-rule":"nonzero"}},{tag:"path",attrsMap:{d:"M43.2983488,19.0991931 L27.5566079,3.88246244 C26.7624281,3.11476967 26.7409561,1.84862177 27.5086488,1.05444194 C27.8854826,0.664606611 28.4044438,0.444472651 28.9466386,0.444472651 L60.3925021,0.444472651 C61.4970716,0.444472651 62.3925021,1.33990315 62.3925021,2.44447265 C62.3925021,2.9858375 62.1730396,3.50407742 61.7842512,3.88079942 L46.0801285,19.0975301 C45.3051579,19.8484488 44.0742167,19.8491847 43.2983488,19.0991931 Z",id:"Path",fill:"url(#linearGradient-3)"}}]}]}]})}},"928e":function(e,t,a){"use strict";a.r(t),t["default"]={"user.login.userName":"userName","user.login.password":"password","user.login.username.placeholder":"Account: mmq","user.login.password.placeholder":"password: aaaaaa","user.login.message-invalid-credentials":"Invalid username or password(admin/ant.design)","user.login.message-invalid-verification-code":"Invalid verification code","user.login.tab-login-credentials":"Credentials","user.login.tab-login-mobile":"Mobile number","user.login.mobile.placeholder":"Mobile number","user.login.mobile.verification-code.placeholder":"Verification code","user.login.remember-me":"Remember me","user.login.forgot-password":"Forgot your password?","user.login.sign-in-with":"Sign in with","user.login.signup":"Sign up","user.login.login":"Login","user.register.register":"Register","user.register.email.placeholder":"Email","user.register.password.placeholder":"Password ","user.register.password.popover-message":"Please enter at least 6 characters. Please do not use passwords that are easy to guess. ","user.register.confirm-password.placeholder":"Confirm password","user.register.get-verification-code":"Get code","user.register.sign-in":"Already have an account?","user.register-result.msg":"Account:registered at {email}","user.register-result.activation-email":"The activation email has been sent to your email address and is valid for 24 hours. Please log in to the email in time and click on the link in the email to activate the account.","user.register-result.back-home":"Back to home","user.register-result.view-mailbox":"View mailbox","user.email.required":"Please enter your email!","user.email.wrong-format":"The email address is in the wrong format!","user.userName.required":"Please enter account name or email address","user.password.required":"Please enter your password!","user.password.twice.msg":"The passwords entered twice do not match!","user.password.strength.msg":"The password is not strong enough","user.password.strength.strong":"Strength: strong","user.password.strength.medium":"Strength: medium","user.password.strength.low":"Strength: low","user.password.strength.short":"Strength: too short","user.confirm-password.required":"Please confirm your password!","user.phone-number.required":"Please enter your phone number!","user.phone-number.wrong-format":"Please enter a valid phone number","user.verification-code.required":"Please enter the verification code!"}},"9b19":function(e,t,a){e.exports=a.p+"assets/logo.b36f7a7f.svg"},"9f8d":function(e,t,a){},"9fb0":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return r})),a.d(t,"k",(function(){return s})),a.d(t,"m",(function(){return o})),a.d(t,"j",(function(){return i})),a.d(t,"g",(function(){return c})),a.d(t,"h",(function(){return l})),a.d(t,"f",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"e",(function(){return f})),a.d(t,"n",(function(){return m})),a.d(t,"l",(function(){return h})),a.d(t,"b",(function(){return p})),a.d(t,"c",(function(){return g}));var n="Access-Token",r="sidebar_type",s="is_mobile",o="nav_theme",i="layout",c="fixed_header",l="fixed_sidebar",u="content_width",d="auto_hide_header",f="color",m="weak",h="multi_tab",p="app_language",g={Fluid:"Fluid",Fixed:"Fixed"}},b775:function(e,t,a){"use strict";a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return d}));a("d3b7");var n=a("bc3a"),r=a.n(n),s=a("4360"),o=a("8ded"),i=a.n(o),c=a("56cd"),l={vm:{},install:function(e,t){this.installed||(this.installed=!0,t&&(e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})))}},u=a("9fb0"),d=r.a.create({baseURL:"/",timeout:6e3}),f=function(e){if(e.response){var t=e.response.data,a=i.a.get(u["a"]);403===e.response.status&&c["a"].error({message:"Forbidden",description:t.message}),401!==e.response.status||t.result&&t.result.isLogin||(c["a"].error({message:"Unauthorized",description:"Authorization verification failed"}),a&&s["a"].dispatch("Logout").then((function(){setTimeout((function(){window.location.reload()}),1500)})))}return Promise.reject(e)};d.interceptors.request.use((function(e){var t=i.a.get(u["a"]);return t&&(e.headers["Authorization"]="Bearer "+t),e}),f),d.interceptors.response.use((function(e){return e.data}),f);var m={vm:{},install:function(e){e.use(l,d)}};t["c"]=d},b781:function(e,t,a){"use strict";a.r(t),t["default"]={"dashboard.analysis.test":"Gongzhuan No.{no} shop","dashboard.analysis.introduce":"Introduce","dashboard.analysis.total-sales":"Total Sales","dashboard.analysis.day-sales":"Daily Sales","dashboard.analysis.visits":"Visits","dashboard.analysis.visits-trend":"Visits Trend","dashboard.analysis.visits-ranking":"Visits Ranking","dashboard.analysis.day-visits":"Daily Visits","dashboard.analysis.week":"WoW Change","dashboard.analysis.day":"DoD Change","dashboard.analysis.payments":"Payments","dashboard.analysis.conversion-rate":"Conversion Rate","dashboard.analysis.operational-effect":"Operational Effect","dashboard.analysis.sales-trend":"Stores Sales Trend","dashboard.analysis.sales-ranking":"Sales Ranking","dashboard.analysis.all-year":"All Year","dashboard.analysis.all-month":"All Month","dashboard.analysis.all-week":"All Week","dashboard.analysis.all-day":"All day","dashboard.analysis.search-users":"Search Users","dashboard.analysis.per-capita-search":"Per Capita Search","dashboard.analysis.online-top-search":"Online Top Search","dashboard.analysis.the-proportion-of-sales":"The Proportion Of Sales","dashboard.analysis.dropdown-option-one":"Operation one","dashboard.analysis.dropdown-option-two":"Operation two","dashboard.analysis.channel.all":"ALL","dashboard.analysis.channel.online":"Online","dashboard.analysis.channel.stores":"Stores","dashboard.analysis.sales":"Sales","dashboard.analysis.traffic":"Traffic","dashboard.analysis.table.rank":"Rank","dashboard.analysis.table.search-keyword":"Keyword","dashboard.analysis.table.users":"Users","dashboard.analysis.table.weekly-range":"Weekly Range"}},bf0f:function(e,t,a){"use strict";a.d(t,"c",(function(){return g})),a.d(t,"b",(function(){return b}));var n=a("5530"),r=(a("d3b7"),a("caad"),a("3ca3"),a("ddb0"),a("2b0e")),s=a("a925"),o=a("8ded"),i=a.n(o),c=a("c1df"),l=a.n(c),u=a("743d");r["a"].use(s["a"]);var d="en-US",f={"en-US":Object(n["a"])({},u["default"])},m=new s["a"]({silentTranslationWarn:!0,locale:d,fallbackLocale:d,messages:f}),h=[d];function p(e){return m.locale=e,document.querySelector("html").setAttribute("lang",e),e}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return new Promise((function(t){return i.a.set("lang",e),m.locale!==e?h.includes(e)?t(p(e)):a("4aa4")("./".concat(e)).then((function(t){var a=t.default;return m.setLocaleMessage(e,a),h.push(e),l.a.updateLocale(a.momentName,a.momentLocale),p(e)})):t(e)}))}function b(e){return m.t("".concat(e))}t["a"]=m},c49c:function(e,t,a){"use strict";a("7a73")},ca00:function(e,t,a){"use strict";function n(){var e=new Date,t=e.getHours();return t<9?"早上好":t<=11?"上午好":t<=13?"中午好":t<20?"下午好":"晚上好"}function r(){var e=["休息一会儿吧","准备吃什么呢?","要不要打一把 DOTA","我猜你可能累了"],t=Math.floor(Math.random()*e.length);return e[t]}function s(e){var t=0;if(!e)return t;for(var a={},n=0;n-1&&this.$nextTick((function(){e.collapsed=!e.collapsed,setTimeout((function(){e.collapsed=!e.collapsed}),16)}))},methods:{i18nRender:m["b"],handleMediaQuery:function(e){this.query=e,!this.isMobile||e["screen-xs"]?!this.isMobile&&e["screen-xs"]&&(this.isMobile=!0,this.collapsed=!1,this.settings.contentWidth=$["c"].Fluid):this.isMobile=!1},handleCollapse:function(e){this.collapsed=e},handleSettingChange:function(e){var t=e.type,a=e.value;switch(t&&(this.settings[t]=a),t){case"contentWidth":this.settings[t]=a;break;case"layout":"sidemenu"===a?this.settings.contentWidth=$["c"].Fluid:(this.settings.fixSiderbar=!1,this.settings.contentWidth=$["c"].Fixed);break}}}},fe=de,me=(a("6692"),Object(S["a"])(fe,T,L,!1,null,null,null)),he=me.exports,pe={name:"RouteView",props:{keepAlive:{type:Boolean,default:!0}},data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,a=this.$store.getters,n=e("keep-alive",[e("router-view")]),r=e("router-view");return(a.multiTab||t.keepAlive)&&(this.keepAlive||a.multiTab||t.keepAlive)?n:r}},ge=pe,be=Object(S["a"])(ge,s,o,!1,null,null,null),ye=(be.exports,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("page-header-wrapper",[a("router-view")],1)}),ve=[],Ce={name:"PageView"},we=Ce,ke=Object(S["a"])(we,ye,ve,!1,null,null,null),Ne=(ke.exports,a("0dbd")),ze=a.n(Ne),Se={name:"RouteView",render:function(e){return e("router-view")}},je=[{path:"/",name:"index",component:he,meta:{title:"menu.home"},redirect:"/dashboard/monitor",children:[{path:"/dashboard",name:"dashboard",redirect:"/dashboard/monitor",component:Se,meta:{title:"menu.dashboard",keepAlive:!0,icon:ze.a,permission:["dashboard"]},children:[{path:"/dashboard/monitor",name:"Monitor",component:function(){return a.e("chunk-341e83a4").then(a.bind(null,"0b56"))},meta:{title:"menu.dashboard.monitor",keepAlive:!1}},{path:"/dashboard/clients/:pageNo([1-9]\\d*)?",name:"clients",component:function(){return Promise.all([a.e("chunk-24a0b0bc"),a.e("chunk-0c55d5dd")]).then(a.bind(null,"2588"))},meta:{title:"menu.dashboard.clients",keepAlive:!1,permission:["dashboard"]}},{path:"/dashboard/subscription",name:"subscription",component:function(){return Promise.all([a.e("chunk-24a0b0bc"),a.e("chunk-00a4fb94")]).then(a.bind(null,"72e4"))},meta:{title:"menu.dashboard.subscription",keepAlive:!0,permission:["dashboard"]}}]},{path:"/ruleEngine",name:"ruleEngine",component:Se,meta:{title:"menu.ruleEngine",keepAlive:!0,icon:ze.a,permission:["ruleEngine"]},children:[{path:"/ruleEngine/resources",name:"resources",component:function(){return a.e("chunk-8c4d6b48").then(a.bind(null,"7a56"))},meta:{title:"menu.ruleEngine.resources",keepAlive:!0,permission:["ruleEngine"]}},{path:"/ruleEngine/ruleEngine",name:"ruleEngine",component:function(){return Promise.all([a.e("chunk-24a0b0bc"),a.e("chunk-2d0dd3d0")]).then(a.bind(null,"8112"))},meta:{title:"menu.ruleEngine.ruleEngine",keepAlive:!0,permission:["ruleEngine"]}},{path:"/ruleEngine/RuleEngineModel",name:"RuleEngineModel",props:!0,component:function(){return a.e("chunk-08eb694d").then(a.bind(null,"6574"))},hidden:!0}]},{path:"/modules",name:"modules",component:Se,meta:{title:"menu.modules",keepAlive:!0,icon:ze.a,permission:["modules"]},children:[{path:"/modules/modulesManager",name:"modules",component:function(){return a.e("chunk-199b3a26").then(a.bind(null,"3682"))},meta:{title:"menu.modules.modules",keepAlive:!0,permission:["modules"]}}]}]},{path:"*",redirect:"/404",hidden:!0}],_e=[{path:"/user",component:_,redirect:"/user/login",hidden:!0,children:[{path:"login",name:"login",component:function(){return a.e("user").then(a.bind(null,"ac2a"))}},{path:"register",name:"register",component:function(){return a.e("user").then(a.bind(null,"1348"))}},{path:"register-result",name:"registerResult",component:function(){return a.e("user").then(a.bind(null,"1037"))}},{path:"recover",name:"recover",component:void 0}]},{path:"/404",component:function(){return a.e("fail").then(a.bind(null,"cc89"))}}]},dea1:function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("b781");t["default"]=Object(n["a"])({},r["default"])},e819:function(e,t,a){"use strict";t["a"]={navTheme:"dark",primaryColor:"#F5222D",layout:"sidemenu",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,colorWeak:!1,menu:{locale:!0},title:"MMQ Broker",pwa:!1,iconfontUrl:"",production:!0}},fddb:function(e,t,a){},ffb6:function(e,t,a){"use strict";a.r(t);var n=a("5530"),r=a("0af2");t["default"]=Object(n["a"])({},r["default"])}}); \ No newline at end of file diff --git a/mmq-web/src/main/resources/static/js/chunk-00a4fb94.ac21a632.js b/mmq-web/src/main/resources/static/js/chunk-00a4fb94.214e2208.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-00a4fb94.ac21a632.js rename to mmq-web/src/main/resources/static/js/chunk-00a4fb94.214e2208.js diff --git a/mmq-web/src/main/resources/static/js/chunk-08eb694d.603dd9ee.js b/mmq-web/src/main/resources/static/js/chunk-08eb694d.35696d76.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-08eb694d.603dd9ee.js rename to mmq-web/src/main/resources/static/js/chunk-08eb694d.35696d76.js diff --git a/mmq-web/src/main/resources/static/js/chunk-0c55d5dd.3e6892d4.js b/mmq-web/src/main/resources/static/js/chunk-0c55d5dd.c8425a0d.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-0c55d5dd.3e6892d4.js rename to mmq-web/src/main/resources/static/js/chunk-0c55d5dd.c8425a0d.js diff --git a/mmq-web/src/main/resources/static/js/chunk-199b3a26.54c8064a.js b/mmq-web/src/main/resources/static/js/chunk-199b3a26.93bd4366.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-199b3a26.54c8064a.js rename to mmq-web/src/main/resources/static/js/chunk-199b3a26.93bd4366.js diff --git a/mmq-web/src/main/resources/static/js/chunk-24a0b0bc.aa3b8650.js b/mmq-web/src/main/resources/static/js/chunk-24a0b0bc.1b2f6a26.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-24a0b0bc.aa3b8650.js rename to mmq-web/src/main/resources/static/js/chunk-24a0b0bc.1b2f6a26.js diff --git a/mmq-web/src/main/resources/static/js/chunk-2d0dd3d0.c0202474.js b/mmq-web/src/main/resources/static/js/chunk-2d0dd3d0.10b4db87.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-2d0dd3d0.c0202474.js rename to mmq-web/src/main/resources/static/js/chunk-2d0dd3d0.10b4db87.js diff --git a/mmq-web/src/main/resources/static/js/chunk-341e83a4.94b4469e.js b/mmq-web/src/main/resources/static/js/chunk-341e83a4.e9773f94.js similarity index 100% rename from mmq-web/src/main/resources/static/js/chunk-341e83a4.94b4469e.js rename to mmq-web/src/main/resources/static/js/chunk-341e83a4.e9773f94.js diff --git a/mmq-web/src/main/resources/static/js/chunk-8c4d6b48.c59f8bd7.js b/mmq-web/src/main/resources/static/js/chunk-8c4d6b48.10460cf0.js similarity index 60% rename from mmq-web/src/main/resources/static/js/chunk-8c4d6b48.c59f8bd7.js rename to mmq-web/src/main/resources/static/js/chunk-8c4d6b48.10460cf0.js index 0bfe7d9..bd9d8e2 100644 --- a/mmq-web/src/main/resources/static/js/chunk-8c4d6b48.c59f8bd7.js +++ b/mmq-web/src/main/resources/static/js/chunk-8c4d6b48.10460cf0.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8c4d6b48"],{"02f1":function(e,r,t){},"0fea":function(e,r,t){"use strict";t.d(r,"c",(function(){return s})),t.d(r,"d",(function(){return n})),t.d(r,"b",(function(){return o})),t.d(r,"a",(function(){return i}));var a=t("b775");function s(e,r){return Object(a["b"])({url:e,method:"post",data:r})}function n(e,r){return Object(a["b"])({url:e,method:"put",data:r})}function o(e,r){return Object(a["b"])({url:e,method:"get",params:r})}function i(e,r){return Object(a["b"])({url:e,method:"delete",params:r})}},5159:function(e,r,t){"use strict";t("02f1")},"7a56":function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-operator"}),t("a-list",{attrs:{grid:{gutter:24,lg:3,md:2,sm:1,xs:1},loading:e.loading,"data-source":e.data},scopedSlots:e._u([{key:"renderItem",fn:function(r){return t("a-list-item",{},[r&&void 0!==r.resourceID?[t("a-card",{attrs:{title:r.title}},[t("div",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.resourceID))]),t("a",{attrs:{slot:"actions"},on:{click:function(t){return e.handleSave(r)}},slot:"actions"},[e._v("编辑")]),t("a-popconfirm",{attrs:{slot:"actions",title:"Sure to delete?"},on:{confirm:function(){return e.handleDelete(r)}},slot:"actions"},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])]),e._v(" "+e._s(e.getDescription(r))+" ")],1)]:[t("a-button",{staticClass:"new-btn",attrs:{type:"dashed"},on:{click:function(r){return e.handleSave({})}}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" 新增资源 ")],1)]],2)}}])}),t("ResourceModel",{ref:"ResourceModel",on:{ok:e.loadData}})],1)},s=[],n=t("0fea"),o=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("a-drawer",{attrs:{confirmLoading:e.confirmLoading,title:"保存新资源",width:720,visible:e.visible,"body-style":{paddingBottom:"80px"}},on:{close:e.onClose}},[t("a-form",{attrs:{form:e.form,layout:"vertical","hide-required-mark":""}},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"资源类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",{rules:[{required:!0,message:"请选择资源类型"}]}],expression:"[\n 'type',\n {\n rules: [{ required: true, message: '请选择资源类型' }]\n }\n ]"}],attrs:{placeholder:"请选择资源类型"},on:{change:e.typeChange}},[t("a-select-option",{attrs:{value:"MYSQL"}},[e._v(" Mysql ")]),t("a-select-option",{attrs:{value:"POSTGRESQL"}},[e._v(" Postgresql ")]),t("a-select-option",{attrs:{value:"SQLSERVER"}},[e._v(" SqlServer ")]),t("a-select-option",{attrs:{value:"TDENGINE"}},[e._v(" Tdengine ")]),t("a-select-option",{attrs:{value:"KAFKA"}},[e._v(" Kafka ")]),t("a-select-option",{attrs:{value:"MQTT_BROKER"}},[e._v(" MQTT Broker ")])],1)],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"测试连接"}},[t("a-button",{style:{marginRight:"8px"},attrs:{type:"primary"},on:{click:e.handleConnect}},[e._v(" Test Connect ")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,expression:"type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'"}]},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"IP"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.ip",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入IP"}]}],expression:"[\n 'resource.ip',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入IP'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入IP"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"PORT"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.port",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入端口"}]}],expression:"[\n 'resource.port',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入端口'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入端口"}})],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"账户"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.username",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入账户"}]}],expression:"[\n 'resource.username',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入账户'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入账户"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"密码"}},[t("a-input-password",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.password",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入密码"}]}],expression:"[\n 'resource.password',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入密码'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入密码"}})],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"数据库"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.databaseName",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入要连接的数据库"}]}],expression:"[\n 'resource.databaseName',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入要连接的数据库'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入要连接的数据库"}})],1)],1),t("a-col",{attrs:{span:12}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"KAFKA"===e.type,expression:"type === 'KAFKA'"}]},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"Kafka服务"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.server",{rules:[{required:"KAFKA"===e.type,message:"请输入Kafka服务"}]}],expression:"[\n 'resource.server',\n {\n rules: [{ required: type === 'KAFKA' ? true : false, message: '请输入Kafka服务' }]\n }\n ]"}],attrs:{placeholder:"请输入Kafka服务"}})],1)],1),t("a-col",{attrs:{span:12}})],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"Kafka账户"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.username",{rules:[{required:!1,message:"请输入Kafka账户"}]}],expression:"[\n 'resource.username',\n {\n rules: [{ required: false, message: '请输入Kafka账户' }]\n }\n ]"}],attrs:{placeholder:"请输入Kafka账户"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"Kafka密码"}},[t("a-input-password",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.password",{rules:[{required:!1,message:"请输入Kafka密码"}]}],expression:"[\n 'resource.password',\n {\n rules: [{ required: false, message: '请输入Kafka密码' }]\n }\n ]"}],attrs:{placeholder:"请输入Kafka密码"}})],1)],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"MQTT_BROKER"===e.type,expression:"type === 'MQTT_BROKER'"}]},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"MQTT服务"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.server",{rules:[{required:"MQTT_BROKER"===e.type,message:"请输入MQTT服务"}]}],expression:"[\n 'resource.server',\n {\n rules: [{ required: type === 'MQTT_BROKER' ? true : false, message: '请输入MQTT服务' }]\n }\n ]"}],attrs:{placeholder:"请输入MQTT服务"}})],1)],1),t("a-col",{attrs:{span:12}})],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"MQTT账户"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.username",{rules:[{required:!1,message:"请输入Kafka账户"}]}],expression:"[\n 'resource.username',\n {\n rules: [{ required: false, message: '请输入Kafka账户' }]\n }\n ]"}],attrs:{placeholder:"请输入MQTT账户"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"MQTT密码"}},[t("a-input-password",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.password",{rules:[{required:!1,message:"请输入MQTT密码"}]}],expression:"[\n 'resource.password',\n {\n rules: [{ required: false, message: '请输入MQTT密码' }]\n }\n ]"}],attrs:{placeholder:"请输入MQTT密码"}})],1)],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"备注"}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",{rules:[{required:!1,message:"请输入备注"}]}],expression:"[\n 'description',\n {\n rules: [{ required: false, message: '请输入备注' }]\n }\n ]"}],attrs:{rows:4,placeholder:"请输入备注"}})],1)],1)],1)],1),t("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[t("a-button",{style:{marginRight:"8px"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v(" Submit ")])],1)],1)},i=[],c=(t("a4d3"),t("e01a"),t("d3b7"),{data:function(){return{title:"操作",visible:!1,curResourceID:null,confirmLoading:!1,type:"",form:this.$form.createForm(this),url:{save:"/v1/resources",testConnect:"/v1/resources/testConnect"}}},created:function(){},methods:{save:function(e){this.form.resetFields(),this.visible=!0,e&&(this.curResourceID=e.resourceID,this.setFieldsValueByType(e.type,e))},setFieldsValueByType:function(e,r){var t=this;switch(this.type=e,e){case"MYSQL":case"POSTGRESQL":case"SQLSERVER":case"TDENGINE":this.$nextTick((function(){t.form.setFieldsValue({resourceID:r.resourceID,type:e,description:r.description,resource:{ip:r.resource.ip,port:r.resource.port,databaseName:r.resource.databaseName,password:r.resource.password,username:r.resource.username}})}));break;case"KAFKA":this.$nextTick((function(){t.form.setFieldsValue({resourceID:r.resourceID,type:e,description:r.description,resource:{server:r.resource.server,password:r.resource.password,username:r.resource.username}})}));break;case"MQTT_BROKER":this.$nextTick((function(){t.form.setFieldsValue({resourceID:r.resourceID,type:e,description:r.description,resource:{server:r.resource.server,password:r.resource.password,username:r.resource.username}})}));break}},typeChange:function(e){this.type=e},onClose:function(){this.visible=!1},handleOk:function(){var e=this,r=this;this.form.validateFields((function(t,a){if(!t){r.confirmLoading=!0;var s=Object.assign({},a);s.resourceID=e.curResourceID;var o=Object(n["c"])(e.url.save,s);o.then((function(e){200===e.code?(r.$message.success(e.message),r.$emit("ok")):r.$message.warning(e.message)})).finally((function(){r.confirmLoading=!1,r.onClose()}))}}))},handleConnect:function(){var e=this,r=this;this.form.validateFields((function(t,a){if(!t){var s=Object.assign({},a);s.resourceID=e.curResourceID,Object(n["c"])(e.url.testConnect,s).then((function(e){200===e.code?r.$message.success("连接成功!"):r.$message.warning("连接失败!")}))}}))},filterOption:function(e,r){return!!r.componentOptions.children[0].text&&r.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},handleCancel:function(){this.onClose()}}}),u=c,l=t("2877"),p=Object(l["a"])(u,o,i,!1,null,"772ce5d4",null),d=p.exports,m={name:"Subscribes",components:{ResourceModel:d},data:function(){return{loading:!0,data:[]}},filters:{},created:function(){this.loadData()},methods:{loadData:function(){var e=this;this.loading=!0,setTimeout((function(){return Object(n["b"])("/v1/resources/resources",{}).then((function(r){e.data=r.data,e.data.unshift({}),e.loading=!1}))}),1e3)},getDescription:function(e){return"资源ID:"+e.resourceID+" 资源类型:"+e.type+this.getResourceContentByType(e.resource,e.type)},getResourceContentByType:function(e,r){switch(r){case"MYSQL":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"POSTGRESQL":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"SQLSERVER":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"TDENGINE":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"KAFKA":return" Kafka服务:"+e.server;case"MQTT_BROKER":return" MQTT BROKER服务:"+e.server;default:return""}},handleSave:function(e){this.$refs.ResourceModel.save(e)},handleDelete:function(e){var r=this;Object(n["a"])("/v1/resources",{resourceID:e.resourceID}).then((function(e){200===e.code?(r.$message.info(e.message),r.loadData()):r.$message.info(e.message)}))}}},f=m,v=(t("5159"),Object(l["a"])(f,a,s,!1,null,"74e8e50e",null));r["default"]=v.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8c4d6b48"],{"02f1":function(e,r,t){},"0fea":function(e,r,t){"use strict";t.d(r,"c",(function(){return s})),t.d(r,"d",(function(){return n})),t.d(r,"b",(function(){return o})),t.d(r,"a",(function(){return i}));var a=t("b775");function s(e,r){return Object(a["b"])({url:e,method:"post",data:r})}function n(e,r){return Object(a["b"])({url:e,method:"put",data:r})}function o(e,r){return Object(a["b"])({url:e,method:"get",params:r})}function i(e,r){return Object(a["b"])({url:e,method:"delete",params:r})}},5159:function(e,r,t){"use strict";t("02f1")},"7a56":function(e,r,t){"use strict";t.r(r);var a=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-operator"}),t("a-list",{attrs:{grid:{gutter:24,lg:3,md:2,sm:1,xs:1},loading:e.loading,"data-source":e.data},scopedSlots:e._u([{key:"renderItem",fn:function(r){return t("a-list-item",{},[r&&void 0!==r.resourceID?[t("a-card",{attrs:{title:r.title}},[t("div",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(r.resourceID))]),t("a",{attrs:{slot:"actions"},on:{click:function(t){return e.handleSave(r)}},slot:"actions"},[e._v("编辑")]),t("a-popconfirm",{attrs:{slot:"actions",title:"Sure to delete?"},on:{confirm:function(){return e.handleDelete(r)}},slot:"actions"},[t("a",{attrs:{href:"javascript:;"}},[e._v("删除")])]),e._v(" "+e._s(e.getDescription(r))+" ")],1)]:[t("a-button",{staticClass:"new-btn",attrs:{type:"dashed"},on:{click:function(r){return e.handleSave({})}}},[t("a-icon",{attrs:{type:"plus"}}),e._v(" 新增资源 ")],1)]],2)}}])}),t("ResourceModel",{ref:"ResourceModel",on:{ok:e.loadData}})],1)},s=[],n=t("0fea"),o=function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("a-drawer",{attrs:{confirmLoading:e.confirmLoading,title:"保存新资源",width:720,visible:e.visible,"body-style":{paddingBottom:"80px"}},on:{close:e.onClose}},[t("a-form",{attrs:{form:e.form,layout:"vertical","hide-required-mark":""}},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"资源类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["type",{rules:[{required:!0,message:"请选择资源类型"}]}],expression:"[\n 'type',\n {\n rules: [{ required: true, message: '请选择资源类型' }]\n }\n ]"}],attrs:{placeholder:"请选择资源类型"},on:{change:e.typeChange}},[t("a-select-option",{attrs:{value:"MYSQL"}},[e._v(" Mysql ")]),t("a-select-option",{attrs:{value:"POSTGRESQL"}},[e._v(" Postgresql ")]),t("a-select-option",{attrs:{value:"SQLSERVER"}},[e._v(" SqlServer ")]),t("a-select-option",{attrs:{value:"TDENGINE"}},[e._v(" Tdengine ")]),t("a-select-option",{attrs:{value:"KAFKA"}},[e._v(" Kafka ")]),t("a-select-option",{attrs:{value:"MQTT_BROKER"}},[e._v(" MQTT Broker ")])],1)],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"测试连接"}},[t("a-button",{style:{marginRight:"8px"},attrs:{type:"primary"},on:{click:e.handleConnect}},[e._v(" Test Connect ")])],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,expression:"type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'"}]},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"IP"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.ip",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入IP"}]}],expression:"[\n 'resource.ip',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入IP'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入IP"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"PORT"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.port",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入端口"}]}],expression:"[\n 'resource.port',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入端口'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入端口"}})],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"账户"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.username",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入账户"}]}],expression:"[\n 'resource.username',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入账户'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入账户"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"密码"}},[t("a-input-password",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.password",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入密码"}]}],expression:"[\n 'resource.password',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入密码'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入密码"}})],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"数据库"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.databaseName",{rules:[{required:"MYSQL"===e.type||"POSTGRESQL"===e.type||"SQLSERVER"===e.type||"TDENGINE"===e.type,message:"请输入要连接的数据库"}]}],expression:"[\n 'resource.databaseName',\n {\n rules: [\n {\n required:\n type === 'MYSQL' || type === 'POSTGRESQL' || type === 'SQLSERVER' || type === 'TDENGINE'\n ? true\n : false,\n message: '请输入要连接的数据库'\n }\n ]\n }\n ]"}],attrs:{placeholder:"请输入要连接的数据库"}})],1)],1),t("a-col",{attrs:{span:12}})],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"KAFKA"===e.type,expression:"type === 'KAFKA'"}]},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"Kafka服务"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.server",{rules:[{required:"KAFKA"===e.type,message:"请输入Kafka服务"}]}],expression:"[\n 'resource.server',\n {\n rules: [{ required: type === 'KAFKA' ? true : false, message: '请输入Kafka服务' }]\n }\n ]"}],attrs:{placeholder:"请输入Kafka服务"}})],1)],1),t("a-col",{attrs:{span:12}})],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"Kafka账户"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.username",{rules:[{required:!1,message:"请输入Kafka账户"}]}],expression:"[\n 'resource.username',\n {\n rules: [{ required: false, message: '请输入Kafka账户' }]\n }\n ]"}],attrs:{placeholder:"请输入Kafka账户"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"Kafka密码"}},[t("a-input-password",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.password",{rules:[{required:!1,message:"请输入Kafka密码"}]}],expression:"[\n 'resource.password',\n {\n rules: [{ required: false, message: '请输入Kafka密码' }]\n }\n ]"}],attrs:{placeholder:"请输入Kafka密码"}})],1)],1)],1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"MQTT_BROKER"===e.type,expression:"type === 'MQTT_BROKER'"}]},[t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"MQTT服务"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.server",{rules:[{required:"MQTT_BROKER"===e.type,message:"请输入MQTT服务地址"}]}],expression:"[\n 'resource.server',\n {\n rules: [{ required: type === 'MQTT_BROKER' ? true : false, message: '请输入MQTT服务地址' }]\n }\n ]"}],attrs:{placeholder:"[ssl://ip:port] OR [tcp://ip:port]"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"SSL启用"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.sslEnable",{rules:[{required:!1,message:"请输入SSL启用"}]}],expression:"[\n 'resource.sslEnable',\n {\n rules: [{ required: false, message: '请输入SSL启用' }]\n }\n ]"}]},[t("a-select-option",{attrs:{value:"true"}},[e._v(" true ")]),t("a-select-option",{attrs:{value:"false"}},[e._v(" false ")])],1)],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"MQTT账户"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.username",{rules:[{required:!1,message:"请输入Kafka账户"}]}],expression:"[\n 'resource.username',\n {\n rules: [{ required: false, message: '请输入Kafka账户' }]\n }\n ]"}],attrs:{placeholder:"请输入MQTT账户"}})],1)],1),t("a-col",{attrs:{span:12}},[t("a-form-item",{attrs:{label:"MQTT密码"}},[t("a-input-password",{directives:[{name:"decorator",rawName:"v-decorator",value:["resource.password",{rules:[{required:!1,message:"请输入MQTT密码"}]}],expression:"[\n 'resource.password',\n {\n rules: [{ required: false, message: '请输入MQTT密码' }]\n }\n ]"}],attrs:{placeholder:"请输入MQTT密码"}})],1)],1)],1)],1),t("a-row",{attrs:{gutter:16}},[t("a-col",{attrs:{span:24}},[t("a-form-item",{attrs:{label:"备注"}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["description",{rules:[{required:!1,message:"请输入备注"}]}],expression:"[\n 'description',\n {\n rules: [{ required: false, message: '请输入备注' }]\n }\n ]"}],attrs:{rows:4,placeholder:"请输入备注"}})],1)],1)],1)],1),t("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[t("a-button",{style:{marginRight:"8px"},on:{click:e.onClose}},[e._v(" Cancel ")]),t("a-button",{attrs:{type:"primary"},on:{click:e.handleOk}},[e._v(" Submit ")])],1)],1)},i=[],c=(t("a4d3"),t("e01a"),t("d3b7"),{data:function(){return{title:"操作",visible:!1,curResourceID:null,confirmLoading:!1,type:"",form:this.$form.createForm(this),url:{save:"/v1/resources",testConnect:"/v1/resources/testConnect"}}},created:function(){},methods:{save:function(e){this.form.resetFields(),this.visible=!0,e&&(this.curResourceID=e.resourceID,this.setFieldsValueByType(e.type,e))},setFieldsValueByType:function(e,r){var t=this;switch(this.type=e,e){case"MYSQL":case"POSTGRESQL":case"SQLSERVER":case"TDENGINE":this.$nextTick((function(){t.form.setFieldsValue({resourceID:r.resourceID,type:e,description:r.description,resource:{ip:r.resource.ip,port:r.resource.port,databaseName:r.resource.databaseName,password:r.resource.password,username:r.resource.username}})}));break;case"KAFKA":this.$nextTick((function(){t.form.setFieldsValue({resourceID:r.resourceID,type:e,description:r.description,resource:{server:r.resource.server,password:r.resource.password,username:r.resource.username}})}));break;case"MQTT_BROKER":this.$nextTick((function(){t.form.setFieldsValue({resourceID:r.resourceID,type:e,description:r.description,resource:{server:r.resource.server,password:r.resource.password,username:r.resource.username,sslEnable:r.resource.sslEnable?r.resource.sslEnable:"false"}})}));break}},beforeUpload:function(e){return this.form.setFieldsValue("resource.caCertStr",e),!1},typeChange:function(e){this.type=e},onClose:function(){this.visible=!1},handleOk:function(){var e=this,r=this;this.form.validateFields((function(t,a){if(!t){r.confirmLoading=!0;var s=Object.assign({},a);s.resourceID=e.curResourceID;var o=Object(n["c"])(e.url.save,s);o.then((function(e){200===e.code?(r.$message.success(e.message),r.$emit("ok")):r.$message.warning(e.message)})).finally((function(){r.confirmLoading=!1,r.onClose()}))}}))},handleConnect:function(){var e=this,r=this;this.form.validateFields((function(t,a){if(!t){var s=Object.assign({},a);s.resourceID=e.curResourceID,Object(n["c"])(e.url.testConnect,s).then((function(e){200===e.code?r.$message.success("连接成功!"):r.$message.warning("连接失败!")}))}}))},filterOption:function(e,r){return!!r.componentOptions.children[0].text&&r.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},handleCancel:function(){this.onClose()}}}),u=c,l=t("2877"),p=Object(l["a"])(u,o,i,!1,null,"7de5b732",null),d=p.exports,m={name:"Subscribes",components:{ResourceModel:d},data:function(){return{loading:!0,data:[]}},filters:{},created:function(){this.loadData()},methods:{loadData:function(){var e=this;this.loading=!0,setTimeout((function(){return Object(n["b"])("/v1/resources/resources",{}).then((function(r){e.data=r.data,e.data.unshift({}),e.loading=!1}))}),1e3)},getDescription:function(e){return"资源ID:"+e.resourceID+" 资源类型:"+e.type+this.getResourceContentByType(e.resource,e.type)},getResourceContentByType:function(e,r){switch(r){case"MYSQL":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"POSTGRESQL":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"SQLSERVER":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"TDENGINE":return" ip:"+e.ip+" port:"+e.port+" 数据库名称:"+e.databaseName;case"KAFKA":return" Kafka服务:"+e.server;case"MQTT_BROKER":return" MQTT BROKER服务:"+e.server;default:return""}},handleSave:function(e){this.$refs.ResourceModel.save(e)},handleDelete:function(e){var r=this;Object(n["a"])("/v1/resources",{resourceID:e.resourceID}).then((function(e){200===e.code?(r.$message.info(e.message),r.loadData()):r.$message.info(e.message)}))}}},f=m,v=(t("5159"),Object(l["a"])(f,a,s,!1,null,"74e8e50e",null));r["default"]=v.exports}}]); \ No newline at end of file diff --git a/mmq-web/src/main/resources/static/js/fail.391541cf.js b/mmq-web/src/main/resources/static/js/fail.0ebc7f0d.js similarity index 100% rename from mmq-web/src/main/resources/static/js/fail.391541cf.js rename to mmq-web/src/main/resources/static/js/fail.0ebc7f0d.js diff --git a/mmq-web/src/main/resources/static/js/user.00b632de.js b/mmq-web/src/main/resources/static/js/user.6068d9fc.js similarity index 100% rename from mmq-web/src/main/resources/static/js/user.00b632de.js rename to mmq-web/src/main/resources/static/js/user.6068d9fc.js diff --git a/pom.xml b/pom.xml index fc1f548..2acbfe5 100644 --- a/pom.xml +++ b/pom.xml @@ -117,6 +117,7 @@ 2.0.18 1.2 2.6.0-M5 + 1.46 @@ -399,6 +400,12 @@ ${project.version} + + org.bouncycastle + bcprov-jdk16 + ${bouncycastle.version} + + io.jsonwebtoken jjwt-api