You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
9.8 KiB
1 line
9.8 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2fd253c9"],{"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px",display:"flex","flex-direction":"row-reverse"}},[a("el-pagination",{attrs:{background:"","hide-on-single-page":"",layout:"total, prev, pager, next, jumper","current-page":e.currentPage,"page-size":e.size,total:e.total},on:{"current-change":e.handleCurrentChange}})],1)},r=[],i=(a("a9e3"),{props:{currentPage:{type:Number,default:1},size:{type:Number,default:10},total:{type:Number,default:0}},data:function(){return{}},methods:{handleCurrentChange:function(e){this.$emit("currentChange",e)}}}),l=i,o=a("2877"),s=Object(o["a"])(l,n,r,!1,null,null,null);t["a"]=s.exports},"7a45":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"新预约",name:"first"}}),a("el-tab-pane",{attrs:{label:"已处理",name:"second"}})],1),a("div",{staticClass:"toolbar"},[a("div",[a("el-input",{attrs:{placeholder:"请输入关键字",size:"small"},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),a("el-button",{staticStyle:{"margin-left":"5px"},attrs:{size:"small"},on:{click:e.searchFn}},[e._v("查询")])],1)]),a("el-table",{attrs:{data:e.userSubscribeList,size:"medium","empty-text":"暂无数据",border:""}},[a("el-table-column",{attrs:{align:"center",prop:"applyDate",label:"预约申请日期","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e.getTimes(t.row.applyDate)))])]}}])}),a("el-table-column",{attrs:{align:"center",prop:"contract",label:"联系人","min-width":"100","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{align:"center",prop:"name",label:"预约景点","min-width":"100","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{align:"center",prop:"heads",label:"预约人数","min-width":"90"}}),a("el-table-column",{attrs:{align:"center",prop:"mobile",label:"手机号","min-width":"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{align:"center",prop:"destDate",label:"预约日期","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e.getTimes(t.row.destDate)))])]}}])}),a("el-table-column",{attrs:{align:"center",prop:"destTime",label:"预约时间点","min-width":"100"}}),a("el-table-column",{attrs:{align:"center",prop:"notes",label:"预约备注","min-width":"150","show-overflow-tooltip":""}}),1===e.isDeal?a("el-table-column",{attrs:{align:"center",prop:"replyTime",label:"处理日期","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e.getTimes(t.row.replyTime)))])]}}],null,!1,3298596519)}):e._e(),1===e.isDeal?a("el-table-column",{attrs:{align:"center",prop:"reply",label:"处理备注","min-width":"100","show-overflow-tooltip":""}}):e._e(),a("el-table-column",{attrs:{align:"center",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===e.isDeal?a("div",[a("el-popconfirm",{attrs:{title:"您确定要删除吗?"},on:{onConfirm:function(a){return e.deleteFn(t.row.userSubscribeId)}}},[a("el-link",{attrs:{slot:"reference",underline:!1,type:"danger"},slot:"reference"},[e._v("删除")])],1)],1):0===e.isDeal?a("div",[a("el-link",{attrs:{underline:!1,type:"primary"},on:{click:function(a){return e.handling(t.row)}}},[e._v("处理")])],1):e._e()]}}])})],1),a("Pagination",{attrs:{currentPage:e.currentPage,size:e.size,total:e.total},on:{currentChange:e.currentChange}}),a("el-dialog",{attrs:{title:"处理预约",visible:e.dialogFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{staticClass:"form",attrs:{"label-width":"80px",model:e.form,size:"small"}},[a("el-form-item",{attrs:{label:"处理备注"}},[a("el-radio",{attrs:{label:"同意"},model:{value:e.form.dealtype,callback:function(t){e.$set(e.form,"dealtype",t)},expression:"form.dealtype"}},[e._v("同意")]),a("el-radio",{attrs:{label:"不同意"},model:{value:e.form.dealtype,callback:function(t){e.$set(e.form,"dealtype",t)},expression:"form.dealtype"}},[e._v("不同意")])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.determine()}}},[e._v("确 定")])],1)],1)],1)},r=[],i=(a("b0c0"),a("d81d"),a("915e4")),l=a("333d"),o={name:"appoManagement",components:{Pagination:l["a"]},data:function(){return{activeName:"first",isDeal:0,searchValue:"",dialogFormVisible:!1,currentPage:1,size:10,total:0,userSubscribeList:[],form:{dealtype:"同意"},userSubscribe:{}}},created:function(){this.getData(0,this.currentPage,this.size)},methods:{handleClick:function(e){console.log(e),"first"===e.name?this.isDeal=0:"second"===e.name&&(this.isDeal=1),this.currentPage=1,this.getData(this.isDeal,this.currentPage,this.size)},searchFn:function(){var e=this;Object(i["n"])(this.searchValue,this.isDeal).then((function(t){if(console.log(t),200===t.code){var a=t.data.map((function(e){return e}));e.userSubscribeList=a.reverse()}}))},deleteFn:function(e){var t=this;Object(i["d"])(e).then((function(e){200===e.code?(t.$message.success("删除成功!"),t.getData(t.isDeal,t.currentPage,t.size)):(console.log(e),t.$message.error(e.msg))}))},handling:function(e){console.log(e),this.userSubscribe=e,this.dialogFormVisible=!0},determine:function(){var e=this;this.userSubscribe.reply=this.form.dealtype,this.userSubscribe.replyTime=(new Date).getTime(),Object(i["m"])(this.userSubscribe).then((function(t){console.log(t),200==t.code?(e.$message.success("处理成功!"),e.getData(e.isDeal,e.currentPage,e.size),e.dialogFormVisible=!1):(console.log(t),e.$message.error(t.msg))}))},currentChange:function(e){console.log(e),this.currentPage=e,this.getData(this.isDeal,this.currentPage,this.size)},getData:function(e,t,a){var n=this;Object(i["h"])(e,t,a).then((function(e){if(console.log(e),200===e.code){t>1&&!e.data.list.length&&(n.currentPage=--t,n.getData(n.isDeal,n.currentPage,n.size));var a=e.data.list.map((function(e){return e}));n.total=e.data.total,n.userSubscribeList=a.reverse()}else console.log(e)}))},getTimes:function(e){var t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var r=t.getDate(),i=t.getHours();i=i<10?"0"+i:i;var l=t.getMinutes();l=l<10?"0"+l:l;var o=t.getSeconds();return o=o<10?"0"+o:o,a+"年"+n+"月"+r+"日"}}},s=o,c=(a("9cf8"),a("2877")),u=Object(c["a"])(s,n,r,!1,null,"41f1758e",null);t["default"]=u.exports},"915e4":function(e,t,a){"use strict";a.d(t,"f",(function(){return r})),a.d(t,"e",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"l",(function(){return o})),a.d(t,"i",(function(){return s})),a.d(t,"j",(function(){return c})),a.d(t,"b",(function(){return u})),a.d(t,"k",(function(){return d})),a.d(t,"c",(function(){return f})),a.d(t,"g",(function(){return b})),a.d(t,"h",(function(){return p})),a.d(t,"n",(function(){return m})),a.d(t,"m",(function(){return h})),a.d(t,"d",(function(){return g}));var n=a("b775");function r(e){return Object(n["a"])({url:"/api/back/attractions/list/type/"+e,method:"get"})}function i(e){return Object(n["a"])({url:"/api/back/attractions/"+e,method:"get"})}function l(e){return Object(n["a"])({url:"/api/back/attractions/delete/"+e,method:"delete",Id:e})}function o(e){return Object(n["a"])({url:"/api/back/attractions/update",method:"put",data:e})}function s(e){return Object(n["a"])({url:"/api/back/attractions/insert",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/api/back/attractionsPicture/insert",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/api/back/attractionsPicture/delete/"+e,method:"delete",Id:e})}function d(e){return Object(n["a"])({url:"/api/back/attractionsTime/insert",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/api/back/attractionsTime/delete/"+e,method:"delete",Id:e})}function b(e){return Object(n["a"])({url:"/api/back/attractionsTime/list/attraction/"+e,method:"get"})}function p(e,t,a){return Object(n["a"])({url:"/api/back/userSubscribe/list?isDeal="+e+"&page="+t+"&size="+a,method:"get"})}function m(e,t){return Object(n["a"])({url:"/api/back/userSubscribe/list/search?key="+e+"&isDeal="+t,method:"get"})}function h(e){return Object(n["a"])({url:"/api/back/userSubscribe/update",method:"put",data:e})}function g(e){return Object(n["a"])({url:"/api/back/userSubscribe/delete/"+e,method:"delete"})}},"94dd":function(e,t,a){},"9cf8":function(e,t,a){"use strict";a("94dd")},a9e3:function(e,t,a){"use strict";var n=a("83ab"),r=a("da84"),i=a("94ca"),l=a("6eeb"),o=a("5135"),s=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),f=a("7c73"),b=a("241c").f,p=a("06cf").f,m=a("9bf2").f,h=a("58a8").trim,g="Number",v=r[g],k=v.prototype,w=s(f(k))==g,y=function(e){var t,a,n,r,i,l,o,s,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=h(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(i=c.slice(2),l=i.length,o=0;o<l;o++)if(s=i.charCodeAt(o),s<48||s>r)return NaN;return parseInt(i,n)}return+c};if(i(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var _,D=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof D&&(w?d((function(){k.valueOf.call(a)})):s(a)!=g)?c(new v(y(t)),a,D):y(t)},N=n?b(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;N.length>S;S++)o(v,_=N[S])&&!o(D,_)&&m(D,_,p(v,_));D.prototype=k,k.constructor=D,l(r,g,D)}}}]); |