mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window["webpackJsonp_conference-attendance"]=window["webpackJsonp_conference-attendance"]||[]).push([["chunk-a2676e0a","chunk-ed918d1a","chunk-ed918d1a"],{"0336":function(t,e,a){},"0e49":function(t,e,a){"use strict";var n;a.d(e,"a",(function(){return n})),function(t){t[t["Lateness"]=1]="Lateness",t[t["Tardy"]=2]="Tardy",t[t["Absence"]=3]="Absence",t[t["Normal"]=4]="Normal"}(n||(n={}))},1186:function(t,e,a){"use strict";var n;a.d(e,"a",(function(){return n})),function(t){t[t["未开始"]=1]="未开始",t[t["进行中"]=2]="进行中",t[t["已结束"]=3]="已结束",t[t["已取消"]=4]="已取消"}(n||(n={}))},"208f":function(t,e,a){"use strict";a("a15b");var n=a("5530"),s=a("d4ec"),r=a("bee2"),o=a("262e"),i=a("2caf"),c=a("9ab4"),l=a("00a7"),u=a("60a3"),d=function(){var t=function(t){Object(o["a"])(a,t);var e=Object(i["a"])(a);function a(){var t;return Object(s["a"])(this,a),t=e.apply(this,arguments),t.flashModalKey1=t.flashModalKey,t.modalKey=1,t}return Object(r["a"])(a,[{key:"flashModalKey",value:function(){this.modalKey++}}]),a}(u["g"]);return Object(c["a"])([Object(u["e"])("mkey")],t.prototype,"flashModalKey1",void 0),t=Object(c["a"])([u["a"]],t),t};e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"getData",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.cardWrapRef,h=void 0===a?"cardwrap":a,p=function(e){Object(o["a"])(c,e);var a=Object(i["a"])(c);function c(){var t;return Object(s["a"])(this,c),t=a.apply(this,arguments),t.paginationAttrs={},t.selectedArr=[],t.tableData=[],t.searchList={},t.loading=!1,t}return Object(r["a"])(c,[{key:"created",value:function(){this.paginationAttrs=Object(n["a"])({total:0,style:{}},this.paginationAttrs);var t=this.paginationAttrs["page-sizes"]&&this.paginationAttrs["page-sizes"][0];this.searchList=Object(n["a"])({currentPage:1,rowsOfPage:t||10},this.searchList)}},{key:"getList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.clearCheck(),this.resetPage(e),this[t]&&this[t](this.GFdeepclone(this.searchList))}},{key:"_getDetail",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(t,Object(n["a"])({ids:[e]},a)).then((function(t){var e=t.data;return e[0]||{}}))}},{key:"_getDetailById",value:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.$ajax(t,Object(n["a"])({id:e},a)).then((function(t){var e=t.data;return e||{}}))}},{key:"selectd",value:function(t){this.selectedArr=t}},{key:"clearCheck",value:function(){this.cardWrapRef&&this.cardWrapRef.clearCheck()}},{key:"allCheckClick",value:function(){this.cardWrapRef&&this.cardWrapRef.checkAll()}},{key:"reviseCheckClick",value:function(){this.cardWrapRef&&this.cardWrapRef.reviseCheck()}},{key:"resetPage",value:function(t){t&&(this.searchList.currentPage=1)}},{key:"delPage",value:function(){(1===this.tableData.length||this.tableData.length===this.selectedArr.length)&&this.searchList.currentPage>1&&this.searchList.currentPage--,this.getList()}},{key:"selectedStr",get:function(){return this.selectedArr.join(",")}}]),c}(Object(u["b"])(d()));return Object(c["a"])([Object(u["f"])(h)],p.prototype,"cardWrapRef",void 0),p=Object(c["a"])([Object(u["a"])({components:{CwTable:l["a"]}})],p),p}},2395:function(t,e,a){"use strict";a("96cf");var n=a("1da1"),s=a("5530"),r=a("d4ec"),o=a("bee2"),i=a("262e"),c=a("2caf"),l=a("9ab4"),u=a("144b"),d=a("3c4e"),h=a.n(d),p=a("60a3"),f=function(t,e,a){return e};e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.modal,a=void 0===e?"infoModal":e,d=t.getDetail,b=void 0===d?"getDetail":d,v=t.addList,g=void 0===v?"addList":v,m=t.changeData,y=void 0===m?"changeData":m,j=function(t){Object(i["a"])(l,t);var e=Object(c["a"])(l);function l(){var t;return Object(r["a"])(this,l),t=e.apply(this,arguments),t.loading=!1,t.ops={},t.oldList={},t.addList={},t.showFooter=!0,t.mixinHidden=null,t}return Object(o["a"])(l,[{key:"mounted",value:function(){this.oldList=Object(s["a"])({},this[g])}},{key:"loadingChange",value:function(t){this.$emit("update:loading",t),this.$emit("loading",t)}},{key:"dealOther",value:function(t,e){}},{key:"showModal",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,n,s,r,o,i,c=this,l=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=l.length>0&&void 0!==l[0]?l[0]:{},n=l.length>1&&void 0!==l[1]?l[1]:{},s=l.length>2?l[2]:void 0,this.mixinHidden=s,r=Object.assign({cover:!0},e),this.ops=r,o=this[y]?this[y](n,r):n,this.addList=r.cover?h()(this.oldList,o,{arrayMerge:f}):h()(this.oldList,o),this.$nextTick((function(){c[b]&&c[b](c.addList,r)})),this.dealOther&&this.dealOther(this.addList,r),i=this.$refs[a],i&&i.show();case 12:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"closeModal",value:function(){var t=this,e=this.$refs[a];e.hide().then((function(){t.loading=!1,t.mixinHidden&&t.mixinHidden()}))}}]),l}(p["g"]);return Object(l["a"])([Object(p["h"])("loading")],j.prototype,"loadingChange",null),j=Object(l["a"])([Object(p["a"])({components:{CwModal:u["a"]}})],j),j}},"3b82":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("CwMainLayout",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"sign",scopedSlots:t._u([{key:"op-header",fn:function(){return[a("CwHeaderLayout",{attrs:{showHeaderBottomLine:!1}},[a("CwSearchForm",{ref:"searchForm",attrs:{formItems:t.formItems,options:t.options,ruleForm:t.searchList}})],1)]},proxy:!0}])},[a("in-table",{attrs:{query:t.searchList,data:t.tableData,columns:t.columns,paginationAttrs:t.paginationAttrs},on:{"pagination-change":function(e){return t.getList(!1)}}}),a("Detail",{ref:"detail"})],1)},s=[],r=a("d4ec"),o=a("bee2"),i=a("262e"),c=a("2caf"),l=a("9ab4"),u=a("60a3"),d=a("208f"),h=(a("d81d"),a("5530")),p=(a("96cf"),a("1da1")),f=a("2ff6"),b=a("0e49"),v={signList:"/conference_attendance/record/page",signDetail:"/conference_attendance/record/detail",signExport:"/conference_attendance/record/export"},g=function(t){Object(i["a"])(a,t);var e=Object(c["a"])(a);function a(){return Object(r["a"])(this,a),e.apply(this,arguments)}return Object(o["a"])(a,[{key:"signList",value:function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(e){var a,n,s,r=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=r.length>1&&void 0!==r[1]?r[1]:{},n=Object.assign(e),t.next=4,this.$ajax(v.signList,n,Object(h["a"])({},a));case 4:return s=t.sent,t.abrupt("return",this.rPage(s.data));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signDetail",value:function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(e){var a,n,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,this.$ajax(v.signDetail,{id:e},Object(h["a"])({},a));case 3:return n=t.sent,t.abrupt("return",{absencePersons:this.setStatus(n.data.absencePersons,b["a"].Absence),latenessPersons:this.setStatus(n.data.latenessPersons,b["a"].Lateness),tardyPersons:this.setStatus(n.data.tardyPersons,b["a"].Tardy),normalPersons:this.setStatus(n.data.normalPersons,b["a"].Normal)});case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signExport",value:function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(e){var a,n,s=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,this.$ajax(v.signExport,{id:e},Object(h["a"])({},a));case 3:return n=t.sent,t.abrupt("return",n.data);case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"setStatus",value:function(t,e){return{count:t.count,persons:t.persons.map((function(t){return Object(h["a"])(Object(h["a"])({},t),{},{status:e})}))}}}]),a}(f["a"]),m=new g,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("CwModal",{ref:"infoModal",attrs:{title:t.ops.title,width:"554px",submitLoading:t.loading,"destroy-on-close":!0,showFooter:!1},on:{closes:t.close,closed:t.close}},[a("div",{staticClass:"sign-detail"},[a("el-radio-group",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("el-radio-button",{attrs:{label:1}},[t._v("全部")]),a("el-radio-button",{attrs:{label:2}},[t._v("迟到("+t._s(t.latenessPersons.count)+")")]),a("el-radio-button",{attrs:{label:3}},[t._v("早退("+t._s(t.tardyPersons.count)+")")]),a("el-radio-button",{attrs:{label:4}},[t._v("未到("+t._s(t.absencePersons.count)+")")])],1),a("div",{ref:"content",staticClass:"detail-content"},[a("div",{directives:[{name:"show",rawName:"v-show",value:1===t.active,expression:"active === 1"}],staticClass:"category"},[a("CwHead",{attrs:{label:"签到异常("+t.abnormalPersons.count+")"}}),t._l(t.abnormalPersons.persons,(function(t,e){return a("ImgCard",{key:e,attrs:{data:t,showLabel:!0}})}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:1===t.active,expression:"active === 1"}],staticClass:"category"},[a("CwHead",{attrs:{label:"已参会("+t.totalPersons.count+")"}}),t._l(t.totalPersons.persons,(function(t,e){return a("ImgCard",{key:e,attrs:{data:t,showLabel:!0}})}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:2===t.active,expression:"active === 2"}],staticClass:"category"},[a("span"),t._l(t.latenessPersons.persons,(function(t,e){return a("ImgCard",{key:e,attrs:{data:t}})}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:3===t.active,expression:"active === 3"}],staticClass:"category"},[a("span"),t._l(t.tardyPersons.persons,(function(t,e){return a("ImgCard",{key:e,attrs:{data:t}})}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:4===t.active,expression:"active === 4"}],staticClass:"category"},[a("span"),t._l(t.absencePersons.persons,(function(t,e){return a("ImgCard",{key:e,attrs:{data:t}})}))],2)])],1),a("div",{staticClass:"btn-bar"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.signExport}},[t._v("导出")])],1)])},j=[],O=(a("99af"),a("2395")),w=a("f87d"),k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"cw-qz-head"},[a("div",{staticClass:"text",style:{color:t.textColor,"max-width":t.textWidth}},[t._v(" "+t._s(t.label)+" ")]),t._t("default")],2)},x=[],P={name:"CwQzHead",props:{label:{type:String,default:""},textColor:{type:String,default:"rgba(0, 0, 0, 0.85)"},textWidth:{type:String,default:"auto"}}},C=P,L=(a("6ebb"),a("2877")),_=Object(L["a"])(C,k,x,!1,null,"265e433b",null),A=_.exports,I=function(t){Object(i["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(r["a"])(this,a),t=e.apply(this,arguments),t.active=1,t.latenessPersons={count:0},t.tardyPersons={count:0},t.absencePersons={count:0},t.normalPersons={count:0},t.abnormalPersons={count:0,persons:[]},t.totalPersons={count:0,persons:[]},t}return Object(o["a"])(a,[{key:"getDetail",value:function(){var t=this;m.signDetail(this.addList.id).then((function(e){t.latenessPersons=e.latenessPersons,t.tardyPersons=e.tardyPersons,t.absencePersons=e.absencePersons,t.normalPersons=e.normalPersons,t.abnormalPersons={count:t.latenessPersons.count+t.tardyPersons.count+t.absencePersons.count,persons:e.latenessPersons.persons.concat(e.tardyPersons.persons,e.absencePersons.persons)},t.totalPersons={count:e.latenessPersons.count+e.tardyPersons.count+e.normalPersons.count,persons:e.latenessPersons.persons.concat(e.tardyPersons.persons,e.normalPersons.persons)}}))}},{key:"signExport",value:function(){m.signExport(this.addList.id).then((function(t){}))}},{key:"cancel",value:function(){this.closeModal()}},{key:"close",value:function(){this.active=1}},{key:"setScroll",value:function(){this.content.scrollTop=0}}]),a}(Object(u["b"])(Object(O["a"])()));Object(l["a"])([Object(u["f"])("content")],I.prototype,"content",void 0),Object(l["a"])([Object(u["h"])("active")],I.prototype,"setScroll",null),I=Object(l["a"])([Object(u["a"])({components:{ImgCard:w["a"],CwHead:A}})],I);var N=I,E=N,D=(a("8939"),Object(L["a"])(E,y,j,!1,null,"445f41b4",null)),R=D.exports,S=a("1186"),M=function(t){Object(i["a"])(a,t);var e=Object(c["a"])(a);function a(){var t;return Object(r["a"])(this,a),t=e.apply(this,arguments),t.options={status:[{label:"全部",value:0},{label:"未开始",value:1},{label:"进行中",value:2},{label:"已结束",value:3},{label:"已取消",value:4}]},t.formItems=[{type:"input",name:"name",colAttrs:{},itemAttrs:{label:"会议名称"},contentAttrs:{placeholder:"请输入会议名称",maxlength:24}},{type:"select",name:"status",colAttrs:{},itemAttrs:{label:"会议状态"},contentAttrs:{placeholder:"请选择会议状态"}}],t.searchList={name:"",status:0},t.tableData=[],t.paginationAttrs={total:0,isBottom:!0},t.columns=[{type:"text",column:{prop:"name",label:"会议名称"}},{type:"text",column:{label:"会议状态"},render:function(t,e){var a=e.row;return t("span",S["a"][a.status])}},{type:"text",column:{prop:"participantsCount",label:"会议人数"}},{type:"text",column:{prop:"attendanceCount",label:"参会人数"}},{type:"text",column:{label:"参会率"},render:function(t,e){var a=e.row;return t("span",a.attendanceRate+"%")}},{type:"text",column:{prop:"latenessCount",label:"迟到"}},{type:"text",column:{prop:"tardyCount",label:"早退"}},{type:"actions",column:{prop:"compareName",label:"操作",width:"200"},actions:[{type:"button",label:"详情",command:"edit"},{type:"button",label:"导出",command:"export"}]}],t}return Object(o["a"])(a,[{key:"editClick",value:function(t){var e=t.row;this.detail.showModal({title:"签到详情"},e)}},{key:"exportClick",value:function(t){var e=t.row;m.signExport(e.id,{tip:"导出成功"}).then((function(t){}))}},{key:"getData",value:function(){var t=this;this.loading=!0,m.signList(this.searchList).then((function(e){t.loading=!1,t.paginationAttrs.total=e.total,t.tableData=e.datas}))}},{key:"mounted",value:function(){this.getList(!0)}}]),a}(Object(u["b"])(Object(d["a"])()));Object(l["a"])([Object(u["f"])("searchForm")],M.prototype,"searchForm",void 0),Object(l["a"])([Object(u["f"])("detail")],M.prototype,"detail",void 0),M=Object(l["a"])([Object(u["a"])({components:{Detail:R}})],M);var $=M,F=$,T=Object(L["a"])(F,n,s,!1,null,"8627f734",null);e["default"]=T.exports},"402e":function(t,e,a){"use strict";var n=a("a33a"),s=a.n(n);s.a},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),s=a("5899"),r="["+s+"]",o=RegExp("^"+r+r+"*"),i=RegExp(r+r+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(o,"")),2&t&&(a=a.replace(i,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"6ebb":function(t,e,a){"use strict";var n=a("ab96"),s=a.n(n);s.a},8939:function(t,e,a){"use strict";var n=a("0336"),s=a.n(n);s.a},"99bd":function(t,e,a){"use strict";e["a"]={methods:{emitMethod:function(t){var e,a=this.$parent;while(a&&!a[t])a=a.$parent;for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];a&&(e=a)[t].apply(e,s)}}}},a15b:function(t,e,a){"use strict";var n=a("23e7"),s=a("44ad"),r=a("fc6a"),o=a("a640"),i=[].join,c=s!=Object,l=o("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(t){return i.call(r(this),void 0===t?",":t)}})},a33a:function(t,e,a){},a9e3:function(t,e,a){"use strict";var n=a("83ab"),s=a("da84"),r=a("94ca"),o=a("6eeb"),i=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),p=a("241c").f,f=a("06cf").f,b=a("9bf2").f,v=a("58a8").trim,g="Number",m=s[g],y=m.prototype,j=c(h(y))==g,O=function(t){var e,a,n,s,r,o,i,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=v(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+l}for(r=l.slice(2),o=r.length,i=0;i<o;i++)if(c=r.charCodeAt(i),c<48||c>s)return NaN;return parseInt(r,n)}return+l};if(r(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,k=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof k&&(j?d((function(){y.valueOf.call(a)})):c(a)!=g)?l(new m(O(e)),a,k):O(e)},x=n?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),P=0;x.length>P;P++)i(m,w=x[P])&&!i(k,w)&&b(k,w,f(m,w));k.prototype=y,y.constructor=k,o(s,g,k)}},ab96:function(t,e,a){},f87d:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"img-card"},[a("BigImg",{attrs:{src:t.data.regFaceUrl,width:"88px",height:"117px",maskText:t.data.personName}}),t.showLabel?a("label",{staticClass:"label",class:{error:1===t.data.status,warning:2===t.data.status,info:3===t.data.status}},[t._v(t._s(t.signStatus))]):t._e()],1)},s=[],r=a("d4ec"),o=a("bee2"),i=a("262e"),c=a("2caf"),l=a("9ab4"),u=a("60a3"),d=a("27cf"),h=a("0e49"),p=function(t){Object(i["a"])(a,t);var e=Object(c["a"])(a);function a(){return Object(r["a"])(this,a),e.apply(this,arguments)}return Object(o["a"])(a,[{key:"signStatus",get:function(){var t="";switch(this.data.status){case h["a"].Lateness:t="迟到";break;case h["a"].Tardy:t="早退";break;case h["a"].Absence:t="未到";break}return t}}]),a}(u["g"]);Object(l["a"])([Object(u["d"])({default:!1})],p.prototype,"showLabel",void 0),Object(l["a"])([Object(u["d"])()],p.prototype,"data",void 0),p=Object(l["a"])([Object(u["a"])({components:{BigImg:d["default"]}})],p);var f=p,b=f,v=(a("402e"),a("2877")),g=Object(v["a"])(b,n,s,!1,null,"1608ffd4",null);e["a"]=g.exports}}]); |