1 |
- {"version":3,"sources":["webpack:///./src/views/forum/children/my-question.vue?043b","webpack:///./src/assets/icon/question.png","webpack:///./src/views/forum/children/my-question.vue","webpack:///./src/components/card/forum/my-question-card.vue","webpack:///src/components/card/forum/my-question-card.vue","webpack:///./src/components/card/forum/my-question-card.vue?f0d2","webpack:///./src/components/card/forum/my-question-card.vue?c40e","webpack:///src/views/forum/children/my-question.vue","webpack:///./src/views/forum/children/my-question.vue?5e8d","webpack:///./src/views/forum/children/my-question.vue?f8d8","webpack:///./src/assets/icon/answer.png","webpack:///./src/components/card/forum/my-question-card.vue?40b0","webpack:///./src/components/module/title-control.vue","webpack:///src/components/module/title-control.vue","webpack:///./src/components/module/title-control.vue?63cb","webpack:///./src/components/module/title-control.vue?b49c","webpack:///./src/components/card/card-module/card-box.vue?216f","webpack:///./src/components/card/card-module/card-box.vue","webpack:///src/components/card/card-module/card-box.vue","webpack:///./src/components/card/card-module/card-box.vue?ffc1","webpack:///./src/components/card/card-module/card-box.vue?ebb6","webpack:///./src/components/module/title-control.vue?877f"],"names":["module","exports","render","_vm","this","_c","_self","staticClass","attrs","on","handleSearch","slot","manageType","$event","_v","changeAllChecked","model","value","allChecked","callback","$$v","expression","handleDelete","list","filter","item","checked","_e","_l","key","id","$set","style","width","handleEdit","handleToDetail","forum_id","finished","staticRenderFns","_g","staticStyle","btnList","$listeners","$emit","require","_s","info","title","domProps","formatRichText1","content","label_name","tag","reply_num","browse_num","create_at","name","components","CardBox","props","default","type","Boolean","computed","arr","methods","component","MyCommentCard","TitleControl","data","params","page","page_num","sort_type","list_copy","watch","val","forEach","mounted","getList","TouchBottom","map","_this","ForumService","getUserForumList","then","_ref","_objectSpread","concat","_toConsumableArray","length","that","showConfirmPopup","join","batchesDel","_ref2","split","includes","$message","success","catch","_","$router","push","path","query","arguments","undefined","reply_id","Object","keys","is_normal","error","label","showSearch","_t","String","required","del_Btn","show","stopPropagation","Array","del","_typeof"],"mappings":"2IAAA,W,qBCAAA,EAAOC,QAAU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,EAAO2G,kBAAyBrH,EAAIwC,MAAM,iBAAiB,CAACtC,EAAG,OAAO,CAACF,EAAIW,GAAG,YAAYX,EAAIwB,QAAQ,IAEv7BW,EAAkB,G,4qBCmCP,OACfkB,KAAA,UACAG,MAAA,CACAlB,QAAA,CACAoB,KAAA4D,MACA7D,QAAA,SAAAyC,GAAA,YAGAhC,KAAA,WACA,UAEAN,SAAA,CACAuD,QAAA,WACA,IAAAI,EAAA,CAAAH,MAAA,GAQA,OAPA,KAAA9E,QAAAoC,SAAA,SAAApD,GACA,iBAAAA,GAAA,OAAAA,EACAiG,EAAAH,MAAA,EACA,UAAAI,eAAAlG,IAAA,OAAAA,EAAAoC,OACA6D,EAAAnC,IAAA,GAAA9D,GAAA,IAAA8F,MAAA,QAGAG,KC1DgX,I,wBCQ5WxD,EAAY,eACd,EACAhE,EACAoC,GACA,EACA,KACA,WACA,MAIa,OAAA4B,E,2CCnBf,W","file":"js/chunk-56ed8e0f.eaf75443.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-question.vue?vue&type=style&index=0&id=692fedfa&prod&lang=scss&scoped=true&\"","module.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=\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"wrap-title\"},[_c('TitleControl',{attrs:{\"title\":\"我的提问\"},on:{\"handleChange\":_vm.handleSearch}},[_c('div',{staticClass:\"control-btn\",attrs:{\"slot\":\"control\"},slot:\"control\"},[(!_vm.manageType)?_c('div',{staticClass:\"manage\",on:{\"click\":function($event){_vm.manageType = true}}},[_vm._v(\"\\n 管理\\n \")]):_c('div',{staticClass:\"manage cancel\",on:{\"click\":function($event){_vm.manageType = false}}},[_vm._v(\"\\n 取消\\n \")])])])],1),_c('div',{staticClass:\"wrap-content\"},[(_vm.manageType)?_c('div',{staticClass:\"del-box\"},[_c('div',{staticClass:\"radio\"},[_c('el-checkbox',{on:{\"change\":_vm.changeAllChecked},model:{value:(_vm.allChecked),callback:function ($$v) {_vm.allChecked=$$v},expression:\"allChecked\"}})],1),_c('div',{staticClass:\"btn\",on:{\"click\":function($event){_vm.handleDelete(_vm.list.filter((item) => item.checked))}}},[_vm._v(\"\\n 删除\\n \")])]):_vm._e(),_c('div',{staticClass:\"list\"},[_vm._l((_vm.list),function(item){return _c('div',{key:item.id,staticClass:\"list-item\"},[(_vm.manageType)?_c('div',{staticClass:\"radio\"},[_c('el-checkbox',{model:{value:(item.checked),callback:function ($$v) {_vm.$set(item, \"checked\", $$v)},expression:\"item.checked\"}})],1):_vm._e(),_c('div',{staticClass:\"card\",style:(_vm.manageType ? { width: 'calc(100% - 60px)' } : '')},[_c('MyCommentCard',{attrs:{\"info\":item,\"manageType\":_vm.manageType},on:{\"handleEdit\":function($event){return _vm.handleEdit(item)},\"handleDelete\":function($event){return _vm.handleDelete([item])},\"handleToDetail\":function($event){return _vm.handleToDetail(item, 'question', {\n forum_id: 'id',\n })}}})],1)])}),(_vm.finished)?_c('el-empty',{attrs:{\"description\":\"没有更多数据\"}}):_vm._e()],2)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('CardBox',_vm._g({staticStyle:{\"padding\":\"15px 20px\"},attrs:{\"btnList\":_vm.btnList}},_vm.$listeners),[_c('div',{staticClass:\"card\",on:{\"click\":function($event){return _vm.$emit('handleToDetail')}}},[_c('div',{staticClass:\"title\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/icon/question.png\"),\"alt\":\"\"}}),_vm._v(\"\\n \"+_vm._s(_vm.info.title)+\"\\n \")]),_c('div',{staticClass:\"content\",domProps:{\"innerHTML\":_vm._s(_vm.formatRichText1(_vm.info.content) || '')}}),_c('div',{staticClass:\"tag\"},_vm._l((_vm.info.label_name),function(tag){return _c('div',{staticClass:\"tag-item\"},[_vm._v(_vm._s(tag))])}),0),_c('div',{staticClass:\"footer\"},[_c('img',{staticClass:\"icon\",attrs:{\"src\":require(\"@/assets/icon/answer.png\"),\"alt\":\"\"}}),_c('div',{staticClass:\"answer-read\"},[_vm._v(\"\\n \"+_vm._s(_vm.info.reply_num)+\"人回答 · \"+_vm._s(_vm.info.browse_num)+\"阅读量 ·\\n \"+_vm._s(_vm.info.create_at)+\"\\n \")])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <CardBox style=\"padding: 15px 20px\" :btnList=\"btnList\" v-on=\"$listeners\">\r\n <div class=\"card\" @click=\"$emit('handleToDetail')\">\r\n <div class=\"title\">\r\n <img class=\"icon\" src=\"@/assets/icon/question.png\" alt=\"\" />\r\n {{ info.title }}\r\n </div>\r\n <div class=\"content\" v-html=\"formatRichText1(info.content) || ''\"></div>\r\n <div class=\"tag\">\r\n <div class=\"tag-item\" v-for=\"tag in info.label_name\">{{ tag }}</div>\r\n </div>\r\n <div class=\"footer\">\r\n <img class=\"icon\" src=\"@/assets/icon/answer.png\" alt=\"\" />\r\n <div class=\"answer-read\">\r\n {{ info.reply_num }}人回答 · {{ info.browse_num }}阅读量 ·\r\n {{ info.create_at }}\r\n </div>\r\n </div>\r\n </div>\r\n </CardBox>\r\n</template>\r\n\r\n<script>\r\nimport { formatRichText1 } from \"@/common/util\";\r\nimport CardBox from \"../card-module/card-box.vue\";\r\nexport default {\r\n name: \"MyQuestionCard\",\r\n components: { CardBox },\r\n props: {\r\n info: {\r\n default: () => {\r\n return {};\r\n },\r\n },\r\n manageType: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n btnList() {\r\n let arr = [\"del\", \"edit\"];\r\n return this.manageType ? [] : arr;\r\n },\r\n },\r\n methods: {\r\n formatRichText1,\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.card {\r\n width: 100%;\r\n min-width: 750px;\r\n background-color: white;\r\n padding: 10px 0;\r\n box-sizing: border-box;\r\n cursor: pointer;\r\n .title {\r\n width: calc(100% - 40px);\r\n font-size: 20px;\r\n font-weight: 500;\r\n color: #222222;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n .icon {\r\n width: 20px;\r\n height: 20px;\r\n margin-right: 10px;\r\n }\r\n }\r\n .content {\r\n width: calc(100% - 40px);\r\n font-size: 16px;\r\n font-weight: 400;\r\n color: #333333;\r\n margin-top: 10px;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n -webkit-box-orient: vertical;\r\n }\r\n .tag {\r\n display: flex;\r\n flex-wrap: wrap;\r\n align-items: center;\r\n height: 24px;\r\n overflow: hidden;\r\n margin-top: 15px;\r\n .tag-item {\r\n height: 24px;\r\n background: #f0f4ff;\r\n border-radius: 2px;\r\n margin-right: 10px;\r\n padding: 0 10px;\r\n font-size: 13px;\r\n font-weight: 400;\r\n color: #2a63f3;\r\n line-height: 24px;\r\n }\r\n }\r\n .footer {\r\n margin-top: 15px;\r\n display: flex;\r\n align-items: center;\r\n .icon {\r\n width: 20px;\r\n height: 20px;\r\n margin-right: 10px;\r\n }\r\n .answer-read {\r\n font-size: 14px;\r\n font-weight: 400;\r\n color: #555f77;\r\n margin-right: 10px;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-question-card.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-question-card.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./my-question-card.vue?vue&type=template&id=a9fddeb8&scoped=true&\"\nimport script from \"./my-question-card.vue?vue&type=script&lang=js&\"\nexport * from \"./my-question-card.vue?vue&type=script&lang=js&\"\nimport style0 from \"./my-question-card.vue?vue&type=style&index=0&id=a9fddeb8&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a9fddeb8\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"wrap\">\r\n <div class=\"wrap-title\">\r\n <TitleControl title=\"我的提问\" @handleChange=\"handleSearch\">\r\n <div slot=\"control\" class=\"control-btn\">\r\n <div class=\"manage\" @click=\"manageType = true\" v-if=\"!manageType\">\r\n 管理\r\n </div>\r\n <div class=\"manage cancel\" @click=\"manageType = false\" v-else>\r\n 取消\r\n </div>\r\n </div>\r\n </TitleControl>\r\n </div>\r\n <div class=\"wrap-content\">\r\n <div class=\"del-box\" v-if=\"manageType\">\r\n <div class=\"radio\">\r\n <el-checkbox\r\n v-model=\"allChecked\"\r\n @change=\"changeAllChecked\"\r\n ></el-checkbox>\r\n </div>\r\n <div\r\n class=\"btn\"\r\n @click=\"handleDelete(list.filter((item) => item.checked))\"\r\n >\r\n 删除\r\n </div>\r\n </div>\r\n <div class=\"list\">\r\n <div class=\"list-item\" v-for=\"item in list\" :key=\"item.id\">\r\n <div class=\"radio\" v-if=\"manageType\">\r\n <el-checkbox v-model=\"item.checked\"></el-checkbox>\r\n </div>\r\n <div\r\n class=\"card\"\r\n :style=\"manageType ? { width: 'calc(100% - 60px)' } : ''\"\r\n >\r\n <MyCommentCard\r\n :info=\"item\"\r\n :manageType=\"manageType\"\r\n @handleEdit=\"handleEdit(item)\"\r\n @handleDelete=\"handleDelete([item])\"\r\n @handleToDetail=\"\r\n handleToDetail(item, 'question', {\r\n forum_id: 'id',\r\n })\r\n \"\r\n />\r\n </div>\r\n </div>\r\n <el-empty v-if=\"finished\" description=\"没有更多数据\"></el-empty>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport MyCommentCard from \"@/components/card/forum/my-question-card.vue\";\r\nimport TitleControl from \"@/components/module/title-control.vue\";\r\nimport { ForumService } from \"@/common/service\";\r\nexport default {\r\n components: { MyCommentCard, TitleControl },\r\n data() {\r\n return {\r\n list: [],\r\n params: {\r\n page: 1,\r\n page_num: 20,\r\n sort_type: 1,\r\n },\r\n // 是否无数据\r\n finished: false,\r\n // 是否点击管理按钮\r\n manageType: false,\r\n // 是否选中所有\r\n allChecked: false,\r\n // 搜索\r\n list_copy: \"\",\r\n };\r\n },\r\n watch: {\r\n manageType(val) {\r\n !val ? (this.allChecked = false) : \"\";\r\n this.list.forEach((item) => (item.checked = false));\r\n },\r\n },\r\n mounted() {\r\n this.getList();\r\n },\r\n methods: {\r\n // 触底\r\n TouchBottom() {\r\n if (!this.finished) {\r\n this.getList();\r\n }\r\n },\r\n // 选择全部\r\n changeAllChecked(type) {\r\n this.list.map((item) => (item.checked = type));\r\n },\r\n // 获取数据\r\n getList() {\r\n ForumService.getUserForumList(this.params).then(({ data }) => {\r\n const list = data.list.map((item) => {\r\n return { checked: false, ...item };\r\n });\r\n\r\n this.list = this.params.page === 1 ? list : [...this.list, ...list];\r\n if (list.length < this.params.page_num) {\r\n this.finished = true;\r\n } else {\r\n this.params.page++;\r\n }\r\n });\r\n },\r\n // 删除记录\r\n handleDelete(arr) {\r\n let that = this;\r\n this.showConfirmPopup(\"确定要删除该信息?\")\r\n .then(() => {\r\n let params = {\r\n id: \"\",\r\n type: 10,\r\n };\r\n params.id = arr.map((item) => item.id).join(\",\");\r\n if (!params.id) return;\r\n ForumService.batchesDel(params).then(({ data }) => {\r\n let list = that.list\r\n .map((item) => {\r\n return params.id.split(\",\").includes(item.id + \"\") ? \"\" : item;\r\n })\r\n .filter((item) => item);\r\n that.list = list;\r\n that.$message.success(\"删除成功!\");\r\n that.manageType = false;\r\n });\r\n })\r\n .catch((_) => {});\r\n },\r\n // 编辑问题\r\n handleEdit(item) {\r\n this.$router.push({\r\n path: \"/forum-contribute\",\r\n query: { forum_id: item.id },\r\n });\r\n },\r\n // 跳转详情\r\n handleToDetail(\r\n item,\r\n type = \"question\",\r\n key = { forum_id: \"forum_id\", reply_id: \"id\" }\r\n ) {\r\n if (Object.keys(item).includes(\"is_normal\") && !item.is_normal)\r\n return this.$message.error(\"该问题已失效\");\r\n this.$router.push({\r\n path:\r\n type == \"question\" ? \"/forum-question-details\" : \"/forum-answer-item\",\r\n query: {\r\n forum_id: item[key.forum_id],\r\n reply_id: item[key.reply_id],\r\n },\r\n });\r\n },\r\n // 筛选\r\n handleSearch(val) {\r\n if (!this.list_copy) this.list_copy = this.list;\r\n if (val) {\r\n this.list = this.list_copy.filter((item) => {\r\n return (\r\n item.content.includes(val) ||\r\n item.title.includes(val) ||\r\n item.label.includes(val)\r\n );\r\n });\r\n } else {\r\n this.list = this.list_copy;\r\n this.list_copy = \"\";\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.wrap {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n .wrap-title {\r\n width: 80%;\r\n }\r\n .wrap-content {\r\n width: 80%;\r\n margin-top: 20px;\r\n .del-box {\r\n display: flex;\r\n align-items: center;\r\n margin: 0px 0 20px;\r\n .radio {\r\n width: 45px;\r\n display: flex;\r\n justify-content: center;\r\n margin-right: 20px;\r\n }\r\n .btn {\r\n width: 80px;\r\n height: 30px;\r\n border-radius: 17px;\r\n color: #ffffff;\r\n font-size: 16px;\r\n font-weight: 400;\r\n text-align: center;\r\n line-height: 30px;\r\n cursor: pointer;\r\n background: #ff9f18;\r\n }\r\n }\r\n .list {\r\n .list-item {\r\n margin-bottom: 20px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-end;\r\n position: relative;\r\n .radio {\r\n width: 45px;\r\n background-color: white;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n border-radius: 10px;\r\n }\r\n .card {\r\n width: 100%;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n.control-btn {\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-end;\r\n user-select: none;\r\n .manage {\r\n width: 70px;\r\n height: 30px;\r\n background: #2a63f3;\r\n border-radius: 17px;\r\n font-size: 13px;\r\n font-weight: 400;\r\n text-align: center;\r\n line-height: 30px;\r\n color: #ffffff;\r\n margin-left: 10px;\r\n }\r\n .cancel {\r\n background: transparent;\r\n color: #1677ff;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-question.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-question.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./my-question.vue?vue&type=template&id=692fedfa&scoped=true&\"\nimport script from \"./my-question.vue?vue&type=script&lang=js&\"\nexport * from \"./my-question.vue?vue&type=script&lang=js&\"\nimport style0 from \"./my-question.vue?vue&type=style&index=0&id=692fedfa&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"692fedfa\",\n null\n \n)\n\nexport default component.exports","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABKBJREFUWEftmXtMU1ccx7+nLa+2LLwEx5CNuiFsmXEMFnRuFVLG3kGNZJotRrOyYUz24CWLMcTEbMjYxpwxgWy6xcccTp3LNglGSpQ5I24yw6BgK1F0BQobtFXKo2c5t2tHodh76w3wx07/6b33d76/z/39zv39ek/J0w0ailkYhMBKgZsEaAbI8UXKhOPVqdWjk1HIbAFOAQEMIKSocUX9sYnX5gygC4oQVGSol28pI2UOdm7OAXJQBBWNK04Vz1lAJyRZxdI9JyPIAQKGRaGqZMGAb6q0iAgMR2VHFewO+7TPf75KC7lMgarOzzBGx/yqE4SQXEGAYQFhqF16AF22a9BezJ/WaXhAGI4sPYQ2Szs2//aOX3D/rsWDggBfi1+H11UbcMVqQOvgH1Mc33YMY4+hGi47vaUD7UN6r4CtQ22o66m/MzxBB29ApUyJr9I+R2RQBBzUAcI+hHAO2DEbQ6MWaC9uwpdpNZDL5KDU2QNcdq5jdo7Bvd9ecUdAVsx5A25NLkVWTCZ26j/CD3/+hGBJMA6n70evvc8j3ZWLy5EakYItl7fiXP95DmBPyqe4Xx6PtefXY3B0UFDKeQGq5z2F7Y9sQ/PAryj4vcTtwJXKba3b0dh3hoMuSSrAiGPEIzpLwhajakkljt04gU86d4kPuCwyHZsWvoGClhL02HvdDhRSBTYmrOciahuzcd/H6Tj2dbHI/mfHJpQ/ugPB0iAUtpRilE5pudNC84qgsy4RUHj/XfH8/GxsfjCfi5yUSEEgwa4ru1HXc8rtWAIJHHCuVSGDN6A3UVYPixLfxbKodFwYaMaOtnIOsDSpmFuHTeZz+LDjYwyM/CWEycPWL8BASQCyY56BVrURcmkIaoxf4HD3EQ/h3LjV3PXhcVZ6arinlqVf6BAEyErNytiXsSouh+smpuEeLmqd1k6vflUKFd5LKkac/D6Y7WZ8e+M7nLj5PaxjNt6cvABjgqKxZsFqvHjvcwiRhqDfPoD+kX4khj7Ey5HBakSoLBTRwfNwa+w2fjSdRG33UZiGTT7n8wIsTHwbL8W+gOu3uvH19VrUmerxePhjSA1P8emAGbQMXsbP/b9AE52BVxbkQqVMwKW/W/DWpUKf83kBRgVG4uF7knHG3DTtk+zT0wSD9Ign0Gc3w2Az+pzGC3CiSqAkECrFAz6FvRkYbV1cKRIyBAOqFAnYm1YtxIfbdsOFPBhtVwXN9RuQtTa2rvgM1olYu5xRQFb79l87xIcPr8av5Wri/4AsXK41eNJUj9O9DbwimBmdgWfnZ81sBHmRTTKa0RSzYn26t5EXZ2a0GtkzFUGlTIHlUU+iw9LJu2SwZcHa4llzk6A+zO5ecJnhFTIRjYhap7FQCqWImqJJOV+adBo9KBJFUxVTiL12qnWaA5RinZi6YmkRgoNErctaQyn9RixRMXW4rY+85rwAvcXYRoGFYorfrZZ784gJqXVZKymlR+9WVMz57u03l6hap9lJKYrEdOKvlscGpkukjJZJGhrPfjDbkFO2gCffJUs3KK2Y6TXJ1pzXTXRvaeAeHOvVHIDmUCCVALFiF3O+f0P8AykzESWicFq5AAAAAElFTkSuQmCC\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./my-question-card.vue?vue&type=style&index=0&id=a9fddeb8&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"title\"},[_c('div',{staticClass:\"top\"},[_c('div',{staticClass:\"left\"},[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:\"center\"},[(_vm.showSearch)?_c('el-input',{attrs:{\"clearable\":\"\",\"placeholder\":\"搜索\"},on:{\"change\":(val) => _vm.$emit('handleChange', val)},model:{value:(_vm.content),callback:function ($$v) {_vm.content=$$v},expression:\"content\"}},[_c('i',{staticClass:\"el-icon-search el-input__icon\",attrs:{\"slot\":\"suffix\"},slot:\"suffix\"})]):_vm._e()],1),_c('div',{staticClass:\"right\"},[_vm._t(\"control\")],2)]),_c('div',{staticClass:\"bottom\"},[_vm._t(\"bottom\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"title\">\r\n <div class=\"top\">\r\n <div class=\"left\">{{ title }}</div>\r\n <div class=\"center\">\r\n <el-input\r\n v-if=\"showSearch\"\r\n clearable\r\n v-model=\"content\"\r\n placeholder=\"搜索\"\r\n @change=\"(val) => $emit('handleChange', val)\"\r\n >\r\n <i class=\"el-icon-search el-input__icon\" slot=\"suffix\"> </i>\r\n </el-input>\r\n </div>\r\n <div class=\"right\">\r\n <slot name=\"control\"></slot>\r\n </div>\r\n </div>\r\n <div class=\"bottom\">\r\n <slot name=\"bottom\"></slot>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"TitleControl\",\r\n props: {\r\n title: {\r\n type: String,\r\n required: true,\r\n },\r\n showSearch: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n },\r\n data() {\r\n return {\r\n content: \"\",\r\n };\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.title {\r\n width: 100%;\r\n background-color: white;\r\n border-radius: 15px;\r\n box-sizing: border-box;\r\n padding: 15px 20px;\r\n .top {\r\n height: 40px;\r\n display: flex;\r\n align-items: center;\r\n .left {\r\n color: #222222;\r\n font-weight: 500;\r\n font-size: 18px;\r\n width: 15%;\r\n }\r\n .center {\r\n margin-left: 12%;\r\n width: 45%;\r\n ::v-deep .el-input__inner,\r\n .el-autocomplete,\r\n .el-input {\r\n border-radius: 50px;\r\n width: 100%;\r\n }\r\n .my-autocomplete {\r\n li {\r\n line-height: normal;\r\n padding: 7px;\r\n\r\n .name {\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n }\r\n .addr {\r\n font-size: 12px;\r\n color: #b4b4b4;\r\n }\r\n\r\n .highlighted .addr {\r\n color: #ddd;\r\n }\r\n }\r\n }\r\n }\r\n .right {\r\n width: 28%;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./title-control.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./title-control.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./title-control.vue?vue&type=template&id=52e2b05d&scoped=true&\"\nimport script from \"./title-control.vue?vue&type=script&lang=js&\"\nexport * from \"./title-control.vue?vue&type=script&lang=js&\"\nimport style0 from \"./title-control.vue?vue&type=style&index=0&id=52e2b05d&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"52e2b05d\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./card-box.vue?vue&type=style&index=0&id=42f5fe43&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"card-box\"},[_vm._t(\"default\"),_c('div',{staticClass:\"btn-box\"},[(_vm.del_Btn.show)?_c('div',{staticClass:\"del-btn\",on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('handleDelete')}}},[_c('span',[_vm._v(_vm._s(_vm.del_Btn.value || \"删除\"))])]):_vm._e(),(_vm.btnList.includes('edit'))?_c('div',{staticClass:\"edit-btn\",on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('handleEdit')}}},[_c('span',[_vm._v(\"编辑\")])]):_vm._e(),(_vm.btnList.includes('isRead'))?_c('div',{staticClass:\"mark-read-btn\",on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('handleRead')}}},[_c('span',[_vm._v(\"标记已读\")])]):_vm._e(),(_vm.btnList.includes('unRead'))?_c('div',{staticClass:\"mark-unread-btn\",on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('handleRead')}}},[_c('span',[_vm._v(\"标记未读\")])]):_vm._e()])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"card-box\">\r\n <slot></slot>\r\n <div class=\"btn-box\">\r\n <div\r\n class=\"del-btn\"\r\n v-if=\"del_Btn.show\"\r\n @click.stop=\"$emit('handleDelete')\"\r\n >\r\n <span>{{ del_Btn.value || \"删除\" }}</span>\r\n </div>\r\n <div\r\n class=\"edit-btn\"\r\n v-if=\"btnList.includes('edit')\"\r\n @click.stop=\"$emit('handleEdit')\"\r\n >\r\n <span>编辑</span>\r\n </div>\r\n <div\r\n class=\"mark-read-btn\"\r\n v-if=\"btnList.includes('isRead')\"\r\n @click.stop=\"$emit('handleRead')\"\r\n >\r\n <span>标记已读</span>\r\n </div>\r\n <div\r\n class=\"mark-unread-btn\"\r\n v-if=\"btnList.includes('unRead')\"\r\n @click.stop=\"$emit('handleRead')\"\r\n >\r\n <span>标记未读</span>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"CardBox\",\r\n props: {\r\n btnList: {\r\n type: Array,\r\n default: (_) => [],\r\n },\r\n },\r\n data() {\r\n return {};\r\n },\r\n computed: {\r\n del_Btn() {\r\n let del = { show: false };\r\n this.btnList.forEach((item) => {\r\n if (typeof item == \"string\" && item == \"del\") {\r\n del.show = true;\r\n } else if (typeof item == \"object\" && item.type == \"del\") {\r\n del = { ...item, show: true };\r\n }\r\n });\r\n return del;\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.card-box {\r\n background: white;\r\n border-radius: 12px;\r\n position: relative;\r\n box-sizing: border-box;\r\n\r\n .btn-box {\r\n position: absolute;\r\n right: -80px;\r\n bottom: 0;\r\n div {\r\n width: 70px;\r\n height: 70px;\r\n border-radius: 10px;\r\n text-align: center;\r\n box-sizing: border-box;\r\n padding: 20px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n margin-top: 10px;\r\n user-select: none;\r\n font-size: 12px;\r\n cursor: pointer;\r\n }\r\n .del-btn {\r\n background-color: #e5e5e5;\r\n color: #999999;\r\n }\r\n .edit-btn {\r\n background-color: white;\r\n color: #2a63f3;\r\n }\r\n .mark-read-btn {\r\n background-color: white;\r\n color: #2a63f3;\r\n }\r\n .mark-unread-btn {\r\n background-color: white;\r\n color: #333333;\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./card-box.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./card-box.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./card-box.vue?vue&type=template&id=42f5fe43&scoped=true&\"\nimport script from \"./card-box.vue?vue&type=script&lang=js&\"\nexport * from \"./card-box.vue?vue&type=script&lang=js&\"\nimport style0 from \"./card-box.vue?vue&type=style&index=0&id=42f5fe43&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"42f5fe43\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./title-control.vue?vue&type=style&index=0&id=52e2b05d&prod&lang=scss&scoped=true&\""],"sourceRoot":""}
|