CRMEB/crmeb/public/admin/system_static/js/chunk-8bec1408.1448c219.js
2024-06-27 14:03:13 +08:00

1 line
20 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-8bec1408"],{"0c6b":function(t,e,n){"use strict";n.r(e);var r=n("c7eb"),a=n("1da1"),o=(n("14d9"),n("a434"),n("8593")),u=n("30ba"),i=(u=n.n(u),n("31b4")),c=n("6b6c");u={name:"list",components:{formCreate:u.a.$form(),editFrom:i.a},data:function(){return{modals2:!1,grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,formValidate:{tab_id:0,config_name:"",page:1,limit:20},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)}}}}},total:0,FromData:null,FromRequestData:{},modalTitleSs:"",classList:[],num:0,typeFrom:{type:0,tab_id:this.$route.params.id},rules:[],fapi:null,rowId:0}},watch:{$route:{handler:function(t,e){this.getList()},deep:!0}},mounted:function(){this.getList()},methods:{onhangeTab:function(){this.classAdd()},submitForm:function(){this.fapi.submit()},classAdd:function(){var t=this;Object(o.k)(this.typeFrom).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:if(!1===n.data.status)return e.abrupt("return",t.$authLapse(n.data));e.next=2;break;case 2:a=n.data||{},t.FromRequestData={action:a.action,method:a.method},t.rules=a.rules,t.modals2=!0;case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},edit:function(t){var e=this;this.rowId=t.id,Object(o.l)(t.id).then(function(){var t=Object(a.a)(Object(r.a)().mark((function t(n){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1===n.data.status)return t.abrupt("return",e.$authLapse(n.data));t.next=2;break;case 2:a=n.data||{},e.FromRequestData={action:a.action,method:a.method},e.rules=a.rules,e.$refs.edits.modals=!0,e.modals2=!0;case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},onSubmit:function(t){var e=this;Object(c.a)({url:this.FromRequestData.action,method:this.FromRequestData.method,data:t}).then((function(t){e.$message.success(t.msg),setTimeout((function(){e.modals2=!1}),1e3),setTimeout((function(){e.getList()}),1500)})).catch((function(t){e.$message.error(t.msg)}))},submitFail:function(){this.getList()},goIndex:function(){this.$router.push({path:this.$routeProStr+"/system/config/system_config_tab/index"})},configureAdd:function(){this.rowId=0,this.typeFrom.type=0,this.classAdd()},getList:function(){var t=this;this.loading=!0,this.formValidate.tab_id=this.$route.params.id,this.formValidate.config_name=this.$route.query.config_name,Object(o.m)(this.formValidate).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.classList=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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},del:function(t,e,n){var r=this;e={title:e,num:n,url:"/setting/config/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){r.$message.success(t.msg),r.classList.splice(n,1)})).catch((function(t){r.$message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(o.j)(t.id,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);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))}}},n("3010"),i=n("2877"),n=Object(i.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("pages-header",{ref:"pageHeader",attrs:{title:"配置列表".concat(t.$route.query.config_name?" - "+t.$route.query.config_name:""),backUrl:t.$routeProStr+"/system/config/system_config_tab/index"}}),e("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never"}},[t.$route.query.config_name?t._e():e("el-row",[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.configureAdd}},[t._v("添加配置")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.classList,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.id))])]}}])}),e("el-table-column",{attrs:{label:"配置名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.info))])]}}])}),e("el-table-column",{attrs:{label:"字段变量","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.menu_name))])]}}])}),e("el-table-column",{attrs:{label:"字段类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.type))])]}}])}),e("el-table-column",{attrs:{label:"值","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return["text"===n.row.type||"textarea"===n.row.type||"radio"===n.row.type||"checkbox"===n.row.type?e("span",[t._v(t._s(n.row.value))]):t._e(),"upload"===n.row.type&&3===n.row.upload_type?e("div",{staticClass:"valBox acea-row"},[n.row.value.length?e("div",t._l(n.row.value,(function(n,r){return e("div",{key:r,staticClass:"valPicbox acea-scope.row scope.row-column-around"},[e("div",{staticClass:"valPicbox_pic"},[e("i",{staticClass:"el-icon-document"})]),e("span",{staticClass:"valPicbox_sp"},[t._v(t._s(n.filename))])])})),0):t._e()]):t._e(),"upload"===n.row.type&&3!==n.row.upload_type?e("div",{staticClass:"valBox acea-row"},[n.row.value.length?e("div",t._l(n.row.value,(function(n,r){return e("div",{key:r,staticClass:"valPicbox acea-row row-column-around"},[e("div",{staticClass:"valPicbox_pic"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.filepath,expression:"item.filepath"}]})]),e("span",{staticClass:"valPicbox_sp"},[t._v(t._s(n.filename))])])})),0):t._e()]):t._e(),"switch"===n.row.type?e("span",[t._v(t._s(1==n.row.value?"开启":"关闭"))]):t._e()]}}])}),e("el-table-column",{attrs:{label:"关联配置/值","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.link_data))])]}}])}),e("el-table-column",{attrs:{label:"配置分类","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.config_tab_name))])]}}])}),e("el-table-column",{attrs:{label:"是否显示","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:n.row.status,size:"large","active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{directives:[{name:"db-click",rawName:"v-db-click"}],on:{click:function(e){return t.edit(n.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(n.row,"删除分类",n.$index)}}},[t._v("删除")])]}}])})],1)],1),e("el-dialog",{attrs:{visible:t.modals2,title:"".concat(t.rowId?"修改":"添加","配置字段"),"close-on-click-modal":!1,"show-close":!0,width:"720px"},on:{"update:visible":function(e){t.modals2=e}}},[t.rowId?t._e():e("el-tabs",{staticClass:"tabsName",on:{"tab-click":t.onhangeTab},model:{value:t.typeFrom.type,callback:function(e){t.$set(t.typeFrom,"type",e)},expression:"typeFrom.type"}},[e("el-tab-pane",{attrs:{label:"文本框 ",name:"0"}}),e("el-tab-pane",{attrs:{label:"多行文本框",name:"1"}}),e("el-tab-pane",{attrs:{label:"单选框",name:"2"}}),e("el-tab-pane",{attrs:{label:"文件上传",name:"3"}}),e("el-tab-pane",{attrs:{label:"多选框",name:"4"}}),e("el-tab-pane",{attrs:{label:"下拉框",name:"5"}}),e("el-tab-pane",{attrs:{label:"开关",name:"6"}})],1),0!=t.rules.length?e("form-create",{ref:"fc",staticClass:"formBox",attrs:{rule:t.rules,option:t.config,handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}):t._e(),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.modals2=!1}}},[t._v("取消")]),e("el-button",{directives:[{name:"db-click",rawName:"v-db-click"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)],1),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"256ebee6",null);e.default=n.exports},2470:function(t,e,n){},3010:function(t,e,n){"use strict";n("2470")},"31b4":function(t,e,n){"use strict";n("a630"),n("3ca3");var r=n("5530"),a=(n("d3b7"),n("159b"),n("30ba")),o=(a=n.n(a),n("6b6c")),u=n("2f62");a={name:"edit",components:{formCreate:a.a.$form()},computed:Object(r.a)({},Object(u.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(o.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("c97f"),r=n("2877"),u=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,"z-index":1,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,"35556d70",null);e.a=u.exports},8381:function(t,e,n){},8593:function(t,e,n){"use strict";n.d(e,"i",(function(){return a})),n.d(e,"g",(function(){return o})),n.d(e,"h",(function(){return u})),n.d(e,"ib",(function(){return i})),n.d(e,"m",(function(){return c})),n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"Q",(function(){return f})),n.d(e,"I",(function(){return m})),n.d(e,"P",(function(){return b})),n.d(e,"N",(function(){return p})),n.d(e,"K",(function(){return h})),n.d(e,"L",(function(){return g})),n.d(e,"M",(function(){return v})),n.d(e,"O",(function(){return _})),n.d(e,"eb",(function(){return y})),n.d(e,"kb",(function(){return O})),n.d(e,"x",(function(){return j})),n.d(e,"c",(function(){return w})),n.d(e,"e",(function(){return k})),n.d(e,"b",(function(){return x})),n.d(e,"d",(function(){return F})),n.d(e,"f",(function(){return T})),n.d(e,"B",(function(){return $})),n.d(e,"z",(function(){return S})),n.d(e,"A",(function(){return C})),n.d(e,"V",(function(){return D})),n.d(e,"U",(function(){return P})),n.d(e,"W",(function(){return E})),n.d(e,"db",(function(){return L})),n.d(e,"o",(function(){return I})),n.d(e,"n",(function(){return G})),n.d(e,"Z",(function(){return q})),n.d(e,"q",(function(){return N})),n.d(e,"y",(function(){return B})),n.d(e,"ab",(function(){return A})),n.d(e,"a",(function(){return z})),n.d(e,"F",(function(){return R})),n.d(e,"hb",(function(){return V})),n.d(e,"J",(function(){return U})),n.d(e,"wb",(function(){return J})),n.d(e,"vb",(function(){return W})),n.d(e,"R",(function(){return H})),n.d(e,"T",(function(){return K})),n.d(e,"G",(function(){return M})),n.d(e,"X",(function(){return Q})),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 ot})),n.d(e,"qb",(function(){return ut})),n.d(e,"sb",(function(){return it})),n.d(e,"pb",(function(){return ct})),n.d(e,"tb",(function(){return st})),n.d(e,"rb",(function(){return lt})),n.d(e,"r",(function(){return dt})),n.d(e,"ub",(function(){return ft})),n.d(e,"lb",(function(){return mt})),n.d(e,"jb",(function(){return bt})),n.d(e,"mb",(function(){return pt})),n.d(e,"cb",(function(){return ht})),n.d(e,"ob",(function(){return gt})),n.d(e,"S",(function(){return vt})),n.d(e,"nb",(function(){return _t})),n.d(e,"s",(function(){return yt})),n.d(e,"v",(function(){return Ot})),n.d(e,"t",(function(){return jt})),n.d(e,"u",(function(){return wt})),n.d(e,"w",(function(){return kt})),n("99af");var r=n("6b6c");function a(t){return Object(r.a)({url:"setting/config_class",method:"get",params:t})}function o(t){return Object(r.a)({url:"setting/config_class/create",method:"get"})}function u(t){return Object(r.a)({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function i(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 l(t){return Object(r.a)({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function d(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 b(t){return Object(r.a)({url:"setting/group/".concat(t),method:"get"})}function p(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 g(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 _(t){return Object(r.a)({url:t,method:"PUT"})}function y(t){return Object(r.a)({url:"system/log/search_admin",method:"GET"})}function O(t){return Object(r.a)({url:"system/log",method:"GET",params:t})}function j(){return Object(r.a)({url:"system/file",method:"GET"})}function w(){return Object(r.a)({url:"system/backup",method:"GET"})}function k(t){return Object(r.a)({url:"system/backup/read",method:"GET",params:t})}function x(t){return Object(r.a)({url:"system/backup/backup",method:"put",data:t})}function F(t){return Object(r.a)({url:"system/backup/optimize",method:"put",data:t})}function T(t){return Object(r.a)({url:"system/backup/repair",method:"put",data:t})}function $(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 C(t){return Object(r.a)({url:"system/backup/import",method:"POST",data:t})}function D(t){return Object(r.a)({url:"system/file/login",method:"POST",data:t})}function P(t){return Object(r.a)({url:"system/file/opendir",method:"GET",params:t,file_edit:!0})}function E(t){return Object(r.a)({url:"system/file/openfile",method:"GET",params:t,file_edit:!0})}function L(t){return Object(r.a)({url:"system/file/savefile?fileToken=".concat(t.fileToken),method:"post",data:t,file_edit:!0})}function I(t){return Object(r.a)({url:"system/file/createFolder",method:"GET",params:t,file_edit:!0})}function G(t){return Object(r.a)({url:"system/file/createFile",method:"GET",params:t,file_edit:!0})}function q(t){return Object(r.a)({url:"system/file/rename",method:"GET",params:t,file_edit:!0})}function N(t){return Object(r.a)({url:"system/file/delFolder",method:"GET",params:t,file_edit:!0})}function B(t){return Object(r.a)({url:"system/file/mark",method:"get",params:t,file_edit:!0})}function A(t){return Object(r.a)({url:"system/replace_site_url",method:"post",data:t})}function z(){return Object(r.a)({url:"auth",method:"get"})}function R(){return Object(r.a)({url:"setting/get_kf_adv",method:"get"})}function V(t){return Object(r.a)({url:"setting/set_kf_adv",method:"post",data:t})}function U(){return Object(r.a)({url:"setting/group_all",method:"get"})}function J(t){return Object(r.a)({url:"system/version_list",method:"get",params:t})}function W(t){return Object(r.a)({url:"system/version_crate/".concat(t),method:"get"})}function H(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 M(){return Object(r.a)({url:"diy/open_adv/info",method:"get"})}function Q(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 ot(t){return Object(r.a)({url:"copyright",method:"post",data:t})}function ut(t){return Object(r.a)({url:"/system/upgrade/list",method:"get",params:t})}function it(){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 lt(t){return Object(r.a)({url:"/system/upgrade_log/list",method:"get",params:t})}function dt(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 bt(t,e){return Object(r.a)({url:"system/crontab/set_open/".concat(t,"/").concat(e)})}function pt(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 gt(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 _t(){return Object(r.a)({url:"system/crontab/mark"})}function yt(t){return Object(r.a)({url:"system/event/list",params:t})}function Ot(t,e){return Object(r.a)({url:"system/event/set_open/".concat(t,"/").concat(e)})}function jt(t){return Object(r.a)({url:"system/event/info/".concat(t)})}function wt(t){return Object(r.a)({url:"system/event/save",method:"post",data:t})}function kt(){return Object(r.a)({url:"system/event/mark"})}},c97f:function(t,e,n){"use strict";n("8381")}}]);