mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-20 07:20:24 +00:00
1 line
3.4 KiB
JavaScript
1 line
3.4 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d0cf6e4"],{"644d":function(t,e,i){"use strict";i.r(e);var n=i("f3f3"),o=(i("a434"),i("2f62")),s=i("8593");n={name:"index",computed:Object(n.a)(Object(n.a)(Object(n.a)({},Object(o.e)("media",["isMobile"])),Object(o.e)("userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),data:function(){return{verModal:!1,total:20,tableFrom:{page:1,limit:15},columns1:[{title:"版本号",slot:"version",width:80},{title:"平台类型",slot:"platform",align:"center",minWidth:120},{title:"升级信息",key:"info",minWidth:60},{title:"是否强制",slot:"is_force",minWidth:120},{title:"发布日期",key:"add_time",minWidth:120},{title:"下载地址",key:"url",minWidth:120},{title:"操作",slot:"action",align:"center",minWidth:50}],loading:!1,tableList:[]}},created:function(){this.getList()},methods:{submitFail:function(){this.getList()},record:function(t){this.rows=t,this.modals3=!0,this.isChat=!0,this.getListRecord()},add:function(){var t=this;this.$modalForm(Object(s.ib)(0)).then((function(e){t.getList()}))},getList:function(){var t=this;this.loading=!0,Object(s.jb)().then((function(e){t.tableList=e.data.list,t.total=e.data.count,t.loading=!1})).catch((function(e){t.$Message.error(e),t.loading=!1}))},edit:function(t){var e=this;this.$modalForm(Object(s.ib)(t.id)).then((function(t){e.getList()}))},del:function(t,e,i){var n=this;e={title:e,num:i,url:"app/version/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){n.$Message.success(t.msg),n.tableList.splice(i,1)})).catch((function(t){n.$Message.error(t.msg)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?e.$Message.success("成功!"):e.$Message.error("失败!")}))},handleReset:function(t){this.$refs[t].resetFields()},pageChange:function(){}}},o=i("2877"),i=Object(o.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[i("Row",{staticClass:"mb20",attrs:{type:"flex"}},[i("Col",{attrs:{span:"24"}},[i("Button",{staticClass:"mr10",attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("发布版本")])],1)],1),i("Table",{attrs:{columns:t.columns1,data:t.tableList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"version",fn:function(e){return e=e.row,[e.is_new?i("Poptip",{attrs:{trigger:"hover",placement:"top-start",content:"当前为最新线上版本!"}},[i("Icon",{staticStyle:{"margin-right":"10px"},attrs:{size:"16",type:"ios-bookmark",color:"red"}})],1):i("Icon",{staticStyle:{"margin-right":"10px"},attrs:{size:"16",type:"ios-bookmark",color:"white"}}),i("span",[t._v(t._s(e.version)+" ")])]}},{key:"platform",fn:function(e){return e=e.row,[i("span",[t._v(t._s(1===e.platform?"安卓":"苹果"))])]}},{key:"is_force",fn:function(e){return e=e.row,[i("span",[t._v(t._s(1===e.is_force?"强制":"非强制"))])]}},{key:"action",fn:function(e){var n=e.row;return e.index,[i("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")])]}}])}),i("div",{staticClass:"acea-row row-right page"},[i("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"6f3a1811",null);e.default=i.exports}}]); |