work/js/chunk-1f847b7e.7b8f4315.js
2024-01-09 17:50:02 +08:00

1 line
3.3 KiB
PHP

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f847b7e","chunk-bbc697c0"],{"10b1":function(t,a,s){},"27f0":function(t,a,s){"use strict";s.r(a);var n=function(){var t=this,a=t._self._c;return a("div",{staticClass:"userLayout"},[a("div",{staticClass:"container"},[a("div",{staticClass:"top"},[a("div",{staticClass:"header"},[a("a-badge",[a("a",{attrs:{href:"/"}},[a("img",{staticClass:"logo",attrs:{src:s("bae8"),alt:"logo"}}),a("span",{staticClass:"title"},[t._v("工单系统")])])])],1),a("div",{staticClass:"desc"},[t._v(t._s(t.desc))])]),a("router-view"),t._t("default"),t._m(0)],2)])},e=[function(){var t=this,a=t._self._c;return a("div",{staticClass:"footer"},[a("div",{staticClass:"copyright"},[t._v("\n Copyright © 2019 Pear Project\n ")])])}],i={name:"UserLayout",props:{desc:{type:[String],default:function(){return"欢迎使用Pear Project项目管理系统"}}}},l=i,o=(s("f91f"),s("2877")),r=Object(o["a"])(l,n,e,!1,null,null,null);a["default"]=r.exports},f91f:function(t,a,s){"use strict";s("10b1")},fef1:function(t,a,s){"use strict";s.r(a);var n=function(){var t=this,a=t._self._c;return a("div",{staticClass:"install",staticStyle:{height:"100%"}},[a("user-layout",{attrs:{desc:"正在安装Pear Project项目管理系统"}},[a("div",{staticClass:"main"},[a("a-alert",{attrs:{message:"请确认已正确修改服务端目录下的.env配置文件"}}),a("a-form",{staticClass:"user-layout-login",attrs:{layout:"horizontal",form:t.form},on:{submit:function(a){return a.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[a("a-form-item",{attrs:{label:"清除数据",labelCol:{span:6},wrapperCol:{span:18}}},[a("a-checkbox",{directives:[{name:"decorator",rawName:"v-decorator",value:["initData",{initialValue:!1,valuePropName:"checked"}],expression:"[\n 'initData',\n {initialValue: false, valuePropName: 'checked'}\n ]"}]},[t._v("\n 勾选后将清除预置数据\n ")])],1),a("a-form-item",{staticStyle:{"margin-top":"24px"},attrs:{labelCol:{span:6},wrapperCol:{span:18,offset:3}}},[a("a-button",{staticClass:"middle-btn",attrs:{size:"large",type:"primary",htmlType:"submit",loading:t.loading,disabled:t.loading,block:""}},[t.loading?a("span",[t._v("正在安装,请稍后...")]):a("span",[t._v("立即安装")])])],1)],1)],1)])],1)},e=[],i=s("82f8"),l=s("2f14"),o=s("27f0"),r={components:{UserLayout:o["default"]},data:function(){return{loading:!1,form:this.$form.createForm(this),installInfo:{mysqlHost:"",mysqlDatabase:"",mysqlUsername:"",mysqlPassword:"",mysqlPrefix:"",mysqlHostport:"",initData:!1}}},created:function(){this.checkInstall()},mounted:function(){var t=this;setTimeout((function(){t.form=t.$form.createForm(t)}),500)},methods:{handleSubmit:function(){var t=this;this.form.validateFields((function(a,s){a||(t.installInfo=s,t.install())}))},install:function(){var t=this;this.loading=!0,this.installInfo.initData=this.installInfo.initData?1:0,Object(i["c"])(this.installInfo).then((function(a){if(t.loading=!1,!Object(l["a"])(a))return!1;t.$router.push({name:"login"})})).catch((function(){t.loading=!1}))},checkInstall:function(){var t=this;Object(i["a"])().then((function(a){Object(l["a"])(a)&&t.$router.push({name:"login"})}))}}},c=r,u=s("2877"),f=Object(u["a"])(c,n,e,!1,null,null,null);a["default"]=f.exports}}]);