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.
wkcrm/static/js/chunk-06f2.7c199289.js

1 line
6.8 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-06f2"],{"2f65":function(t,e,n){},"7mY3":function(t,e,n){"use strict";var a=n("2f65");n.n(a).a},"9GgJ":function(t,e,n){"use strict";var a={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)}}},i=(n("7mY3"),n("KHd+")),s=Object(i.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("flexbox",{staticClass:"xr-header"},[t.iconClass?n("div",{staticClass:"xr-header__icon",style:{backgroundColor:t.iconColor}},[n("i",{class:t.iconClass})]):t._e(),t._v(" "),n("div",{staticClass:"xr-header__label"},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2),t._v(" "),t.showSearch?n("el-input",t._b({staticClass:"xr-header__search",class:{"is-text":"text"===t.searchIconType},style:{"margin-top":t.ftTop},attrs:{placeholder:t.placeholder},on:{input:t.inputChange},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchClick(e):null}},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},"el-input",t.inputAttr,!1),["text"===t.searchIconType?n("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"},[t._v("搜索")]):n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"})],1):t._e(),t._v(" "),n("div",{staticClass:"xr-header__ft",style:{top:t.ftTop}},[t._t("ft")],2)],1)},[],!1,null,"acb6d756",null);s.options.__file="index.vue";e.a=s.exports},KWCB:function(t,e,n){"use strict";var a=n("n9M2");n.n(a).a},ZSWM:function(t,e,n){"use strict";var a=n("pzRz");n.n(a).a},bOnO:function(t,e,n){"use strict";n.r(e);var a=n("t3Un");var i=n("jzeO"),s=n("9GgJ"),l={name:"InitSet",components:{Reminder:i.a,XrHeader:s.a},data:function(){return{loading:!1,value:[],optionsObj:{},options:[{value:"all",label:"全部应用",index:1},{value:"crm",label:"客户管理",index:2},{value:"taskExamine",label:"任务/审批",index:3},{value:"log",label:"日志",index:4},{value:"project",label:"项目管理",index:5},{value:"calendar",label:"日历",index:6}]}},computed:{},watch:{value:function(t,e){t.includes("all")&&!e.includes("all")?this.value=this.options.map(function(t){return t.value}):!t.includes("all")&&e.includes("all")&&e.length===this.options.length?this.value=[]:t.includes("all")||t.length!==this.options.length-1?t.includes("all")&&t.length===this.options.length-1&&(this.value=t.filter(function(t){return"all"!==t})):this.value=this.options.map(function(t){return t.value})}},created:function(){var t=this;this.options.forEach(function(e){t.optionsObj[e.value]=e.label})},methods:{saveClick:function(){var t=this;this.$prompt("初始化数据需验证登录密码","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputPlaceholder:"请输入密码"}).then(function(e){var n,i=e.value;t.loading=!0,(n={password:i},Object(a.a)({url:"admin/initialize/verification",method:"post",headers:{"Content-Type":"application/json;charset=UTF-8"},data:n})).then(function(e){t.loading=!1;var n=t.value.filter(function(t){return"all"!=t}),i=n.map(function(e){return"【"+t.optionsObj[e]+"】"}).join("、");t.$confirm("确定初始化应用"+i+"吗?<br/>数据将永久删除,不可恢复!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",dangerouslyUseHTMLString:!0,type:"warning"}).then(function(){var e;t.loading=!0,(e={type:n},Object(a.a)({url:"admin/initialize/update",