2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
webpackJsonp([5],{"5PT5":function(e,t){},"6WHa":function(e,t){},S5bR:function(e,t){},iGx0:function(e,t){},"p+yv":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("mvHQ"),s=a.n(r),i={data:function(){return{addForm:{welcome:"",senderServerAddress:"",senderFrom:"",senderUsername:"",senderPassword:"",recipientTo:"",recipientCC:"",recipientBC:"",subject:"",mainBody:"",copyRight:"",support:"",tel:"",sysVersion:"",isOpenAdvertise:"",defaultAdvertisement:""},addFormRules:{welcome:[{required:!1,message:"请输入系统简介",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],senderServerAddress:[{required:!0,message:"请输入邮箱服务地址",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],senderFrom:[{required:!0,message:"请输入邮箱地址",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],senderUsername:[{required:!0,message:"请输入邮箱用户名",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],senderPassword:[{required:!0,message:"请输入邮箱密码",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],recipientTo:[{required:!0,message:"请输入接收人",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],recipientCC:[{required:!1,message:"请输入抄送人",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],recipientBC:[{required:!1,message:"请输入密送人",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],subject:[{required:!0,message:"请输入主题",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],mainBody:[{required:!0,message:"请输入正文",trigger:"blur"}],copyRight:[{required:!1,message:"请输入版权信息",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],support:[{required:!1,message:"请输入技术支持人员姓名",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],tel:[{required:!1,message:"请输入技术支持人员电话",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],sysVersion:[{required:!1,message:"请输入系统版本信息",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],defaultAdvertisement:[{required:!1,message:"请输入默认公告信息",trigger:"blur"},{min:1,max:100,message:"长度在 0 到 100 个字符",trigger:"blur"}]},switchAdvertiseValue:"",isShowAdvertise:""}},methods:{switchOpenAdvertise:function(){this.isShowAdvertise=!this.isShowAdvertise},saveSystemParam:function(){var e=this;this.$refs.addFormRef.validate(function(t){t&&(e.addForm.updateTime=(new Date).getTime(),e.addForm.updatePerson=JSON.parse(localStorage.getItem("userInfo")).nick,e.addForm.id=1,e.switchAdvertiseValue?e.addForm.isOpenAdvertise=1:e.addForm.isOpenAdvertise=0,e.$api.system.updateSystemParam(s()(e.addForm)).then(function(t){e.$notify({type:"success",message:t.data.msg})}).catch(function(){}))})},getSystemParam:function(){var e=this;this.$api.system.querySysParamById(1).then(function(t){e.addForm=t.data.data,1==e.addForm.isOpenAdvertise?(e.switchAdvertiseValue=!0,e.isShowAdvertise=!0):(e.switchAdvertiseValue=!1,e.isShowAdvertise=!1),localStorage.setItem("systemParamInfo",s()(t.data.data))}).catch(function(){})}},created:function(){this.getSystemParam()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"system-param-box"},[a("el-form",{ref:"addFormRef",staticClass:"demo-form-inline",attrs:{inline:!0,model:e.addForm,rules:e.addFormRules,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{staticClass:"param-area-item",attrs:{label:"系统简介",prop:"welcome"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入系统简介"},model:{value:e.addForm.welcome,callback:function(t){e.$set(e.addForm,"welcome",t)
|
||
|
//# sourceMappingURL=5.09e09cf71cdb68375bbe.js.map
|