12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26b1b9c8"],{4325: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("MyReplyCard",{attrs:{info:n,manageType:t.manageType},on:{reply:function(e){return t.handleReply(n)},handleDelete:function(e){return t.handleDelete([n])},handleToDetail:function(e){return t.handleToDetail(n,{id:"url_id",datum_id:"datum_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");n("6d67"),n("ac6a"),n("f3e2"),n("7f7f");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(c["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=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card"},[e("CardBox",t._g({staticStyle:{padding:"15px 20px"},attrs:{btnList:t.btnList}},t.$listeners),[e("div",{staticClass:"header"},[e("CardHeader",{attrs:{avatar:t.userInfo.headimg,name:t.userInfo.name,time:t.info.create_at,btnList:[]}})],1),e("div",{staticClass:"content"},[e("CardContent",{attrs:{content:"@".concat(t.info.user_name,":").concat(t.info.content)}})],1),e("div",{staticClass:"target",on:{click:function(e){return t.$emit("handleToDetail")}}},[e("CardContent",{staticStyle:{"margin-bottom":"10px"},attrs:{content:"@".concat(t.info.user_name,":").concat(t.info.parent_comment.content)}}),e("CardFileDetail",{attrs:{info:o({app_logo:t.info.parent_comment.app_logo,app_name:t.info.parent_comment.app_name,url:t.info.parent_comment.url,title:t.info.parent_comment.title,series_title:t.info.parent_comment.series_title},t.info)}})],1)])],1)},d=[],u=n("c191"),f=n("a7e8"),p=n("3d06"),m=n("4e8f"),h={name:"MyReplyCard",components:{CardBox:u["a"],CardHeader:f["a"],CardContent:p["a"],CardFileDetail:m["a"]},props:{info:{type:Object},manageType:{type:Boolean,default:!1}},data:function(){return{}},computed:{btnList:function(){var t=["del"];return this.manageType?[]:t},userInfo:function(){return this.$store.state.userInfo}}},b=h,_=(n("dee6"),n("2877")),v=Object(_["a"])(b,l,d,!1,null,"35223ac7",null),y=v.exports,g=n("7e74"),C=n("f523");function O(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 j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){Object(c["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var k={components:{MyReplyCard:y,TitleControl:g["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;C["d"].getReplyDatum(this.params).then((function(e){var n=e.data,i=n.list.map((function(t){return j({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:3};n.id=t.map((function(t){return t.id})).join(","),n.id&&C["d"].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){}))},handleToDetail:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:"id",datum_id:"datum_id"};if(Object.keys(t).includes("is_normal")&&!t.is_normal)return this.$message.error("该资料已下架");this.$router.push({path:"/information-details",query:{url_id:t[e.id],id:t[e.datum_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)})):(this.list=this.list_copy,this.list_copy="")}}},w=k,T=(n("c885"),Object(_["a"])(w,i,a,!1,null,"2a43ebd3",null));e["default"]=T.exports},"4e8f":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-file-detail"},[e("div",{staticClass:"file-box"},[t.is_normal?e("img",{staticClass:"file-icon",attrs:{src:t.fileIcon,alt:""}}):e("div",{staticClass:"is_normal"},[e("img",{attrs:{src:n("780b"),alt:""}})]),t.is_normal?t._e():e("div",{staticClass:"type"},[t._v(t._s("已失效"))])]),t.is_normal?e("div",{staticClass:"info-box"},[e("div",{staticClass:"title-box"},[e("div",{staticClass:"series-title"},[t._v(t._s(t.info.series_title))]),e("div",{staticClass:"title"},[t._v(t._s(t.info.title))])]),e("div",{staticClass:"footer"},[e("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo,alt:""}}),e("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))]),e("img",{staticClass:"icon",attrs:{src:n("565b")}}),e("div",{staticClass:"read-num"},[t._v(t._s(t.info.read_num||0))])])]):e("div",{staticClass:"info-box"},[e("div",{staticClass:"is_normal"},[t._v("已失效")])])])},a=[],s=(n("f6b3"),n("325c")),c={name:"CardFileDetail",props:{info:{type:Object}},computed:{is_normal:function(){return!Reflect.has(this.info,"is_normal")||!!this.info.is_normal},fileType:function(){return Object(s["d"])(this.info.url||"")},fileIcon:function(){return Object(s["c"])("".concat(this.fileType,"_bg"))}}},r=c,o=(n("82b7"),n("2877")),l=Object(o["a"])(r,i,a,!1,null,"3c968450",null);e["a"]=l.exports},"82b7":function(t,e,n){"use strict";n("96b9")},"968a":function(t,e,n){},"96b9":function(t,e,n){},c885:function(t,e,n){"use strict";n("968a")},dee6:function(t,e,n){"use strict";n("e5e7")},e5e7:function(t,e,n){}}]);
- //# sourceMappingURL=chunk-26b1b9c8.2c15cc4e.js.map
|