CRMEB/crmeb/public/admin/system_static/js/chunk-0b16490a.f6396c17.js
2024-07-15 15:27:07 +08:00

1 line
18 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0b16490a"],{"1adf":function(t,e,n){},"272f":function(t,e,n){"use strict";n("76c5")},"31b4":function(t,e,n){"use strict";n("a630"),n("3ca3");var r=n("5530"),a=(n("d3b7"),n("159b"),n("30ba")),i=(a=n.n(a),n("6b6c")),o=n("2f62");a={name:"edit",components:{formCreate:a.a.$form()},computed:Object(r.a)({},Object(o.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=""}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},formSubmit:function(){this.fapi.submit()},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(i.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$message.error(t.msg)})))},cancel:function(){this.type=0}}},n("c0e1"),r=n("2877"),o=Object(r.a)(a,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"a5730e36",null);e.a=o.exports},"76c5":function(t,e,n){},8593:function(t,e,n){"use strict";n.d(e,"i",(function(){return a})),n.d(e,"g",(function(){return i})),n.d(e,"h",(function(){return o})),n.d(e,"ib",(function(){return u})),n.d(e,"m",(function(){return c})),n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return d})),n.d(e,"j",(function(){return l})),n.d(e,"Q",(function(){return f})),n.d(e,"I",(function(){return m})),n.d(e,"P",(function(){return g})),n.d(e,"N",(function(){return b})),n.d(e,"K",(function(){return h})),n.d(e,"L",(function(){return p})),n.d(e,"M",(function(){return v})),n.d(e,"O",(function(){return O})),n.d(e,"eb",(function(){return j})),n.d(e,"kb",(function(){return y})),n.d(e,"x",(function(){return _})),n.d(e,"c",(function(){return k})),n.d(e,"e",(function(){return w})),n.d(e,"b",(function(){return $})),n.d(e,"d",(function(){return T})),n.d(e,"f",(function(){return x})),n.d(e,"B",(function(){return L})),n.d(e,"z",(function(){return S})),n.d(e,"A",(function(){return V})),n.d(e,"V",(function(){return E})),n.d(e,"U",(function(){return F})),n.d(e,"W",(function(){return D})),n.d(e,"db",(function(){return G})),n.d(e,"o",(function(){return C})),n.d(e,"n",(function(){return P})),n.d(e,"Z",(function(){return N})),n.d(e,"q",(function(){return U})),n.d(e,"y",(function(){return A})),n.d(e,"ab",(function(){return I})),n.d(e,"a",(function(){return H})),n.d(e,"F",(function(){return B})),n.d(e,"hb",(function(){return M})),n.d(e,"J",(function(){return z})),n.d(e,"wb",(function(){return W})),n.d(e,"vb",(function(){return J})),n.d(e,"R",(function(){return q})),n.d(e,"T",(function(){return K})),n.d(e,"G",(function(){return Q})),n.d(e,"X",(function(){return R})),n.d(e,"Y",(function(){return X})),n.d(e,"C",(function(){return Y})),n.d(e,"fb",(function(){return Z})),n.d(e,"D",(function(){return tt})),n.d(e,"gb",(function(){return et})),n.d(e,"p",(function(){return nt})),n.d(e,"H",(function(){return rt})),n.d(e,"E",(function(){return at})),n.d(e,"bb",(function(){return it})),n.d(e,"qb",(function(){return ot})),n.d(e,"sb",(function(){return ut})),n.d(e,"pb",(function(){return ct})),n.d(e,"tb",(function(){return st})),n.d(e,"rb",(function(){return dt})),n.d(e,"r",(function(){return lt})),n.d(e,"ub",(function(){return ft})),n.d(e,"lb",(function(){return mt})),n.d(e,"jb",(function(){return gt})),n.d(e,"mb",(function(){return bt})),n.d(e,"cb",(function(){return ht})),n.d(e,"ob",(function(){return pt})),n.d(e,"S",(function(){return vt})),n.d(e,"nb",(function(){return Ot})),n.d(e,"s",(function(){return jt})),n.d(e,"v",(function(){return yt})),n.d(e,"t",(function(){return _t})),n.d(e,"u",(function(){return kt})),n.d(e,"w",(function(){return wt})),n("99af");var r=n("6b6c");function a(t){return Object(r.a)({url:"setting/config_class",method:"get",params:t})}function i(t){return Object(r.a)({url:"setting/config_class/create",method:"get"})}function o(t){return Object(r.a)({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function u(t){return Object(r.a)({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function c(t){return Object(r.a)({url:"setting/config",method:"get",params:t})}function s(t){return Object(r.a)({url:"setting/config/create",method:"get",params:t})}function d(t){return Object(r.a)({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function l(t,e){return Object(r.a)({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function f(t){return Object(r.a)({url:"setting/group",method:"get",params:t})}function m(t){return Object(r.a)({url:t.url,method:t.method,data:t.datas})}function g(t){return Object(r.a)({url:"setting/group/".concat(t),method:"get"})}function b(t,e){return Object(r.a)({url:e,method:"get",params:t})}function h(t,e){return Object(r.a)({url:e,method:"get",params:t})}function p(t,e){return Object(r.a)({url:e,method:"get",params:t})}function v(t,e){return Object(r.a)({url:e,method:"get",params:t})}function O(t){return Object(r.a)({url:t,method:"PUT"})}function j(t){return Object(r.a)({url:"system/log/search_admin",method:"GET"})}function y(t){return Object(r.a)({url:"system/log",method:"GET",params:t})}function _(){return Object(r.a)({url:"system/file",method:"GET"})}function k(){return Object(r.a)({url:"system/backup",method:"GET"})}function w(t){return Object(r.a)({url:"system/backup/read",method:"GET",params:t})}function $(t){return Object(r.a)({url:"system/backup/backup",method:"put",data:t})}function T(t){return Object(r.a)({url:"system/backup/optimize",method:"put",data:t})}function x(t){return Object(r.a)({url:"system/backup/repair",method:"put",data:t})}function L(t){return Object(r.a)({url:"system/backup/file_list",method:"GET"})}function S(t){return Object(r.a)({url:"backup/download",method:"get",params:t})}function V(t){return Object(r.a)({url:"system/backup/import",method:"POST",data:t})}function E(t){return Object(r.a)({url:"system/file/login",method:"POST",data:t})}function F(t){return Object(r.a)({url:"system/file/opendir",method:"GET",params:t,file_edit:!0})}function D(t){return Object(r.a)({url:"system/file/openfile",method:"GET",params:t,file_edit:!0})}function G(t){return Object(r.a)({url:"system/file/savefile?fileToken=".concat(t.fileToken),method:"post",data:t,file_edit:!0})}function C(t){return Object(r.a)({url:"system/file/createFolder",method:"GET",params:t,file_edit:!0})}function P(t){return Object(r.a)({url:"system/file/createFile",method:"GET",params:t,file_edit:!0})}function N(t){return Object(r.a)({url:"system/file/rename",method:"GET",params:t,file_edit:!0})}function U(t){return Object(r.a)({url:"system/file/delFolder",method:"GET",params:t,file_edit:!0})}function A(t){return Object(r.a)({url:"system/file/mark",method:"get",params:t,file_edit:!0})}function I(t){return Object(r.a)({url:"system/replace_site_url",method:"post",data:t})}function H(){return Object(r.a)({url:"auth",method:"get"})}function B(){return Object(r.a)({url:"setting/get_kf_adv",method:"get"})}function M(t){return Object(r.a)({url:"setting/set_kf_adv",method:"post",data:t})}function z(){return Object(r.a)({url:"setting/group_all",method:"get"})}function W(t){return Object(r.a)({url:"system/version_list",method:"get",params:t})}function J(t){return Object(r.a)({url:"system/version_crate/".concat(t),method:"get"})}function q(t){return Object(r.a)({url:"setting/group_data/save_all",method:"POST",data:t})}function K(t){return Object(r.a)({url:"diy/open_adv/add",method:"POST",data:t})}function Q(){return Object(r.a)({url:"diy/open_adv/info",method:"get"})}function R(t){return Object(r.a)({url:"setting/config/get_system/".concat(t),method:"get"})}function X(t){return Object(r.a)({url:"setting/config/save_basics",method:"POST",data:t})}function Y(){return Object(r.a)({url:"setting/get_user_agreement",method:"get"})}function Z(t){return Object(r.a)({url:"setting/set_user_agreement",method:"post",data:t})}function tt(t){return Object(r.a)({url:"setting/get_agreement/".concat(t),method:"get"})}function et(t,e){return Object(r.a)({url:"setting/save_agreement",method:"post",data:t})}function nt(t){return Object(r.a)({url:"crmeb_product",method:"get",params:t})}function rt(){return Object(r.a)({url:"setting/get_version",method:"get"})}function at(){return Object(r.a)({url:"copyright",method:"get"})}function it(t){return Object(r.a)({url:"copyright",method:"post",data:t})}function ot(t){return Object(r.a)({url:"/system/upgrade/list",method:"get",params:t})}function ut(){return Object(r.a)({url:"/system/upgrade_progress",method:"get"})}function ct(){return Object(r.a)({url:"/system/upgrade/agreement",method:"get"})}function st(){return Object(r.a)({url:"/system/upgrade_status",method:"get"})}function dt(t){return Object(r.a)({url:"/system/upgrade_log/list",method:"get",params:t})}function lt(t){return Object(r.a)({url:"/system/upgrade_download/"+t,method:"POST"})}function ft(t){return Object(r.a)({url:"/system/upgradeable/list",method:"get",params:t})}function mt(t){return Object(r.a)({url:"system/crontab/list",params:t})}function gt(t,e){return Object(r.a)({url:"system/crontab/set_open/".concat(t,"/").concat(e)})}function bt(t){return Object(r.a)({url:"system/crontab/info/".concat(t)})}function ht(t){return Object(r.a)({url:"system/crontab/save",method:"post",data:t})}function pt(t){return Object(r.a)({url:"system/database/update_mark",method:"post",data:t})}function vt(t,e){return Object(r.a)({url:"system/file/mark/save?fileToken=".concat(t),method:"post",data:e})}function Ot(){return Object(r.a)({url:"system/crontab/mark"})}function jt(t){return Object(r.a)({url:"system/event/list",params:t})}function yt(t,e){return Object(r.a)({url:"system/event/set_open/".concat(t,"/").concat(e)})}function _t(t){return Object(r.a)({url:"system/event/info/".concat(t)})}function kt(t){return Object(r.a)({url:"system/event/save",method:"post",data:t})}function wt(){return Object(r.a)({url:"system/event/mark"})}},c0e1:function(t,e,n){"use strict";n("1adf")},cffd:function(t,e,n){"use strict";n.r(e);var r=n("c7eb"),a=n("1da1"),i=n("5530"),o=(n("14d9"),n("b0c0"),n("d3b7"),n("159b"),n("99af"),n("a434"),n("2f62")),u=n("31b4"),c=n("8593");u={name:"list",components:{editFrom:u.a},data:function(){return{treeId:"",grid:{xl:7,lg:7,md:12,sm:24,xs:24},formValidate:{status:"",page:1,limit:20,gid:0},total:0,tabList:[],columns1:[],FromData:null,loading:!1,titleType:"group",groupAll:[],theme3:"light",labelSort:[],sortName:null,current:0}},computed:Object(i.a)(Object(i.a)({},Object(o.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),watch:{$route:function(t,e){this.$route.params.id?(this.getList(),this.getListHeader()):this.getGroupAll()}},mounted:function(){this.$route.params.id?(this.getList(),this.getListHeader()):this.getGroupAll()},methods:{bindMenuItem:function(t,e){this.current=e,this.formValidate.gid=t.id,this.getListHeader(),this.getList()},getGroupAll:function(){var t=this;Object(c.J)().then(function(){var e=Object(a.a)(Object(r.a)().mark((function e(n){return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.groupAll=n.data,t.sortName=n.data[0].id,t.formValidate.gid=n.data[0].id,t.getListHeader(),t.getList();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},back:function(){this.$router.push({path:this.$routeProStr+"/system/config/system_group/index"})},getUrl:function(t){var e="setting/group_data"+t;return this.$route.params.id&&void 0!==(t={setting_groupDataSign:"setting/sign_data"+t,setting_groupDataOrder:"setting/order_data"+t,setting_groupDataUser:"setting/usermenu_data"+t,setting_groupDataPoster:"setting/poster_data"+t,marketing_storeSeckillData:"setting/seckill_data"+t})[this.$route.name]?t[this.$route.name]:e},getList:function(){var t=this;this.loading=!0,this.formValidate.gid=this.$route.params.id||this.formValidate.gid,this.formValidate.status=this.formValidate.status||"",Object(c.N)(this.formValidate,this.getUrl("")).then(function(){var e=Object(a.a)(Object(r.a)().mark((function e(n){var a;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tabList=a.list,t.total=a.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)}))},getListHeader:function(){var t=this,e=(this.loading=!0,{gid:this.$route.params.id||this.formValidate.gid});Object(c.M)(e,this.getUrl("/header")).then(function(){var e=Object(a.a)(Object(r.a)().mark((function e(n){var a,i,o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,i=a.header,o=[],i.forEach((function(t,e){"img"===t.type&&o.push(e)})),o.forEach((function(t){i[t].render=function(e,n){var r=n.row[i[t].key],a=[];return void 0!==r&&r.length&&r.forEach((function(r,o){a.push(e("div",{style:{width:"36px",height:"36px","border-radius":"4px",cursor:"pointer",display:"inline-block"}},[e("img",{attrs:{src:n.row[i[t].key][o]},style:{width:"100%",height:"100%"}})]))})),e("viewer",a)}})),t.columns1=i,t.loading=!1;case 7: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)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},groupAdd:function(){var t=this;this.$modalForm(Object(c.K)({gid:this.$route.params.id||this.formValidate.gid},this.getUrl("/create"))).then((function(){return t.getList()}))},onchangeIsShow:function(t){var e=this;Object(c.O)(this.getUrl("/set_status/".concat(t.id,"/").concat(t.status))).then(function(){var t=Object(a.a)(Object(r.a)().mark((function t(n){return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(n.msg),e.getList();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},edit:function(t){var e=this,n={gid:t.gid};this.$modalForm(Object(c.L)(n,this.getUrl("/".concat(t.id,"/edit")))).then((function(){return e.getList()}))},del:function(t,e,n){var r=this;e={title:e,num:n,url:this.getUrl("/".concat(t.id)),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){r.$message.success(t.msg),r.tabList.splice(n,1)})).catch((function(t){r.$message.error(t.msg)}))}}},n("272f"),i=n("2877"),o=Object(i.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("pages-header",{ref:"pageHeader",staticClass:"mb16",attrs:{title:t.$route.meta.title}}),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"是否显示:"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[e("el-option",{attrs:{value:"1",label:"显示"}}),e("el-option",{attrs:{value:"0",label:"不显示"}})],1)],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt mt14",attrs:{bordered:!1,shadow:"never"}},[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],staticClass:"mr20",attrs:{type:"primary"},on:{click:function(e){return t.groupAdd("添加数据")}}},[t._v("添加数据")]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.tabList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},t._l(t.columns1,(function(n,r){return e("el-table-column",{key:r,attrs:{label:n.title,"min-width":n.minWidth},scopedSlots:t._u([{key:"default",fn:function(r){return[n.key?["img"!==n.type?e("div",[e("span",[t._v(t._s(r.row[n.key]))])]):e("div",[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.row[n.key][0],expression:"scope.row[item.key][0]"}]})])])]:"status"===n.slot?[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,value:r.row.status,size:"large"},on:{change:function(e){return t.onchangeIsShow(r.row)}},model:{value:r.row.status,callback:function(e){t.$set(r.row,"status",e)},expression:"scope.row.status"}})]:"action"===n.slot?[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.edit(r.row,"编辑")}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.del(r.row,"删除这条信息",r.$index)}}},[t._v("删除")])]:t._e()]}}],null,!0)})})),1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"20c6c656",null);e.default=o.exports}}]);