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-f5a6.e9472827.js

1 line
9.1 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-f5a6"],{"2f65":function(t,e,a){},"7mY3":function(t,e,a){"use strict";var n=a("2f65");a.n(n).a},"9GgJ":function(t,e,a){"use strict";var n={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=(a("7mY3"),a("KHd+")),l=Object(i.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("flexbox",{staticClass:"xr-header"},[t.iconClass?a("div",{staticClass:"xr-header__icon",style:{backgroundColor:t.iconColor}},[a("i",{class:t.iconClass})]):t._e(),t._v(" "),a("div",{staticClass:"xr-header__label"},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2),t._v(" "),t.showSearch?a("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?a("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"},[t._v("搜索")]):a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(e){return t.searchClick(e)}},slot:"append"})],1):t._e(),t._v(" "),a("div",{staticClass:"xr-header__ft",style:{top:t.ftTop}},[t._t("ft")],2)],1)},[],!1,null,"acb6d756",null);l.options.__file="index.vue";e.a=l.exports},Eprd:function(t,e,a){},P4Wf:function(t,e,a){"use strict";var n=a("Eprd");a.n(n).a},"Q+0J":function(t,e,a){"use strict";a.r(e);var n=a("QbLZ"),i=a.n(n),l=a("9GgJ"),s=a("6iAj"),o={name:"TemplateTypeAdd",components:{},mixins:[],props:{detail:Object,visible:{type:Boolean,required:!0,default:!1}},data:function(){return{loading:!0,dataForm:{},options:[{label:"商机",value:5},{label:"合同",value:6},{label:"回款",value:7}]}},computed:{isEdit:function(){return!!this.detail},title:function(){return this.isEdit?"编辑打印模板":"新建打印模板"},confirmText:function(){return this.isEdit?"保存":"下一步"}},watch:{visible:{handler:function(t){t&&(this.dataForm={name:"",type:5},this.isEdit&&(this.dataForm.name=this.detail.name))},immediate:!0}},mounted:function(){},methods:{handleCancel:function(){this.$emit("update:visible",!1)},handleConfirm:function(){var t=this;this.dataForm.name?this.isEdit?(this.loading=!0,(this.isEdit?s.I:s.x)(this.isEdit?{name:this.dataForm.name,id:this.detail.id}:this.dataForm).then(function(e){t.$message({type:"success",message:"编辑成功"}),t.loading=!1,t.handleCancel(),t.$emit("save")}).catch(function(){t.loading=!1})):this.$emit("next",this.dataForm):this.$message({type:"error",message:"请输入模板名称"})}}},r=(a("gFY9"),a("KHd+")),c=Object(r.a)(o,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{visible:t.visible,"append-to-body":!0,"close-on-click-modal":!1,title:t.title,width:"400px"},on:{close:t.handleCancel}},[a("el-form",{ref:"form",attrs:{"label-width":"80px"}},[a("el-form-item",{attrs:{label:"模板名称"}},[a("el-input",{model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name",e)},expression:"dataForm.name"}})],1),t._v(" "),t.isEdit?t._e():a("el-form-item",{attrs:{label:"关联对象"}},[a("el-select",{staticStyle:{width:"100%"},model:{value:t.d