徐总多门店
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.
 
 
 
 
 
 

1 lines
5.8 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5375aee4"],{"3e2d":function(t,e,n){"use strict";n("57ab")},"57ab":function(t,e,n){},7991:function(t,e,n){"use strict";n.r(e);var i=n("2f62"),r=n("c4c8");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"ensure",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"服务条款",key:"name",minWidth:100},{title:"图标",slot:"image",minWidth:100},{title:"内容描述",slot:"desc",minWidth:100},{title:"使用商品",key:"product_count",minWidth:100},{title:"是否显示",slot:"status",minWidth:100},{title:"排序",key:"sort",minWidth:100},{title:"创建时间",key:"add_time",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:120}],ensureFrom:{page:1,limit:15,name:""},list:[],total:0}},computed:a(a({},Object(i.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{ensureSearchs:function(){this.ensureFrom.page=1,this.list=[],this.getList()},showBnt:function(t){var e=this,n={id:t.id,is_show:t.status};Object(r.n)(n).then((function(t){e.$Message.success(t.msg)})).catch((function(t){e.$Message.error(t.msg)}))},add:function(){var t=this;this.$modalForm(Object(r.M)()).then((function(){return t.getList()}))},getList:function(){var t=this;this.loading=!0,Object(r.L)(this.ensureFrom).then((function(e){var n=e.data;t.list=n.list,t.total=n.count,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.ensureFrom.page=t,this.getList()},edit:function(t){var e=this;this.$modalForm(Object(r.N)(t)).then((function(){return e.getList()}))},del:function(t,e,n){var i=this,r={title:e,num:n,url:"product/ensure/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(r).then((function(t){i.$Message.success(t.msg),i.list.splice(n,1),i.list.length||(i.ensureFrom.page=1==i.ensureFrom.page?1:i.ensureFrom.page-1),i.getList()})).catch((function(t){i.$Message.error(t.msg)}))}}},u=(n("3e2d"),n("2877")),d=Object(u.a)(c,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Form",{ref:"ensureFrom",attrs:{inline:"",model:t.ensureFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[e("Col",{attrs:{span:"24"}},[e("FormItem",{attrs:{label:"搜索:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入服务条款、ID"},model:{value:t.ensureFrom.name,callback:function(e){t.$set(t.ensureFrom,"name",e)},expression:"ensureFrom.name"}}),e("Button",{attrs:{type:"primary"},on:{click:t.ensureSearchs}},[t._v("查询")])],1)],1)],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("Button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加保障服务")])],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.list,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var n=t.row;return t.index,[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.image,expression:"row.image"}]})])])]}},{key:"status",fn:function(n){var i=n.row;return n.index,[e("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.showBnt(i)}},model:{value:i.status,callback:function(e){t.$set(i,"status",e)},expression:"row.status"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"desc",fn:function(n){var i=n.row;return n.index,[e("Tooltip",{attrs:{"max-width":"200",placement:"bottom"}},[e("span",{staticClass:"line2"},[t._v(t._s(i.desc))]),e("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(i.desc))])])]}},{key:"action",fn:function(n){var i=n.row,r=n.index;return[e("a",{on:{click:function(e){return t.edit(i.id)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(i,"删除保障服务",r)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.ensureFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"1e80007c",null);e.default=d.exports}}]);