mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 20:42:49 +00:00
1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-086db276"],{"12bf":function(t,e,r){},"2ec3":function(t,e,r){},"31b4":function(t,e,r){"use strict";var n=r("f3f3"),o=r("9860"),a=(o=r.n(o),r("6b6c")),i=r("2f62");o={name:"edit",components:{formCreate:o.a.$form()},computed:Object(n.a)({},Object(i.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},data:function(){return{modals:!1,type:0,loading:!1,config:{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)},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(a.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}}},r("9646"),n=r("2877"),i=Object(n.a)(o,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return t.FromData?e("div",[e("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,"z-index":1,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/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("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit}})],2)],1):t._e()}),[],!1,null,"5cc97a38",null);e.a=i.exports},8593:function(t,e,r){"use strict";r.d(e,"i",(function(){return o})),r.d(e,"g",(function(){return a})),r.d(e,"h",(function(){return i})),r.d(e,"db",(function(){return u})),r.d(e,"m",(function(){return c})),r.d(e,"k",(function(){return s})),r.d(e,"l",(function(){return l})),r.d(e,"j",(function(){return d})),r.d(e,"L",(function(){return f})),r.d(e,"D",(function(){return h})),r.d(e,"K",(function(){return m})),r.d(e,"I",(function(){return p})),r.d(e,"F",(function(){return g})),r.d(e,"G",(function(){return b})),r.d(e,"H",(function(){return v})),r.d(e,"J",(function(){return y})),r.d(e,"Z",(function(){return O})),r.d(e,"fb",(function(){return j})),r.d(e,"s",(function(){return _})),r.d(e,"c",(function(){return w})),r.d(e,"e",(function(){return x})),r.d(e,"b",(function(){return k})),r.d(e,"d",(function(){return L})),r.d(e,"f",(function(){return E})),r.d(e,"w",(function(){return $})),r.d(e,"u",(function(){return T})),r.d(e,"v",(function(){return S})),r.d(e,"Q",(function(){return F})),r.d(e,"P",(function(){return G})),r.d(e,"R",(function(){return C})),r.d(e,"Y",(function(){return P})),r.d(e,"o",(function(){return M})),r.d(e,"n",(function(){return V})),r.d(e,"U",(function(){return D})),r.d(e,"q",(function(){return I})),r.d(e,"t",(function(){return A})),r.d(e,"V",(function(){return N})),r.d(e,"a",(function(){return U})),r.d(e,"A",(function(){return R})),r.d(e,"cb",(function(){return H})),r.d(e,"E",(function(){return z})),r.d(e,"rb",(function(){return B})),r.d(e,"qb",(function(){return J})),r.d(e,"M",(function(){return W})),r.d(e,"O",(function(){return Y})),r.d(e,"B",(function(){return q})),r.d(e,"S",(function(){return K})),r.d(e,"T",(function(){return Q})),r.d(e,"x",(function(){return X})),r.d(e,"ab",(function(){return Z})),r.d(e,"y",(function(){return tt})),r.d(e,"bb",(function(){return et})),r.d(e,"p",(function(){return rt})),r.d(e,"C",(function(){return nt})),r.d(e,"z",(function(){return ot})),r.d(e,"W",(function(){return at})),r.d(e,"lb",(function(){return it})),r.d(e,"nb",(function(){return ut})),r.d(e,"kb",(function(){return ct})),r.d(e,"ob",(function(){return st})),r.d(e,"mb",(function(){return lt})),r.d(e,"r",(function(){return dt})),r.d(e,"pb",(function(){return ft})),r.d(e,"gb",(function(){return ht})),r.d(e,"eb",(function(){return mt})),r.d(e,"hb",(function(){return pt})),r.d(e,"X",(function(){return gt})),r.d(e,"jb",(function(){return bt})),r.d(e,"N",(function(){return vt})),r.d(e,"ib",(function(){return yt})),r("99af");var n=r("6b6c");function o(t){return Object(n.a)({url:"setting/config_class",method:"get",params:t})}function a(t){return Object(n.a)({url:"setting/config_class/create",method:"get"})}function i(t){return Object(n.a)({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function u(t){return Object(n.a)({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function c(t){return Object(n.a)({url:"setting/config",method:"get",params:t})}function s(t){return Object(n.a)({url:"setting/config/create",method:"get",params:t})}function l(t){return Object(n.a)({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(n.a)({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function f(t){return Object(n.a)({url:"setting/group",method:"get",params:t})}function h(t){return Object(n.a)({url:t.url,method:t.method,data:t.datas})}function m(t){return Object(n.a)({url:"setting/group/".concat(t),method:"get"})}function p(t,e){return Object(n.a)({url:e,method:"get",params:t})}function g(t,e){return Object(n.a)({url:e,method:"get",params:t})}function b(t,e){return Object(n.a)({url:e,method:"get",params:t})}function v(t,e){return Object(n.a)({url:e,method:"get",params:t})}function y(t){return Object(n.a)({url:t,method:"PUT"})}function O(t){return Object(n.a)({url:"system/log/search_admin",method:"GET"})}function j(t){return Object(n.a)({url:"system/log",method:"GET",params:t})}function _(){return Object(n.a)({url:"system/file",method:"GET"})}function w(){return Object(n.a)({url:"system/backup",method:"GET"})}function x(t){return Object(n.a)({url:"system/backup/read",method:"GET",params:t})}function k(t){return Object(n.a)({url:"system/backup/backup",method:"put",data:t})}function L(t){return Object(n.a)({url:"system/backup/optimize",method:"put",data:t})}function E(t){return Object(n.a)({url:"system/backup/repair",method:"put",data:t})}function $(t){return Object(n.a)({url:"system/backup/file_list",method:"GET"})}function T(t){return Object(n.a)({url:"backup/download",method:"get",params:t})}function S(t){return Object(n.a)({url:"system/backup/import",method:"POST",data:t})}function F(t){return Object(n.a)({url:"system/file/login",method:"POST",data:t})}function G(t){return Object(n.a)({url:"system/file/opendir",method:"GET",params:t,file_edit:!0})}function C(t){return Object(n.a)({url:"system/file/openfile",method:"GET",params:t,file_edit:!0})}function P(t){return Object(n.a)({url:"system/file/savefile?fileToken=".concat(t.fileToken),method:"post",data:t,file_edit:!0})}function M(t){return Object(n.a)({url:"system/file/createFolder",method:"GET",params:t,file_edit:!0})}function V(t){return Object(n.a)({url:"system/file/createFile",method:"GET",params:t,file_edit:!0})}function D(t){return Object(n.a)({url:"system/file/rename",method:"GET",params:t,file_edit:!0})}function I(t){return Object(n.a)({url:"system/file/delFolder",method:"GET",params:t,file_edit:!0})}function A(t){return Object(n.a)({url:"system/file/mark",method:"get",params:t,file_edit:!0})}function N(t){return Object(n.a)({url:"system/replace_site_url",method:"post",data:t})}function U(){return Object(n.a)({url:"auth",method:"get"})}function R(){return Object(n.a)({url:"setting/get_kf_adv",method:"get"})}function H(t){return Object(n.a)({url:"setting/set_kf_adv",method:"post",data:t})}function z(){return Object(n.a)({url:"setting/group_all",method:"get"})}function B(t){return Object(n.a)({url:"system/version_list",method:"get",params:t})}function J(t){return Object(n.a)({url:"system/version_crate/".concat(t),method:"get"})}function W(t){return Object(n.a)({url:"setting/group_data/save_all",method:"POST",data:t})}function Y(t){return Object(n.a)({url:"diy/open_adv/add",method:"POST",data:t})}function q(){return Object(n.a)({url:"diy/open_adv/info",method:"get"})}function K(t){return Object(n.a)({url:"setting/config/get_system/".concat(t),method:"get"})}function Q(t){return Object(n.a)({url:"setting/config/save_basics",method:"POST",data:t})}function X(){return Object(n.a)({url:"setting/get_user_agreement",method:"get"})}function Z(t){return Object(n.a)({url:"setting/set_user_agreement",method:"post",data:t})}function tt(t){return Object(n.a)({url:"setting/get_agreement/".concat(t),method:"get"})}function et(t,e){return Object(n.a)({url:"setting/save_agreement",method:"post",data:t})}function rt(t){return Object(n.a)({url:"crmeb_product",method:"get",params:t})}function nt(){return Object(n.a)({url:"setting/get_version",method:"get"})}function ot(){return Object(n.a)({url:"copyright",method:"get"})}function at(t){return Object(n.a)({url:"copyright",method:"post",data:t})}function it(t){return Object(n.a)({url:"/system/upgrade/list",method:"get",params:t})}function ut(){return Object(n.a)({url:"/system/upgrade_progress",method:"get"})}function ct(){return Object(n.a)({url:"/system/upgrade/agreement",method:"get"})}function st(){return Object(n.a)({url:"/system/upgrade_status",method:"get"})}function lt(t){return Object(n.a)({url:"/system/upgrade_log/list",method:"get",params:t})}function dt(t){return Object(n.a)({url:"/system/upgrade_download/"+t,method:"POST"})}function ft(t){return Object(n.a)({url:"/system/upgradeable/list",method:"get",params:t})}function ht(t){return Object(n.a)({url:"system/crontab/list",params:t})}function mt(t,e){return Object(n.a)({url:"system/crontab/set_open/".concat(t,"/").concat(e)})}function pt(t){return Object(n.a)({url:"system/crontab/info/".concat(t)})}function gt(t){return Object(n.a)({url:"system/crontab/save",method:"post",data:t})}function bt(t){return Object(n.a)({url:"system/database/update_mark",method:"post",data:t})}function vt(t,e){return Object(n.a)({url:"system/file/mark/save?fileToken=".concat(t),method:"post",data:e})}function yt(){return Object(n.a)({url:"system/crontab/mark"})}},9646:function(t,e,r){"use strict";var n=r("2ec3");r.n(n).a},acc8:function(t,e,r){"use strict";var n=r("12bf");r.n(n).a},cffd:function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("131a"),r("fb6a");var n=r("0122"),o=r("c964"),a=r("f3f3"),i=(r("b0c0"),r("d3b7"),r("159b"),r("99af"),r("a434"),r("2f62")),u=r("31b4"),c=r("8593");function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a,i,u,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new w(n||[]);return o(e,"_invoke",{value:(a=t,i=r,u=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return k()}for(u.method=t,u.arg=e;;){var r=u.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=f(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,u),r)){if(r===h)continue;return r}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if("suspendedStart"===c)throw c="completed",u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);if(c="executing",r=f(a,i,u),"normal"===r.type){if(c=u.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:u.done}}"throw"===r.type&&(c="completed",u.method="throw",u.arg=r.arg)}})}),e}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var h={};function m(){}function p(){}function g(){}a={};var b=(l(a,i,(function(){return this})),Object.getPrototypeOf),v=(b=b&&b(b(x([]))),b&&b!==e&&r.call(b,i)&&(a=b),g.prototype=m.prototype=Object.create(a));function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){var a;o(this,"_invoke",{value:function(o,i){function u(){return new e((function(a,u){!function o(a,i,u,c){var s;a=f(t[a],t,i);if("throw"!==a.type)return(i=(s=a.arg).value)&&"object"==Object(n.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){o("next",t,u,c)}),(function(t){o("throw",t,u,c)})):e.resolve(i).then((function(t){s.value=t,u(s)}),(function(t){return o("throw",t,u,c)}));c(a.arg)}(o,i,a,u)}))}return a=a?a.then(u,u):u()}})}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function x(t){if(t){var e,n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:k}}function k(){return{value:void 0,done:!0}}return o(v,"constructor",{value:p.prototype=g,configurable:!0}),o(g,"constructor",{value:p,configurable:!0}),p.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(O.prototype),l(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new O(d(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(v),l(v,c,"Generator"),l(v,i,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=x,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}var i=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,_(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}u={name:"list",components:{editFrom:u.a},data:function(){return{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(a.a)(Object(a.a)({},Object(i.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},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.E)().then(function(){var e=Object(o.a)(s().mark((function e(r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.groupAll=r.data,t.sortName=r.data[0].id,t.formValidate.gid=r.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.I)(this.formValidate,this.getUrl("")).then(function(){var e=Object(o.a)(s().mark((function e(r){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tabList=n.list,t.total=n.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.H)(e,this.getUrl("/header")).then(function(){var e=Object(o.a)(s().mark((function e(r){var n,o,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,o=n.header,a=[],o.forEach((function(t,e){"img"===t.type&&a.push(e)})),a.forEach((function(t){o[t].render=function(e,r){var n=r.row[o[t].key],a=[];return void 0!==n&&n.length&&n.forEach((function(n,i){a.push(e("div",{style:{width:"36px",height:"36px","border-radius":"4px",cursor:"pointer",display:"inline-block"}},[e("img",{attrs:{src:r.row[o[t].key][i]},style:{width:"100%",height:"100%"}})]))})),e("viewer",a)}})),t.columns1=o,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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},groupAdd:function(){var t=this;this.$modalForm(Object(c.F)({gid:this.$route.params.id||this.formValidate.gid},this.getUrl("/create"))).then((function(){return t.getList()}))},onchangeIsShow:function(t){var e=this;Object(c.J)(this.getUrl("/set_status/".concat(t.id,"/").concat(t.status))).then(function(){var t=Object(o.a)(s().mark((function t(r){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.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,r={gid:t.gid};this.$modalForm(Object(c.G)(r,this.getUrl("/".concat(t.id,"/edit")))).then((function(){return e.getList()}))},del:function(t,e,r){var n=this;e={title:e,num:r,url:this.getUrl("/".concat(t.id)),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.$Message.success(t.msg),n.tabList.splice(r,1)})).catch((function(t){n.$Message.error(t.msg)}))}}},r("acc8"),a=r("2877"),i=Object(a.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"i-layout-page-header header-title"},[r("div",{staticClass:"fl_header"},[49!=t.$route.params.id?r("router-link",{attrs:{to:{path:t.$routeProStr+"/system/config/system_group/index"}}},[r("Button",{attrs:{icon:"ios-arrow-back",size:"small",type:"text"}},[t._v("返回")])],1):t._e(),49!=t.$route.params.id?r("Divider",{attrs:{type:"vertical"}}):t._e(),r("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"},domProps:{textContent:t._s(t.$route.meta.title)}})],1)]),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Row",{staticClass:"ivu-mt box-wrapper"},[!t.$route.params.id&&t.groupAll.length?r("Col",{staticClass:"left-wrapper",attrs:{xs:24,sm:24,md:6,lg:4}},[r("Menu",{attrs:{theme:t.theme3,"active-name":t.sortName,width:"auto"}},[r("MenuGroup",t._l(t.groupAll,(function(e,n){return r("MenuItem",{key:n,staticClass:"menu-item",attrs:{name:e.id},nativeOn:{click:function(r){return t.bindMenuItem(e,n)}}},[t._v("\n "+t._s(e.name)+"\n ")])})),1)],1)],1):t._e(),r("Col",{ref:"rightBox",attrs:{xs:24,sm:24,md:t.$route.params.id?24:17,lg:t.$route.params.id?24:20}},[r("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{type:"flex",gutter:24}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"是否显示:"}},[r("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[r("Option",{attrs:{value:"1"}},[t._v("显示")]),r("Option",{attrs:{value:"0"}},[t._v("不显示")])],1)],1)],1)],1),r("Row",{attrs:{type:"flex"}},[r("Col",t._b({},"Col",t.grid,!1),[r("Button",{staticClass:"mr20",attrs:{type:"primary",icon:"md-add"},on:{click:function(e){return t.groupAdd("添加数据")}}},[t._v("添加数据")])],1)],1)],1),r("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.tabList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var n=e.row;return e.index,[r("i-switch",{attrs:{value:n.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n)}},model:{value:n.status,callback:function(e){t.$set(n,"status",e)},expression:"row.status"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(e){var n=e.row,o=e.index;return[r("a",{on:{click:function(e){return t.edit(n,"编辑")}}},[t._v("编辑")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.del(n,"删除这条信息",o)}}},[t._v("删除")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)],1)],1)],1)}),[],!1,null,"06e2ab5e",null),e.default=i.exports}}]); |