mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp_ninca-crk-access-control"]=window["webpackJsonp_ninca-crk-access-control"]||[]).push([["chunk-3b80dc1f"],{"0627":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pass-time-content"},[n("div",{staticClass:"content-head"},[t._v("通行时间: "+t._s(t.GFdateFormat(t.data.beginDate,"YYYY-MM-DD"))+"~"+t._s(t.GFdateFormat(t.data.endDate,"YYYY-MM-DD")))]),n("div",{staticClass:"content-pass-time"},[n("TextTable",t._l(t.data.passableCycle,(function(t){return n("WeekTextTableItem",{key:t.weekday,attrs:{leftText:t.weekday,texts:t.time}})})),1)],1)])},a=[],c=(n("d3b7"),n("4ae1"),n("25f0"),n("276c")),i=n("920b"),o=n("e1a7"),u=n("f20d"),s=n("9ab4"),f=n("60a3"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("TextTableItem",{attrs:{leftText:t.cLeftText,texts:t.cText}})},d=[],h=(n("d81d"),n("a9e3"),n("e954")),p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"text-table-item"},[n("div",{staticClass:"text-table-left"},[t._v(t._s(t.leftText))]),n("div",{staticClass:"text-table-right"},t._l(t.texts,(function(e,r){return n("div",{key:r,staticClass:"text-table-list"},[t._v(t._s(e))])})),0)])},b=[];function v(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o["a"])(this,n)}}var y=function(t){Object(i["a"])(n,t);var e=v(n);function n(){return Object(c["a"])(this,n),e.apply(this,arguments)}return n}(f["h"]);Object(s["a"])([Object(f["e"])({type:String,default:""})],y.prototype,"leftText",void 0),Object(s["a"])([Object(f["e"])({type:Array,default:function(){return[]}})],y.prototype,"texts",void 0),y=Object(s["a"])([f["a"]],y);var j=y,m=j,O=(n("6218"),n("2877")),g=Object(O["a"])(m,p,b,!1,null,"58d93042",null),x=g.exports;function R(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o["a"])(this,n)}}var w=function(t){Object(i["a"])(n,t);var e=R(n);function n(){return Object(c["a"])(this,n),e.apply(this,arguments)}return Object(h["a"])(n,[{key:"weekdayNumToChn",value:function(t){var e={2:"周一",3:"周二",4:"周三",5:"周四",6:"周五",7:"周六",1:"周日"};return e[t]}},{key:"cText",get:function(){return this.texts.map((function(t){return t.beginTime+"~"+t.endTime}))}},{key:"cLeftText",get:function(){return this.weekdayNumToChn(this.leftText)}}]),n}(f["h"]);Object(s["a"])([Object(f["e"])({type:Number,default:""})],w.prototype,"leftText",void 0),Object(s["a"])([Object(f["e"])({type:Array,default:function(){return[]}})],w.prototype,"texts",void 0),w=Object(s["a"])([Object(f["a"])({components:{TextTableItem:x}})],w);var k=w,D=k,T=Object(O["a"])(D,l,d,!1,null,null,null),A=T.exports,F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"text-table"},[t._t("default")],2)},_=[];function C(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o["a"])(this,n)}}var $=function(t){Object(i["a"])(n,t);var e=C(n);function n(){return Object(c["a"])(this,n),e.apply(this,arguments)}return n}(f["h"]);$=Object(s["a"])([f["a"]],$);var M=$,Y=M,P=(n("c1b4"),Object(O["a"])(Y,F,_,!1,null,"6d74f28f",null)),L=P.exports;function S(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(u["a"])(t);if(e()){var a=Object(u["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(o["a"])(this,n)}}var E=function(t){Object(i["a"])(n,t);var e=S(n);function n(){return Object(c["a"])(this,n),e.apply(this,arguments)}return n}(f["h"]);Object(s["a"])([Object(f["e"])({type:Object,default:function(){return{}}})],E.prototype,"data",void 0),E=Object(s["a"])([Object(f["a"])({components:{WeekTextTableItem:A,TextTable:L}})],E);var H=E,I=H,N=(n("7bd6"),Object(O["a"])(I,r,a,!1,null,"41531328",null));e["a"]=N.exports},4243:function(t,e,n){"use strict";n("d81d"),n("d3b7"),n("4ae1"),n("25f0");var r=n("f3f3"),a=(n("96cf"),n("c964")),c=n("276c"),i=n("e954"),o=n("920b"),u=n("e1a7"),s=n("f20d"),f=n("2ff6");function l(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(s["a"])(t);if(e()){var a=Object(s["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(u["a"])(this,n)}}var d={query:"/acs/passableTime/query",add:"/acs/passableTime/add",edit:"/acs/passableTime/edit",delete:"/acs/passableTime/delete",detail:"/acs/passableTime/detail"};e["a"]=new(function(t){Object(o["a"])(n,t);var e=l(n);function n(){return Object(c["a"])(this,n),e.apply(this,arguments)}return Object(i["a"])(n,[{key:"weekdayNumToChn",value:function(t){var e={1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六",7:"周日"};return e[t]}},{key:"query",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(){var e,n,a,c,i=this,o=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:{},n=o.length>1&&void 0!==o[1]?o[1]:{},a=Object.assign({},e),t.next=5,this.$ajax(d.query,a,Object(r["a"])({},n));case 5:return c=t.sent,t.abrupt("return",c.data.map((function(t){return Object.assign(t,i.formatData(t))})));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"detail",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a,c,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign({},e),t.next=4,this.$ajax(d.detail,a,Object(r["a"])({},n));case 4:return c=t.sent,t.abrupt("return",Object.assign(c.data,this.formatData(c.data)));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"formatData",value:function(t){var e=this;return{id:t.passableTimeId,beginDateStr:this.GFdateFormat(t.beginDate,"YYYY-MM-DD"),endDateStr:this.GFdateFormat(t.endDate,"YYYY-MM-DD"),passableCycle:t.passableCycle.map((function(t){return Object.assign(t,{weekdayStr:e.weekdayNumToChn(t.weekday)})}))}}},{key:"add",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a,c,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign({},e),t.next=4,this.$ajax(d.add,a,Object(r["a"])({addTime:{start:"beginDate",end:"endDate"}},n));case 4:return c=t.sent,t.abrupt("return",c.data);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"edit",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a,c,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign({},e),t.next=4,this.$ajax(d.edit,a,Object(r["a"])({addTime:{start:"beginDate",end:"endDate"}},n));case 4:return c=t.sent,t.abrupt("return",c.data);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"delete",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,a,c,i=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},a=Object.assign({},e),t.next=4,this.$ajax(d.delete,a,Object(r["a"])({},n));case 4:return c=t.sent,t.abrupt("return",c.data);case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),n}(f["a"]))},"48b1":function(t,e,n){"use strict";n("4160"),n("d3b7"),n("4ae1"),n("25f0"),n("3ca3"),n("159b"),n("ddb0");var r=n("f3f3"),a=(n("96cf"),n("c964")),c=n("276c"),i=n("e954"),o=n("2c4c"),u=n("920b"),s=n("e1a7"),f=n("f20d"),l=n("9ab4"),d=n("a53c"),h=n("144b"),p=n("3c4e"),b=n.n(p),v=n("60a3");function y(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(f["a"])(t);if(e()){var a=Object(f["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(s["a"])(this,n)}}var j=function(t,e,n){return e},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.modal,n=void 0===e?"infoModal":e,o=t.getDetail,s=void 0===o?"getDetail":o,f=t.addList,d=void 0===f?"addList":f,p=t.changeData,m=void 0===p?"changeData":p,O=function(t){Object(u["a"])(o,t);var e=y(o);function o(){var t;return Object(c["a"])(this,o),t=e.apply(this,arguments),t.loading=!1,t.ops={},t.oldList={},t.addList={},t.showFooter=!0,t.mixinHidden=null,t}return Object(i["a"])(o,[{key:"mounted",value:function(){this.oldList=Object(r["a"])({},this[d])}},{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(a["a"])(regeneratorRuntime.mark((function t(){var e,r,c,i,o,u,f=this,l=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=l.length>0&&void 0!==l[0]?l[0]:{},r=l.length>1&&void 0!==l[1]?l[1]:{},c=l.length>2?l[2]:void 0,this.mixinHidden=c,i=Object.assign({cover:!0},e),this.ops=i,o=this[m]?this[m](r,i):r,this.addList=i.cover?b()(this.oldList,o,{arrayMerge:j}):b()(this.oldList,o),this.dealOther&&this.dealOther(this.addList,i),u=this.$refs[n],t.next=12,this.$nextTick(Object(a["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.t0=f[s],!t.t0){t.next=4;break}return t.next=4,f[s](f.addList,i);case 4:u&&u.show();case 5:case"end":return t.stop()}}),t)}))));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[n];e.hide().then((function(){t.loading=!1,t.mixinHidden&&t.mixinHidden()}))}}]),o}(v["h"]);return Object(l["a"])([Object(v["i"])("loading")],O.prototype,"loadingChange",null),O=Object(l["a"])([Object(v["a"])({components:{CwModal:h["a"]}})],O),O};function O(t){function e(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}return function(){var n,r=Object(f["a"])(t);if(e()){var a=Object(f["a"])(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(s["a"])(this,n)}}e["a"]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({modal:"infoModal"},t),n=e.modal,s=void 0===n?"infoModal":n,f=e.form,h=void 0===f?"cwform":f,p=e.formItems,b=void 0===p?"formItems":p,y=function(){var t={};return"string"===typeof b?t[b]=function(t){this.delPlaceholderData(t)}:Array.isArray(b)&&b.forEach((function(e){t[e]=function(t){this.delPlaceholderData(t)}})),t},j=function(t){Object(u["a"])(n,t);var e=O(n);function n(){var t;return Object(c["a"])(this,n),t=e.apply(this,arguments),t.p1=Object(o["a"])(t),t.ops={},t.formAttrsW={},t}return Object(i["a"])(n,[{key:"dealOther",value:function(){var t=this;this.typeObj.view&&(this.showFooter=!1),"string"===typeof b?this.delPlaceholder(b):Array.isArray(b)&&b.forEach((function(e){t.delPlaceholder(e)}))}},{key:"delPlaceholder",value:function(t){this[t]&&"view"===this.ops.type&&this[t].forEach((function(t){t.contentAttrs&&t.contentAttrs.placeholder&&(t.contentAttrs.placeholder="")}))}},{key:"delPlaceholderData",value:function(t){t&&"view"===this.ops.type&&t.forEach((function(t){t.contentAttrs&&t.contentAttrs.placeholder&&(t.contentAttrs.placeholder="")}))}},{key:"getData",value:function(t){return this.typeObj.add?t[0]:this.typeObj.edit?t[1]:this.typeObj.view?t[2]:void 0}},{key:"validateForm",value:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=this.$refs[e],t.next=4,n&&n.validate();case 4:return r=t.sent,t.abrupt("return",r);case 8:throw t.prev=8,t.t0=t["catch"](0),t.t0;case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"validateFormAll",value:function(){var t=this;if(Array.isArray(h)){var e=[];return h.forEach((function(n){e.push(t.validateForm(n))})),Promise.all(e)}return this.validateForm(h)}},{key:"closeModal",value:function(t){var e=this;this.modalRef.hide().then((function(){e.loading=!1,e.resetForm(),e.$emit("getList"),setTimeout((function(){e.mixinHidden&&e.mixinHidden()}),500),t&&t()}))}},{key:"close",value:function(){var t=this;setTimeout((function(){t.resetForm(),t.mixinHidden&&t.mixinHidden()}),500)}},{key:"resetForm",value:function(){var t=this;Array.isArray(h)?h.forEach((function(e){var n=t.$refs[e];n&&n.resetForm()})):this.formRef&&this.formRef.resetForm()}},{key:"typeObj",get:function(){var t=this.ops.type;return{add:"add"===t,edit:"edit"===t,view:"view"===t,o1:"o1"===t,o2:"o2"===t,o3:"o3"===t}}},{key:"formAttrs",get:function(){return Object(r["a"])({disabled:this.typeObj.view,inline:!1},this.formAttrsW||{})}}]),n}(Object(v["c"])(m(Object(r["a"])({},e))));return Object(l["a"])([Object(v["f"])("p")],j.prototype,"p1",void 0),Object(l["a"])([Object(v["b"])({default:{}})],j.prototype,"p",void 0),Object(l["a"])([Object(v["g"])(s)],j.prototype,"modalRef",void 0),Object(l["a"])([Object(v["g"])(h)],j.prototype,"formRef",void 0),j=Object(l["a"])([Object(v["a"])({components:{CwForm:d["a"]},watch:Object(r["a"])({},y())})],j),j}},6218:function(t,e,n){"use strict";var r=n("8caf"),a=n.n(r);a.a},"7bd6":function(t,e,n){"use strict";var r=n("eb39"),a=n.n(r);a.a},"8caf":function(t,e,n){},c1b4:function(t,e,n){"use strict";var r=n("d358"),a=n.n(r);a.a},d358:function(t,e,n){},eb39:function(t,e,n){}}]); |