1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-593f9664","chunk-2d0ccfc9"],{"4ca8":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("base-form",{ref:"ruleForm",attrs:{slot:"content",data:t.searchData},slot:"content"},[a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"xl-form-btn bgc1",attrs:{loading:t.listLoading,icon:"el-icon-search"},on:{click:t.searchHandle}},[t._v("查询")])],1)])},n=[],s=a("5530"),r={props:{listLoading:Boolean},inject:["parentData"],data:function(){return{searchData:[{label:"反馈类型",key:"feedback_type",type:"select",options:this.$dictData.feedback_type}]}},methods:{searchHandle:function(){var t=this.$refs.ruleForm.baseForm,e=Object(s["a"])({},t);this.$emit("change",e)}}},o=r,c=a("2877"),l=Object(c["a"])(o,i,n,!1,null,null,null);e["default"]=l.exports},"4fef":function(t,e,a){"use strict";a.r(e);var i=a("ade3"),n=a("5530");a("4e82"),a("e9c4"),a("a9e3");e["default"]={data:function(){return{listLoading:!1,tableData:[],currentPage:1,pageSize:10,totalRecords:1,listConfig:{},operations:[]}},created:function(){var t=this;this.$nextTick((function(){t.noCreated||t.fetchData()}))},methods:{searchHandle:function(t){this.currentPage=1,this.searchForm=t,this.fetchData()},sizeChange:function(t){this.pageSize=t,this.currentPage=1,this.fetchData()},pageHandle:function(t){this.currentPage=t,this.fetchData()},sortChange:function(t){this.currentPage=1;var e=Object(n["a"])({},this.searchForm);"ascending"===t.order?e.sort=JSON.stringify(Object(i["a"])({},t.prop,"asc")):e.sort=JSON.stringify(Object(i["a"])({},t.prop,"desc")),this.searchForm=Object(n["a"])({},e),this.fetchData(e)},fetchData:function(t){var e=this;if(this.apiStr){var a={page:this.currentPage,page_size:this.pageSize};t?a=Object(n["a"])(Object(n["a"])({},a),t):this.searchForm&&(a=Object(n["a"])(Object(n["a"])({},a),this.searchForm)),this.getDataBefore&&this.getDataBefore(a),this.listLoading=!0;var i=this.apiStr.split(".");this.$api[i[0]][i[1]](a).then((function(t){return 1===e.currentPage&&(e.pageSize=t.page_size||1),e.totalRecords=t.total?Number(t.total):0,e.tableData=t.list||[],e.listLoading=!1,e.getMoreData&&e.getMoreData(t,a),t})).catch((function(t){e.listLoading=!1}))}}}}},a7e0:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("search-form",{attrs:{"list-loading":t.listLoading},on:{change:t.searchHandle}}),a("table-list",{attrs:{"list-loading":t.listLoading,data:t.tableData2,columns:t.listConfig,"current-page":t.currentPage,"page-size":t.pageSize,"total-records":t.totalRecords},on:{currentChange:t.pageHandle,sizeChange:t.sizeChange}})],1)},n=[],s=a("2909"),r=(a("d81d"),a("ed08")),o=a("4ca8"),c=a("4fef"),l={name:"index",components:{SearchForm:o["default"]},provide:function(){return{parentData:this}},mixins:[c["default"]],data:function(){return{apiStr:"user.admfeedbacklist",searchForm:null,isDtlShow:!1,curObj:{}}},computed:{tableData2:function(){var t=Object(s["a"])(this.tableData);return t.map((function(t){var e=(t.images||"").split(",");console.log(e),t.img1=e[0]||"",t.img2=e[1]||"",t.img3=e[2]||"","1"===t.is_dispose&&(t.deal1=!0)})),t}},created:function(){},mounted:function(){this.listConfig={rows:[{label:"楼盘名称",prop:"estate_name"},{label:"反馈图1",prop:"img1",type:"img"},{label:"反馈图2",prop:"img2",type:"img"},{label:"反馈图3",prop:"img3",type:"img"},{label:"反馈内容",prop:"feedback_count",fullShow:!0,minWidth:"300"},{label:"类型",prop:"feedback_type",fullShow:!0,type:"flag",flags:Object(r["a"])(this.$dictData.feedback_type)},{label:"已处理",prop:"is_dispose",type:"tag",tags:Object(r["a"])(this.$dictData.sys_yesno)},{label:"联系方式",prop:"contact"},{label:"微信昵称",prop:"nickname"},{label:"微信头像",prop:"avatar",type:"img"},{label:"操作",width:150,type:"handle2",operations:[{label:"标记已处理",func:this.dealHandle,btnType:"primary",hide:"deal1"},{label:"删除",func:this.delHandle,btnType:"danger"}]}]}},methods:{dealHandle:function(t){var e=this;this.$msg("您确定要标记成已处理吗","confirm",(function(){e.$api.user.admfeedbackdispose({id:t.id,is_dispose:1}).then((function(t){e.$msgs("已处理!"),e.fetchData()}))}),null,!0)},delHandle:function(t){var e=this;this.$msg("您确定要删除该文章吗?","confirm",(function(){e.$api.user.admfeedbackdel({id:t.id}).then((function(t){e.$msgs("已删除!"),e.fetchData()}))}),null,!0)}}},d=l,h=a("2877"),p=Object(h["a"])(d,i,n,!1,null,"513e1f42",null);e["default"]=p.exports}}]);
|