new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-6d02b352.151b1ee5.js

1 line
11 KiB
JavaScript
Raw Normal View History

2025-03-12 10:47:34 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6d02b352"],{"644d":function(t,e,n){n.r(e);var r=n("5530"),u=(n("a434"),n("2f62")),o=n("8593");r={name:"index",computed:Object(r.a)(Object(r.a)(Object(r.a)({},Object(u.c)("media",["isMobile"])),Object(u.c)("userLevel",["categoryId"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),data:function(){return{verModal:!1,total:20,tableFrom:{page:1,limit:15},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(o.jb)(0)).then((function(e){t.getList()}))},getList:function(){var t=this;this.loading=!0,Object(o.kb)().then((function(e){t.tableList=e.data.list,t.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.msg),t.loading=!1}))},edit:function(t){var e=this;this.$modalForm(Object(o.jb)(t.id)).then((function(t){e.getList()}))},del:function(t,e,n){var r=this;e={title:e,num:n,url:"app/version/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){r.$message.success(t.msg),r.tableList.splice(n,1)})).catch((function(t){r.$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(){}}},u=n("2877"),n=Object(u.a)(r,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-row",{staticClass:"mb20"},[e("el-col",{attrs:{span:24}},[e("el-button",{staticClass:"mr10",attrs:{type:"primary"},on:{click:t.add}},[t._v("发布版本")])],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"版本号",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[n.row.is_new?e("el-tooltip",{attrs:{effect:"light",trigger:"hover",placement:"top-start",content:"当前为最新线上版本!"}},[e("i",{staticClass:"el-icon-s-promotion",staticStyle:{"font-size":"16px",color:"red"}})]):t._e()]}}])}),e("el-table-column",{attrs:{label:"平台类型","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("span",[t._v(t._s(1===n.row.platform?"安卓":"苹果"))])])]}}])}),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(1===n.row.is_force?"强制":"非强制"))])]}}])}),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.add_time))])]}}])}),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.url))])]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"60"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{on:{click:function(e){return t.edit(n.row)}}},[t._v("编辑")])]}}])})],1)],1)],1)}),[],!1,null,"708f8dc0",null);e.default=n.exports},8593:function(t,e,n){n.d(e,"i",(function(){return u})),n.d(e,"g",(function(){return o})),n.d(e,"h",(function(){return i})),n.d(e,"W",(function(){return a})),n.d(e,"m",(function(){return c})),n.d(e,"k",(function(){return s})),n.d(e,"l",(function(){return d})),n.d(e,"j",(function(){return l})),n.d(e,"J",(function(){return f})),n.d(e,"B",(function(){return m})),n.d(e,"I",(function(){return b})),n.d(e,"G",(function(){retu