启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-7de33284.6f04fc8c.js

1 lines
4.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7de33284"],{1336:function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"k",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"f",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"g",(function(){return m})),n.d(e,"d",(function(){return g})),n.d(e,"j",(function(){return h}));var a=n("0c6d");function i(){return a["a"].get("system/article/category/lst")}function r(){return a["a"].get("system/article/category/select")}function c(){return a["a"].get("system/article/category/create/form")}function s(t){return a["a"].get("system/article/category/update/form/".concat(t))}function o(t){return a["a"].delete("system/article/category/delete/".concat(t))}function l(t,e){return a["a"].post("system/article/category/status/".concat(t),{status:e})}function u(t){return a["a"].get("system/article/article/lst",t)}function d(t){return a["a"].get("system/article/article/detail/".concat(t))}function f(t){return a["a"].post("system/article/article/create",t)}function m(t,e){return a["a"].post("system/article/article/update/".concat(e),t)}function g(t){return a["a"].delete("system/article/article/delete/".concat(t))}function h(t,e){return a["a"].post("system/article/article/status/".concat(t),{status:e})}},"53c7":function(t,e,n){},bf5c:function(t,e,n){"use strict";n("53c7")},fe8f:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",[n("div",{staticClass:"mb20"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onAdd(0)}}},[t._v("添加文章分类")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","row-key":"article_category_id","default-expand-all":!1}},[n("el-table-column",{attrs:{label:"分类名称","min-width":"150","tree-props":{children:"children",hasChildren:"hasChildren"}},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.title+" [ "+e.row.article_category_id+" ]"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"info",label:"配置分类说明","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"分类图片","min-width":"120",prop:"image"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.image,"preview-src-list":[t.row.image]}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(n){t.$set(e.row,"status",n)},expression:"scope.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row.article_category_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.article_category_id,e.$index)}}},[t._v("删除")])]}}])})],1)],1)],1)},i=[],r=(n("c5f6"),n("1336")),c={name:"ArticleCategory",data:function(){return{tableData:{data:[],loading:!1,indexNum:0},listLoading:!0,previewSrcList:[]}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(r["h"])().then((function(e){t.tableData.data=e.data,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableData.page=t,this.getList()},handleSizeChange:function(t){this.tableData.limit=t,this.getList()},onchangeIsShow:function(t){var e=this;Object(r["k"])(t.article_category_id,t.status).then((function(t){var n=t.message;e.$message.success(n)})).catch((function(t){var n=t.message;e.$message.error(n)}))},onAdd:function(t){var e=this,n={};Number(t)>0&&(n.formData={pid:t}),this.$modalForm(Object(r["c"])(),n).then((function(){return e.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(r["l"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var n=this;this.$modalSure().then((function(){Object(r["e"])(t).then((function(t){var e=t.message;n.$message.success(e),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}))}}},s=c,o=(n("bf5c"),n("2877")),l=Object(o["a"])(s,a,i,!1,null,"aa22dea6",null);e["default"]=l.exports}}]);