12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56ed8e0f"],{"0bfe":function(t,e,n){},"0d9e":function(t,e,n){"use strict";n("3345")},"21c9":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAw1JREFUWEftWU1IVFEU/s59zg9lhOZGE1pIkhUFleImrIgQIRprxoVYSEEQSJtSxI1WKJLRKi0kgogKnDBpUyLkqkVRFGGIgmEL+zMsJkNnxnk37htfMzrjzH3Px8wE3uW8c777nXPPOffcM4R46yy3YSbgAqkugPYBKADn2XFlzf5INAvgM8Bfg7MB5NoH0EvB5XAUg+/xVwO8C5wXmd3blB7RBECN8DoeR+tHCLZxhg/+TnDeaGoDq5SIurDD0Yw2UgVkhKBn/mrayelGCpJeZ1OEoDhWrvZb5QRLcIgdF8dNEAnx0z+a8phLZoWIyRxHCcHt9wBqXzJ5/XtpEaGhMgstD4OYmpHVMivHagieufvgqJWFqNvPcO+8HYPvQqhsj1SFnPVAcX5sUYiH65sDRqd48i0JDwie+TFwXpxcOiLx6IINJ8oVnOsN4tZQSPtQXcbQ32iXghkeCeHQpZiSF6tLNC4I/jZahPM2ACPXHch2ArsvBjDxjWvec5WxhASFfzvrbDBAcJbgnpPwNdB0TEHJZsLpngUIhaN7GZ4023HZu4DWvgUpzzECQn1OeYJaHZQk+LzVhoM7FSg181AXTRJeG/8iZZ9mQMoJSrktSijlBDeuAwpzE2fu5DTHH3+YZcoJnqpguNuQOHOPXAlg6L12raaP4MCrEN58DJPQV8V2hsO7FGQEwTM9QdwZDtdDfbVUK2ivta0R/OeReGVGj8E1D8rUs//ag5+mOX74lt4o+TmEglxKb5K4Shm6TmYlPID67iBejIXJp7xQy4RGtMwaweXdjFEPbskDJm868fRtCFUdEg3ratstGYLucgbOAcaA+gMKqvYoaLgdRPfg0ptnJaxV9YMyBF922FG2NdxpqyrXEsZ9LYDvPhltAw2ryNjCTYQbz+Qs17ffVkAQJUes0SkVX3/JEdOlpD1oDNY6aVOPJuu2T45k6tmZHNY6CcMPd+u2lkMyPPqQg7VOKnOHR4s2hvM/E8dvSwhqJDNogBkVIZk3Al4WvpkzRF8hr+KPBVLxN4Rkov8FcwoOVs89lzwAAAAASUVORK5CYII="},3345:function(t,e,n){},"3c67":function(t,e,n){"use strict";n.r(e);n("d25f");var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("div",{staticClass:"wrap-title"},[e("TitleControl",{attrs:{title:"我的提问"},on:{handleChange:t.handleSearch}},[e("div",{staticClass:"control-btn",attrs:{slot:"control"},slot:"control"},[t.manageType?e("div",{staticClass:"manage cancel",on:{click:function(e){t.manageType=!1}}},[t._v("\n 取消\n ")]):e("div",{staticClass:"manage",on:{click:function(e){t.manageType=!0}}},[t._v("\n 管理\n ")])])])],1),e("div",{staticClass:"wrap-content"},[t.manageType?e("div",{staticClass:"del-box"},[e("div",{staticClass:"radio"},[e("el-checkbox",{on:{change:t.changeAllChecked},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}})],1),e("div",{staticClass:"btn",on:{click:function(e){t.handleDelete(t.list.filter((function(t){return t.checked})))}}},[t._v("\n 删除\n ")])]):t._e(),e("div",{staticClass:"list"},[t._l(t.list,(function(n){return e("div",{key:n.id,staticClass:"list-item"},[t.manageType?e("div",{staticClass:"radio"},[e("el-checkbox",{model:{value:n.checked,callback:function(e){t.$set(n,"checked",e)},expression:"item.checked"}})],1):t._e(),e("div",{staticClass:"card",style:t.manageType?{width:"calc(100% - 60px)"}:""},[e("MyCommentCard",{attrs:{info:n,manageType:t.manageType},on:{handleEdit:function(e){return t.handleEdit(n)},handleDelete:function(e){return t.handleDelete([n])},handleToDetail:function(e){return t.handleToDetail(n,"question",{forum_id:"id"})}}})],1)])})),t.finished?e("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)])])},a=[],s=(n("1c01"),n("58b2"),n("8e6e"),n("456d"),n("28a5"),n("6762"),n("2fdb"),n("2909")),c=n("ade3"),r=(n("6d67"),n("ac6a"),n("f3e2"),function(){var t=this,e=t._self._c;return e("CardBox",t._g({staticStyle:{padding:"15px 20px"},attrs:{btnList:t.btnList}},t.$listeners),[e("div",{staticClass:"card",on:{click:function(e){return t.$emit("handleToDetail")}}},[e("div",{staticClass:"title"},[e("img",{staticClass:"icon",attrs:{src:n("21c9"),alt:""}}),t._v("\n "+t._s(t.info.title)+"\n ")]),e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.formatRichText1(t.info.content)||"")}}),e("div",{staticClass:"tag"},t._l(t.info.label_name,(function(n){return e("div",{staticClass:"tag-item"},[t._v(t._s(n))])})),0),e("div",{staticClass:"footer"},[e("img",{staticClass:"icon",attrs:{src:n("4314"),alt:""}}),e("div",{staticClass:"answer-read"},[t._v("\n "+t._s(t.info.reply_num)+"人回答 · "+t._s(t.info.browse_num)+"阅读量 ·\n "+t._s(t.info.create_at)+"\n ")])])])])}),o=[],l=n("325c"),u=n("c191"),d={name:"MyQuestionCard",components:{CardBox:u["a"]},props:{info:{default:function(){return{}}},manageType:{type:Boolean,default:!1}},computed:{btnList:function(){var t=["del","edit"];return this.manageType?[]:t}},methods:{formatRichText1:l["c"]}},f=d,p=(n("4358"),n("2877")),h=Object(p["a"])(f,r,o,!1,null,"a9fddeb8",null),g=h.exports,m=n("7e74"),A=n("f523");function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){Object(c["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C={components:{MyCommentCard:g,TitleControl:m["a"]},data:function(){return{list:[],params:{page:1,page_num:20,sort_type:1},finished:!1,manageType:!1,allChecked:!1,list_copy:""}},watch:{manageType:function(t){!t&&(this.allChecked=!1),this.list.forEach((function(t){return t.checked=!1}))}},mounted:function(){this.getList()},methods:{TouchBottom:function(){this.finished||this.getList()},changeAllChecked:function(t){this.list.map((function(e){return e.checked=t}))},getList:function(){var t=this;A["f"].getUserForumList(this.params).then((function(e){var n=e.data,i=n.list.map((function(t){return v({checked:!1},t)}));t.list=1===t.params.page?i:[].concat(Object(s["a"])(t.list),Object(s["a"])(i)),i.length<t.params.page_num?t.finished=!0:t.params.page++}))},handleDelete:function(t){var e=this;this.showConfirmPopup("确定要删除该信息?").then((function(){var n={id:"",type:10};n.id=t.map((function(t){return t.id})).join(","),n.id&&A["f"].batchesDel(n).then((function(t){t.data;var i=e.list.map((function(t){return n.id.split(",").includes(t.id+"")?"":t})).filter((function(t){return t}));e.list=i,e.$message.success("删除成功!"),e.manageType=!1}))})).catch((function(t){}))},handleEdit:function(t){this.$router.push({path:"/forum-contribute",query:{forum_id:t.id}})},handleToDetail:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"question",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{forum_id:"forum_id",reply_id:"id"};if(Object.keys(t).includes("is_normal")&&!t.is_normal)return this.$message.error("该问题已失效");this.$router.push({path:"question"==e?"/forum-question-details":"/forum-answer-item",query:{forum_id:t[n.forum_id],reply_id:t[n.reply_id]}})},handleSearch:function(t){this.list_copy||(this.list_copy=this.list),t?this.list=this.list_copy.filter((function(e){return e.content.includes(t)||e.title.includes(t)||e.label.includes(t)})):(this.list=this.list_copy,this.list_copy="")}}},y=C,O=(n("0d9e"),Object(p["a"])(y,i,a,!1,null,"692fedfa",null));e["default"]=O.exports},4314:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABK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8emAGbQMXsbP/b9AE52BVxbkQqVMwKW/W/DWpUKf83kBRgVG4uF7knHG3DTtk+zT0wSD9Ign0Gc3w2Az+pzGC3CiSqAkECrFAz6FvRkYbV1cKRIyBAOqFAnYm1YtxIfbdsOFPBhtVwXN9RuQtTa2rvgM1olYu5xRQFb79l87xIcPr8av5Wri/4AsXK41eNJUj9O9DbwimBmdgWfnZ81sBHmRTTKa0RSzYn26t5EXZ2a0GtkzFUGlTIHlUU+iw9LJu2SwZcHa4llzk6A+zO5ecJnhFTIRjYhap7FQCqWImqJJOV+adBo9KBJFUxVTiL12qnWaA5RinZi6YmkRgoNErctaQyn9RixRMXW4rY+85rwAvcXYRoGFYorfrZZ784gJqXVZKymlR+9WVMz57u03l6hap9lJKYrEdOKvlscGpkukjJZJGhrPfjDbkFO2gCffJUs3KK2Y6TXJ1pzXTXRvaeAeHOvVHIDmUCCVALFiF3O+f0P8AykzESWicFq5AAAAAElFTkSuQmCC"},4358:function(t,e,n){"use strict";n("f1f4")},"7e74":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("div",{staticClass:"top"},[e("div",{staticClass:"left"},[t._v(t._s(t.title))]),e("div",{staticClass:"center"},[t.showSearch?e("el-input",{attrs:{clearable:"",placeholder:"搜索"},on:{change:function(e){return t.$emit("handleChange",e)}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}},[e("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]):t._e()],1),e("div",{staticClass:"right"},[t._t("control")],2)]),e("div",{staticClass:"bottom"},[t._t("bottom")],2)])},a=[],s={name:"TitleControl",props:{title:{type:String,required:!0},showSearch:{type:Boolean,default:!0}},data:function(){return{content:""}}},c=s,r=(n("e6d2"),n("2877")),o=Object(r["a"])(c,i,a,!1,null,"52e2b05d",null);e["a"]=o.exports},"9ea2":function(t,e,n){"use strict";n("bf4e")},bf4e:function(t,e,n){},c191:function(t,e,n){"use strict";n("6762"),n("2fdb");var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-box"},[t._t("default"),e("div",{staticClass:"btn-box"},[t.del_Btn.show?e("div",{staticClass:"del-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleDelete")}}},[e("span",[t._v(t._s(t.del_Btn.value||"删除"))])]):t._e(),t.btnList.includes("edit")?e("div",{staticClass:"edit-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleEdit")}}},[e("span",[t._v("编辑")])]):t._e(),t.btnList.includes("isRead")?e("div",{staticClass:"mark-read-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleRead")}}},[e("span",[t._v("标记已读")])]):t._e(),t.btnList.includes("unRead")?e("div",{staticClass:"mark-unread-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleRead")}}},[e("span",[t._v("标记未读")])]):t._e()])],2)},a=[],s=(n("1c01"),n("58b2"),n("8e6e"),n("d25f"),n("456d"),n("ade3")),c=n("53ca");n("ac6a"),n("f3e2");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={name:"CardBox",props:{btnList:{type:Array,default:function(t){return[]}}},data:function(){return{}},computed:{del_Btn:function(){var t={show:!1};return this.btnList.forEach((function(e){"string"==typeof e&&"del"==e?t.show=!0:"object"==Object(c["a"])(e)&&"del"==e.type&&(t=o(o({},e),{},{show:!0}))})),t}}},u=l,d=(n("9ea2"),n("2877")),f=Object(d["a"])(u,i,a,!1,null,"42f5fe43",null);e["a"]=f.exports},e6d2:function(t,e,n){"use strict";n("0bfe")},f1f4:function(t,e,n){}}]);
- //# sourceMappingURL=chunk-56ed8e0f.eaf75443.js.map
|