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.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-61659967.ee322857.js

1 lines
14 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-61659967"],{"2c3e":function(t,e,a){"use strict";var i=a("83ab"),r=a("9f7f").MISSED_STICKY,n=a("c6b6"),s=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;i&&r&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===n(this))return!!o(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"4d63":function(t,e,a){"use strict";var i=a("83ab"),r=a("da84"),n=a("e330"),s=a("94ca"),o=a("7156"),l=a("9112"),c=a("241c").f,u=a("3a9b"),d=a("44e7"),m=a("577e"),f=a("90d8"),p=a("9f7f"),g=a("aeb0"),h=a("cb2d"),v=a("d039"),b=a("1a2d"),w=a("69f3").enforce,_=a("2626"),x=a("b622"),y=a("fce3"),F=a("107c"),k=x("match"),$=r.RegExp,S=$.prototype,O=r.SyntaxError,j=n(S.exec),E=n("".charAt),C=n("".replace),L=n("".indexOf),R=n("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,M=/a/g,P=(a=new $(I)!==I,p.MISSED_STICKY),T=p.UNSUPPORTED_Y;x=i&&(!a||P||y||F||v((function(){return M[k]=!1,$(I)!==I||$(M)===M||"/a/i"!==String($(I,"i"))})));if(s("RegExp",x)){for(var A=function(t,e){var a,i,r=u(S,this),n=d(t),s=void 0===e,c=[],p=t;if(!r&&n&&s&&t.constructor===A)return t;if((n||u(S,t))&&(t=t.source,s)&&(e=f(p)),t=void 0===t?"":m(t),e=void 0===e?"":m(e),p=t,n=e=y&&"dotAll"in I&&(a=!!e&&-1<L(e,"s"))?C(e,/s/g,""):e,P&&"sticky"in I&&(i=!!e&&-1<L(e,"y"))&&T&&(e=C(e,/y/g,"")),F&&(t=(s=function(t){for(var e,a=t.length,i=0,r="",n=[],s={},o=!1,l=!1,c=0,u="";i<=a;i++){if("\\"===(e=E(t,i)))e+=E(t,++i);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:j(D,R(t,i+1))&&(i+=2,l=!0),r+=e,c++;continue;case">"===e&&l:if(""===u||b(s,u))throw new O("Invalid capture group name");s[u]=!0,l=!(n[n.length]=[u,c]),u="";continue}l?u+=e:r+=e}return[r,n]}(t))[0],c=s[1]),s=o($(t,e),r?this:S,A),(a||i||c.length)&&(e=w(s),a&&(e.dotAll=!0,e.raw=A(function(t){for(var e,a=t.length,i=0,r="",n=!1;i<=a;i++)"\\"===(e=E(t,i))?r+=e+E(t,++i):n||"."!==e?("["===e?n=!0:"]"===e&&(n=!1),r+=e):r+="[\\s\\S]";return r}(t),n)),i&&(e.sticky=!0),c.length)&&(e.groups=c),t!==p)try{l(s,"source",""===p?"(?:)":p)}catch(t){}return s},N=c($),q=0;N.length>q;)g(A,$,N[q++]);(S.constructor=A).prototype=S,h(r,"RegExp",A,{constructor:!0})}_("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return c}));var i=a("ade3"),r=a("5530");function n(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,i,r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in r)new RegExp("(".concat(a,")")).test(e)&&(i=r[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?i:("00"+i).substr(i.length)));return e}a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("498a"),a("d3b7"),a("13d5"),a("b64b"),a("99af");var s={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}function l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(r.a)({required:!0,message:t,type:"string"},e)}function c(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}o(l,"请输入%s"),o(c,"%s格式不正确");var u=Object.keys(s).reduce((function(t,e){return t[e]=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s="range"===e?{min:t[0],max:t[1]}:Object(i.a)({},e,t);return Object(r.a)(Object(r.a)({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},s),n)},o(t[e],s[e]),t}),{})},"7a0c":function(t,e,a){"use strict";a.r(e);var i=a("c7eb"),r=a("1da1"),n=a("5530"),s=(a("3c65"),a("14d9"),a("a434"),a("2f62")),o=a("1336"),l=(a("b0c0"),{name:"relation",data:function(){return{modals:!1,grid:{xl:12,lg:12,md:12,sm:24,xs:24}}},methods:{handleReset:function(){this.modals=!1},userSearchs:function(){this.getList()},getList:function(){var t=this;this.loading=!0,taskListApi(this.levelId,this.levelFrom).then(function(){var e=Object(r.a)(Object(i.a)().mark((function e(a){var r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.levelLists=r.list,t.total=a.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},pageChange:function(t){this.levelFrom.page=t,this.getList()}}}),c=a("2877"),u=(l=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{visible:t.modals,title:"选择商品","close-on-click-modal":!1,width:"1000px"},on:{"update:visible":function(e){t.modals=e},closed:t.handleReset}},[e("el-form",{ref:"levelFrom",attrs:{model:t.levelFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-row",{attrs:{gutter:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"商品名称:",prop:"status2","label-for":"status2"}},[e("el-input",{staticStyle:{width:"100%"},attrs:{search:"","enter-button":"",placeholder:"请输入商品名称"},on:{"on-search":t.userSearchs},model:{value:t.levelFrom.name,callback:function(e){t.$set(t.levelFrom,"name",e)},expression:"levelFrom.name"}})],1)],1)],1)],1),e("el-divider",{attrs:{direction:"vertical",dashed:""}}),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{data:t.levelLists,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"is_shows",fn:function(a){var i=a.row;return a.index,[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:i.is_show,size:"large"},on:{change:function(e){return t.onchangeIsShow(i)}},model:{value:i.is_show,callback:function(e){t.$set(i,"is_show",e)},expression:"row.is_show"}})]}},{key:"is_musts",fn:function(a){var i=a.row;return a.index,[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:i.is_must,size:"large","active-text":"全部完成","inactive-text":"达成其一"},on:{change:function(e){return t.onchangeIsMust(i)}},model:{value:i.is_must,callback:function(e){t.$set(i,"is_must",e)},expression:"row.is_must"}})]}},{key:"action",fn:function(a){var i=a.row;return a.index,[e("a",{on:{click:function(e){return t.edit(i)}}},[t._v("编辑 | ")]),e("a",{on:{click:function(e){return t.del(i,"删除任务")}}},[t._v(" 删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.levelFrom.page,limit:t.levelFrom.limit},on:{"update:page":function(e){return t.$set(t.levelFrom,"page",e)},"update:limit":function(e){return t.$set(t.levelFrom,"limit",e)},pagination:t.getList}}):t._e()],1),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData,titleType:t.titleType},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"17fe4409",null).exports,a("61f7"));l={name:"cms_article",data:function(){return{modalTitleSs:"",loading:!1,artFrom:{pid:0,title:"",page:1,limit:20},total:0,cmsList:[],treeData:[],list:[],cid:0,cmsId:0,formValidate:{type:1},rows:{},modal_loading:!1,modals:!1,props:{value:"id",label:"title",emitPath:!1}}},components:{relationList:l,goodsList:a("c4ad").default},computed:Object(n.a)(Object(n.a)({},Object(s.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(u.a)(t,"yyyy-MM-dd hh:mm")}},created:function(){},activated:function(){this.artFrom.pid=this.$route.query.id||0,this.getList(),this.getClass()},methods:{getProductId:function(t){var e=this,a={product_id:t.id};Object(o.i)(a,this.rows.id).then(function(){var a=Object(r.a)(Object(i.a)().mark((function a(r){return Object(i.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.$message.success(r.msg),t.id=0,e.modal_loading=!1,e.modals=!1,setTimeout((function(){e.getList()}),500);case 5:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){e.modal_loading=!1,e.loading=!1,e.$message.error(t.msg)}))},cancel:function(){this.modals=!1},getList:function(){var t=this;this.loading=!0,Object(o.f)(this.artFrom).then(function(){var e=Object(r.a)(Object(i.a)().mark((function e(a){var r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.cmsList=r.list,t.total=r.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},getClass:function(){var t=this;Object(o.c)(this.formValidate).then(function(){var e=Object(r.a)(Object(i.a)().mark((function e(a){var r;return Object(i.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.treeData=r,r={id:0,title:"全部"},t.treeData.unshift(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},handleCheckChange:function(t){this.artFrom.pid=t||0,this.artFrom.page=1,this.getList()},edit:function(t){this.$router.push({path:this.$routeProStr+"/cms/article/add_article/"+t.id})},artRelation:function(t,e,a){var i=this;0===(this.rows=t).product_id?this.modals=!0:(e={title:e,num:a,url:"/cms/cms/unrelation/".concat(t.id),method:"PUT",ids:""},this.$modalSure(e).then((function(t){i.$message.success(t.msg),i.getList()})).catch((function(t){i.$message.error(t.msg)})))},del:function(t,e,a){var i=this;e={title:e,num:a,url:"cms/cms/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){i.$message.success(t.msg),i.cmsList.splice(a,1)})).catch((function(t){i.$message.error(t.msg)}))},userSearchs:function(){this.artFrom.page=1,this.getList()}}},a("8de31"),n=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"artFrom",attrs:{model:t.artFrom,"label-width":t.labelWidth,"label-position":"right",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"文章分类:","label-for":"pid"}},[e("el-cascader",{staticClass:"treeSel",staticStyle:{width:"250px"},attrs:{placeholder:"请选择",options:t.treeData,props:t.props},on:{change:t.handleCheckChange},model:{value:t.artFrom.pid,callback:function(e){t.$set(t.artFrom,"pid",e)},expression:"artFrom.pid"}})],1),e("el-form-item",{attrs:{label:"文章搜索:","label-for":"title"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入"},model:{value:t.artFrom.title,callback:function(e){t.$set(t.artFrom,"title",e)},expression:"artFrom.title"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("router-link",{directives:[{name:"auth",rawName:"v-auth",value:["cms-article-creat"],expression:"['cms-article-creat']"}],attrs:{to:t.$routeProStr+"/cms/article/add_article"}},[e("el-button",{staticClass:"bnt",attrs:{type:"primary"}},[t._v("添加文章")])],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.cmsList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.id))])]}}])}),e("el-table-column",{attrs:{label:"文章图片","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[0!==a.row.image_input.length?e("div",{directives:[{name:"viewer",rawName:"v-viewer"}]},t._l(a.row.image_input,(function(t,a){return e("div",{key:a,staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}]})])})),0):t._e()]}}])}),e("el-table-column",{attrs:{label:"文章名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-tooltip",{attrs:{placement:"top","open-delay":600}},[e("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(" [ "+a.row.catename+" ] "+a.row.title))]),e("span",{staticClass:"line2"},[t._v(t._s(a.row.title))])])]}}])}),e("el-table-column",{attrs:{label:"浏览量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.visit))])]}}])}),e("el-table-column",{attrs:{label:"时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(t._f("formatDate")(a.row.add_time)))])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("a",{on:{click:function(e){return t.edit(a.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(a.row,"删除文章",a.$index)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.artFrom.page,limit:t.artFrom.limit},on:{"update:page":function(e){return t.$set(t.artFrom,"page",e)},"update:limit":function(e){return t.$set(t.artFrom,"limit",e)},pagination:t.getList}}):t._e()],1)],1),e("el-dialog",{staticClass:"paymentFooter",attrs:{visible:t.modals,title:"商品列表",width:"1000px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[t.modals?e("goods-list",{ref:"goodslist",on:{getProductId:t.getProductId}}):t._e()],1)],1)}),[],!1,null,"4f5e2662",null);e.default=n.exports},"8de31":function(t,e,a){"use strict";a("9678")},9678:function(t,e,a){},c607:function(t,e,a){"use strict";var i=a("83ab"),r=a("fce3"),n=a("c6b6"),s=a("edd0"),o=a("69f3").get,l=RegExp.prototype,c=TypeError;i&&r&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===n(this))return!!o(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})}}]);