CRMEB/crmeb/public/admin/js/chunk-3b25e9ae.f90cc96b.js
2023-02-14 21:14:49 +08:00

1 line
2.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3b25e9ae"],{"1d63":function(e,t,n){},a8d2:function(e,t,n){"use strict";n.r(t);var a=n("c964"),s=(n("96cf"),n("d9e2"),n("ac1f"),n("00b4"),n("8593")),r=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(s.O)(t.formInline).then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success("登录成功!"),a=t.getExpiresTime(n.data.expires_time),Object(r.q)("file_token",n.data.token,a),t.$router.push({path:"/admin/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("ae07"),n=n("2877"),n=Object(n.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",[t("div",{staticClass:"i-layout-page-header"},[t("div",{staticClass:"i-layout-page-header"},[t("span",{staticClass:"ivu-page-header-title"},[e._v(e._s(e.$route.meta.title))])])]),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,"bebb04c4",null);t.default=n.exports},ae07:function(e,t,n){"use strict";var a=n("1d63");n.n(a).a}}]);