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.

2 lines
24 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f8a69982"],{"0051":function(t,e,r){},"0a9a":function(t,e,r){},"48e8":function(t,e,r){"use strict";r.d(e,"O",(function(){return s})),r.d(e,"P",(function(){return a})),r.d(e,"c",(function(){return n})),r.d(e,"e",(function(){return o})),r.d(e,"Q",(function(){return u})),r.d(e,"R",(function(){return c})),r.d(e,"W",(function(){return l})),r.d(e,"Y",(function(){return d})),r.d(e,"X",(function(){return p})),r.d(e,"Z",(function(){return h})),r.d(e,"bb",(function(){return m})),r.d(e,"ab",(function(){return f})),r.d(e,"f",(function(){return v})),r.d(e,"l",(function(){return b})),r.d(e,"m",(function(){return w})),r.d(e,"g",(function(){return y})),r.d(e,"d",(function(){return C})),r.d(e,"b",(function(){return T})),r.d(e,"S",(function(){return g})),r.d(e,"V",(function(){return _})),r.d(e,"U",(function(){return S})),r.d(e,"T",(function(){return q})),r.d(e,"a",(function(){return k})),r.d(e,"G",(function(){return D})),r.d(e,"L",(function(){return O})),r.d(e,"I",(function(){return E})),r.d(e,"H",(function(){return j})),r.d(e,"i",(function(){return x})),r.d(e,"j",(function(){return L})),r.d(e,"M",(function(){return $})),r.d(e,"o",(function(){return G})),r.d(e,"N",(function(){return P})),r.d(e,"J",(function(){return I})),r.d(e,"q",(function(){return B})),r.d(e,"n",(function(){return R})),r.d(e,"p",(function(){return N})),r.d(e,"K",(function(){return Q})),r.d(e,"D",(function(){return A})),r.d(e,"C",(function(){return U})),r.d(e,"F",(function(){return H})),r.d(e,"E",(function(){return V})),r.d(e,"h",(function(){return z})),r.d(e,"u",(function(){return F})),r.d(e,"B",(function(){return M})),r.d(e,"t",(function(){return J})),r.d(e,"y",(function(){return W})),r.d(e,"v",(function(){return K})),r.d(e,"A",(function(){return X})),r.d(e,"w",(function(){return Y})),r.d(e,"x",(function(){return Z})),r.d(e,"z",(function(){return tt})),r.d(e,"gb",(function(){return et})),r.d(e,"ob",(function(){return rt})),r.d(e,"mb",(function(){return it})),r.d(e,"hb",(function(){return st})),r.d(e,"jb",(function(){return at})),r.d(e,"db",(function(){return nt})),r.d(e,"ib",(function(){return ot})),r.d(e,"cb",(function(){return ut})),r.d(e,"fb",(function(){return ct})),r.d(e,"kb",(function(){return lt})),r.d(e,"lb",(function(){return dt})),r.d(e,"nb",(function(){return pt})),r.d(e,"eb",(function(){return ht})),r.d(e,"k",(function(){return mt})),r.d(e,"s",(function(){return ft})),r.d(e,"r",(function(){return vt}));var i=r("b775");r("2c37");function s(t){return i["a"].request({method:"GET",url:"/userArticleOut/countArticleOutNow",params:t})}function a(t){return i["a"].request({method:"GET",url:"/userArticleOut/countPerformed",params:t})}function n(t){return i["a"].request({method:"GET",url:"/complaintPraise/countComplaintNew",params:t})}function o(t){return i["a"].request({method:"GET",url:"/complaintPraise/countPraiseNew",params:t})}function u(t){return i["a"].request({method:"GET",url:"/userDecoration/countDecorationNow",params:t})}function c(t){return i["a"].request({method:"GET",url:"/userDecoration/countPerformed",params:t})}function l(t){return i["a"].request({method:"GET",url:"/vote/countVoteExpectedStart",params:t})}function d(t){return i["a"].request({method:"GET",url:"/vote/findDetailById",params:t})}function p(t){return i["a"].request({method:"GET",url:"/vote/findById",params:t})}function h(t){return i["a"].request({method:"POST",url:"/vote/insert",data:t})}function m(t){return i["a"].request({method:"POST",url:"/vote/update",data:t})}function f(t){return i["a"].request({method:"POST",url:"/vote/release",data:t})}function v(t){return i["a"].request({method:"GET",url:"/advice/findById",params:t})}function b(t){return i["a"].request({method:"GET",url:"/complaintPraise/findById",params:t})}function w(t){return i["a"].request({method:"POST",url:"/complaintPraise/insertDetail",data:t})}function y(t){return i["a"].request({method:"POST",url:"/advice/insertDetail",data:t})}function C(t){return i["a"].request({method:"GET",url:"/advice/countConsultNew",params:t})}function T(t){return i["a"].request({method:"GET",url:"/advice/countAdviceNew",params:t})}function g(t){return i["a"].request({method:"POST",url:"/visitors/cancel",data:t})}function _(t){return i["a"].request({method:"POST",url:"/visitors/update",data:t})}function S(t){return i["a"].request({method:"GET",url:"/visitors/listDetail",params:t})}function q(t){return i["a"].request({method:"GET",url:"/visitors/findById",params:t})}function k(t){return i["a"].request({method:"POST",url:"/doorQRCode/addQrCode",data:t})}function D(t){return i["a"].request({method:"POST",url:"/doorQRCode/removeQrCode",data:t})}function O(t){return i["a"].request({method:"GET",url:"/reportRepair/findRepairDetail",params:t})}function E(t){return i["a"].request({method:"POST",url:"/repairEngineering/insert",data:t})}function j(t){return i["a"].request({method:"GET",url:"/repairEngineering/findById",params:t})}function x(t){return i["a"].request({method:"POST",url:"/article/insert",data:t})}function L(t){return i["a"].request({method:"POST",url:"/article/update",data:t})}function $(t){return i["a"].request({method:"POST",url:"/reportRepair/insert",data:t})}function G(t){return i["a"].request({method:"POST",url:"/dispatch/dispatch",data:t})}function P(t){return i["a"].request({method:"POST",url:"/reportRepair/update",data:t})}function I(t){return i["a"].request({method:"GET",url:"/dispatch/repairWorkOrderDetail",params:t})}function B(t){return i["a"].request({method:"POST",url:"/dispatch/revisit",data:t})}function R(t){return i["a"].request({method:"POST",url:"/dispatch/cancel",data:t})}function N(t){return i["a"].request({method:"GET",url:"/dispatch/findSysUserLikeActualName",params:t})}function Q(t){return i["a"].request({method:"GET",url:"/reportRepair/findById",params:t})}function A(t){return i["a"].request({method:"POST",url:"/questionnaire/insert",data:t})}function U(t){return i["a"].request({method:"GET",url:"/questionnaire/findById",params:t})}function H(t){return i["a"].request({method:"POST",url:"/questionnaire/update",data:t})}function V(t){return i["a"].request({method:"GET",url:"/questionnaire/reportAnalysis",params:t})}function z(t){return i["a"].request({method:"GET",url:"/article/findById",params:t})}function F(t){return i["a"].request({method:"POST",url:"/gambit/insert",data:t})}function M(t){return i["a"].request({method:"POST",url:"/gambit/update",data:t})}function J(t){return i["a"].request({method:"GET",url:"/gambit/findById",params:t})}function W(t){return i["a"].request({method:"GET",url:"/gambitTheme/findCommentByThemeId",params:t})}function K(t){return i["a"].request({method:"GET",url:"/gambitTheme/deleteCommentByCommentId",params:t})}function X(t){return i["a"].request({method:"POST",url:"/gambitTheme/recovery",data:t})}function Y(t){return i["a"].request({method:"GET",url:"/gambitTheme/enableComment",params:t})}function Z(t){return i["a"].request({method:"GET",url:"/gambitTheme/enableTheme",params:t})}function tt(t){return i["a"].request({method:"GET",url:"/gambitTheme/list",params:t})}function et(t){return i["a"].request({method:"GET",url:"/workOrderType/list",params:t})}function rt(t){return i["a"].request({method:"POST",url:"/workOrderType/update",data:t})}function it(t){return i["a"].request({method:"POST",url:"/workOrderType/insert",data:t})}function st(t){return i["a"].request({method:"GET",url:"/workOrderType/delete",params:t})}function at(t){return i["a"].request({method:"POST",url:"/workOrderTypeDetail/insert",data:t})}function nt(t){return i["a"].request({method:"POST",url:"/workOrderTimeLimit/insert",data:t})}function ot(t){return i["a"].request({method:"POST",url:"/workOrderTypeDetail/delete",data:t})}function ut(t){return i["a"].request({method:"GET",url:"/workOrderTimeLimit/findById",params:t})}function ct(t){return i["a"].request({method:"POST",url:"/workOrderTimeLimit/update",data:t})}function lt(t){return i["a"].request({method:"POST",url:"/workOrderTypeDetail/update",data:t})}function dt(t){return i["a"].request({method:"GET",url:"/workOrderTypeDetail/findById",params:t})}function pt(t){return i["a"].request({method:"GET",url:"/workOrderTypeDetail/list",params:t})}function ht(t){return i["a"].request({method:"GET",url:"/workOrderTimeLimit/list",params:t})}function mt(t){return i["a"].request({method:"POST",url:"/borrow/remind",data:t})}function ft(t){return i["a"].request({method:"GET",url:"/gambit/enableGambit",params:t})}function vt(t){return i["a"].request({method:"GET",url:"/gambit/disableGambit",params:t})}},"6e7c":function(t,e,r){"use strict";r("0a9a")},"96a9":function(t,e,r){"use strict";r("0051")},ac6c:function(t,e,r){"use strict";r("e0d4")},d1d4:function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.addShow,expression:"!addShow"}],staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"content-btn"},[e("el-button",{staticClass:"init-button",attrs:{icon:"el-icon-plus"},on:{click:function(e){t.addShow=!0}}},[t._v("新增问卷调查")])],1),e("div",{},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck}},[e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.eidt(t.table_row)}}},[t._v("编辑")]),e("button",{on:{click:function(e){return t.reReportAnalysis(t.table_row)}}},[t._v("分析报表")]),e("button",{on:{click:function(e){return t.del(t.table_row)}}},[t._v("删除")])])])],2)],1)])]),e("Report",{ref:"Report",attrs:{drawerTitle:"分析报表",drawerVrisible:t.Report_vrisible},on:{handleClose:t.ReportHandleClose}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.addShow,expression:"addShow"}]},[e("addEidt",{ref:"addEidt",on:{cancel:t.addEidtCancel,submitSuccess:t.addEidtSubmitSuccess}})],1)],1)},s=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("问卷调查")])])}],a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[t._m(0),e("div",{staticClass:"content"},[e("div",{staticClass:"content-btn"},[e("div",{staticClass:"m-box"},[e("div",{staticClass:"btn active",on:{click:t.submit}},[t._v("保存")]),e("div",{staticClass:"btn"},[t._v("预览")]),e("div",{staticClass:"btn",on:{click:t.cancel}},[t._v("取消")])])]),e("div",{staticClass:"box"},[e("div",{staticClass:"lf"},[t._m(1),e("div",{staticClass:"chek-btn",on:{click:function(e){return t.addSubject(1)}}},[e("span",[t._v("单选题")])]),e("div",{staticClass:"chek-btn",on:{click:function(e){return t.addSubject(2)}}},[e("span",[t._v("多选题")])]),e("div",{staticClass:"chek-btn",on:{click:function(e){return t.addSubject(4)}}},[e("span",[t._v("判断题")])]),e("div",{staticClass:"chek-btn",on:{click:function(e){return t.addSubject(5)}}},[e("span",[t._v("问答题")])])]),e("div",{staticClass:"ct",attrs:{id:"ct"}},[e("div",{staticClass:"ct-head"},[e("div",[e("el-input",{attrs:{placeholder:"问卷标题限40字"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}})],1),e("div",{staticStyle:{"margin-top":"12px"}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:3},placeholder:"问卷说明"},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}})],1)]),t.subjectList.length||t.cardShow?e("div",t._l(t.subjectList,(function(r,i){return e("div",{key:i},[e("div",{staticClass:"subject-card"},[e("div",{staticClass:"subject-head"},[e("div",{staticClass:"title"},[t._v(" "+t._s(i+1)+"."+t._s(r.topic)+" ")]),e("div",{staticClass:"tip"},[1===r.type?e("span",[t._v(" 单选题")]):2===r.type?e("span",[t._v(" 多选题")]):4===r.type?e("span",[t._v(" 判断题")]):e("span",[t._v(" 开放题")])])]),e("div",{staticClass:"options-box"},[t._l(r.sysQuestionnaireChoiceList,(function(i,s){return e("div",{key:s,staticClass:"options"},[1===r.type?e("div",[e("el-radio",{attrs:{value:!1}},[t._v(t._s(i.answer))])],1):2===r.type?e("div",[e("el-checkbox",{attrs:{value:!1}},[t._v(t._s(i.answer))])],1):t._e()])})),4===r.type?e("div",{staticClass:"options"},[e("div",[e("div",{staticClass:"options"},[e("el-radio",{attrs:{value:!1}},[t._v("是")])],1),e("div",{staticClass:"options"},[e("el-radio",{attrs:{value:!1}},[t._v("否")])],1)])]):t._e()],2),e("div",{staticClass:"subject-btn"},[e("div",{staticClass:"edit",on:{click:function(e){return t.subjectEdit(r,i)}}},[e("span",[t._v("编辑")])]),e("div",{staticClass:"del",on:{click:function(e){return t.subjectDel(i)}}},[e("span",[t._v("删除")])])])])])})),0):e("div",{staticClass:"ct-tips"},[e("div",[t._v("点击左侧题型进行添加题目")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.cardShow,expression:"cardShow"}],staticClass:"card-box"},[e("div",{staticClass:"card-head"},[t._m(2),e("div",{staticClass:"card-input"},[e("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.topic,callback:function(e){t.topic=e},expression:"topic"}})],1),e("div",{staticClass:"head-select"},[e("el-select",{attrs:{placeholder:"请选择"},on:{change:t.typeChange},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.typeOptions,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),e("div",{staticClass:"card-del"})]),4!==t.type&&5!==t.type?e("div",[t._l(t.topicList,(function(r,i){return e("div",{key:i,staticClass:"card-li"},[e("div",{staticClass:"card-input"},[e("el-input",{attrs:{placeholder:"请输入内容"},model:{value:r.answer,callback:function(e){t.$set(r,"answer",e)},expression:"item.answer"}})],1),e("div",{staticClass:"card-del",on:{click:function(e){return t.topicRemove(i)}}},[e("i",{staticClass:"el-icon-close"})])])})),e("div",{staticClass:"card-add",on:{click:t.topicAdd}},[e("span",{staticClass:"el-icon-circle-plus-outline"}),e("span",[t._v("添加单个选项")])])],2):t._e(),e("div",{staticClass:"card-check"},[e("div",{staticClass:"card-confirm",on:{click:t.confirmSubject}},[e("span",[t._v("确认")])]),e("div",{staticClass:"card-cancel",on:{click:t.cancelSubject}},[e("span",[t._v("取消")])])])])]),e("div",{staticClass:"rg"},[e("div",[t._m(3),e("div",{staticStyle:{width:"100%"}},[e("el-upload",{staticStyle:{width:"100%"},attrs:{action:t.$baseUrl+"upload/uploadQuestionnaireCoverPhoto","show-file-list":!1,"on-success":t.handleAvatarSuccess,"before-upload":t.beforeAvatarUpload}},[t.imageUrl?e("div",[t.editId?e("el-image",{staticClass:"upload-box",attrs:{src:`${t.$ImgUrl}/${t.imageUrl}`,fit:"cover"}}):e("el-image",{staticClass:"upload-box",attrs:{src:`${t.$ImgUrl}/temp${t.imageUrl}`,fit:"cover"}})],1):e("div",{staticClass:"upload-box"},[e("div",[e("div",{staticClass:"upload-icon"},[e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e("div",{staticClass:"upload-txt"},[e("span",[t._v("上传图片")])]),e("div",{staticClass:"upload-tips"},[e("span",[t._v("建议宽高比16:9支持扩展名png、jpg")])])])])])],1),e("div",{staticClass:"date-box"},[t._m(4),e("div",[e("div",{staticClass:"date-item"},[e("span",[t._v("开始日期")]),e("el-date-picker",{attrs:{size:"small","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1),e("div",{staticClass:"date-item"},[e("span",[t._v("截止日期")]),e("el-date-picker",{attrs:{size:"small","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.endDate,callback:function(e){t.endDate=e},expression:"endDate"}})],1)])])])])])])])},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("新增问卷调查")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("题型选择")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-title"},[e("span",[t._v("题目")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("封面图片设置")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("span",[t._v("起止日期设置")])])}],o=r("48e8"),u={data(){return{title:null,input:null,startDate:null,endDate:null,description:null,topicList:[{answer:null}],editBool:!1,editIndex:0,editId:0,topic:null,type:0,subjectList:[],imageUrl:"",typeOptions:[{value:1,label:"单选题"},{value:2,label:"多选题"},{value:4,label:"判断题"},{value:5,label:"问答题"}],cardShow:!1,value:0}},methods:{submit(){if(!this.title)return void this.$message.error("请填写问卷标题");if(!this.description)return void this.$message.error("请填写问卷说明");if(!this.startDate)return void this.$message.error("请填写问卷答题开始时间");if(!this.endDate)return void this.$message.error("请填写问卷答题结束时间");let t={title:this.title,description:this.description,answerType:1,beginDate:this.startDate,endDate:this.endDate,sysQuestionnaireTopicList:this.subjectList,files:[this.imageUrl],isRelease:1};console.log(t),this.editId?(t.id=this.editId,Object(o["F"])(t).then(t=>{this.$message({message:t.message,type:"success"}),this.$emit("submitSuccess"),this.cancel()})):Object(o["D"])(t).then(t=>{t.status&&(this.$message({message:t.message,type:"success"}),this.$emit("submitSuccess"),this.cancel())})},edit(t){Object(o["C"])({id:t}).then(e=>{console.log(e),this.title=e.sysQuestionnaire.title,this.description=e.sysQuestionnaire.description,this.startDate=e.sysQuestionnaire.beginDate,this.endDate=e.sysQuestionnaire.endDate,e.sysQuestionnaire.voFindByIdTopicList.map((t,e)=>{this.subjectList.push({type:t.type,topic:t.topic,sysQuestionnaireChoiceList:t.voFindByIdChoiceList})}),e.sysQuestionnaire.voResourcesImgList.length?this.imageUrl=e.sysQuestionnaire.voResourcesImgList[0].url:this.imageUrl="",this.editId=t})},cancel(){this.title=null,this.description=null,this.startDate=null,this.endDate=null,this.subjectList=[],this.cardShow=!1,this.imageUrl="",this.editId=0,this.$emit("cancel")},topicAdd(){this.topicList.push({answer:null})},topicRemove(t){this.topicList.splice(t,1)},typeChange(){this.clearSubject()},addSubject(t){this.cardShow?this.$message.error("请完成该问题创建"):(this.cardShow=!0,this.type=t,this.goScrollTop())},subjectDel(t){this.subjectList.splice(t,1)},subjectEdit(t,e){if(this.cardShow)return void this.$message.error("请完成该问题创建");this.type=t.type,this.topic=t.topic,this.cardShow=!0,this.editBool=!0,this.editIndex=e;let r=t.sysQuestionnaireChoiceList,i=[];for(let s=0;s<r.length;s++){if(!r[0].answer)return void this.$message.error("请完成该问题创建");i.push({answer:r[s].answer})}this.topicList=i,this.goScrollTop()},cancelSubject(){this.cardShow=!1,this.clearSubject()},clearSubject(){this.topic=null,this.topicList.map(t=>{t.answer=null}),this.editBool=!1},confirmSubject(){let t=this.topicList,e=[];if(this.topic){if(1===this.type||2===this.type)for(let r=0;r<t.length;r++){if(!t[0].answer)return void this.$message.error("请完成该问题创建");e.push({answer:t[r].answer,options:String.fromCharCode(65+r)})}this.editBool?(console.log(this.subjectList[this.editIndex],e),this.$set(this.subjectList[this.editIndex],"sysQuestionnaireChoiceList",e),this.$set(this.subjectList[this.editIndex],"type",this.type),this.$set(this.subjectList[this.editIndex],"topic",this.topic)):this.subjectList.push({type:this.type,topic:this.topic,sysQuestionnaireChoiceList:e}),console.log(this.subjectList),this.cardShow=!1,this.type=0,this.clearSubject()}else this.$message.error("请完成该问题创建")},goScrollTop(){this.$nextTick((function(){var t=document.getElementById("ct");t.scrollTop=t.scrollHeight}))},handleAvatarSuccess(t,e){this.imageUrl=t.url,console.log(this.imageUrl)},beforeAvatarUpload(t){console.log(t);const e="image/jpeg"===t.type,r="image/png"===t.type,i=t.size/1024/1024<2;return i||this.$message.error("上传图片大小不能超过 2MB!"),e?e&&i:r?r&&i:void this.$message.error("图片只能上传jpg/png格式")}}},c=u,l=(r("6e7c"),r("2877")),d=Object(l["a"])(c,a,n,!1,null,"49efc135",null),p=d.exports,h=function(){var t=this,e=t._self._c;return e("div",[e("Drawer",{attrs:{drawerTitle:t.drawerTitle,drawerVrisible:t.drawer_vrisible},on:{drawerClose:t.drawerClose}},[e("div",{staticClass:"box report-box"},[e("div",{staticClass:"content"},[e("div",[e("div",{staticClass:"title"},[t._v(" 物业服务满意度调查问卷 ")]),e("div",{staticClass:"date"},[t._v(" "+t._s(t.reportData.beginDate)+"至 "+t._s(t.reportData.endDate)+" ")]),e("div",{staticClass:"tips"},[t._v(" 共收集到 "),e("span",{staticStyle:{color:"#FB4702"}},[t._v(t._s(t.reportData.answerNum)+" ")]),t._v(" 份问卷 ")]),e("div")]),e("div",{staticClass:"list-box"},t._l(t.reportData.reportQuestionnaireTopicList,(function(r,i){return e("div",{key:i,staticClass:"list"},[e("div",{staticClass:"title"},[e("span",[t._v(t._s(i+1)+"、"+t._s(r.topic)+""+t._s(r.typeText)+"")])]),e("div",{staticClass:"result"},t._l(r.reportQuestionnaireChoiceList,(function(i,s){return e("div",{key:s,staticClass:"li"},[e("div",{staticClass:"lf"},[e("span",[t._v(t._s(i.answer))])]),e("div",{staticClass:"progress"},[e("el-progress",{attrs:{percentage:t._f("percentageNum")(i.answerNum,r.totalAnswerNum),"stroke-width":16,color:"#FE8738",format:()=>t.format(i.answerNum,r.totalAnswerNum,r.type)}})],1)])})),0)])})),0)])]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("button",{staticClass:"btn-gray",on:{click:t.drawerClose}},[e("span",[t._v("返回")])])])])],1)},m=[],f={props:{drawerVrisible:{type:Boolean,default:()=>!1},drawerTitle:{type:String,default:()=>""}},data(){return{drawer_vrisible:!1,reportData:{}}},filters:{percentageNum:function(t,e){let r=t/e*100;return 0===e&&(r=0),r}},methods:{format(t,e,r){let i=t/e*100;return 0===e&&(i=0),2===r?i+"%":`${i}% ${t}`},getData(t){Object(o["E"])({id:t}).then(t=>{this.reportData=t.reportQuestionnaire,this.reportData.reportQuestionnaireTopicList.map(t=>{switch(t.type){case 1:t.typeText="单选题";break;case 2:t.typeText="多选题";break;case 4:t.typeText="判断题",t.reportQuestionnaireChoiceList=[{answer:"是",answerNum:t.trueNum},{answer:"否",answerNum:t.falseNum}];break;case 5:t.typeText="解答题";break;default:break}if(5!==t.type){let e=0;t.reportQuestionnaireChoiceList.map(t=>{e+=t.answerNum}),t.totalAnswerNum=e}})})},drawerClose(){this.$emit("handleClose","Close")}},watch:{drawerVrisible:{handler(t){this.drawer_vrisible=t}}}},v=f,b=(r("96a9"),Object(l["a"])(v,h,m,!1,null,"53b127fc",null)),w=b.exports,y={data(){return{addShow:!1,Report_vrisible:!1,ReportDrawerTitle:"",table_row:[],config:{thead:[{label:"序号",type:"index",width:"80"},{label:"标题",prop:"title",width:"280"},{label:"问卷对象",prop:"answerType",width:"180",type:"function",callback:(t,e)=>{switch(t.answerType){case 1:return"无限制";case 2:return"业主";case 3:return"租户";default:break}}},{label:"状态",prop:"status",width:"180",type:"function",callback:(t,e)=>{switch(t.status){case 1:return"未开始";case 2:return"正在进行";case 3:return"已结束";default:break}}},{label:"开始时间",prop:"beginDate",width:"180"},{label:"结束时间",prop:"endDate",width:"180"},{label:"答题数量",prop:"answerNum",width:"auto"}],url:"questionnaireList",table_data:[],search_item:[{type:"Input",label:"问卷标题",placeholder:"请输入",prop:"title"},{type:"select",label:"状态",options:[{value:1,label:"未开始"},{value:2,label:"正在进行"},{value:3,label:"已结束"}],placeholder:"请输入",prop:"status"},{type:"select",label:"问卷对象",options:[{value:1,label:"无限制"},{value:2,label:"业主"},{value:3,label:"租户"}],placeholder:"请选择",prop:"answerType"}],data:{pageNum:1,size:10}}}},components:{addEidt:p,Report:w},methods:{tableCheck(t){this.table_row=t},eidt(t){t.length>1?this.$message.error("只能查看一条数据的详情"):t.length?(this.$refs.addEidt.edit(t[0].id),this.addShow=!0):this.$message.error("请选择")},reReportAnalysis(t){t.length>1?this.$message.error("只能查看一条数据"):t.length?(this.$refs.Report.getData(t[0].id),this.Report_vrisible=!0):this.$message.error("请选择")},ReportHandleClose(){this.Report_vrisible=!1},addEidtCancel(){this.addShow=!1},addEidtSubmitSuccess(){this.getData()},getData(){this.$refs.table.loadData()},del(t){let e=[];for(let r=0;r<this.table_row.length;r++)e.push(this.table_row[r].id);e.length?this.$confirm("是否删除?删除不可找回","删除",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{this.$refs.table.tableDelete(e)}).catch(t=>{}):this.$message.error("请选中需要删除的表格数据")}}},C=y,T=(r("ac6c"),Object(l["a"])(C,i,s,!1,null,"203025b6",null));e["default"]=T.exports},e0d4:function(t,e,r){}}]);
//# sourceMappingURL=chunk-f8a69982.028e0e59.js.map