pnkx-admin-mongo/pnkx-app-apk/static/js/chunk-ba8e956c.37c19889.js

1 line
5.6 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ba8e956c"],{"26f3":function(o,t,e){"use strict";e.d(t,"d",(function(){return n})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return m})),e.d(t,"e",(function(){return i})),e.d(t,"b",(function(){return c}));var a=e("b775");function n(o){return Object(a["a"])({url:"/commemorationDay/list",method:"get",params:o})}function r(o){return Object(a["a"])({url:"/commemorationDay/"+o,method:"get"})}function m(o){return Object(a["a"])({url:"/commemorationDay",method:"post",data:o})}function i(o){return Object(a["a"])({url:"/commemorationDay",method:"put",data:o})}function c(o){return Object(a["a"])({url:"/commemorationDay/"+o,method:"delete"})}},"35ab":function(o,t,e){"use strict";e("f97c")},"38cf":function(o,t,e){var a=e("23e7"),n=e("1148");a({target:"String",proto:!0},{repeat:n})},"3df9":function(o,t,e){"use strict";e.r(t);var a=function(){var o=this,t=o.$createElement,e=o._self._c||t;return e("div",{staticClass:"add-commemoration-day"},[e("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回","right-text":"保存",title:o.$route.query.id?"编辑纪念日":"新增纪念日"},on:{"click-right":o.handleSave,"click-left":function(t){return o.$router.go(-1)}}}),e("van-cell-group",{attrs:{inset:""}},[e("van-field",{attrs:{label:"纪念日名称","left-icon":"edit",placeholder:"请输入纪念日名称"},model:{value:o.commemorationDayForm.name,callback:function(t){o.$set(o.commemorationDayForm,"name",t)},expression:"commemorationDayForm.name"}}),e("van-field",{attrs:{readonly:"",label:"纪念日日期","left-icon":"calendar-o",placeholder:"请选择纪念日日期","is-link":""},on:{click:function(t){o.showTimePopup=!0}},model:{value:o.commemorationDayForm.date,callback:function(t){o.$set(o.commemorationDayForm,"date",t)},expression:"commemorationDayForm.date"}}),e("van-cell",{attrs:{value:o.commemorationDayForm.repeat?"是":"否",center:"",icon:"volume-o",title:"重复提醒","is-link":""},on:{click:function(t){o.showRepeat=!0}}}),e("van-cell",{attrs:{center:"",icon:"photo-o",title:"图标"},on:{click:function(t){return o.$router.replace("/selectCommemorationDayIcon")}},scopedSlots:o._u([{key:"right-icon",fn:function(){return[e("svg-icon",{staticClass:"business-icon",attrs:{"icon-class":o.commemorationDayForm.icon||""}}),e("van-icon",{attrs:{name:"arrow"}})]},proxy:!0}])}),e("van-field",{attrs:{autosize:"","left-icon":"label-o",label:"备注",maxlength:"200",placeholder:"请输入备注",rows:"2","show-word-limit":"",type:"textarea"},model:{value:o.commemorationDayForm.remark,callback:function(t){o.$set(o.commemorationDayForm,"remark",t)},expression:"commemorationDayForm.remark"}}),e("van-row",{staticClass:"button"},[o.$route.query.id?e("van-button",{attrs:{type:"danger"},on:{click:o.handleDelete}},[o._v("删 除")]):o._e(),e("van-button",{attrs:{type:"info"},on:{click:o.handleSave}},[o._v("保 存")])],1)],1),e("van-popup",{attrs:{position:"bottom",round:""},model:{value:o.showTimePopup,callback:function(t){o.showTimePopup=t},expression:"showTimePopup"}},[e("van-datetime-picker",{attrs:{"min-date":o.minDate,title:"选择纪念日时间",type:"datetime"},on:{confirm:o.confirmDate},model:{value:o.commemorationDayForm.date,callback:function(t){o.$set(o.commemorationDayForm,"date",t)},expression:"commemorationDayForm.date"}})],1),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:o.showRepeat,callback:function(t){o.showRepeat=t},expression:"showRepeat"}},[e("van-picker",{attrs:{"value-key":"name","show-toolbar":"",columns:o.repeatList},on:{cancel:function(t){o.showRepeat=!1},confirm:o.onConfirmRepeat}})],1)],1)},n=[],r=(e("b0c0"),e("38cf"),e("26f3")),m={name:"AddCommemorationDay",data:function(){return{commemorationDayForm:{name:"",date:this.parseTime(new Date),repeat:!1,icon:"纪念日",remark:""},minDate:new Date(1990,1,1),showTimePopup:!1,showRepeat:!1,repeatList:[{name:"是",value:!0},{name:"否",value:!1}]}},mounted:function(){var o=this;this.$route.query.id?Object(r["c"])(this.$route.query.id).then((function(t){o.commemorationDay