chunk-97e71112.a4f0699c.js 7.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97e71112"],{"0ec6":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"index-container-ty"},[e("a-spin",{attrs:{spinning:t.loading}},[e("a-row",{attrs:{type:"flex",justify:"start",gutter:3}},[e("a-col",{attrs:{sm:24,lg:12}},[e("a-card",[e("div",{staticClass:"index-md-title",attrs:{slot:"title"},slot:"title"},[e("img",{attrs:{src:a("8cf3")}}),t._v("\n 我的待办【"+t._s(t.dataSource1.length)+"】\n ")]),e("div",{attrs:{slot:"extra"},slot:"extra"},[t.dataSource1&&t.dataSource1.length>0?e("a",{attrs:{slot:"footer"},on:{click:t.goPage},slot:"footer"},[t._v("更多 "),e("a-icon",{attrs:{type:"double-right"}})],1):t._e()]),e("a-table",{ref:"table1",class:"my-index-table tytable1",attrs:{size:"small",rowKey:"id",columns:t.columns,dataSource:t.dataSource1,pagination:!1},scopedSlots:t._u([{key:"ellipsisText",fn:function(a){return[e("j-ellipsis",{attrs:{value:a,length:t.textMaxLength}})]}},{key:"dayWarnning",fn:function(a,n){return[e("a-icon",{staticStyle:{"font-size":"22px"},attrs:{type:"bulb",theme:"twoTone",twoToneColor:t.getTipColor(n)}})]}},{key:"action",fn:function(a,n){return e("span",{},[e("a",{on:{click:t.handleData}},[t._v("办理")])])}}])})],1)],1),e("a-col",{attrs:{sm:24,lg:12}},[e("a-card",[e("div",{staticClass:"index-md-title",attrs:{slot:"title"},slot:"title"},[e("img",{attrs:{src:a("c612")}}),t._v("\n 我的在办【"+t._s(t.dataSource2.length)+"】\n ")]),e("div",{attrs:{slot:"extra"},slot:"extra"},[t.dataSource2&&t.dataSource2.length>0?e("a",{attrs:{slot:"footer"},on:{click:t.goPage},slot:"footer"},[t._v("更多 "),e("a-icon",{attrs:{type:"double-right"}})],1):t._e()]),e("a-table",{ref:"table2",class:"my-index-table tytable2",attrs:{size:"small",rowKey:"id",columns:t.columns,dataSource:t.dataSource2,pagination:!1},scopedSlots:t._u([{key:"ellipsisText",fn:function(a){return[e("j-ellipsis",{attrs:{value:a,length:t.textMaxLength}})]}},{key:"dayWarnning",fn:function(a,n){return[e("a-icon",{staticStyle:{"font-size":"22px"},attrs:{type:"bulb",theme:"twoTone",twoToneColor:t.getTipColor(n)}})]}},{key:"action",fn:function(a,n){return e("span",{},[e("a",{on:{click:t.handleData}},[t._v("办理")])])}}])})],1)],1),e("a-col",{attrs:{span:24}},[e("div",{staticStyle:{height:"5px"}})]),e("a-col",{attrs:{sm:24,lg:12}},[e("a-card",[e("div",{staticClass:"index-md-title",attrs:{slot:"title"},slot:"title"},[e("img",{attrs:{src:a("4a27")}}),t._v("\n 我的挂账【"+t._s(t.dataSource4.length)+"】\n ")]),e("a-table",{ref:"table4",class:"my-index-table tytable4",attrs:{size:"small",rowKey:"id",columns:t.columns,dataSource:t.dataSource4,pagination:!1},scopedSlots:t._u([{key:"ellipsisText",fn:function(a){return[e("j-ellipsis",{attrs:{value:a,length:t.textMaxLength}})]}},{key:"dayWarnning",fn:function(a,n){return[e("a-icon",{staticStyle:{"font-size":"22px"},attrs:{type:"bulb",theme:"twoTone",twoToneColor:t.getTipColor(n)}})]}},{key:"action",fn:function(a,n){return e("span",{},[e("a",{on:{click:t.handleData}},[t._v("办理")])])}}])})],1)],1),e("a-col",{attrs:{sm:24,lg:12}},[e("a-card",[e("div",{staticClass:"index-md-title",attrs:{slot:"title"},slot:"title"},[e("img",{attrs:{src:a("5e65")}}),t._v("\n 我的督办【"+t._s(t.dataSource3.length)+"】\n ")]),e("a-table",{ref:"table3",class:"my-index-table tytable3",attrs:{size:"small",rowKey:"id",columns:t.columns,dataSource:t.dataSource3,pagination:!1},scopedSlots:t._u([{key:"ellipsisText",fn:function(a){return[e("j-ellipsis",{attrs:{value:a,length:t.textMaxLength}})]}},{key:"dayWarnning",fn:function(a,n){return[e("a-icon",{staticStyle:{"font-size":"22px"},attrs:{type:"bulb",theme:"twoTone",twoToneColor:t.getTipColor(n)}})]}},{key:"action",fn:function(a,n){return e("span",{},[e("a",{on:{click:t.handleData}},[t._v("办理")])])}}])})],1)],1)],1)],1)],1)},o=[],r=a("4099"),i=a.n(r),s=a("d579"),l=[{id:"001",orderNo:"电[1]1267102",orderTitle:"药品出问题了",restDay:1},{id:"002",orderNo:"电[4]5967102",orderTitle:"吃了xxx医院的药,病情越来越严重",restDay:0},{id:"003",orderNo:"电[3]5988987",orderTitle:"今天去超市买鸡蛋,鸡蛋都是坏的",restDay:7},{id:"004",orderNo:"电[2]5213491",orderTitle:"xx宝实体店高价售卖xx",restDay:5},{id:"005",orderNo:"电[1]1603491",orderTitle:"以红利相诱,答应退保后扣一年费用",restDay:0}],c=[{id:"001",orderTitle:"我要投诉这个大超市",orderNo:"电[1]10299456",restDay:6},{id:"002",orderTitle:"xxx医院乱开药方,售卖假药",orderNo:"电[2]20235691",restDay:0},{id:"003",orderTitle:"我想问问这家店是干啥的",orderNo:"电[3]495867322",restDay:7},{id:"004",orderTitle:"我要举报朝阳区奥森公园酒店",orderNo:"电[2]1193849",restDay:3},{id:"005",orderTitle:"我今天吃饭吃到一个石头子",orderNo:"电[4]56782344",restDay:9}],d="rgba(0, 255, 0, 1)",u="rgba(255, 255, 0, 1)",f="rgba(255, 0, 0, 1)",p={name:"IndexTask",components:{JEllipsis:s["default"]},data:function(){return{loading:!1,textMaxLength:8,dataSource1:[],dataSource2:[],dataSource3:[],dataSource4:[],columns:[{title:"",dataIndex:"",key:"rowIndex",width:50,fixed:"left",align:"center",scopedSlots:{customRender:"dayWarnning"}},{title:"剩余天数",align:"center",dataIndex:"restDay",width:80},{title:"工单标题",align:"center",dataIndex:"orderTitle",scopedSlots:{customRender:"ellipsisText"}},{title:"工单编号",align:"center",dataIndex:"orderNo"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}]}},created:function(){this.mock()},mounted:function(){},methods:{getTipColor:function(t){var e=t.restDay;return e<=0?f:e>=1&&e<4?u:e>=4?d:void 0},goPage:function(){this.$message.success("请根据具体业务跳转页面")},mock:function(){this.dataSource1=l,this.dataSource2=c,this.dataSource3=l,this.dataSource4=[],this.ifNullDataSource(this.dataSource4,".tytable4")},ifNullDataSource:function(t,e){this.$nextTick((function(){if(!t||0==t.length){var a=document.createElement("img");a.src=i.a,a.width=300;var n="".concat(e," .ant-table-placeholder");document.querySelector(n).innerHTML="",document.querySelector(n).appendChild(a)}}))},handleData:function(){this.$message.success("办理完成")}}},g=p,y=(a("1ff4"),a("2877")),x=Object(y["a"])(g,n,o,!1,null,null,null);e["default"]=x.exports},"1ff4":function(t,e,a){"use strict";a("9810")},4099:function(t,e,a){t.exports=a.p+"img/nodata.fa342acc.png"},"4a27":function(t,e,a){t.exports=a.p+"img/guaz.57d7177b.png"},"5e65":function(t,e,a){t.exports=a.p+"img/duban.9a5f5bac.png"},9810:function(t,e,a){},c612:function(t,e,a){t.exports=a.p+"img/zaiban.6fd68faa.png"},d579:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a-tooltip",{attrs:{placement:"topLeft"}},[e("template",{slot:"title"},[e("span",[t._v(t._s(t.value))])]),t._v("\n "+t._s(t._f("ellipsis")(t.value,t.length))+"\n")],2)},o=[],r={name:"JEllipsis",props:{value:{type:String,required:!1},length:{type:Number,required:!1,default:25}}},i=r,s=a("2877"),l=Object(s["a"])(i,n,o,!1,null,"4de15389",null);e["default"]=l.exports}}]);