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-45fd3c96.8f4f374d.js

1 lines
10 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45fd3c96"],{"056a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAsEvn79Orx8+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PuMfpzh+OrQ3+ATCP31yf+OKCYE48Mfv/V/X+I3bFw9+P2BpJjFj2v+c1h6/DozB7ddHqP/uWmXulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"5c68":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加社区话题")])],1),t._v(" "),n("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":"topic_id"}},[n("el-table-column",{attrs:{label:"话题名称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.topic_name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"话题图标","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.pic?e.row.pic:t.moren,"preview-src-list":[e.row.pic?e.row.pic:t.moren]}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"上级分类","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.category&&e.row.category.cate_name))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"count_use",label:"文章数","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"}}),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:"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.onchangeIsHot(e.row)}},model:{value:e.row.is_hot,callback:function(n){t.$set(e.row,"is_hot",n)},expression:"scope.row.is_hot"}})]}}])}),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.topic_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.topic_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},a=[],i=n("7998"),c={name:"communityTopic",data:function(){return{moren:n("056a"),isChecked:!1,listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(i["t"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onAdd:function(){var t=this;this.$modalForm(Object(i["q"])()).then((function(){return t.getList()}))},onEdit:function(t){var e=this;this.$modalForm(Object(i["w"])(t)).then((function(){return e.getList()}))},handleDelete:function(t,e){var n=this;this.$modalSure("确定删除该话题").then((function(){Object(i["r"])(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)}))}))},onchangeIsShow:function(t){var e=this;Object(i["v"])(t.topic_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)}))},onchangeIsHot:function(t){var e=this;Object(i["s"])(t.topic_id,t.is_hot).then((function(t){var n=t.message;e.$message.success(n)})).catch((function(t){var n=t.message;e.$message.error(n)}))}}},r=c,u=n("2877"),A=Object(u["a"])(r,o,a,!1,null,"4695a4a8",null);e["default"]=A.exports},7998:function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"g",(function(){return c})),n.d(e,"d",(function(){return r})),n.d(e,"f",(function(){return u})),n.d(e,"t",(function(){return A})),n.d(e,"q",(function(){return s})),n.d(e,"w",(function(){return l})),n.d(e,"r",(function(){return m})),n.d(e,"v",(function(){return d})),n.d(e,"s",(function(){return g})),n.d(e,"j",(function(){return f})),n.d(e,"i",(function(){return Q})),n.d(e,"a",(function(){return h})),n.d(e,"x",(function(){return p})),n.d(e,"o",(function(){return B})),n.d(e,"h",(function(){return C})),n.d(e,"k",(function(){return E})),n.d(e,"b",(function(){return I})),n.d(e,"u",(function(){return v})),n.d(e,"m",(function(){return w})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return b})),n.d(e,"p",(function(){return x}));var o=n("0c6d");function a(t){return o["a"].get("community/category/lst",t)}function i(){return o["a"].get("community/category/create/form")}function c(t){return o["a"].get("community/category/update/".concat(t,"/form"))}function r(t){return o["a"].delete("community/category/delete/".concat(t))}function u(t,e){return o["a"].post("community/category/status/".concat(t),{status:e})}function A(t){return o["a"].get("community/topic/lst",t)}function s(){return o["a"].get("community/topic/create/form")}function l(t){return o["a"].get("community/topic/update/".concat(t,"/form"))}function m(t){return o["a"].delete("community/topic/delete/".concat(t))}function d(t,e){return o["a"].post("community/topic/status/".concat(t),{status:e})}function g(t,e){return o["a"].post("community/topic/hot/".concat(t),{status:e})}function f(t){return o["a"].get("community/lst",t)}function Q(t){return o["a"].get("community/detail/".concat(t))}function h(t,e){return o["a"].post("community/status/".concat(t),e)}function p(t){return o["a"].get("community/update/".concat(t,"/form"))}function B(t,e){return o["a"].post("community/show/".concat(t),{status:e})}function C(t){return o["a"].delete("community/delete/".concat(t))}function E(t){return o["a"].get("community/status/".concat(t,"/form"))}function I(){return o["a"].get("community/category/option")}function v(){return o["a"].get("community/topic/option")}function w(t){return o["a"].get("community/reply/lst",t)}function y(t){return o["a"].delete("community/reply/delete/".concat(t))}function b(t){return o["a"].get("community/reply/status/".concat(t,"/form"))}function x(){return o["a"].get("community/title")}}}]);