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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-3e85f408.b1310b18.js

1 lines
4.3 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e85f408"],{3540:function(t,e,a){"use strict";a.d(e,"g",(function(){return i})),a.d(e,"h",(function(){return r})),a.d(e,"f",(function(){return c})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"e",(function(){return u})),a.d(e,"b",(function(){return l})),a.d(e,"d",(function(){return d})),a.d(e,"i",(function(){return f}));var n=a("0c6d");function i(t){return n["a"].get("user/feedback/lst",t)}function r(t){return n["a"].post("user/feedback/reply/".concat(t))}function c(t){return n["a"].delete("user/feedback/delete/".concat(t))}function s(t){return n["a"].get("user/feedback/category/lst",t)}function o(){return n["a"].get("user/feedback/category/create/form")}function u(t){return n["a"].get("user/feedback/category/update/".concat(t,"/form"))}function l(t){return n["a"].delete("user/feedback/category/delete/".concat(t))}function d(t,e){return n["a"].post("user/feedback/category/status/".concat(t),{status:e})}function f(t){return n["a"].get("user/feedback/reply/".concat(t,"/form"))}},7501:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加反馈分类")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","row-key":"feedback_category_id","default-expand-all":!1,"tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{label:"分类名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.cate_name+" [ "+e.row.feedback_category_id+" ]"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.feedback_category_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.feedback_category_id,e.$index)}}},[t._v("删除")])]}}])})],1)],1)],1)},i=[],r=a("3540"),c={name:"ProductClassify",data:function(){return{isChecked:!1,listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20},imgList:[]}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(r["c"])(this.tableFrom).then((function(e){t.tableData.data=e.data,t.tableData.total=e.data.count,t.tableData.data.map((function(e){t.imgList.push(e.pic)})),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()},onAdd:function(){var t=this;this.$modalForm(Object(r["a"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(r["e"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(r["b"])(t).then((function(t){var e=t.message;a.$message.success(e),a.getList()})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(r["d"])(t.feedback_category_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a)})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},s=c,o=a("2877"),u=Object(o["a"])(s,n,i,!1,null,"916b515e",null);e["default"]=u.exports}}]);