1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6b022eb0","chunk-2c0a4c9e","chunk-e5c854a8","chunk-7e739488","chunk-5b1541e7"],{"010e":function(e,t,a){},"01ad":function(e,t,a){a.r(t);var n=a("8468"),r=(a("7db0"),a("d3b7"),a("c7eb")),i=a("1da1"),s=a("5530"),o=(a("a9e3"),a("f5ed")),l=a("837d"),c=a("3264"),u=a("a75f"),d=a("2f62"),p=a("9f53");u={name:"videos",components:{addEdit:u.default,ExTable:c.a},mixins:[o.a,p.a],computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"videos"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{sitem:null,select:"1",input:"",statusList:[{status:"1",label:"启用"},{status:"0",label:"禁用"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{page:1,size:15,status:"",video_sn:"",video_name:"",video_url:""},tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"ID",width:"70px",fixed:"left"},{prop:"video_name",label:"视频名称",width:"250px"},{prop:"remark",label:"视频描述"},{prop:"status",label:"视频状态",_slot_:"status",width:"100px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"150px",_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{selectPop:function(e,t){var a=this;this.$confirm("此操作将切换视频状态, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.changeBtnStatus(e,t)}))},msgPop:function(){var e=this;this.$alert(res.msg,{confirmButtonText:"确定",callback:function(t){e.$message({type:"info",message:"action: ".concat(t)})}})},deletePop:function(e){var t=this;this.$alert("请确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.deleteBtnProject(e)}))},restSearch:function(){this.select="1",this.input="",this.pageInfo={size:15,curr:1,total:0},this.parmValue={video_name:"",video_url:"",video_sn:"",status:"",page:1,size:15},this.searchList()},openModal:function(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t},changeBtnStatus:function(e,t){var a=this;return Object(i.a)(Object(r.a)().mark((function n(){var i,s;return Object(r.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a.loading=!1,(i={id:"",status:""}).status="1"===e?"0":"1",i.id=t,n.next=6,l.a.change(i);case 6:(s=n.sent)&&0===s.code&&s.data?n.next=16:n.next=10;break;case 10:if(s&&100<=s.code&&s.code<=104)return n.next=13,a.logout();n.next=15;break;case 13:n.next=16;break;case 15:a.msgPop();case 16:a.loading=!1,a.searchList();case 18:case"end":return n.stop()}}),n)})))()},deleteBtnProject:function(e){var t=this;return Object(i.a)(Object(r.a)().mark((function a(){var n,i;return Object(r.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!1,(n={id:""}).id=e,a.next=5,l.a.delete(n);case 5:(i=a.sent)&&0===i.code?a.next=15:a.next=9;break;case 9:if(i&&100<=i.code&&i.code<=104)return a.next=12,t.logout();a.next=14;break;case 12:a.next=15;break;case 14:t.msgPop();case 15:t.loading=!1,t.searchList();case 17:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.video_name="1"===e.select?e.input:"",e.parmValue.video_url="2"===e.select?e.input:"",e.parmValue.video_sn="3"===e.select?e.input:"",t.next=6,l.a.list(e.parmValue);case 6:(a=t.sent)&&0===a.code&&a.data?(e.tableData=a.data.video,e.pageInfo.total=Number(a.data.count),t.next=19):t.next=12;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},a("8b45"),c=a("2877"),o=Object(c.a)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"videos pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(a){return Object(n.a)(a),[t("el-row",{staticStyle:{width:"100%"}},[t("el-col",{staticStyle:{width:"150px"}},[t("el-select",{attrs:{size:e.searchSize,placeholder:"视频状态"},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return t("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),t("el-col",{staticStyle:{width:"400px",padding:"0 0 0 10px"},attrs:{span:15}},[t("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入内容"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[t("el-select",{staticStyle:{width:"120px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[t("el-option",{attrs:{label:"视频名称",value:"1"}}),t("el-option",{attrs:{label:"视频链接",value:"2"}}),t("el-option",{attrs:{label:"视频编号",value:"3"}})],1),t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList.apply(null,arguments)}},slot:"append"})],1)],1),t("el-col",{staticStyle:{width:"66px",float:"left","margin-left":"10px"},attrs:{span:3}},[t("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?t("el-col",{staticStyle:{width:"70px",float:"right"},attrs:{span:3}},[t("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 搜索 ")])],1):e._e(),e.powers.some((function(e){return"003"==e}))?t("el-col",{staticStyle:{width:"70px",float:"right","margin-right":"10px"},attrs:{span:2}},[e.powers.some((function(e){return"003"==e}))?t("el-button",{attrs:{type:"primary",size:e.searchSize},on:{click:function(t){return e.openModal("add","003",{})}}},[e._v(" 添加 ")]):e._e()],1):e._e()],1)]}},{key:"operation",fn:function(a){var n=a.scope;return[e.powers.some((function(e){return"007"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"详情",placement:"top"}},[t("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(n.row.id,"007",n.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top"}},[t("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(n.row.id,"005",n.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===n.row.status?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"禁用",placement:"top"},on:{click:function(t){return e.openModal(n.row.id,"004",n.row)}}},[t("i",{staticClass:"tb-icon el-icon-error",on:{click:function(t){return e.selectPop(n.row.status,n.row.id)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"!==n.row.status?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"启用",placement:"top"},on:{click:function(t){return e.openModal(n.row.id,"004",n.row)}}},[t("i",{staticClass:"tb-icon el-icon-success",on:{click:function(t){return e.selectPop(n.row.status,n.row.id)}}})]):e._e()]}},{key:"status",fn:function(a){var n=a.scope;return[t("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"danger":"1"==n.row.status?"success":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.status==n.row.status}))||{}).label||"--")}})]}}],null,!1,3376959763)}),t("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,"465c2317",null);t.default=o.exports},"02b5":function(e,t,a){},"0864":function(e,t,a){},"0d6e":function(e,t,a){a("5533")},1961:function(e,t,a){a("0864")},"1b69":function(e,t,a){var n=a("c7eb"),r=a("1da1"),i=(a("d3b7"),a("a18c"),a("5daa")),s=a("5f87"),o={};window.ajaxTimeout=2e4,t.a=Object(r.a)(Object(n.a)().mark((function e(){var t,a,l,c,u,d,p,m=arguments;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<m.length&&void 0!==m[0]?m[0]:"",a=1<m.length&&void 0!==m[1]?m[1]:{},l=2<m.length&&void 0!==m[2]?m[2]:"GET",c=3<m.length&&void 0!==m[3]?m[3]:{},u=4<m.length&&void 0!==m[4]?m[4]:o,d=5<m.length?m[5]:void 0,l=l.toLowerCase(),p={method:l,baseURL:"",url:i.a.baseURL+t,data:a,params:c,processData:!0,timeout:window.ajaxTimeout,headers:u,onUploadProgress:d},d&&"function"==typeof d&&(p.onUploadProgress=d),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(s.e)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use((()=>{var e=Object(r.a)(Object(n.a)().mark((function e(t){var a;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 200===t.status&&100<=(a=t.data.code)&&a<=104&&(Object(s.i)(),Object(s.g)(),Object(s.f)()),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}})(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(p).then((function(t){e(t.data)})).catch((function(e){e.response&&e.response.data?t(e.response.data):t(e)}))})));case 12:case"end":return e.stop()}}),e)})))},"1d95":function(e,t,a){},"1db4":function(e,t,a){a.r(t);var n=[function(){var e=this._self._c;return e("div",{staticClass:"wscn-http404-container"},[e("div",{staticClass:"wscn-http404"},[e("img",{attrs:{src:a("a8f0"),alt:""}})])])}],r={name:"Page404"},i=(a("4ece"),a("2877"));i=Object(i.a)(r,(function(){return this._self._c,this._m(0)}),n,!1,null,"612dd7f5",null);t.default=i.exports},"1e04":function(e,t,a){a("edb9")},"200e":function(e,t,a){},"21fa":function(e,t,a){var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"menuall",e,"post",t)},update:function(e,t){return Object(n.a)(r+"menusave",e,"post",t)},menustatus:function(e,t){return Object(n.a)(r+"menustatus",e,"post",t)},menudel:function(e,t){return Object(n.a)(r+"menudel",e,"post",t)},actionList:function(e,t){return Object(n.a)(r+"menuaction",e,"post",t)},actionadd:function(e,t){return Object(n.a)(r+"menuactionadd",e,"post",t)},actionedit:function(e,t){return Object(n.a)(r+"menuactionsave",e,"post",t)},actionstatus:function(e,t){return Object(n.a)(r+"menuactionstatus",e,"post",t)},actiondel:function(e,t){return Object(n.a)(r+"menuactiondel",e,"post",t)}}},2310:function(e,t,a){a("afd4")},"29d1":function(e,t,a){a.r(t),a("7db0"),a("d3b7");var n=a("c7eb"),r=a("1da1"),i=a("5530"),s=(a("a9e3"),a("9b98")),o=a("9f53"),l=a("2f62"),c=a("3264");o={name:"stock",props:["showModel","id"],mixins:[a("f5ed").a,o.a],components:{ExTable:c.a},computed:Object(i.a)({},Object(l.b)(["tablebtnSize","searchSize","size"])),data:function(){return{loading:!1,title:"添加可用库存",showModelThis:this.showModel,parmValue:{id:"",page:1,size:15},statusList:[{id:"1",label:"运营新增"},{id:"2",label:"运营减少"},{id:"3",label:"用户订购"}],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"记录ID",width:"80"},{prop:"username",label:"账户名"},{prop:"nickname",label:"用户名"},{prop:"type",label:"变动类型",_slot_:"type",width:"90"},{prop:"run_stock",label:"变动数量",width:"90"},{prop:"before_stock",label:"变动前库存",width:"90"},{prop:"after_stock",label:"变动后库存",width:"90"},{prop:"addtime",label:"库存更新时间",sortable:!0,width:"140"}]}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.tableData=[],t.next=4,e.searchList();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){var a;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.id=e.id,t.next=4,s.a.log(e.parmValue);case 4:(a=t.sent)&&0===a.code&&a.data?(e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=17):t.next=10;break;case 10:if(a&&100<=a.code&&a.code<=104)return t.next=13,e.logout();t.next=15;break;case 13:t.next=17;break;case 15:e.tableData=[],e.pageInfo.total=0;case 17:e.loading=!1;case 18:case"end":return t.stop()}}),t)})))()}}},a("c576"),c=a("2877"),i=Object(c.a)(o,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"库存变动记录",center:!0,align:"left",top:"18vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("ex-table",{attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"type",fn:function(a){var n=a.scope;return[t("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==n.row.type}))||{}).label||"--")}})]}}])})],1)],1)}),[],!1,null,"6a6b2b1c",null);t.default=i.exports},3264:function(e,t,a){a("4de4"),a("a434"),a("d3b7");var n=a("53fe"),r=a.n(n);n={name:"ex-table",components:{"ex-slot":{functional:!0,props:{render:Function,scope:{type:Object,default:null},column:{type:Object,default:null}},render:function(e,t){return t.props.column&&(t.props.scope.column=t.props.column),t.props.render(e,t.props.scope)}}},props:{table:{type:Object,default:function(){}},data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},page:{type:[Boolean,Object],default:!1},conditions:{type:Array,default:function(){return[]}},isRowDrop:{type:Boolean,default:!1},isColDrop:{type:Boolean,default:!1},size:{type:String,default:"mini"}},computed:{screenColumns:function(){return this.columns.filter((function(e){return!0===e._screen_}))},setColumns:function(){return this.columns.filter((function(e){return!e._noset_}))},isHasScreenColumn:function(){return function(e){return this.conditions.some((function(t){return t.prop===e.prop}))}},page_curr:function(){return this.page.curr},page_size:function(){return this.page.size},page_total:function(){return this.page.total}},data:function(){return{tableSelection:[]}},watch:{page_curr:function(e){this.page.curr=e},page_size:function(e){this.page.size=e},page_total:function(e){this.page.total=e}},mounted:function(){this.rowDrop(),this.columnDrop()},directives:{drap:{inserted:function(e,t){e.onmousedown=function(a){var n=t.modifiers.parent?e.parentNode:e,r=document.body.offsetWidth,i=document.body.offsetHeight,s=n.offsetWidth,o=n.offsetHeight,l=a.clientX-n.offsetLeft,c=a.clientY-n.offsetTop;document.onmousemove=function(e){var a=e.clientX-l;e=e.clientY-c;t.modifiers.limit&&(a=r-s<(a=a<0?0:a)?r-s:a,e=i-o<(e=e<0?0:e)?i-o:e),n.style.left=a+"px",n.style.top=e+"px"},document.onmouseup=function(){document.onmousemove=null}}}}},methods:{arraySpanMethod:function(e){e.row},objectSpanMethod:function(e){if(e.row,0===e.columnIndex)return e.rowIndex%2==0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},rowDrop:function(){var e=this,t=document.querySelector(".el-table__body-wrapper > table > tbody");r.a.create(t,{disabled:!this.isRowDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEndevt:function(t){var a=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,a)}})},columnDrop:function(){var e=this,t=document.querySelector(".el-table__header-wrapper tr");r.a.create(t,{disabled:!this.isColDrop,ghostClass:"sortable-ghost",animation:180,delay:0,onEnd:function(t){var a=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,a)}})},getObjPrototype:function(e,t){return e[t]?new Function("obj","return obj.".concat(t))(e):""},doLayout:function(){var e;(e=this.$refs.elTable).doLayout.apply(e,arguments)},clearSelection:function(){var e;(e=this.$refs.elTable).clearSelection.apply(e,arguments)},toggleRowSelection:function(){var e;(e=this.$refs.elTable).toggleRowSelection.apply(e,arguments)},toggleAllSelection:function(){var e;(e=this.$refs.elTable).toggleAllSelection.apply(e,arguments)},setCurrentRow:function(){var e;(e=this.$refs.elTable).setCurrentRow.apply(e,arguments)},toggleRowExpansion:function(){var e;(e=this.$refs.elTable).toggleRowExpansion.apply(e,arguments)}}},a("0d6e"),a("2310"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(a,n){return["setcol"==a?t("el-dropdown",{key:n,attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[t("el-button",{attrs:{size:"small"}},[e._v("列设置")]),t("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(a,n){return[a._noset_?e._e():t("el-dropdown-item",{key:"setColumns"+n},[t("el-switch",{attrs:{"active-text":a.label,"active-value":!1,"inactive-value":!0},model:{value:a._hidden_,callback:function(t){e.$set(a,"_hidden_",t)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),t("el-table",e._g(e._b({ref:"elTable",staticStyle:{width:"100%"},attrs:{data:e.data,size:e.size,"span-method":e.arraySpanMethod},on:{"selection-change":function(t){e.tableSelection=t}}},"el-table",e.table,!1),e.$listeners),[e._l(e.columns,(function(a,n){return[a._hidden_||!a.type||a._slot_?a._hidden_?e._e():t("el-table-column",e._b({key:n,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(n){return[t("span",[e._v(e._s(a.label))]),a._screen_?t("span",{on:{click:function(t){return t.stopPropagation(),e.addConditionItemByCol(a,n)}}},[!1===a._screen_tip_?t("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(a)?"color:#3888e5;":""}):t("el-tooltip",{staticClass:"item",attrs:{effect:a._screen_tip_effect_||"dark",content:a._screen_tip_||"筛选",placement:a._screen_tip_placement_||"top"}},[t("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(a)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(n){return a._slot_?e._t(a._slot_,null,{scope:n}):a._render_?[t("ex-slot",{attrs:{column:a,render:a._render_,scope:n}})]:[t("span",[e._v(e._s(a._format_?a._format_(n.row):e.getObjPrototype(n.row,a.prop)))])]}}],null,!0)},"el-table-column",a,!1)):t("el-table-column",e._b({key:n,attrs:{align:"center",width:"45px"}},"el-table-column",a,!1))]}))],2),!1!==e.page&&e.data&&0<e.data.length?t("div",{staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[t("el-pagination",{attrs:{"current-page":e.page.curr,"page-sizes":[15,50,100,500],"page-size":e.page.size,size:e.searchSize,layout:"total, sizes, prev, pager, next, jumper",total:e.page.total},on:{"size-change":function(t){return e.$emit("page-size-change",t)},"current-change":function(t){return e.$emit("page-curr-change",t)}}})],1):e._e()],1)}),[],!1,null,"b73eb6ca",null);t.a=a.exports},"434a":function(e,t,a){a("b718")},"43ed":function(e,t,a){},"48c3":function(e,t,a){var n=a("1b69");t.a={list:function(e,t){return Object(n.a)("admin/orderlist",e,"post",t)},post:function(e,t){return Object(n.a)("admin/orderdelivery",e,"post",t)}}},"49f9":function(e,t,a){a("83e8")},"4c1f":function(e,t,a){var n=a("1b69");t.a={list:function(e,t){return Object(n.a)("admin/versionlist",e,"post",t)}}},"4ece":function(e,t,a){a("7b6d")},"54b3":function(e,t,a){a("200e")},5533:function(e,t,a){},"56a8":function(e,t,a){a("a91b")},"5bdf":function(e,t,a){a.r(t);var n=a("8468"),r=(a("7db0"),a("b0c0"),a("d3b7"),a("c7eb")),i=a("1da1"),s=a("5530"),o=(a("a9e3"),a("ac1f"),a("25f0"),a("3ca3"),a("5319"),a("159b"),a("ddb0"),a("2b3d"),a("bf19"),a("9861"),a("3264")),l=a("c8ab"),c=a("48c3"),u=a("f5ed"),d=a("9f53"),p=a("2f62"),m=a("5daa"),f=a("7d27");u={name:"order",mixins:[u.a,d.a],components:{ExTable:o.a,addEdit:l.default,PeriodDatePicker:f.a},computed:Object(s.a)(Object(s.a)({},Object(p.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"order"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{fileUrl:m.a.baseURL,selectList:[{code:"1",name:"账号"},{code:"2",name:"姓名"},{code:"3",name:"手机号"}],select:"1",input:"",loading:!0,showModel:!1,isDetail:"",modelId:0,parmValue:{username:"",nickname:"",status:"",mobile:"",order_low:"",order_up:"",page:1,size:15},statusList:[{id:1,label:"待发货"},{id:2,label:"已发货"}],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"order_sn",label:"订单编号",fixed:"left",width:"160px"},{prop:"good_name",label:"商品名称",width:"130px"},{prop:"username",label:"账户名",width:"100px"},{prop:"status",label:"状态",width:"85px",_slot_:"status"},{prop:"nickname",label:"用户名"},{prop:"order_goods_num",label:"订单数量",width:"100px"},{prop:"order_goods_num_t",label:"总克重",width:"80px"},{prop:"order_time",label:"下单时间",width:"140px"},{prop:"post_name",label:"快递公司"},{prop:"post_code",label:"快递编号"},{prop:"delivery_time",label:"发货时间",width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.select="1",this.input="",this.searchList()},methods:{restSearch:function(){this.select="1",this.input="",this.pageInfo={size:15,curr:1,total:0},this.parmValue={username:"",nickname:"",status:"",mobile:"",order_low:"",order_up:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.showModel=!0,this.modelId=e,this.isDetail=t},timeReturned:function(e){var t=this;return Object(i.a)(Object(r.a)().mark((function a(){return Object(r.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:""!==e.startTime?t.parmValue.order_low=e.startTime:t.parmValue.order_low="",t.parmValue.order_up=""!==e.endTime?e.endTime:"";case 3:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.username="1"===e.select?e.input:"",e.parmValue.nickname="2"===e.select?e.input:"",e.parmValue.mobile="3"===e.select?e.input:"",t.next=6,c.a.list(e.parmValue);case 6:(a=t.sent)&&0===a.code&&a.data?(e.tableData=a.data.list,e.tableData.forEach((function(t){t.order_goods_num=t.order_num+t.unit+"/"+t.unit_weight+"kg",t.order_goods_num_t=e.accMul(e.accMul(t.order_num,1),e.accMul(t.unit_weight,1))+"kg"})),e.pageInfo.total=Number(a.data.count),t.next=21):t.next=14;break;case 14:if(a&&100<=a.code&&a.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()},accMul:function(e,t){var a=0;e=e.toString(),t=t.toString();try{a+=e.split(".")[1].length}catch(e){}try{a+=t.split(".")[1].length}catch(e){}return Number(e.replace(".",""))*Number(t.replace(".",""))/Math.pow(10,a)},batchExport:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.loading||(e.loading=!0,a="application/vnd.ms-excel",axios({method:"post",url:e.fileUrl+"admin/orderupload",responseType:"blob",data:{},headers:{Accept:a}}).then((function(t){var n;t&&200==t.status&&t.data?(t=new Blob([t.data],{type:a}),t=window.URL.createObjectURL(t),(n=document.createElement("a")).style.display="none",n.href=t,n.setAttribute("download","未发货订单导出.xls"),document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(t),e.$message.success("未发货订单导出成功!")):e.$message.error("请稍后再试!"),setTimeout((function(){e.loading=!1}),500)})).catch((function(t){e.$message.error("请稍后再试!"),e.loading=!1})));case 1:case"end":return t.stop()}}),t)})))()}}},d=a("2877"),o=Object(d.a)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"order pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(a){return Object(n.a)(a),[t("div",{staticStyle:{width:"100%"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-col",{staticStyle:{width:"110px"},attrs:{span:4}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"订单状态"},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return t("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),t("el-col",{staticStyle:{width:"312px",padding:"0 0 0 10px"},attrs:{span:4}},[t("PeriodDatePicker",{attrs:{start:e.parmValue.order_low,end:e.parmValue.order_up,type:1,size:e.searchSize,width:"140px"},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),t("el-col",{staticStyle:{width:"310px",padding:"0 0 0 10px"},attrs:{span:4}},[t("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[t("el-select",{staticStyle:{width:"88px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},e._l(e.selectList,(function(e,a){return t("el-option",{key:a+"se",attrs:{label:e.name,value:e.code}})})),1),t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList.apply(null,arguments)}},slot:"append"})],1)],1),e.powers.some((function(e){return"002"==e}))?t("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),t("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,disabled:e.loading,type:"primary"},on:{click:e.batchExport}},[e._v(" 导出 ")])],1)],1)],1)],1)]}},{key:"status",fn:function(a){var n=a.scope;return[t("el-tag",{attrs:{size:e.tablebtnSize,type:"1"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==n.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(a){var n=a.scope;return[e.powers.some((function(e){return"007"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"详情",placement:"top"}},[t("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(n.row,"007")}}})]):e._e(),e.powers.some((function(e){return"009"==e}))&&"1"===n.row.status?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"填写物流",placement:"top"}},[t("i",{staticClass:"el-icon-truck tb-icon",on:{click:function(t){return e.openModal(n.row,"009")}}})]):e._e()]}}],null,!1,2888691162)}):t("no-auth"),t("add-edit",{attrs:{id:e.modelId,isDetail:e.isDetail,"show-model":e.showModel},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}})],1)}),[],!1,null,"0bbba509",null);t.default=o.exports},"5c7e":function(e,t,a){a.r(t),a("b0c0");var n=a("c7eb"),r=a("1da1"),i=(a("4de4"),a("fb6a"),a("a434"),a("d3b7"),a("159b"),a("e5d1")),s=a("9f53"),o=(a("99af"),{name:"PeriodDateTimePicker",props:["start","end","disabled","size","width"],data:function(){var e=this;return{startTime:this.start,endTime:this.end,isEdit:this.disabled,pickerOptions1:{disabledDate:function(t){if(null!=e.endTime&&""!=e.endTime&&t)return t.getTime()>=new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()<=new Date(e.startTime).valueOf()}}}},watch:{disabled:function(e){this.isEdit=e},start:function(e){this.startTime=e},end:function(e){this.endTime=e}},mounted:function(){},methods:{timeChange:function(){""!==this.startTime&&null!==this.startTime&&""!==this.endTime&&null!==this.endTime&&(this.endTime&&31536e6<new Date(this.endTime).valueOf()-new Date(this.startTime).valueOf()?(this.$message.error("时间跨度不能超过一年"),this.startTime="",this.endTime=""):new Date(this.endTime).valueOf()<new Date(this.startTime).valueOf()&&(this.$message.error("结束时间不大于开始时间!"),this.startTime="",this.endTime="")),this.timeReturned()},timeReturned:function(){var e=null==this.startTime?"":this.startTime,t=null==this.startTime?"":this.endTime;e={startTime:""==e?"":this.transformTime(e),endTime:""==t?"":this.transformTime(t)};this.$emit("timeReturned",e)},transformTime:function(e){e=new Date(e);var t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),r=e.getHours(),i=e.getMinutes();e=e.getSeconds();return"".concat(t,"-").concat(this.setStr(a),"-").concat(this.setStr(n)," ").concat(this.setStr(r),":").concat(this.setStr(i),":").concat(this.setStr(e))},setStr:function(e){var t=e+"";return e<10?"0"+t:t}}}),l=(a("49f9"),a("2877")),c=(o=Object(l.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"fl time"},[t("el-date-picker",{staticClass:"date-picker",staticStyle:{margin:"0"},style:{width:e.width},attrs:{type:"datetime",size:e.size,placeholder:"开始日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions1,editable:!1,clearable:!0,disabled:e.isEdit},on:{change:e.timeChange},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}}),t("samp",{staticStyle:{padding:"0 3px",margin:"0"}},[e._v("至")]),t("el-date-picker",{staticClass:"date-picker",staticStyle:{margin:"0"},style:{width:e.width},attrs:{size:e.size,type:"datetime",placeholder:"结束日期",disabled:e.isEdit,"picker-options":e.pickerOptions2,editable:!1,"value-format":"yyyy-MM-dd HH:mm:ss",clearable:!0},on:{change:e.timeChange},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}})],1)}),[],!1,null,null,null).exports,a("61f7"));a={name:"park",props:["showModel","id","isDetail","sitem"],mixins:[s.a],components:{PeriodDateTimePicker:o},data:function(){var e=this;return{options:[],value:[],list:[],states:[],tags:[],roleList:[],loading:!1,title:"添加账号",showModelThis:this.showModel,parmValue:{username:"",nickname:"",status:"",mobile:"",page:1,size:15,video_id:"",id:""},ruleForm:{username:"",password:"",starttime:"",expiretime:"",nickname:"",mobile:"",remark:"",video:[],id:""},videoForm:{page:1,size:15,status:"",video_sn:"",video_name:"",video_url:""},videoList:[],rulesThis:this.rules,rules:{username:[{required:!0,validator:function(e,t,a){""===t?a(new Error("账号不能为空!")):10<t.length&&a(new Error("账号不正确!"))},trigger:"blur"}],password:[{required:!0,validator:function(e,t,a){var n;""===t?a(new Error("密码不能为空!")):6===t.length&&(n=t.slice(0,2),t=t.slice(2,4),Object(c.f)(t))&&Object(c.g)(n)?a():a(new Error("密码规则为2位字母+4位数字组合!"))},trigger:"blur"}],starttime:[{required:!0,validator:function(t,a,n){""===a?n(new Error("开始时间不能为空!")):""===e.ruleForm.expiretime?n(new Error("结束时间不能为空!")):n()},trigger:"blur"}],nickname:[{required:!1,validator:function(e,t,a){""!==t&&(t.length<2||12<t.length||!Object(c.b)(t)||Object(c.c)(t))?a(new Error("客户姓名规则为2~12位汉字!")):a()},trigger:"blur"}],mobile:[{required:!1,validator:function(e,t,a){!Object(c.e)(t)&&t?a(new Error("手机号格式不正确!")):a()},trigger:"blur"}],remark:[{required:!1,trigger:"blur"}],video:[{type:"array",required:!0,message:"请至少选择一个视频",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{restSearch:function(){this.select="1",this.input="",this.pageInfo={size:15,curr:1,total:0},this.parmValue={username:"",nickname:"",status:"",mobile:"",page:1,size:15,id:""}},selectTags:function(e){var t=this,a={};this.states.filter((function(n){n.id===e&&(a.video_name=n.video_name,a.id=n.id,a.status=n.status,t.tags.push(a))})),this.ruleForm.video.push(a.id)},handleClose:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function a(){return Object(n.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t.tags.splice(t.tags.indexOf(e),1),t.ruleForm.video.splice(t.ruleForm.video.indexOf(e.video_id),1);case 2:case"end":return a.stop()}}),a)})))()},remoteMethod:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function a(){var r;return Object(n.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.videoForm.video_name=e,t.videoForm.size=100,a.next=4,i.a.videoList(t.videoForm);case 4:r=a.sent,t.states=r.data.video,r&&0===r.code&&r.data?(""!==e?(t.loading_video_set=!0,t.options=r.data.video):t.options=[],a.next=13):a.next=10;break;case 10:if(r&&100<=r.code&&r.code<=104)return a.next=13,t.logout();a.next=13;break;case 13:t.loading_video_set=!1;case 14:case"end":return a.stop()}}),a)})))()},closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"003"===e.isDetail)return e.title="添加账号",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=13;break;case 8:return"007"===e.isDetail?(e.title="账号详情",e.rulesThis={}):(e.title="修改账号",e.rulesThis=e.rules),t.next=11,e.resetForm();case 11:return t.next=13,e.initData();case 13:e.loading=!1;case 14:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){var a,r,s,o,l,c,u,d,p,m;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.id});case 2:(a=t.sent)&&0===a.code&&a.data?(p=a.data,r=p.username,s=p.info,o=p.password,l=p.starttime,c=p.expiretime,u=p.nickname,d=p.mobile,p=p.remark,e.tags=s,m=[],e.tags.forEach((function(e){m.push(e.video_id)})),e.ruleForm={username:r.substr(6),password:o,starttime:l,expiretime:c,nickname:u,mobile:d,remark:p,video:m,id:e.id},t.next=14):t.next=11;break;case 11:if(a&&100<=a.code&&a.code<=104)return t.next=14,e.logout();t.next=14;break;case 14:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.tags=[],e.options=[],e.value=[],t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.videoSet.$data.selectedLabel="",e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={username:"",password:"",starttime:"",expiretime:"",nickname:"",mobile:"",remark:"",video:[]})}));case 5:case"end":return t.stop()}}),t)})))()},timeReturned:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function a(){return Object(n.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:""!==e.startTime?t.ruleForm.starttime=e.startTime:t.ruleForm.starttime="",t.ruleForm.expiretime=""!==e.endTime?e.endTime:"";case 2:case"end":return a.stop()}}),a)})))()},submitForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){var r,s,o,l;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=36;break}if(e.loading=!0,(r=Object.assign({},e.ruleForm)).username="CJ1745"+r.username,s=!0,e.tags.forEach((function(e){"0"===e.status&&(s=!1)})),s){t.next=10;break}return e.$message.warning("不能绑定已禁用的视频!"),e.loading=!1,t.abrupt("return");case 10:if(o={},"add"===e.id)return t.next=14,i.a.add(r);t.next=17;break;case 14:o=t.sent,t.next=20;break;case 17:return t.next=19,i.a.update(r);case 19:o=t.sent;case 20:e.loading=!1,o&&0===o.code?(l="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:l,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=34):t.next=28;break;case 28:if(o&&100<=o.code&&o.code<=104)return t.next=31,e.logout();t.next=33;break;case 31:t.next=34;break;case 33:e.$message.warning(o.msg);case 34:t.next=37;break;case 36:return t.abrupt("return",!1);case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})());case 2:case"end":return t.stop()}}),t)})))()}}},s=Object(l.a)(a,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"800px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{disabled:e.isDetail,label:"账号",prop:"username"}},[t("el-input",{attrs:{placeholder:"XXXXXX",disabled:"003"!==e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}},[t("template",{slot:"prepend"},[e._v("CJ1745")])],2)],1),"003"===e.isDetail?t("el-form-item",{attrs:{disabled:e.isDetail,label:"密码",prop:"password"}},[t("el-input",{attrs:{placeholder:"密码",disabled:"007"===e.isDetail},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1):e._e(),t("el-form-item",{attrs:{label:"有效期",prop:"starttime"}},[t("PeriodDateTimePicker",{attrs:{start:e.ruleForm.starttime,end:e.ruleForm.expiretime,type:1,disabled:!0,width:"288px"},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),t("el-form-item",{attrs:{label:"客户姓名",prop:"nickname"}},[t("el-input",{attrs:{placeholder:"客户姓名",disabled:"007"===e.isDetail},model:{value:e.ruleForm.nickname,callback:function(t){e.$set(e.ruleForm,"nickname",t)},expression:"ruleForm.nickname"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{attrs:{placeholder:"手机号",disabled:"007"===e.isDetail},model:{value:e.ruleForm.mobile,callback:function(t){e.$set(e.ruleForm,"mobile",t)},expression:"ruleForm.mobile"}})],1),t("el-form-item",{attrs:{label:"备注",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},placeholder:"备注",disabled:"007"===e.isDetail,maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),t("el-form-item",{attrs:{label:"视频设置",prop:"video"}},[t("div",{staticClass:"video-set"},[t("el-select",{directives:[{name:"show",rawName:"v-show",value:"007"!==e.isDetail,expression:"isDetail !== '007'"}],ref:"videoSet",staticStyle:{display:"block"},attrs:{filterable:"",remote:"",placeholder:"请输入视频名称","remote-method":e.remoteMethod,loading:e.loading_video_set},on:{change:e.selectTags},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.video_name,disabled:"0"===e.status,value:e.id}})})),1),e._l(e.tags,(function(a,n){return t("el-tag",{directives:[{name:"show",rawName:"v-show",value:e.tags&&0<e.tags.length,expression:"tags && tags.length > 0"}],key:a.name+n,staticStyle:{margin:"10px 6px"},attrs:{"disable-transitions":!0,closable:"007"!==e.isDetail,type:"0"===a.status?"info":""},on:{close:function(t){return e.handleClose(a)}}},[e._v(" "+e._s(a.video_name)+" ")])}))],2)])],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.isDetail?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"!==e.isDetail?"取 消":"关 闭"))])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=s.exports},"5d59":function(e,t,a){},"5de4":function(e,t,a){a.r(t),a("d3b7");var n=a("c7eb"),r=a("1da1"),i=a("5530"),s=(a("99af"),a("7db0"),a("d81d"),a("e9c4"),a("b64b"),a("159b"),a("f5ed")),o=a("21fa"),l=a("b36d"),c=a("2f62"),u=a("9f53");l={name:"MenuOperator",components:{addEdit:l.default},mixins:[s.a,u.a],computed:Object(i.a)(Object(i.a)({},Object(c.b)(["tablebtnSize","searchSize","size","roles"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"menuOperator"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,showInterface:!1,isDetail:!1,isAdd:!0,level:1,modelId:0,formData:{},parentIds:"",parmValue:{parentId:0,code:"",status:"",type:1,menuCategory:"",current:1,size:10},tableData:[]}},created:function(){this.restSearch()},methods:{restSearch:function(){this.searchList()},editInterface:function(e){this.showInterface=!0,this.modelId=e},addEditFn:function(e,t,a,n,r,i){this.showModel=!0,this.modelId=e,this.level=a,this.parentIds=t,this.isDetail=n,this.isAdd=r,this.formData=i},submitRefresh:function(e,t,a){a<3?this.restSearch():this.getchildList(t)},remove:function(e,t,a,i){var s=this;return Object(r.a)(Object(n.a)().mark((function l(){return Object(n.a)().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=3,s.$confirm("确定要".concat("0"===i?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(Object(n.a)().mark((function r(){var l,c;return Object(n.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l={id:e,status:"1"===i?"0":"1"},c={},3===a)return n.next=5,o.a.actionstatus(l);n.next=8;break;case 5:c=n.sent,n.next=11;break;case 8:return n.next=10,o.a.menustatus(l);case 10:c=n.sent;case 11:c&&0===c.code?(s.$notify.success({title:"修改成功!",message:""}),3===a?s.getchildList(t):s.restSearch(),n.next=19):n.next=16;break;case 16:if(c&&100<=c.code&&c.code<=104)return n.next=19,s.logout();n.next=19;break;case 19:case"end":return n.stop()}}),r)})))).catch((function(){}));case 3:case"end":return l.stop()}}),l)})))()},del:function(e,t,a,i){var s=this;return Object(r.a)(Object(n.a)().mark((function i(){return Object(n.a)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=3,s.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r.a)(Object(n.a)().mark((function r(){var i,l;return Object(n.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={id:e},l={},3===a)return n.next=5,o.a.actiondel(i);n.next=8;break;case 5:l=n.sent,n.next=11;break;case 8:return n.next=10,o.a.menudel(i);case 10:l=n.sent;case 11:l&&0===l.code?(s.$notify.success({title:"删除成功!",message:""}),3===a?s.getchildList(t):s.restSearch(),n.next=19):n.next=16;break;case 16:if(l&&100<=l.code&&l.code<=104)return n.next=19,s.logout();n.next=19;break;case 19:case"end":return n.stop()}}),r)})))).catch((function(){}));case 3:case"end":return i.stop()}}),i)})))()},openChildren:function(e,t,a,n){n?this.tableData=1===a?this.tableData.map((function(t){return t.id===e&&(t.child=[]),t})):this.tableData.map((function(a){return a.id===t&&(a.child=a.child.map((function(t){return t.id===e&&(t.child=[]),t}))),a})):1===a?this.concatData(e,"0",a):this.getchildList(e)},getchildList:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function a(){var r,i,s;return Object(n.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.loading=!0,a.next=3,o.a.actionList({id:e});case 3:r=a.sent,i=[],r&&0===r.code&&r.data?(i=r.data,a.next=12):a.next=9;break;case 9:if(r&&100<=r.code&&r.code<=104)return a.next=12,t.logout();a.next=12;break;case 12:s=(s=JSON.parse(JSON.stringify(t.tableData))).map((function(t,a){return t&&t.child&&0<t.child.length&&t.child.forEach((function(t,a){return e===t.id&&(t.child=i),t})),t})),t.tableData=s,t.loading=!1;case 16:case"end":return a.stop()}}),a)})))()},concatData:function(e,t,a){var i=this;return Object(r.a)(Object(n.a)().mark((function r(){var s,l,c;return Object(n.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i.loading=!0,n.next=4,o.a.list({});case 4:s=n.sent,l=[],s&&0===s.code&&s.data?(l=s.data,n.next=13):n.next=10;break;case 10:if(s&&100<=s.code&&s.code<=104)return n.next=13,i.logout();n.next=13;break;case 13:c=(c=JSON.parse(JSON.stringify(i.tableData))).map((function(n,r){return(1===a?e:t===n.id)&&(n.child=l[r].child),n})),i.tableData=c,i.loading=!1;case 17:case"end":return n.stop()}}),r)})))()},searchList:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){var a;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,o.a.list({});case 3:a=t.sent,e.tableData=[],a&&0===a.code&&a.data?(e.tableData=a.data,t.next=15):t.next=9;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.tableData=[];case 15:e.loading=!1;case 16:case"end":return t.stop()}}),t)})))()}}},s=a("2877"),u=Object(s.a)(l,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"box pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticStyle:{padding:"5px"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"195px",float:"right"},attrs:{span:3}},[e.powers.some((function(e){return"002"==e}))?t("el-button",{staticStyle:{float:"right","margin-left":"5px"},attrs:{type:"primary",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 刷新 ")]):e._e(),e.powers.some((function(e){return"003"==e}))&&"admin"===e.roles?t("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.addEditFn(0,"0",1,!1,!0,{})}}},[e._v(" 添加 ")]):e._e()],1)],1)],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("shy-tree",{attrs:{value:e.tableData,level:1},on:{addEdit:e.addEditFn,openChildren:e.openChildren,editInterface:e.editInterface,remove:e.remove,del:e.del}})],1)],1),t("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel,level:e.level,"parent-ids":e.parentIds,"is-add":e.isAdd,"form-data":e.formData,type:e.parmValue.type,"is-detail":e.isDetail},on:{refresh:e.submitRefresh,cancel:function(t){e.showModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,null,null);t.default=u.exports},"5e2a":function(e,t,a){a.r(t);var n=a("8468"),r=(a("7db0"),a("b0c0"),a("d3b7"),a("c7eb")),i=a("1da1"),s=a("5530"),o=(a("a9e3"),a("f5ed")),l=a("e5d1"),c=a("3264"),u=a("5c7e"),d=a("2f62"),p=a("801a"),m=a("9f53");u={name:"park",components:{addEdit:u.default,ExTable:c.a,resetPassword:p.default},mixins:[o.a,m.a],computed:Object(s.a)(Object(s.a)({},Object(d.b)(["tablebtnSize","searchSize","size","roles"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"park"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{showDetail:"",sitem:null,select:"1",input:"",selectList:[{code:"1",name:"账号"},{code:"2",name:"姓名"},{code:"3",name:"手机号"}],statusList:[{id:"0",label:"未激活"},{id:"1",label:"已激活"},{id:"2",label:"已过期"}],loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{username:"",nickname:"",status:"",mobile:"",page:1,size:15},passwordModel:!1,passwordModelId:0,isPasswordDetail:!1,tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"username",label:"账号",width:"120px",fixed:"left"},{prop:"status",label:"账号状态",_slot_:"status",width:"80px"},{prop:"nickname",label:"客户姓名"},{prop:"mobile",label:"客户手机号",width:"110px"},{prop:"time",label:"账户有效期",_slot_:"time",width:"280px"},{prop:"activetime",label:"账户激活时间",sortable:!0,width:"140px"},{prop:"addtime",label:"创建时间",sortable:!0,width:"140px"},{prop:"",label:"操作",fixed:"right",_noset_:!0,width:"120px",_slot_:"operation"}]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.select="1",this.input="",this.pageInfo={size:15,curr:1,total:0},this.parmValue={username:"",nickname:"",status:"",mobile:"",page:1,size:15},this.searchList()},openModal:function(e,t,a){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=a},openPasswordModal:function(e,t){this.passwordModel=!0,this.passwordModelId=e,this.isPasswordDetail=t},searchList:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.username="1"===e.select?e.input:"",e.parmValue.nickname="2"===e.select?e.input:"",e.parmValue.mobile="3"===e.select?e.input:"",t.next=6,l.a.list(e.parmValue);case 6:(a=t.sent)&&0===a.code&&a.data?(e.tableData=a.data.list,e.pageInfo.total=Number(a.data.count),t.next=19):t.next=12;break;case 12:if(a&&100<=a.code&&a.code<=104)return t.next=15,e.logout();t.next=17;break;case 15:t.next=19;break;case 17:e.tableData=[],e.pageInfo.total=0;case 19:e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()}}},c=a("2877"),p=Object(c.a)(u,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"park pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(a){return Object(n.a)(a),[t("div",{staticStyle:{width:"100%"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-col",{staticStyle:{width:"180px"},attrs:{span:4}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"账号状态"},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return t("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),t("el-col",{staticStyle:{width:"380px",padding:"0 0 0 10px"},attrs:{span:4}},[t("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[t("el-select",{staticStyle:{width:"95px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},e._l(e.selectList,(function(e,a){return t("el-option",{key:a+"se",attrs:{label:e.name,value:e.code}})})),1),t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList.apply(null,arguments)}},slot:"append"})],1)],1),e.powers.some((function(e){return"008"==e}))?t("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px"},attrs:{span:4}},[t("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e(),e.powers.some((function(e){return"002"==e}))?t("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e(),e.powers.some((function(e){return"003"==e}))?t("el-col",{staticStyle:{width:"60px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:e.searchSize},on:{click:function(t){return e.openModal("add","003",{})}}},[e._v(" 添加 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(a){var n=a.scope;return[t("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":"1"==n.row.status?"success":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==n.row.status}))||{}).label||"--")}})]}},{key:"time",fn:function(a){return a=a.scope,[t("span",[e._v(e._s(a.row.starttime)+"~"+e._s(a.row.expiretime))])]}},{key:"operation",fn:function(a){var n=a.scope;return[t("el-tooltip",{attrs:{effect:"dark",content:"重置密码",placement:"top"}},[t("i",{staticClass:"el-icon-refresh-left tb-icon",on:{click:function(t){return e.openPasswordModal(n.row.id,!1)}}})]),e.powers.some((function(e){return"007"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"详情",placement:"top"}},[t("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(n.row.id,"007",n.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top"}},[t("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(n.row.id,"005",n.row)}}})]):e._e()]}}],null,!1,2960914327)}):e._e(),t("add-edit",{attrs:{id:e.modelId,sitem:e.sitem,"show-model":e.showModel,"is-detail":e.isDetail},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),t("reset-password",{attrs:{id:e.passwordModelId,"show-model":e.passwordModel,"is-detail":e.isPasswordDetail},on:{refresh:e.searchList,cancel:function(t){e.passwordModel=!1}}})],1):t("div",[t("no-auth")],1)])}),[],!1,null,"26b77164",null);t.default=p.exports},"5e53":function(e,t,a){a.r(t),a("d3b7");var n=a("c7eb"),r=a("1da1"),i=a("5530"),s=(a("7db0"),a("a9e3"),a("4c1f")),o=a("f5ed"),l=a("7d27"),c=a("2f62"),u=a("9f53");o={name:"updates",mixins:[o.a,u.a],components:{PeriodDatePicker:l.a},computed:Object(i.a)(Object(i.a)({},Object(c.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"updates"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!0,showModel:!1,isDetail:!1,modelId:0,parmValue:{type:"VER",page:1,size:15},count:0,tableData:[]}},mounted:function(){this.searchList()},methods:{restSearch:function(){this.parmValue={type:"VER",page:1,size:15},this.count=0,this.searchList()},searchList:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){var a;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list(e.parmValue);case 3:(a=t.sent)&&0===a.code&&a.data?(e.tableData=a.data.list,e.count=Number(a.data.count),t.next=16):t.next=9;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=16;break;case 14:e.tableData=[],e.count=0;case 16:e.loading=!1;case 17:case"end":return t.stop()}}),t)})))()}}},u=a("2877"),l=Object(u.a)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"updates pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("div",[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",size:e.size,stripe:""}},[t("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-form",{staticClass:"demo-table-expand",attrs:{size:e.size,"label-position":"top",inline:""}},[t("el-form-item",{attrs:{label:"更新内容"}},[t("p",{domProps:{innerHTML:e._s(a.row.content)}})])],1)]}}],null,!1,847983622)}),t("el-table-column",{attrs:{label:"版本号",prop:"version"}}),t("el-table-column",{attrs:{label:"更新模块",prop:"title"}}),t("el-table-column",{attrs:{label:"更新时间",prop:"addtime"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[t("el-pagination",{attrs:{size:e.searchSize,"current-page":e.parmValue.page,"page-sizes":[15,50,100,500],"page-size":e.parmValue.size,layout:"total, sizes, prev, pager, next, jumper",total:e.count},on:{"size-change":e.handleSizeChange,"current-change":e.handlePageChange}})],1)],1):t("no-auth")],1)}),[],!1,null,"132b85ca",null);t.default=l.exports},"6aee":function(e,t,a){a("b6bd")},"7b6d":function(e,t,a){},"7d27":function(e,t,a){var n={name:"PeriodDatePicker",props:["start","end","disabled","size","width"],data:function(){var e=this;return{startTime:this.start,endTime:this.end,isEdit:this.disabled,pickerOptions1:{disabledDate:function(t){if(null!=e.endTime&&""!=e.endTime&&t)return t.getTime()>=new Date(e.endTime).valueOf()}},pickerOptions2:{disabledDate:function(t){if(null!=e.startTime&&""!=e.startTime&&t)return t.getTime()<=new Date(e.startTime).valueOf()}}}},watch:{disabled:function(e){this.isEdit=e},start:function(e){this.startTime=e},end:function(e){this.endTime=e}},mounted:function(){},methods:{timeChange:function(){""!==this.startTime&&null!==this.startTime&&""!==this.endTime&&null!==this.endTime&&(this.endTime&&31536e6<new Date(this.endTime).valueOf()-new Date(this.startTime).valueOf()?(this.$message.error("时间跨度不能超过一年"),this.startTime="",this.endTime=""):new Date(this.endTime).valueOf()<new Date(this.startTime).valueOf()&&(this.$message.error("结束时间不大于开始时间!"),this.startTime="",this.endTime="")),this.timeReturned()},timeReturned:function(){var e=null==this.startTime?"":this.startTime,t=null==this.startTime?"":this.endTime;e={startTime:""==e?"":this.transformTime(e),endTime:""==t?"":this.transformTime(t)};this.$emit("timeReturned",e)},transformTime:function(e){e=new Date(e);var t=e.getFullYear(),a=e.getMonth()+1;e=e.getDate();return t+"-"+(a<10?"0"+a:a)+"-"+(e<10?"0"+e:e)}}};a("1961"),a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"fl time"},[t("el-date-picker",{staticClass:"date-picker",staticStyle:{margin:"0"},style:{width:e.width},attrs:{type:"date",size:e.size,placeholder:"开始日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions1,editable:!1,clearable:!0,disabled:e.isEdit},on:{change:e.timeChange},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}}),t("samp",{staticStyle:{padding:"0 3px",margin:"0"}},[e._v("至")]),t("el-date-picker",{staticClass:"date-picker",staticStyle:{margin:"0"},style:{width:e.width},attrs:{size:e.size,type:"date",placeholder:"结束日期",disabled:e.isEdit,"picker-options":e.pickerOptions2,editable:!1,"value-format":"yyyy-MM-dd",clearable:!0},on:{change:e.timeChange},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}})],1)}),[],!1,null,null,null);t.a=a.exports},"7e10":function(e,t,a){a.r(t);var n={name:"loadingPage",data:function(){return{}},created:function(){}};a("6aee"),a=a("2877"),a=Object(a.a)(n,(function(){return this._self._c,this._m(0)}),[function(){var e=this._self._c;return e("div",{staticClass:"dingLoading"},[e("img",{staticStyle:{width:"100%"},attrs:{src:"data:image/gif;base64,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",alt:""}})])}],!1,null,"04fcf63f",null);t.default=a.exports},"801a":function(e,t,a){a.r(t);var n=a("c7eb"),r=a("1da1"),i=(a("fb6a"),a("e9c4"),a("b64b"),a("e5d1")),s=a("61f7"),o={name:"Account",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){var e=this;return{roleList:[],loading:!1,title:"重置密码",showModelThis:this.showModel,ruleForm:{id:this.id,password:"",confirmPassword:""},rulesThis:this.rules,rules:{password:[{required:!0,trigger:"blur",validator:function(e,t,a){var n;""===t?a(new Error("新密码不能为空!")):6===t.length&&(n=t.slice(0,2),t=t.slice(2,4),Object(s.f)(t))&&Object(s.g)(n)?a():a(new Error("密码为2位字母+4位数字!"))}}],confirmPassword:[{required:!0,trigger:"blur",validator:function(t,a,n){""===a?n(new Error("确认密码不能为空!")):e.ruleForm.password!==a?n(new Error("确认密码与新密码不一致!")):n()}}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.rulesThis=e.rules,t.next=3,e.resetForm();case 3:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={id:e.id,password:"",confirmPassword:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){var r,s;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,delete(r=JSON.parse(JSON.stringify(e.ruleForm))).confirmPassword,t.next=6,i.a.setpwd(r);t.next=22;break;case 6:s=t.sent,e.loading=!1,s&&0===s.code?(e.$notify.success({title:"密码修改成功!",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=20):t.next=14;break;case 14:if(s&&100<=s.code&&s.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(s.message);case 20:t.next=24;break;case 22:return t.abrupt("return",!1);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})());case 2:case"end":return t.stop()}}),t)})))()}}};a("54b3"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"25vh",width:"600px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{prop:"password",label:"新密码:"}},[t("el-input",{ref:"password",attrs:{placeholder:"新密码",name:"password",type:"password",maxlength:"6",tabindex:"1",autocomplete:"on"},model:{value:e.ruleForm.password,callback:function(t){e.$set(e.ruleForm,"password",t)},expression:"ruleForm.password"}})],1),t("el-form-item",{attrs:{prop:"confirmPassword",label:"确认密码:"}},[t("el-input",{ref:"confirmPassword",attrs:{placeholder:"确认密码",name:"confirmPassword",type:"password",tabindex:"1",maxlength:"6",autocomplete:"on"},model:{value:e.ruleForm.confirmPassword,callback:function(t){e.$set(e.ruleForm,"confirmPassword",t)},expression:"ruleForm.confirmPassword"}})],1)],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"165abefb",null);t.default=a.exports},"837d":function(e,t,a){var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"video",e,"post",t)},post:function(e,t){return Object(n.a)(r+"video",e,"post",t)},change:function(e,t){return Object(n.a)(r+"Change",e,"post",t)},delete:function(e,t){return Object(n.a)(r+"Delete",e,"post",t)},update:function(e,t){return Object(n.a)(r+"Edit",e,"post",t)},add:function(e,t){return Object(n.a)(r+"Create",e,"post",t)},detail:function(e,t){return Object(n.a)(r+"Read",e,"post",t)}}},"83e8":function(e,t,a){},8466:function(e,t,a){a.r(t);var n=a("8468"),r=(a("7db0"),a("b0c0"),a("d3b7"),a("c7eb")),i=a("1da1"),s=a("5530"),o=(a("a9e3"),a("159b"),a("3264")),l=a("fe2d"),c=a("29d1"),u=a("9b98"),d=a("f5ed"),p=a("9f53"),m=a("2f62"),f=(a("99af"),a("4d63"),a("ac1f"),a("2c3e"),a("00b4"),a("25f0"),{name:"numBerRange",props:["title","lower","online","disabled","size","width"],data:function(){return{isEdit:this.disabled,lowerNum:this.lower,onlineNum:this.online}},watch:{disabled:function(e,t){this.isEdit=e},lower:function(e){this.lowerNum=e},online:function(e){this.onlineNum=e}},mounted:function(){},methods:{parkInput:function(e,t){for(var a=new RegExp("[0-9]+"),n=e.length,r="",i=0;i<n;i++)a.test(e[i])&&(r+=e[i]);1===t?this.lowerNum=r:this.onlineNum=r},numChange:function(){""!==this.lowerNum&&null!==this.lowerNum&&""!==this.onlineNum&&null!==this.onlineNum&&parseInt(this.onlineNum)-parseInt(this.lowerNum)<=0&&(this.$message.error("".concat(this.title,"上限应大于").concat(this.title,"下限!")),this.lowerNum="",this.onlineNum=""),this.numReturned()},numReturned:function(){this.$emit("numReturned",{lower:null==this.lowerNum?"":this.lowerNum,online:null==this.onlineNum?"":this.onlineNum})}}});a("a058"),a=a("2877"),f=Object(a.a)(f,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"fl ageInput"},[t("el-input",{style:{width:e.width},attrs:{type:"text",size:e.size,placeholder:e.title+"下限"},on:{change:function(t){return e.numChange()},input:function(t){return e.parkInput(t,1)}},model:{value:e.lowerNum,callback:function(t){e.lowerNum=t},expression:"lowerNum"}}),t("samp",{staticStyle:{padding:"0 3px",margin:"0"}},[e._v("至")]),t("el-input",{style:{width:e.width},attrs:{type:"text",size:e.size,placeholder:e.title+"上限"},on:{input:function(t){return e.parkInput(t,2)},change:function(t){return e.numChange()}},model:{value:e.onlineNum,callback:function(t){e.onlineNum=t},expression:"onlineNum"}})],1)}),[],!1,null,null,null).exports,d={name:"stock",mixins:[d.a,p.a],components:{ExTable:o.a,addEdit:l.default,numBerRange:f,editRecord:c.default},computed:Object(s.a)(Object(s.a)({},Object(m.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"stock"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{selectList:[{code:"1",name:"账号"},{code:"2",name:"姓名"},{code:"3",name:"手机号"}],select:"1",input:"",loading:!0,showModel:!1,showRecordModel:!1,modelId:0,parmValue:{username:"",nickname:"",status:"",mobile:"",stock_low:"",stock_up:"",page:1,size:15},statusList:[{id:"0",label:"未激活"},{id:"1",label:"已激活"},{id:"2",label:"已过期"}],tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"账户ID",width:"60"},{prop:"username",label:"账户名"},{prop:"status",label:"账户状态",_slot_:"status"},{prop:"nickname",label:"用户名"},{prop:"mobile",label:"联系方式"},{prop:"stock_balance",label:"可用库存"},{prop:"stock_update",label:"库存更新时间",sortable:!0,width:"140"},{prop:"",label:"操作",fixed:"right",_noset_:!0,_slot_:"operation"}]}},mounted:function(){this.select="1",this.input="",this.searchList()},methods:{restSearch:function(){this.select="1",this.input="",this.pageInfo={size:15,curr:1,total:0},this.parmValue={username:"",nickname:"",status:"",mobile:"",stock_low:"",stock_up:"",page:1,size:15},this.searchList()},openModal:function(e,t){this.modelId=e,1==t?this.showModel=!0:this.showRecordModel=!0},numReturned:function(e){var t=this;return Object(i.a)(Object(r.a)().mark((function a(){return Object(r.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t.parmValue.stock_low=e.lower,t.parmValue.stock_up=e.online;case 2:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.username="1"===e.select?e.input:"",e.parmValue.nickname="2"===e.select?e.input:"",e.parmValue.mobile="3"===e.select?e.input:"",t.next=6,u.a.list(e.parmValue);case 6:(a=t.sent)&&0===a.code&&a.data?(e.tableData=a.data.list,e.tableData.forEach((function(e){e.stock_balance+="kg"})),e.pageInfo.total=Number(a.data.count),t.next=20):t.next=13;break;case 13:if(a&&100<=a.code&&a.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=20;break;case 18:e.tableData=[],e.pageInfo.total=0;case 20:e.loading=!1;case 21:case"end":return t.stop()}}),t)})))()}}},p=Object(a.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"stock pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(a){return Object(n.a)(a),[t("div",{staticStyle:{width:"100%"}},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-col",{staticStyle:{width:"115px"},attrs:{span:4}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"订单状态"},model:{value:e.parmValue.status,callback:function(t){e.$set(e.parmValue,"status",t)},expression:"parmValue.status"}},e._l(e.statusList,(function(e){return t("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),t("el-col",{staticStyle:{width:"312px",padding:"0 0 0 10px"},attrs:{span:4}},[t("numBerRange",{attrs:{lower:e.parmValue.stock_low,online:e.parmValue.stock_up,type:1,title:"可用库存",size:e.searchSize,width:"140px"},on:{numReturned:function(t){return e.numReturned(t)}}})],1),t("el-col",{staticStyle:{width:"318px",padding:"0 0 0 10px"},attrs:{span:4}},[t("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[t("el-select",{staticStyle:{width:"95px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},e._l(e.selectList,(function(e,a){return t("el-option",{key:a+"se",attrs:{label:e.name,value:e.code}})})),1),t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList.apply(null,arguments)}},slot:"append"})],1)],1),e.powers.some((function(e){return"008"==e}))?t("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px"},attrs:{span:4}},[t("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e(),e.powers.some((function(e){return"002"==e}))?t("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e()],1)],1)],1)]}},{key:"status",fn:function(a){var n=a.scope;return[t("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==n.row.status?"warning":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==n.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(a){var n=a.scope;return[e.powers.some((function(e){return"005"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top"}},[t("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(n.row,!0)}}})]):e._e(),e.powers.some((function(e){return"010"==e}))?t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改记录",placement:"top"}},[t("i",{staticClass:"el-icon-data-analysis tb-icon",on:{click:function(t){return e.openModal(n.row.id,!1)}}})]):e._e()]}}],null,!1,748902822)}):t("no-auth"),t("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),t("edit-record",{attrs:{id:e.modelId,"show-model":e.showRecordModel},on:{refresh:function(t){e.showRecordModel=!1},cancel:function(t){e.showRecordModel=!1}}})],1)}),[],!1,null,"6faaf711",null);t.default=p.exports},"8ac5":function(e,t,a){},"8b45":function(e,t,a){a("5d59")},"931f":function(e,t,a){},9406:function(e,t,a){a.r(t);var n={name:"dashboard",data:function(){return{}},created:function(){}};a("faee"),a=a("2877"),a=Object(a.a)(n,(function(){return this._self._c,this._m(0)}),[function(){var e=this._self._c;return e("div",{staticClass:"dashboard-container"},[e("div",{staticClass:"dashboard-editor-container"},[e("div",{staticClass:"info-container clearfix"},[e("span",{staticClass:"welcome-title"},[this._v("欢迎登录")]),e("span",{staticClass:"welcome-title"},[this._v("五常稻田运营端")])])])])}],!1,null,"5f8485ee",null);t.default=a.exports},"97f3":function(e,t,a){},"99b8":function(e,t,a){a("1d95")},"9b98":function(e,t,a){var n=a("1b69"),r="admin/";t.a={update:function(e,t){return Object(n.a)(r+"stocksave",e,"post",t)},list:function(e,t){return Object(n.a)(r+"stocklist",e,"post",t)},log:function(e,t){return Object(n.a)(r+"stocklog",e,"post",t)}}},"9ed6":function(e,t,a){a.r(t);var n=a("ade3"),r=a("c7eb"),i=a("1da1"),s=(a("13d5"),a("b64b"),a("d3b7"),a("1b69")),o=function(e,t){return Object(s.a)("admin/version",e,"post",t)},l={name:"Login",mixins:[a("9f53").a],data:function(){return{ver:"",show:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,t,a){""===t?a(new Error("账号不能为空!")):a()}}],password:[{required:!0,trigger:"blur",validator:function(e,t,a){a(),""===t?a(new Error("密码不能为空!")):a()}}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){e=e.query,e&&(this.redirect=e.redirect,this.otherQuery=this.getOtherQuery(e))},immediate:!0}},created:function(){},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},methods:{getversion:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a,n;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({});case 2:(a=t.sent)&&0===a.code?(n=a.data,e.ver=n.version,t.next=11):t.next=8;break;case 8:if(a&&100<=a.code&&a.code<=104)return t.next=11,e.logout();t.next=11;break;case 11:case"end":return t.stop()}}),t)})))()},setVisible:function(e){this.show=e},handleClick:function(){this.show=!0},handleSuccess:function(){this.show=!1,this.handleLogin()},checkCapslock:function(e){e=e.key,this.capsTooltip=e&&1===e.length&&"A"<=e&&e<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){0===t.code?e.getMenu():(e.$message.warning(t.msg),e.loading=!1)})).catch((function(t){e.loading=!1}))}))},getMenu:function(){var e=this;this.$store.dispatch("user/getMenuList",this).then((function(t){window.vm.$router.push({path:"/welcome",query:e.otherQuery}),e.loading=!1})).catch((function(t){e.loading=!1}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,a){return"redirect"!==a&&(t[a]=e[a]),t}),{})}}};a("99b8"),a=a("2877"),a=Object(a.a)(l,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"login-container"},[t("div",{staticClass:"login-form-main"},[t("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[t("div",{staticClass:"title-container"},[t("h3",{staticClass:"title"},[e._v(" 五常稻田"),t("span",[e._v(e._s(e.ver))])])]),t("el-form-item",{attrs:{prop:"username"}},[t("el-input",{ref:"username",attrs:{placeholder:"账号",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}},[t("i",{staticClass:"el-icon-user-solid",attrs:{slot:"prefix"},slot:"prefix"})])],1),t("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock.apply(null,arguments)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin.apply(null,arguments)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}},[t("i",{staticClass:"el-icon-warning",attrs:{slot:"prefix"},slot:"prefix"}),t("i",{class:Object(n.a)({"el-input__icon":"password"===e.passwordType},"el-input__icon","password"!==e.passwordType),attrs:{slot:"suffix"},nativeOn:{click:function(t){return e.showPwd.apply(null,arguments)}},slot:"suffix"})])],1)],1),t("el-button",{staticStyle:{width:"100%","margin-top":"5px"},attrs:{loading:e.loading,disabled:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin()}}},[e._v("登 录")])],1)],1)])}),[],!1,null,"068269f0",null);t.default=a.exports},"9f53":function(e,t,a){var n=a("c7eb"),r=a("1da1");t.a={methods:{logout:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/login"!==e.$route.path)return t.next=3,e.$store.dispatch("user/logout");t.next=4;break;case 3:e.$router.push("/login");case 4:case"end":return t.stop()}}),t)})))()}}}},a058:function(e,t,a){a("010e")},a75f:function(e,t,a){a.r(t);var n=a("c7eb"),r=a("1da1"),i=(a("d81d"),a("b0c0"),a("837d")),s=a("9f53"),o=(a("99af"),a("d3b7"),a("5daa")),l=a("5f87"),c={name:"Upload",props:{accept:String,multiple:{type:Boolean,default:!1},uploadcondition:{type:Function,default:null}},data:function(){return{loading:!1,imgAPI:o.a.baseURL}},methods:{handleChange:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function e(){var a,r,i,s,o;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(a=t).$refs.inputer,r=r.files,0===(i=r.length))return e.abrupt("return");e.next=7;break;case 7:a.loading=a.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),s=0;case 9:s<=i?s!==i?e.next=15:(t.loading.close(),a.$refs.inputer.value="",e.next=19):e.next=22;break;case 15:return e.next=17,a.httpupLoad(r,s);case 17:"error"===(o=e.sent)?a.$emit("UploadErrorEvent"):a.$emit("UploadSuccessEvent",{url:o});case 19:s++,e.next=9;break;case 22:case"end":return e.stop()}}),e)})))()},httpupLoad:function(e,t){var a=this;return Object(r.a)(Object(n.a)().mark((function r(){return Object(n.a)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){var i,s=a;a.uploadcondition(e[t])?((i=new FormData).append("img",e[t]),i.append("token",Object(l.e)()),axios.post("".concat(s.imgAPI,"Admin/upload"),i).then((function(e){var t;e&&e.data&&200===e.status&&e.data.data?(t=(e=e.data.data[0]).url,e=e.name,n({url:"".concat(s.imgAPI).concat(t),name:e})):r()})).catch((function(e){r()}))):n("break")})));case 1:case"end":return n.stop()}}),r)})))()}}},u=(a("bfba"),a("2877"));c=Object(u.a)(c,(function(){var e=this,t=e._self._c;return t("div",[t("input",{ref:"inputer",staticClass:"fileUp",attrs:{accept:e.accept,multiple:e.multiple,type:"file",name:"file"},on:{change:function(t){return e.handleChange(t)}}})])}),[],!1,null,"1037dcbc",null).exports,s={name:"videos",props:["showModel","id","isDetail","sitem"],mixins:[s.a],components:{Upload:c},data:function(){return{dynamicTags:[],options:[],value:[],list:[],states:[],tags:[],disabled:!1,loading:!1,loading_video_set:!1,title:"新建视频",showModelThis:this.showModel,ruleForm:{video_sn:"",video_name:"",video_url:"",remark:"",video_img:"",video_set:""},rulesThis:this.rules,rules:{video_name:[{required:!0,trigger:"blur",message:"请输入视频名称"},{min:2,max:50,message:"视频名称在3到50个字符",trigger:"blur"}],video_url:[{required:!0,trigger:"blur",message:"请输入视频地址"}],remark:[{required:!0,trigger:"blur",message:"请输入视频描述"},{min:3,max:250,message:"视频描述在3到250个字符",trigger:"blur"}],video_img:[{required:!0,trigger:"blur",message:"请上传视频封面"}],video_set:[{required:!1,trigger:"blur",message:"asdadsdsa"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},mounted:function(){this.list=this.states.map((function(e){return{value:"value:".concat(e),label:"label:".concat(e)}}))},methods:{initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"003"===e.isDetail)return e.title="新建视频",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=13;break;case 8:return"007"===e.isDetail?(e.title="视频详情",e.rulesThis={}):(e.title="修改视频",e.rulesThis=e.rules),t.next=11,e.resetForm();case 11:return t.next=13,e.initData();case 13:e.loading=!1;case 14:case"end":return t.stop()}}),t)})))()},initData:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){var a;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.a.detail({id:e.id});case 2:(a=t.sent)&&0===a.code&&a.data?(e.ruleForm=a.data,t.next=10):t.next=7;break;case 7:if(a&&100<=a.code&&a.code<=104)return t.next=10,e.logout();t.next=10;break;case 10:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={video_sn:"",video_name:"",remark:"",video_url:"",video_img:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){var r,s,o;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a){if(e.loading=!0,r=Object.assign({},e.ruleForm),s={},"add"===e.id)return t.next=7,i.a.add(r);t.next=10}else t.next=29;break;case 7:s=t.sent,t.next=13;break;case 10:return t.next=12,i.a.update(r);case 12:s=t.sent;case 13:e.loading=!1,s&&0===s.code?(o="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=27):t.next=21;break;case 21:if(s&&100<=s.code&&s.code<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(s.msg);case 27:t.next=30;break;case 29:return t.abrupt("return",!1);case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})());case 2:case"end":return t.stop()}}),t)})))()},UploadErrorEvent:function(){this.$message.error("图片上传失败!"),this.$refs.ruleForm.validateField("video_img")},UploadSuccessEvent:function(e){e&&e.url&&"break"!==e.url&&(e=e.url.url,this.ruleForm.video_img=e,this.$message.success("图片上传成功!"),this.$refs.ruleForm.validateField("video_img"))},beforeAvatarUpload:function(e){var t=!1,a=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/bmp"!==e.type&&"image/jpeg"!==e.type||(t=!0),a=e.size/1024/1024<5,t||this.$message.error("图片格式不正确!"),a||this.$message.error("图片大小不能超过 5MB!")),t&&a},closeImg:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.ruleForm.video_img="",e.$refs.ruleForm.validateField("video_img");case 2:case"end":return t.stop()}}),t)})))()}}},a("434a"),c=Object(u.a)(s,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"12vh",width:"800px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t}}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"视频名称",prop:"video_name"}},[t("el-input",{attrs:{placeholder:"请输入视频名称",disabled:"007"===e.isDetail},model:{value:e.ruleForm.video_name,callback:function(t){e.$set(e.ruleForm,"video_name",t)},expression:"ruleForm.video_name"}})],1),t("el-form-item",{attrs:{label:"视频链接",prop:"video_url"}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},placeholder:"请输入视频链接",disabled:"007"===e.isDetail},model:{value:e.ruleForm.video_url,callback:function(t){e.$set(e.ruleForm,"video_url",t)},expression:"ruleForm.video_url"}})],1),t("el-form-item",{attrs:{label:"视频描述",prop:"remark"}},[t("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:4},placeholder:"请输入视频描述",disabled:"007"===e.isDetail,maxlength:"250","show-word-limit":""},model:{value:e.ruleForm.remark,callback:function(t){e.$set(e.ruleForm,"remark",t)},expression:"ruleForm.remark"}})],1),t("el-form-item",{attrs:{label:"视频封面",prop:"video_img"}},[t("div",{staticClass:"videoCoverBox"},[t("i",{directives:[{name:"show",rawName:"v-show",value:""!==e.ruleForm.video_img&&"007"!==e.isDetail,expression:"ruleForm.video_img !== '' && isDetail !== '007'"}],staticClass:"el-icon-close",on:{click:function(t){return e.closeImg()}}}),""!==e.ruleForm.video_img?t("img",{staticClass:"videoCover",attrs:{src:e.ruleForm.video_img,alt:""}}):t("div",{staticClass:"btnupload",staticStyle:{position:"relative"}},[t("i",{staticClass:"el-icon-plus avatar-uploader-icon"}),t("Upload",{staticClass:"Upload",attrs:{accept:".jpg,.png,.bmp,.jpeg",multiple:!0,uploadcondition:e.beforeAvatarUpload},on:{UploadErrorEvent:e.UploadErrorEvent,UploadSuccessEvent:e.UploadSuccessEvent}})],1)]),t("div",{staticClass:"txt-tips fl"},[t("p",[t("span",[e._v("大小:小于5MB;")]),t("span",[e._v("尺寸:250*160,单位:px;")]),t("span",[e._v("类型:jpg.png.bmp.jpeg")])])])])],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.isDetail?t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s("007"!==e.isDetail?"取 消":"关 闭"))])],1)],1)],1)],1)}),[],!1,null,"64e2cab6",null);t.default=c.exports},a8f0:function(e,t,a){e.exports=a.p+"static/img/404.3550f437.jpg"},a91b:function(e,t,a){},afd4:function(e,t,a){},b346:function(e,t,a){a.r(t);var n=a("8468"),r=(a("d3b7"),a("c7eb")),i=a("1da1"),s=a("5530"),o=(a("7db0"),a("e9c4"),a("a9e3"),a("b64b"),a("159b"),a("3264")),l=a("1b69"),c="admin/",u=function(e,t){return Object(l.a)(c+"systemlist",e,"post",t)},d=function(e,t){return Object(l.a)(c+"getmoudel",e,"post",t)},p=a("f5ed"),m=a("7d27"),f=a("2f62"),h=a("9f53");p={name:"oplog",mixins:[p.a,h.a],components:{ExTable:o.a,PeriodDatePicker:m.a},computed:Object(s.a)(Object(s.a)({},Object(f.b)(["tablebtnSize","searchSize","size"])),{},{powers:function(){var e=this.$store.getters.btnList.find((function(e){return"oplog"==e.menu_route}))||{};return e&&e.action&&0<e.action.length?e.action:[]}}),data:function(){return{loading:!1,options:[],statusList:[{id:1,label:"超级管理员"},{id:2,label:"运营管理员"},{id:3,label:"手机端用户"}],parmValue:{role:"",lowtime:"",uptime:"",username:"",moudel:[],page:1,size:15},tableData:[],table:{stripe:!0,border:!0},pageInfo:{size:15,curr:1,total:0},columns:[{prop:"id",label:"日志编码",width:"100"},{prop:"username",label:"操作账号",width:"100"},{prop:"role",label:"用户角色",width:"100"},{prop:"module",label:"模块",width:"140"},{prop:"msg",label:"事件"},{prop:"addtime",label:"操作时间",width:"150",sortable:!0}]}},mounted:function(){this.options=[],this.getmoudel()},methods:{restSearch:function(){this.pageInfo={size:15,curr:1,total:0},this.parmValue={role:"",lowtime:"",uptime:"",username:"",moudel:[],page:1,size:15},this.searchList()},timeReturned:function(e){var t=this;return Object(i.a)(Object(r.a)().mark((function a(){return Object(r.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==e.lowtime?t.parmValue.lowtime=e.lowtime:t.parmValue.lowtime="",t.parmValue.uptime=""!==e.uptime?e.uptime:"",""!==t.parmValue.lowtime&&""!==t.parmValue.uptime)return t.parmValue.page=1,a.next=6,t.searchList();a.next=6;break;case 6:case"end":return a.stop()}}),a)})))()},getmoudel:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d({});case 2:(a=t.sent)&&0===a.code&&a.data?(a.data.forEach((function(t){t=Object.assign({},t),t.children&&0===t.children.length&&delete t.children,e.options.push(t)})),e.searchList(),t.next=15):t.next=9;break;case 9:if(a&&100<=a.code&&a.code<=104)return t.next=12,e.logout();t.next=14;break;case 12:t.next=15;break;case 14:e.options=[];case 15:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(i.a)(Object(r.a)().mark((function t(){var a,n,i;return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,a=JSON.parse(JSON.stringify(e.parmValue)),n=a.moudel,a.moudel=0<n.length?n[0]:"",a.action=1<n.length?n[1]:"",t.next=8,u(a);case 8:(i=t.sent)&&0===i.code&&i.data?(e.tableData=i.data.list,e.pageInfo.total=Number(i.data.count),t.next=21):t.next=14;break;case 14:if(i&&100<=i.code&&i.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=21;break;case 19:e.tableData=[],e.pageInfo.total=0;case 21:e.loading=!1;case 22:case"end":return t.stop()}}),t)})))()}}},h=a("2877"),o=Object(h.a)(p,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"oplog pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?t("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:e.size},on:{"page-curr-change":e.handlePageChange,"page-size-change":e.handleSizeChange,"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"table-header",fn:function(a){return Object(n.a)(a),[t("div",{staticStyle:{width:"100%"}},[t("el-row",[t("el-col",{staticStyle:{padding:"0 0 10px 0"},attrs:{span:24}},[t("el-col",{staticStyle:{width:"302px",padding:"0 0 0 0px"},attrs:{span:6}},[t("period-date-picker",{attrs:{start:e.parmValue.lowtime,end:e.parmValue.uptime,type:1,width:"140px",size:e.searchSize},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),t("el-col",{staticStyle:{width:"320px",padding:"0 0 0 10px"},attrs:{span:6}},[t("el-cascader",{staticStyle:{width:"100%"},attrs:{clearable:"",size:e.searchSize,placeholder:"请选择操作模块/功能",options:e.options,props:{checkStrictly:!0}},on:{change:function(t){return e.searchList()}},model:{value:e.parmValue.moudel,callback:function(t){e.$set(e.parmValue,"moudel",t)},expression:"parmValue.moudel"}})],1),e.powers.some((function(e){return"008"==e}))?t("el-col",{staticStyle:{width:"80px",float:"right",padding:"0 0 0 0"},attrs:{span:3}},[t("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e()],1),t("el-col",{attrs:{span:24}},[t("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[t("el-select",{staticStyle:{width:"100%"},attrs:{size:e.searchSize,filterable:"",clearable:"",placeholder:"角色类型"},model:{value:e.parmValue.role,callback:function(t){e.$set(e.parmValue,"role",t)},expression:"parmValue.role"}},e._l(e.statusList,(function(e){return t("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),t("el-col",{staticStyle:{width:"350px",padding:"0 0 0 10px"},attrs:{span:6}},[t("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入账户名"},model:{value:e.parmValue.username,callback:function(t){e.$set(e.parmValue,"username",t)},expression:"parmValue.username"}},[t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList.apply(null,arguments)}},slot:"append"})],1)],1),e.powers.some((function(e){return"002"==e}))?t("el-col",{staticStyle:{width:"80px",float:"right",padding:"0 0 0 0"},attrs:{span:3}},[t("el-button",{staticStyle:{float:"right",margin:"0"},attrs:{size:e.searchSize,type:"primary"},on:{click:e.searchList}},[e._v(" 刷新 ")])],1):e._e()],1)],1)],1)]}}],null,!1,1980617239)}):t("no-auth")],1)}),[],!1,null,"2b610618",null);t.default=o.exports},b36d:function(e,t,a){a.r(t),a("b0c0");var n=a("c7eb"),r=a("1da1"),i=a("21fa"),s=[{code:"001",name:"列表"},{code:"002",name:"刷新"},{code:"003",name:"添加"},{code:"004",name:"启/禁用"},{code:"005",name:"修改"},{code:"006",name:"删除"},{code:"007",name:"详情"},{code:"008",name:"重置"},{code:"009",name:"填写物流"},{code:"010",name:"变动记录"}],o=a("cdf1"),l=a("9f53");o={components:{iconDialog:o.default},mixins:[l.a],props:["showModel","id","isDetail","parentIds","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:s,showModelThis:this.showModel,ruleForm:{},rulesThis:this.rules,rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入按钮标识编码(用于判断按钮是否显示)",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],img:[{required:!0,message:"请选择图标",trigger:"blur"}],route:[{required:!0,message:"请输入路由",trigger:"blur"},{min:1,max:50,message:"长度在 1 到 50 个字符",trigger:"blur"}],component:[{required:!0,message:"请输入页面组件路径",trigger:"blur"},{min:1,max:100,message:"长度在 1 到 100 个字符",trigger:"blur"}],weight:[{required:!0,message:"请输入权重,数值越大排名越靠前",trigger:"blur"}],is_show:[{required:!0,message:"请选择状态",trigger:"change"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},codeChange:function(e){for(var t=0;t<this.btnList.length;t++)if(this.btnList[t].code===e){this.ruleForm.name=this.btnList[t].name;break}},initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isAdd)return 1===e.level?e.title="添加一级菜单":2===e.level?e.title="添加二级菜单":e.title="添加按钮",e.loading=!1,e.rulesThis=e.rules,t.next=7,e.resetForm();t.next=9;break;case 7:t.next=13;break;case 9:return e.isDetail?(1===e.level?e.title="一级菜单详情":2===e.level?e.title="二级菜单详情":e.title="按钮详情",e.rulesThis={}):(1===e.level?e.title="修改一级菜单":2===e.level?e.title="修改二级菜单":e.title="修改按钮",e.rulesThis=e.rules),t.next=13,e.initData(e.id);case 13:case"end":return t.stop()}}),t)})))()},initData:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function e(){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,t.isAdd&&0===t.id||t.parentIds,1===t.level?t.ruleForm={parentId:t.id,name:t.formData.menu_name,code:"",img:t.formData.menu_img,route:t.formData.menu_route,component:"",menuCategory:t.level<3?1:2,type:t.type,is_show:t.formData.is_show,weight:parseInt(t.formData.weight)}:2===t.level?t.ruleForm={parentId:t.id,parentIds:t.parentIds,name:t.formData.menu_name,code:"",img:t.formData.menu_img,route:t.formData.menu_route,component:t.formData.menu_url,menuCategory:t.level<3?1:2,type:t.type,is_show:t.formData.is_show,weight:parseInt(t.formData.weight)}:t.ruleForm={parentId:t.id,parentIds:t.formData.menuid,name:t.formData.action_name,code:t.formData.action_code,img:"",route:"",component:"",menuCategory:t.level<3?1:2,type:t.type,is_show:t.formData.status,weight:1},t.loading=!1,e.next=9,t.$nextTick((function(){t.$refs.ruleForm&&t.$refs.ruleForm.clearValidate()}));case 9:case"end":return e.stop()}}),e)})))()},resetForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){var a;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="",a=e.isAdd&&0===e.id?"0":e.parentIds,e.ruleForm={parentId:e.id,parentIds:a,name:"",code:"",img:"",route:"",component:"",menuCategory:e.level<3?1:2,type:e.type,is_show:"1",weight:1},t.next=5,e.$nextTick((function(){e.$refs.ruleForm&&e.$refs.ruleForm.clearValidate()}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading)return t.abrupt("return",!1);t.next=2;break;case 2:return e.loading=!0,t.next=5,e.$refs.ruleForm.validate((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){var r,s,o;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a){if(r={},s={},r=1===e.level?{id:e.id,name:e.ruleForm.name,img:e.ruleForm.img,route:e.ruleForm.route,is_show:e.ruleForm.is_show,weight:e.ruleForm.weight}:2===e.level?{id:e.id,pid:e.parentIds,name:e.ruleForm.name,img:e.ruleForm.img,is_show:e.ruleForm.is_show,weight:e.ruleForm.weight,route:e.ruleForm.route,url:e.ruleForm.component}:{id:e.id,menuid:e.parentIds,action_code:e.ruleForm.code,name:e.ruleForm.name,status:e.ruleForm.is_show},e.isAdd&&delete r.id,e.level<3)return t.next=10,i.a.update(r);t.next=13}else t.next=44;break;case 10:s=t.sent,t.next=24;break;case 13:if(e.isAdd)return t.next=17,i.a.actionadd(r);t.next=20;break;case 17:s=t.sent,t.next=24;break;case 20:return t.next=23,i.a.actionedit(r);case 23:s=t.sent;case 24:e.loading=!1,s&&0===s.code?(e.ruleForm={},o=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.showModelThis=!1,o=e.parentIds,0===e.id&&(o="0"),e.$emit("refresh",e.id,o,e.level),t.next=42):t.next=35;break;case 35:if(s&&100<=s.code&&s.code<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=42;break;case 40:o=e.isAdd?"添加失败":"修改失败",e.$notify.warning({title:o,message:s.message});case 42:t.next=47;break;case 44:return e.loading=!1,t.abrupt("return",!1);case 47:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})());case 5:case"end":return t.stop()}}),t)})))()}}},a("56a8"),l=a("2877"),a=Object(l.a)(o,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"5vh",width:"900px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"130px"}},[e.level<3?t("el-form-item",{attrs:{label:"名称:",prop:"name"}},[t("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:用户管理"},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1):e._e(),3===e.level?t("el-form-item",{attrs:{label:"按钮标识:",prop:"code"}},[t("el-select",{attrs:{placeholder:"请选择按钮标识",clearable:"",filterable:"",disabled:e.isDetail},on:{change:e.codeChange},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}},e._l(e.btnList,(function(e){return t("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1):e._e(),e.level<3?t("el-form-item",{attrs:{label:"图标:",prop:"img"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{directives:[{name:"show",rawName:"v-show",value:e.ruleForm.img,expression:"ruleForm.img"}],staticStyle:{width:"45px"},attrs:{span:3}},[t("div",{staticClass:"g-block",on:{click:function(t){e.showIconModel=!0}}},[t("i",{class:e.ruleForm.img})])]),t("el-col",{directives:[{name:"show",rawName:"v-show",value:!e.ruleForm.img,expression:"!ruleForm.img"}],attrs:{span:7}},[t("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){e.showIconModel=!0}}},[e._v(" 选择图标 ")])],1)],1),t("iconDialog",{attrs:{"show-model":e.showIconModel},on:{setVal:function(t){return e.ruleForm.img=t},cancel:function(t){e.showIconModel=!1}}})],1):e._e(),e.level<3?t("el-form-item",{attrs:{label:"路由:",prop:"route"}},[t("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:user"},model:{value:e.ruleForm.route,callback:function(t){e.$set(e.ruleForm,"route",t)},expression:"ruleForm.route"}})],1):e._e(),2===e.level?t("el-form-item",{attrs:{label:"页面组件路径:",prop:"component"}},[t("el-input",{attrs:{disabled:e.isDetail,placeholder:"例如:park/user"},model:{value:e.ruleForm.component,callback:function(t){e.$set(e.ruleForm,"component",t)},expression:"ruleForm.component"}},[t("template",{slot:"prepend"},[e._v("views/")])],2)],1):e._e(),t("el-form-item",{attrs:{label:"状态:",prop:"is_show"}},[t("el-radio",{attrs:{label:"1",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 启用 ")]),t("el-radio",{attrs:{label:"0",disabled:e.isDetail},model:{value:e.ruleForm.is_show,callback:function(t){e.$set(e.ruleForm,"is_show",t)},expression:"ruleForm.is_show"}},[e._v(" 禁用 ")])],1),e.level<3?t("el-form-item",{attrs:{label:"排序权重:",prop:"weight"}},[t("el-row",{attrs:{gutter:10}},[t("el-col",{staticStyle:{padding:"0"},attrs:{span:16}},[t("el-input",{attrs:{type:"number",disabled:e.isDetail},model:{value:e.ruleForm.weight,callback:function(t){e.$set(e.ruleForm,"weight",e._n(t))},expression:"ruleForm.weight"}})],1),t("el-col",{attrs:{span:7}},[t("el-tag",{attrs:{type:"danger"}},[e._v("数值越大排名越靠前")])],1)],1)],1):e._e()],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"249f1576",null);t.default=a.exports},b6bd:function(e,t,a){},b718:function(e,t,a){},baa6:function(e,t,a){e.exports=a.p+"static/img/developing.eca3441e.jpg"},bfba:function(e,t,a){a("43ed")},c576:function(e,t,a){a("97f3")},c8ab:function(e,t,a){a.r(t);var n=a("c7eb"),r=a("1da1"),i=(a("e9c4"),a("b64b"),a("48c3")),s=a("61f7"),o={name:"order",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){return{loading:!1,newTime:0,showModelThis:this.showModel,ruleForm:{post_company:"",code:""},rules:{post_company:[{required:!0,message:"物流公司不能为空!",trigger:"blur"}],post_code:[{required:!0,validator:function(e,t,a){""!==t&&(Object(s.b)(t)||Object(s.c)(t))?a(new Error("物流单号格式不正确!")):a()},trigger:"blur"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,"007"==e.isDetail?e.title="订单详情":e.title="填写物流",t.next=4,e.resetForm();case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},refreshAll:function(){this.showModelThis=!1,this.$emit("refresh")},resetForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={post_company:"",post_code:""})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){var r,s;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a)return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),r={ordersn:e.id.order_sn,post_company:r.post_company,post_code:r.post_code},t.next=6,i.a.post(r);t.next=21;break;case 6:(s=t.sent)&&0===s.code?(e.$notify.success({title:"".concat(e.title,"提交成功!"),message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19):t.next=13;break;case 13:if(s&&100<=s.code&&s.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(s.message);case 19:t.next=23;break;case 21:return t.abrupt("return",!1);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})());case 2:case"end":return t.stop()}}),t)})))()}}};a("1e04"),a=a("2877"),a=Object(a.a)(o,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"20vh",width:"700px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("el-row",[e.id&&e.id.order_sn?t("el-col",{attrs:{span:24}},[t("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",size:"mini",inline:""}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"订单编号"}},[t("span",[e._v(e._s(e.id.order_sn))])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"订单数量"}},[t("span",[e._v(e._s(e.id.order_num)+e._s(e.id.unit)+"/"+e._s(e.id.unit_weight)+"kg")])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"收货人"}},[t("span",[e._v(e._s(e.id.contector))])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"收货电话"}},[t("span",[e._v(e._s(e.id.contector_mobile))])])],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"收货地址"}},[t("span",[e._v(e._s(e.id.provice_name)+e._s(e.id.city_name)+e._s(e.id.area_name)+e._s(e.id.addr))])])],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"商品名称"}},[t("span",[e._v(e._s(e.id.good_name))])])],1)],1)],1):e._e(),"009"===e.isDetail?t("el-col",{attrs:{span:24}},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"110px"}},[t("el-form-item",{attrs:{label:"物流公司",prop:"post_company"}},[t("el-input",{model:{value:e.ruleForm.post_company,callback:function(t){e.$set(e.ruleForm,"post_company",t)},expression:"ruleForm.post_company"}})],1),t("el-form-item",{attrs:{label:"物流单号",prop:"post_code"}},[t("el-input",{model:{value:e.ruleForm.post_code,callback:function(t){e.$set(e.ruleForm,"post_code",t)},expression:"ruleForm.post_code"}})],1)],1)],1):e._e(),t("el-col",{staticStyle:{"padding-right":"10px","text-align":"right"},attrs:{span:24}},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")])],1)],1)],1)],1)}),[],!1,null,"3a602a5a",null);t.default=a.exports},cdf1:function(e,t,a){a.r(t);var n={props:["showModel"],data:function(){return{loading:!1,icon:"",showModelThis:this.showModel}},watch:{icon:function(e){e&&(this.showModelThis=!1,this.$emit("setVal",e))},showModel:function(e){this.showModelThis=e},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){}}};a=a("2877"),a=Object(a.a)(n,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"选择图标",center:!0,align:"left",top:"7vh",width:"840px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",[t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("icon-list",{model:{value:e.icon,callback:function(t){e.icon=t},expression:"icon"}})],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v("取 消")])],1)],1)],1)],1)}),[],!1,null,null,null);t.default=a.exports},d41b:function(e,t,a){a("02b5")},d668:function(e,t,a){a.r(t);var n=[function(){var e=this._self._c;return e("div",{staticClass:"developing"},[e("img",{attrs:{src:a("baa6"),alt:""}})])}],r={name:"developing"},i=(a("e621"),a("2877"));i=Object(i.a)(r,(function(){return this._self._c,this._m(0)}),n,!1,null,"71020079",null);t.default=i.exports},e5d1:function(e,t,a){var n=a("1b69"),r="admin/";t.a={list:function(e,t){return Object(n.a)(r+"accountlist",e,"post",t)},detail:function(e,t){return Object(n.a)(r+"accountinfo",e,"post",t)},update:function(e,t){return Object(n.a)(r+"accountsave",e,"post",t)},add:function(e,t){return Object(n.a)(r+"accountadd",e,"post",t)},videoList:function(e,t){return Object(n.a)(r+"video",e,"post",t)},setpwd:function(e,t){return Object(n.a)(r+"checkpwd",e,"post",t)}}},e621:function(e,t,a){a("8ac5")},edb9:function(e,t,a){},f5ed:function(e,t,a){var n=a("c7eb"),r=a("1da1");t.a={methods:{handlePageChange:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function a(){return Object(n.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=e,t.pageInfo.curr=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e){var t=this;return Object(r.a)(Object(n.a)().mark((function a(){return Object(n.a)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.parmValue.page=1,t.pageInfo.curr=1,t.pageInfo.size=e,t.parmValue.size=e,a.next=6,t.searchList();case 6:case"end":return a.stop()}}),a)})))()}}}},faee:function(e,t,a){a("931f")},fe2d:function(e,t,a){a.r(t);var n=a("c7eb"),r=a("1da1"),i=(a("e9c4"),a("b64b"),a("9b98")),s={name:"stock",props:["showModel","id","isDetail"],mixins:[a("9f53").a],data:function(){return{loading:!1,title:"添加可用库存",showModelThis:this.showModel,activeOptions:[],actionList:[],ruleForm:{type:"1",stock:0},rulesThis:this.rules,rules:{type:[{required:!0,message:"请选择库存变动类型",trigger:"change"}],stock:[{required:!0,message:"请输入变动数量",trigger:"bulr"}]}}},watch:{showModel:function(e){(this.showModelThis=e)&&this.initForm()},showModelThis:function(e){e||this.$emit("cancel")}},methods:{closeModel:function(){},initForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,"add"===e.id)return e.title="添加可用库存",e.rulesThis=e.rules,t.next=6,e.resetForm();t.next=8;break;case 6:t.next=11;break;case 8:return e.isDetail?(e.title="可用库存",e.rulesThis={}):(e.title="修改可用库存",e.rulesThis=e.rules),t.next=11,e.resetForm();case 11:e.loading=!1;case 12:case"end":return t.stop()}}),t)})))()},resetForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$nextTick((function(){e.$refs.ruleForm&&(e.$refs.ruleForm.resetFields(),e.$refs.ruleForm.clearValidate(),e.ruleForm={type:"1",stock:0})}));case 2:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;return Object(r.a)(Object(n.a)().mark((function t(){return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate((()=>{var t=Object(r.a)(Object(n.a)().mark((function t(a){var r,s;return Object(n.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a){if(0===e.ruleForm.stock)return e.$message.warning("库存的变动数量不能为零!"),t.abrupt("return");t.next=4}else t.next=23;break;case 4:return e.loading=!0,r=JSON.parse(JSON.stringify(e.ruleForm)),r={id:e.id.id,type:r.type,stock:r.stock},t.next=9,i.a.update(r);case 9:s=t.sent,e.loading=!1,s&&0===s.code?(e.$notify.success({title:"修改成功",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21):t.next=18;break;case 18:if(s&&100<=s.code&&s.code<=104)return t.next=21,e.logout();t.next=21;break;case 21:t.next=25;break;case 23:return t.abrupt("return",!1);case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})());case 2:case"end":return t.stop()}}),t)})))()}}};a("d41b"),a=a("2877"),a=Object(a.a)(s,(function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:e.title,center:!0,align:"left",top:"18vh",width:"750px","close-on-click-modal":!1,visible:e.showModelThis,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{"update:visible":function(t){e.showModelThis=t},close:e.closeModel}},[t("el-card",{staticStyle:{"margin-top":"-25px"}},[t("el-row",{attrs:{gutter:10}},[e.id&&e.id.id?t("el-col",{attrs:{span:24}},[t("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left","label-width":"100px",size:"mini",inline:""}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"账户名"}},[t("span",[e._v(e._s(e.id.username))])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"用户名"}},[t("span",[e._v(e._s(e.id.nickname))])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"联系方式"}},[t("span",[e._v(e._s(e.id.mobile))])])],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"可用库存"}},[t("span",[e._v(e._s(e.id.stock_balance))])])],1)],1)],1):e._e(),t("el-col",{attrs:{span:24}},[t("el-divider"),t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"200px"}},[t("el-form-item",{attrs:{label:"可用库存变动数量",required:""}},[t("ul",{staticClass:"stock-edit"},[t("li",[t("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.ruleForm.type,callback:function(t){e.$set(e.ruleForm,"type",t)},expression:"ruleForm.type"}},[t("el-option",{attrs:{label:"加 [+]",value:"1"}}),t("el-option",{attrs:{label:"减 [-]",value:"2"}})],1)],1),t("li",[t("el-input-number",{attrs:{precision:0,"step-strictly":"","controls-position":"right",min:0,max:1e4,step:1},model:{value:e.ruleForm.stock,callback:function(t){e.$set(e.ruleForm,"stock",t)},expression:"ruleForm.stock"}})],1)])])],1)],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]),t("el-button",{on:{click:function(t){e.showModelThis=!1}}},[e._v(e._s(e.isDetail?"关 闭":"取 消"))])],1)],1)],1)],1)}),[],!1,null,"efd6c204",null);t.default=a.exports},feca:function(e,t,a){var n={"./dashboard/index.vue":"9406","./developing/index.vue":"d668","./error-page/404.vue":"1db4","./loadingPage/index.vue":"7e10","./login/index.vue":"9ed6","./mobile/order/addEdit.vue":"c8ab","./mobile/order/index.vue":"5bdf","./mobile/park/addEdit.vue":"5c7e","./mobile/park/index.vue":"5e2a","./mobile/park/resetPassword.vue":"801a","./mobile/stock/addEdit.vue":"fe2d","./mobile/stock/editRecord.vue":"29d1","./mobile/stock/index.vue":"8466","./mobile/videos/addEdit.vue":"a75f","./mobile/videos/index.vue":"01ad","./system/menuOperator/addEdit.vue":"b36d","./system/menuOperator/iconDialog.vue":"cdf1","./system/menuOperator/index.vue":"5de4","./system/oplog/index.vue":"b346","./system/updates/index.vue":"5e53"};function r(e){return e=i(e),a(e)}function i(e){if(a.o(n,e))return n[e];throw(e=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",e}r.keys=function(){return Object.keys(n)},r.resolve=i,(e.exports=r).id="feca"}}]);
|