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
16 KiB
2 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc38f1c4"],{"07be":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[t._m(0),e("div",{staticClass:"tips"},[e("p",[e("span",{staticClass:"el-icon-warning-outline",staticStyle:{margin:"0 12px"}}),t._v(" 温馨提示:今日新增建议 "),e("span",{staticStyle:{color:"rgba(251, 71, 2, 1)"}},[t._v(t._s(t.countAdviceNew))]),t._v(" 条,质询 "),e("span",{staticStyle:{color:"rgba(251, 71, 2, 1)"}},[t._v(t._s(t.countConsultNew))]),t._v("条 ")])]),e("div",{staticClass:"content"},[e("VueTable",{ref:"table",attrs:{config:t.config},on:{tableCheck:t.tableCheck},scopedSlots:t._u([{key:"score",fn:function(r){return[e("div",[e("el-rate",{attrs:{value:r.data.score/2,colors:t.colors,disabled:""}})],1)]}}])},[e("template",{slot:"tabs"},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"全部",name:"0"}}),e("el-tab-pane",{attrs:{label:"咨询",name:"1"}}),e("el-tab-pane",{attrs:{label:"建议",name:"2"}})],1)],1),e("template",{slot:"footer"},[e("div",{staticClass:"table-footer"},[e("button",{on:{click:function(e){return t.details(t.table_row)}}},[t._v("回复")]),e("button",{on:{click:function(e){return t.del(t.table_row)}}},[t._v("删除")])])])],2)],1),e("drawerDetails",{attrs:{drawerVrisible:t.drawer_details,suggestId:t.suggestId},on:{handleClose:t.getClose}})],1)},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-titel"},[e("span",[t._v("建议咨询")])])}],i=r("48e8"),u=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{title:"咨询建议",visible:t.isVisibleDrawe,size:"58%","before-close":t.close},on:{"update:visible":function(e){t.isVisibleDrawe=e}}},[t.isVisibleDrawe?e("div",{staticClass:"drawer-box"},[e("div",{staticClass:"dra-body"},[e("div",{staticClass:"dra-content"},[e("div",{staticClass:"content-titel"},[e("span",[t._v("基本信息")])]),e("div",{},[e("el-form",{attrs:{"label-position":"right","label-width":"100px",size:"small"}},[e("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"类型"}},[1===t.detailData.type?e("span",[t._v("咨询")]):t._e(),2===t.detailData.type?e("span",[t._v("建议")]):t._e()]),e("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"内容"}},[e("span",[t._v(t._s(t.detailData.content))])]),null!==t.detailData.imgUrl?e("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"照片"}},[e("el-image",{staticStyle:{width:"140px",height:"100px"},attrs:{src:`${t.$ImgUrl}${t.detailData.imgUrl[0].url}`,fit:"scale-down"}})],1):t._e(),0!==t.detailData.voUserAdviceDetailList.length?e("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"反馈内容"}},[t._l(t.detailData.voUserAdviceDetailList,(function(r,n){return e("div",{key:n,staticClass:"table_box"},[e("div",[e("p",[t._v(t._s(r.createName))]),e("p",[t._v(t._s(r.createDate))])]),e("div",{staticClass:"content_item"},[e("p",[t._v(t._s(r.content))])])])}))],2):t._e(),t.rateNum?e("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"星级评分"}},[e("el-rate",{attrs:{colors:t.colors,disabled:""},model:{value:t.rateNum,callback:function(e){t.rateNum=e},expression:"rateNum"}})],1):t._e()],1)],1)]),e("div",{staticClass:"dra-content"},[e("div",{staticClass:"content-titel"},[e("span",[t._v("回复反馈")])]),e("div",{},[e("el-form",{attrs:{"label-position":"right","label-width":"100px",size:"small"}},[e("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"反馈"}},[e("el-input",{attrs:{type:"textarea",autosize:{minRows:6},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)],1)],1)])]),e("div",{staticClass:"dra-footer"},[e("div",{staticClass:"dra-footer-content"},[e("button",{staticClass:"dra-submit el-icon-circle-check",on:{click:t.submit}},[e("span",[t._v("提交")])]),e("button",{staticClass:"dra-cancel",on:{click:t.close}},[e("span",[t._v("关闭")])])])])]):t._e()])],1)},o=[],s={props:{drawerVrisible:{type:Boolean,default:!1},suggestId:{type:Number,default:()=>0}},mounted(){},data(){return{detailData:{id:1,type:1,score:6,imgUrl:[{url:""}],voUserAdviceDetailList:[]},isVisibleDrawe:!1,content:"",colors:["#FB4702","#FB4702","#FB4702"],rate:5}},computed:{rateNum(){let t=0;return this.detailData.score&&(t=this.detailData.score/2),t}},methods:{close(){this.content=null,this.$emit("handleClose","Close")},submit(){let t=0;this.detailData.voUserAdviceDetailList.length>0&&(t=this.detailData.voUserAdviceDetailList[0].id);let e={adviceId:this.detailData.id,content:this.content,parentId:t,createUserType:3};console.log(e),Object(i["g"])(e).then(t=>{console.log(t),t.status?(this.$message({message:t.message,type:"success"}),this.close()):this.$message({message:t.message,type:"error"})})},getDetails(t){if(t){let e={id:t};Object(i["f"])(e).then(t=>{console.log(t),this.detailData=t.voFindByIdAdvice,this.detailData.voUserAdviceDetailList=t.voFindByIdAdvice.voUserAdviceDetailList?t.voFindByIdAdvice.voUserAdviceDetailList:[]})}}},watch:{drawerVrisible:{handler(t){this.isVisibleDrawe=t,console.log(t)},immediate:!0},suggestId:{handler(t){this.getDetails(t)},immediate:!0}}},l=s,d=(r("57eb"),r("2877")),c=Object(d["a"])(l,u,o,!1,null,"0cebcd23",null),m=c.exports,f={data(){return{activeName:0,table_row:[],colors:["#FB4702","#FB4702","#FB4702"],drawer_details:!1,config:{thead:[{label:"序号",type:"index",width:"80"},{label:"内容",prop:"content",width:"350"},{label:"类型",prop:"type",width:"auto",type:"function",callback:(t,e)=>{switch(t.type){case 1:return"咨询";case 2:return"建议";default:break}}},{label:"发布人",prop:"releaseName",width:"auto"},{label:"发布时间",prop:"releaseDate",width:"auto"},{label:"状态",prop:"status",width:"auto",type:"function",callback:(t,e)=>{switch(t.status){case 1:return"未反馈";case 2:return"反馈中";case 3:return"已反馈";default:break}}},{label:"星级",prop:"score",width:"180",type:"slot",slotName:"score"},{label:"最后一次回复/提问时间",prop:"lastFeedBackDate",width:"280"}],url:"adviceList",table_data:[],search_item:[{type:"startDate",label:"发布开始时间",placeholder:"请选择开始日期",prop:"releaseDateStart"},{type:"endDate",label:"发布结束时间",placeholder:"请选择结束时间",prop:"releaseDateEnd"},{type:"select",label:"状态",placeholder:"请选择",prop:"status",options:[{value:1,label:"有反馈信息"},{value:2,label:"无反馈信息"}]},{type:"Input",label:"发布人",placeholder:"请选择",prop:"releaseName"},{type:"select",label:"评分",placeholder:"评分",prop:"score",options:[{value:1,label:"差评"},{value:2,label:"中评"},{value:3,label:"好评"}]}],data:{pageNum:1,size:10}},countConsultNew:null,countAdviceNew:null,suggestId:null}},components:{drawerDetails:m},mounted(){this.getTipsData()},methods:{getTipsData(){Object(i["d"])().then(t=>{this.countConsultNew=t.countConsultNew}),Object(i["b"])().then(t=>{this.countAdviceNew=t.countAdviceNew})},handleClick(t,e){let r=null;r=0!=this.activeName?this.activeName:null;const n={pageNum:1,size:10,type:r};this.$refs.table.requestData(n)},tableCheck(t){this.table_row=t},del(t){if(t.length){let t=[];for(let e=0;e<this.table_row.length;e++)t.push(this.table_row[e].id);this.$confirm("是否确认删除?删除不可恢复","删除",{confirmButtonText:"确定",cancelButtonText:"取消",confirmButtonClass:"confirmButton",cancelButtonClass:"cancelButton"}).then(()=>{this.$refs.table.tableDelete(t)}).catch(t=>{})}else this.$message.error("请选中需要删除的数据")},details(t){if(t.length){if(t.length>1)return void this.$message({message:"只能操作单个数据",type:"error"});this.suggestId=t[0].id,this.drawer_details=!0}else this.$message({message:"请选择需要操作的数据",type:"error"})},getClose(t){this.drawer_details=!1,this.suggestId=null}}},p=f,h=(r("58fe"),Object(d["a"])(p,n,a,!1,null,"230550d0",null));e["default"]=h.exports},"48e8":function(t,e,r){"use strict";r.d(e,"O",(function(){return a})),r.d(e,"P",(function(){return i})),r.d(e,"c",(function(){return u})),r.d(e,"e",(function(){return o})),r.d(e,"Q",(function(){return s})),r.d(e,"R",(function(){return l})),r.d(e,"W",(function(){return d})),r.d(e,"Y",(function(){return c})),r.d(e,"X",(function(){return m})),r.d(e,"Z",(function(){return f})),r.d(e,"bb",(function(){return p})),r.d(e,"ab",(function(){return h})),r.d(e,"f",(function(){return b})),r.d(e,"l",(function(){return v})),r.d(e,"m",(function(){return T})),r.d(e,"g",(function(){return w})),r.d(e,"d",(function(){return g})),r.d(e,"b",(function(){return q})),r.d(e,"S",(function(){return y})),r.d(e,"V",(function(){return D})),r.d(e,"U",(function(){return O})),r.d(e,"T",(function(){return _})),r.d(e,"a",(function(){return C})),r.d(e,"G",(function(){return S})),r.d(e,"L",(function(){return E})),r.d(e,"I",(function(){return k})),r.d(e,"H",(function(){return G})),r.d(e,"i",(function(){return P})),r.d(e,"j",(function(){return N})),r.d(e,"M",(function(){return B})),r.d(e,"o",(function(){return I})),r.d(e,"N",(function(){return A})),r.d(e,"J",(function(){return x})),r.d(e,"q",(function(){return L})),r.d(e,"n",(function(){return U})),r.d(e,"p",(function(){return $})),r.d(e,"K",(function(){return F})),r.d(e,"D",(function(){return V})),r.d(e,"C",(function(){return R})),r.d(e,"F",(function(){return j})),r.d(e,"E",(function(){return z})),r.d(e,"h",(function(){return Q})),r.d(e,"u",(function(){return J})),r.d(e,"B",(function(){return W})),r.d(e,"t",(function(){return H})),r.d(e,"y",(function(){return K})),r.d(e,"v",(function(){return M})),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 nt})),r.d(e,"hb",(function(){return at})),r.d(e,"jb",(function(){return it})),r.d(e,"db",(function(){return ut})),r.d(e,"ib",(function(){return ot})),r.d(e,"cb",(function(){return st})),r.d(e,"fb",(function(){return lt})),r.d(e,"kb",(function(){return dt})),r.d(e,"lb",(function(){return ct})),r.d(e,"nb",(function(){return mt})),r.d(e,"eb",(function(){return ft})),r.d(e,"k",(function(){return pt})),r.d(e,"s",(function(){return ht})),r.d(e,"r",(function(){return bt}));var n=r("b775");r("2c37");function a(t){return n["a"].request({method:"GET",url:"/userArticleOut/countArticleOutNow",params:t})}function i(t){return n["a"].request({method:"GET",url:"/userArticleOut/countPerformed",params:t})}function u(t){return n["a"].request({method:"GET",url:"/complaintPraise/countComplaintNew",params:t})}function o(t){return n["a"].request({method:"GET",url:"/complaintPraise/countPraiseNew",params:t})}function s(t){return n["a"].request({method:"GET",url:"/userDecoration/countDecorationNow",params:t})}function l(t){return n["a"].request({method:"GET",url:"/userDecoration/countPerformed",params:t})}function d(t){return n["a"].request({method:"GET",url:"/vote/countVoteExpectedStart",params:t})}function c(t){return n["a"].request({method:"GET",url:"/vote/findDetailById",params:t})}function m(t){return n["a"].request({method:"GET",url:"/vote/findById",params:t})}function f(t){return n["a"].request({method:"POST",url:"/vote/insert",data:t})}function p(t){return n["a"].request({method:"POST",url:"/vote/update",data:t})}function h(t){return n["a"].request({method:"POST",url:"/vote/release",data:t})}function b(t){return n["a"].request({method:"GET",url:"/advice/findById",params:t})}function v(t){return n["a"].request({method:"GET",url:"/complaintPraise/findById",params:t})}function T(t){return n["a"].request({method:"POST",url:"/complaintPraise/insertDetail",data:t})}function w(t){return n["a"].request({method:"POST",url:"/advice/insertDetail",data:t})}function g(t){return n["a"].request({method:"GET",url:"/advice/countConsultNew",params:t})}function q(t){return n["a"].request({method:"GET",url:"/advice/countAdviceNew",params:t})}function y(t){return n["a"].request({method:"POST",url:"/visitors/cancel",data:t})}function D(t){return n["a"].request({method:"POST",url:"/visitors/update",data:t})}function O(t){return n["a"].request({method:"GET",url:"/visitors/listDetail",params:t})}function _(t){return n["a"].request({method:"GET",url:"/visitors/findById",params:t})}function C(t){return n["a"].request({method:"POST",url:"/doorQRCode/addQrCode",data:t})}function S(t){return n["a"].request({method:"POST",url:"/doorQRCode/removeQrCode",data:t})}function E(t){return n["a"].request({method:"GET",url:"/reportRepair/findRepairDetail",params:t})}function k(t){return n["a"].request({method:"POST",url:"/repairEngineering/insert",data:t})}function G(t){return n["a"].request({method:"GET",url:"/repairEngineering/findById",params:t})}function P(t){return n["a"].request({method:"POST",url:"/article/insert",data:t})}function N(t){return n["a"].request({method:"POST",url:"/article/update",data:t})}function B(t){return n["a"].request({method:"POST",url:"/reportRepair/insert",data:t})}function I(t){return n["a"].request({method:"POST",url:"/dispatch/dispatch",data:t})}function A(t){return n["a"].request({method:"POST",url:"/reportRepair/update",data:t})}function x(t){return n["a"].request({method:"GET",url:"/dispatch/repairWorkOrderDetail",params:t})}function L(t){return n["a"].request({method:"POST",url:"/dispatch/revisit",data:t})}function U(t){return n["a"].request({method:"POST",url:"/dispatch/cancel",data:t})}function $(t){return n["a"].request({method:"GET",url:"/dispatch/findSysUserLikeActualName",params:t})}function F(t){return n["a"].request({method:"GET",url:"/reportRepair/findById",params:t})}function V(t){return n["a"].request({method:"POST",url:"/questionnaire/insert",data:t})}function R(t){return n["a"].request({method:"GET",url:"/questionnaire/findById",params:t})}function j(t){return n["a"].request({method:"POST",url:"/questionnaire/update",data:t})}function z(t){return n["a"].request({method:"GET",url:"/questionnaire/reportAnalysis",params:t})}function Q(t){return n["a"].request({method:"GET",url:"/article/findById",params:t})}function J(t){return n["a"].request({method:"POST",url:"/gambit/insert",data:t})}function W(t){return n["a"].request({method:"POST",url:"/gambit/update",data:t})}function H(t){return n["a"].request({method:"GET",url:"/gambit/findById",params:t})}function K(t){return n["a"].request({method:"GET",url:"/gambitTheme/findCommentByThemeId",params:t})}function M(t){return n["a"].request({method:"GET",url:"/gambitTheme/deleteCommentByCommentId",params:t})}function X(t){return n["a"].request({method:"POST",url:"/gambitTheme/recovery",data:t})}function Y(t){return n["a"].request({method:"GET",url:"/gambitTheme/enableComment",params:t})}function Z(t){return n["a"].request({method:"GET",url:"/gambitTheme/enableTheme",params:t})}function tt(t){return n["a"].request({method:"GET",url:"/gambitTheme/list",params:t})}function et(t){return n["a"].request({method:"GET",url:"/workOrderType/list",params:t})}function rt(t){return n["a"].request({method:"POST",url:"/workOrderType/update",data:t})}function nt(t){return n["a"].request({method:"POST",url:"/workOrderType/insert",data:t})}function at(t){return n["a"].request({method:"GET",url:"/workOrderType/delete",params:t})}function it(t){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/insert",data:t})}function ut(t){return n["a"].request({method:"POST",url:"/workOrderTimeLimit/insert",data:t})}function ot(t){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/delete",data:t})}function st(t){return n["a"].request({method:"GET",url:"/workOrderTimeLimit/findById",params:t})}function lt(t){return n["a"].request({method:"POST",url:"/workOrderTimeLimit/update",data:t})}function dt(t){return n["a"].request({method:"POST",url:"/workOrderTypeDetail/update",data:t})}function ct(t){return n["a"].request({method:"GET",url:"/workOrderTypeDetail/findById",params:t})}function mt(t){return n["a"].request({method:"GET",url:"/workOrderTypeDetail/list",params:t})}function ft(t){return n["a"].request({method:"GET",url:"/workOrderTimeLimit/list",params:t})}function pt(t){return n["a"].request({method:"POST",url:"/borrow/remind",data:t})}function ht(t){return n["a"].request({method:"GET",url:"/gambit/enableGambit",params:t})}function bt(t){return n["a"].request({method:"GET",url:"/gambit/disableGambit",params:t})}},"57eb":function(t,e,r){"use strict";r("cb25")},"58fe":function(t,e,r){"use strict";r("5b60")},"5b60":function(t,e,r){},cb25:function(t,e,r){}}]);
|
|
//# sourceMappingURL=chunk-bc38f1c4.ef6efdbc.js.map
|