You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
20 KiB
1 line
20 KiB
4 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-129a"],{"0hoO":function(e,t,a){"use strict";var s=a("UunJ");a.n(s).a},"2f65":function(e,t,a){},"7mY3":function(e,t,a){"use strict";var s=a("2f65");a.n(s).a},"9GgJ":function(e,t,a){"use strict";var s={name:"XrHeader",components:{},props:{iconClass:[String,Array],iconColor:String,label:String,showSearch:{type:Boolean,default:!1},searchIconType:{type:String,default:"text"},placeholder:{type:String,default:"请输入内容"},ftTop:{type:String,default:"15px"},content:[String,Number],inputAttr:{type:Object,default:function(){}}},data:function(){return{search:""}},computed:{},watch:{content:{handler:function(){this.search!=this.content&&(this.search=this.content)},immediate:!0}},mounted:function(){},beforeDestroy:function(){},methods:{inputChange:function(){this.$emit("update:content",this.search)},searchClick:function(){this.$emit("search",this.search)}}},n=(a("7mY3"),a("KHd+")),i=Object(n.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("flexbox",{staticClass:"xr-header"},[e.iconClass?a("div",{staticClass:"xr-header__icon",style:{backgroundColor:e.iconColor}},[a("i",{class:e.iconClass})]):e._e(),e._v(" "),a("div",{staticClass:"xr-header__label"},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2),e._v(" "),e.showSearch?a("el-input",e._b({staticClass:"xr-header__search",class:{"is-text":"text"===e.searchIconType},style:{"margin-top":e.ftTop},attrs:{placeholder:e.placeholder},on:{input:e.inputChange},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchClick(t):null}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},"el-input",e.inputAttr,!1),["text"===e.searchIconType?a("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"},[e._v("搜索")]):a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"})],1):e._e(),e._v(" "),a("div",{staticClass:"xr-header__ft",style:{top:e.ftTop}},[e._t("ft")],2)],1)},[],!1,null,"acb6d756",null);i.options.__file="index.vue";t.a=i.exports},"9Wjg":function(e,t,a){"use strict";var s=a("gZgZ");a.n(s).a},CEXg:function(e,t,a){"use strict";a.r(t);var s=a("t3Un");var n={name:"LogWelcome",components:{Reminder:a("jzeO").a},data:function(){return{loading:!1,list:[]}},created:function(){this.getDetail()},methods:{getDetail:function(){var e,t=this;this.loading=!0,Object(s.a)({url:"admin/dailyRule/welcome",method:"post",data:e}).then(function(e){t.loading=!1,t.list=e.data||[]}).catch(function(){t.loading=!1})},addItem:function(){this.list.push("")},deleteItem:function(e,t){this.list.splice(t,1)},save:function(){for(var e,t=this,a=[],n=0;n<this.list.length;n++){var i=this.list[n];i&&a.push(i)}0!=a.length?(this.loading=!0,(e={welcome:a},Object(s.a)({url:"admin/dailyRule/setWelcome",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:e})).then(function(e){t.loading=!1,t.getDetail(),t.$message.success("操作成功")}).catch(function(){t.loading=!1})):this.$message.error("请输入欢迎语")}}},i=(a("9Wjg"),a("KHd+")),o=Object(i.a)(n,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"content-title"},[a("span",[e._v("日志欢迎语")]),e._v(" "),a("el-button",{staticClass:"rt",attrs:{type:"primary",size:"medium"},on:{click:e.save}},[e._v("保存")])],1),e._v(" "),a("div",{staticClass:"content-body"},[a("reminder",{staticClass:"reminder",attrs:{content:"以下内容为系统默认欢迎语,在日志随机展示,可自定义更改欢迎语。"}}),e._v(" "),e._l(e.list,function(t,s){return a("div",{key:s,staticClass:"input-item"},[a("el-input",{attrs:{maxlength:100},model:{value:e.list[s],callback:function(t){e.$set(e.list,s,t)},expression:"list[index]"}}),e._v(" "),a("i",{staticClass:"el-icon-remove",on:{click:function(a){e.deleteItem(t,s)}}})],1)}),e._v(" "),a("el-bu
|