CRMEB/crmeb/public/admin/system_static/js/chunk-9b98c46a.581af932.js
2023-04-06 18:14:33 +08:00

1 line
2.4 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-9b98c46a"],{"3fbc":function(e,t,n){"use strict";var r=n("943f1");n.n(r).a},"943f1":function(e,t,n){},a8d2:function(e,t,n){"use strict";n.r(t);var r=n("c964"),a=(n("96cf"),n("d9e2"),n("ac1f"),n("00b4"),n("8593")),s=n("c276"),i={name:"file_login",data:function(){return{formInline:{password:""},ruleInline:{password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},created:function(){var e=this;document.onkeydown=function(t){13===window.event.keyCode&&e.handleSubmit("formInline")}},methods:{handleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(a.O)(t.formInline).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success("登录成功!"),r=t.getExpiresTime(n.data.expires_time),Object(s.q)("file_token",n.data.token,r),t.$router.push({path:t.$routeProStr+"/system/maintain/system_file/opendir"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}))},getExpiresTime:function(e){var t=Math.round(new Date/1e3);return parseFloat(parseFloat(parseFloat((e-t)/60)/60)/24)}}};n("3fbc"),n=n("2877"),n=Object(n.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",[t("Row",{attrs:{type:"flex"}},[t("Col",{attrs:{span:"24"}},[t("div",{staticClass:"index_from page-account-container"},[t("div",{staticClass:"page-account-top"},[t("span",{staticClass:"page-account-top-tit"},[e._v("文件管理登录")])]),t("Form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline},nativeOn:{submit:function(e){e.preventDefault()}}},[t("FormItem",{staticClass:"maxInpt",attrs:{prop:"sms_token"}},[t("Input",{attrs:{type:"password",size:"large",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}}),t("div",{staticClass:"trip"},[e._v("提示:密码配置在 /config/filesystem.php 文件中修改 'password' => '密码'")])],1),t("FormItem",{staticClass:"maxInpt"},[t("Button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"large"},on:{click:function(t){return e.handleSubmit("formInline")}}},[e._v("登录")])],1)],1)],1)])],1)],1)}),[],!1,null,"0168182a",null);t.default=n.exports}}]);