1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5d75cc0d"],{"330f":function(t,n,e){},"713f":function(t,n,e){t.exports=e.p+"view_admin/img/bluesgin.032bae4b.png"},88551:function(t,n,e){"use strict";var i=e("330f");e.n(i).a},"89c2":function(t,n,e){t.exports=e.p+"view_admin/img/oragesgin.00077d3a.png"},"90be":function(t,n,e){t.exports=e.p+"view_admin/img/redsgin.d8b0c12e.png"},"943f":function(t,n,e){t.exports=e.p+"view_admin/img/pinksgin.0e1c51b4.png"},bceb:function(t,n,e){t.exports=e.p+"view_admin/img/greesgin.43ae54b5.png"},d577:function(t,n,e){"use strict";e.r(n);var i=e("a34a"),r=e.n(i),s=e("f478"),a=e("2f62"),o=e("8593");function c(t,n,e,i,r,s,a){try{var o=t[s](a),c=o.value}catch(t){return void e(t)}o.done?n(c):Promise.resolve(c).then(i,r)}function u(t){return function(){var n=this,e=arguments;return new Promise((function(i,r){var s=t.apply(n,e);function a(t){c(s,i,r,a,o,"next",t)}function o(t){c(s,i,r,a,o,"throw",t)}a(void 0)}))}}function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function f(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var g={name:"list",computed:function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?l(e,!0).forEach((function(n){f(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}},Object(a.e)("admin/layout",["menuCollapse"])),data:function(){return{gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},grid:{xl:7,lg:7,md:12,sm:24,xs:24},name:"sign_day_num",pageId:0,columns:[],loading:!1,signList:[],statusColor:1}},created:function(){this.color()},mounted:function(){this.getListHeader(),this.getGroupAll(),this.info()},methods:{info:function(){var t=this;Object(o.D)({config_name:this.name},"setting/group_data").then(function(){var n=u(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.signList=e.data.list;case 1:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()).catch((function(n){t.loading=!1,t.$Message.error(n.msg)}))},groupAdd:function(){var t=this;this.$modalForm(Object(o.A)({gid:this.signList[0].gid,config_name:this.name},"setting/group_data/create")).then((function(){t.info()}))},edit:function(t){var n=this;this.$modalForm(Object(o.B)({gid:t.gid,config_name:this.name},"setting/group_data/"+t.id+"/edit")).then((function(){n.info()}))},getGroupAll:function(){var t=this;Object(o.z)().then(function(){var n=u(r.a.mark((function n(e){return r.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.data.forEach((function(n){n.config_name==t.name&&(t.pageId=n.id)}));case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()).catch((function(n){t.$Message.error(n.msg)}))},del:function(t,n,e){var i=this,r={title:n,num:e,url:"setting/group_data/"+t.id,method:"DELETE",ids:""};this.$modalSure(r).then((function(t){i.info(),i.$Message.success(t.msg)})).catch((function(t){i.$Message.error(t.msg)}))},onchangeIsShow:function(t){var n=this;Object(o.E)("setting/group_data/set_status/"+t.id+"/"+t.status).then(function(){var t=u(r.a.mark((function t(e){return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.$Message.success(e.msg),n.info();case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}()).catch((function(t){n.$Message.error(t.msg)}))},getListHeader:function(){var t=this;this.loading=!0,Object(o.C)({config_name:this.name},"setting/sign_data/header").then((function(n){t.columns=n.data.header,t.loading=!1})).catch((function(n){t.loading=!1,t.$Message.error(n.msg)}))},color:function(){var t=this;Object(s.h)("color_change").then((function(n){t.statusColor=n.data.status}))}}},d=(e("88551"),e("2877")),m=Object(d.a)(g,(function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",[i("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[i("Row",{staticClass:"ivu-mt acea-row"},[i("Col",{staticClass:"iframe",attrs:{bordered:!1}},[i("div",{staticClass:"iframe-box"},[1==t.statusColor?i("img",{attrs:{src:e("713f")}}):t._e(),2==t.statusColor?i("img",{attrs:{src:e("bceb")}}):t._e(),3==t.statusColor?i("img",{attrs:{src:e("90be")}}):t._e(),4==t.statusColor?i("img",{attrs:{src:e("943f")}}):t._e(),5==t.statusColor?i("img",{attrs:{src:e("89c2")}}):t._e(),6==t.statusColor?i("img",{attrs:{src:e("e8f4")}}):t._e()])]),i("Col",{staticClass:"right ml20"},[i("div",{staticClass:"table_box"},[i("Row",{attrs:{type:"flex"}},[i("Col",t._b({},"Col",t.grid,!1),[i("div",{staticClass:"title"},[t._v("签到天数设置")]),i("Button",{staticClass:"ml14 mt30",attrs:{type:"primary"},on:{click:function(n){return t.groupAdd("添加数据")}}},[t._v("添加数据")])],1)],1),i("div",{staticClass:"table"},[i("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.signList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(n){var e=n.row;return n.index,[i("i-switch",{attrs:{value:e.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(n){return t.onchangeIsShow(e)}},model:{value:e.status,callback:function(n){t.$set(e,"status",n)},expression:"row.status"}},[i("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),i("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(n){var e=n.row,r=n.index;return[i("a",{on:{click:function(n){return t.edit(e,"编辑")}}},[t._v("编辑")]),i("Divider",{attrs:{type:"vertical"}}),i("a",{on:{click:function(n){return t.del(e,"删除这条信息",r)}}},[t._v("删除")])]}}])})],1)],1)])],1)],1)],1)}),[],!1,null,"275e5b60",null);n.default=m.exports},e8f4:function(t,n,e){t.exports=e.p+"view_admin/img/goldsgin.c477fb98.png"}}]);
|