chunk-24ed3ee9.01e483b1.js 118 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-24ed3ee9","chunk-5d56779a","chunk-00b166e3","chunk-6b5f92f5","chunk-02a3c4d8"],{"01ad":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("96cf"),n("7db0"),n("a9e3"),n("f5ed")),s=n("1b69"),o="admin/",l=function(e,t){return Object(s.a)(o+"video",e,"post",t)},c=function(e,t){return Object(s.a)(o+"Change",e,"post",t)},u=function(e,t){return Object(s.a)(o+"Delete",e,"post",t)},d=n("3264"),p=n("a75f"),m=n("2f62"),f=n("9f53");m={name:"videos",components:{addEdit:p.default,ExTable:d.a},mixins:[i.a,f.a],computed:Object(r.a)(Object(r.a)({},Object(m.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:"",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:"视频编号",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 n=this;this.$confirm("此操作将切换视频状态, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n.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,n){this.showModel=!0,this.modelId=e,this.isDetail=t},changeBtnStatus:function(e,t){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var r,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n.loading=!1,(r={id:"",status:""}).status="1"===e?"0":"1",r.id=t,a.next=6,c(r);case 6:if(!(i=a.sent)||0!==i.code||!i.data){a.next=10;break}a.next=16;break;case 10:if(i&&100<=i.code&&i.code<=104)return a.next=13,n.logout();a.next=15;break;case 13:a.next=16;break;case 15:n.msgPop();case 16:n.loading=!1,n.searchList();case 18:case"end":return a.stop()}}),a)})))()},deleteBtnProject:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var a,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!1,(a={id:""}).id=e,n.next=5,u(a);case 5:if(!(r=n.sent)||0!==r.code){n.next=9;break}n.next=15;break;case 9:if(r&&100<=r.code&&r.code<=104)return n.next=12,t.logout();n.next=14;break;case 12:n.next=15;break;case 14:t.msgPop();case 15:t.loading=!1,t.searchList();case 17:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.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(e.parmValue);case 6:if(!(n=t.sent)||0!==n.code||!n.data){t.next=12;break}e.tableData=n.data.video,e.pageInfo.total=Number(n.data.count),t.next=19;break;case 12:if(n&&100<=n.code&&n.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)})))()}}},n("8978"),n=n("2877"),m=Object(n.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"videos pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("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(t){return[n("el-col",{staticStyle:{width:"150px"}},[n("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 n("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),n("div",{staticStyle:{width:"100%"}},[n("el-row",[n("el-col",{attrs:{span:15}},[n("el-input",{staticClass:"input-with-select",attrs:{size:e.searchSize,placeholder:"请输入内容"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[n("el-select",{staticStyle:{width:"120px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[n("el-option",{attrs:{label:"视频名称",value:"1"}}),n("el-option",{attrs:{label:"视频链接",value:"2"}}),n("el-option",{attrs:{label:"视频编号",value:"3"}})],1),n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),n("el-col",{staticStyle:{width:"60px",float:"left","margin-left":"10px"},attrs:{span:3}},[n("el-button",{attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1),e.powers.some((function(e){return"003"==e}))?n("el-col",{staticStyle:{width:"60px",float:"right"},attrs:{span:3}},[n("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}))?n("el-col",{staticStyle:{width:"60px",float:"right","margin-right":"20px"},attrs:{span:2}},[e.powers.some((function(e){return"003"==e}))?n("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)],1)]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"详情",placement:"top"}},[n("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,"007",a.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top"}},[n("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,"005",a.row)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"===a.row.status?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"禁用",placement:"top"},on:{click:function(t){return e.openModal(a.row.id,"004",a.row)}}},[n("i",{staticClass:"tb-icon el-icon-error",on:{click:function(t){return e.selectPop(a.row.status,a.row.id)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))&&"1"!==a.row.status?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"启用",placement:"top"},on:{click:function(t){return e.openModal(a.row.id,"004",a.row)}}},[n("i",{staticClass:"tb-icon el-icon-success",on:{click:function(t){return e.selectPop(a.row.status,a.row.id)}}})]):e._e(),e.powers.some((function(e){return"004"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"删除",placement:"top"},on:{click:function(t){return e.openModal(a.row.id,"006",a.row)}}},[n("i",{staticClass:"tb-icon el-icon-delete-solid",on:{click:function(t){return e.deletePop(a.row.id)}}})]):e._e()]}},{key:"status",fn:function(t){var a=t.scope;return[n("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"danger":"1"==a.row.status?"success":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.status==a.row.status}))||{}).label||"--")}})]}}],null,!1,1612356786)}):e._e(),n("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):n("div",[n("no-auth")],1)])}),[],!1,null,"79674ef9",null);t.default=m.exports},"04f5":function(e,t,n){"use strict";n("4554")},"09d7":function(e,t,n){},"0aa1":function(e,t,n){"use strict";n("23a8")},1143:function(e,t,n){},"14a3":function(e,t,n){},1735:function(e,t,n){"use strict";n("14a3")},"1b69":function(e,t,n){"use strict";var a=n("1da1"),r=(n("96cf"),n("d3b7"),n("a18c"),n("5daa")),i=n("5f87"),s={};window.ajaxTimeout=2e4,t.a=Object(a.a)(regeneratorRuntime.mark((function e(){var t,n,o,l,c,u,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<p.length&&void 0!==p[0]?p[0]:"",n=1<p.length&&void 0!==p[1]?p[1]:{},l=3<p.length&&void 0!==p[3]?p[3]:{},c=4<p.length&&void 0!==p[4]?p[4]:s,u=5<p.length?p[5]:void 0,o=(o=2<p.length&&void 0!==p[2]?p[2]:"GET").toLowerCase(),d={method:o,baseURL:"",url:r.a.baseURL+t,data:n,params:l,processData:!0,timeout:window.ajaxTimeout,headers:c,onUploadProgress:u},u&&"function"==typeof u&&(d.onUploadProgress=u),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(i.e)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 200===t.status&&100<=(n=t.data.code)&&n<=104&&(Object(i.i)(),Object(i.g)(),Object(i.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(d).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)})))},"1db4":function(e,t,n){"use strict";n.r(t);var a=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"wscn-http404-container"},[e("div",{staticClass:"wscn-http404"},[e("img",{attrs:{src:n("a8f0"),alt:""}})])])}],r={name:"Page404"},i=(n("0aa1"),n("2877"));a=Object(i.a)(r,(function(){this.$createElement;return this._self._c,this._m(0)}),a,!1,null,"612dd7f5",null);t.default=a.exports},"21fa":function(e,t,n){"use strict";var a=n("1b69"),r="admin/";t.a={list:function(e,t){return Object(a.a)(r+"menuall",e,"post",t)},update:function(e,t){return Object(a.a)(r+"menusave",e,"post",t)},menustatus:function(e,t){return Object(a.a)(r+"menustatus",e,"post",t)},menudel:function(e,t){return Object(a.a)(r+"menudel",e,"post",t)},actionList:function(e,t){return Object(a.a)(r+"menuaction",e,"post",t)},actionadd:function(e,t){return Object(a.a)(r+"menuactionadd",e,"post",t)},actionedit:function(e,t){return Object(a.a)(r+"menuactionsave",e,"post",t)},actionstatus:function(e,t){return Object(a.a)(r+"menuactionstatus",e,"post",t)},actiondel:function(e,t){return Object(a.a)(r+"menuactiondel",e,"post",t)}}},"23a8":function(e,t,n){},"29d1":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("a9e3"),n("96cf"),n("9b98")),s=n("9f53"),o=n("2f62"),l=n("3264");o={name:"stock",props:["showModel","id"],mixins:[n("f5ed").a,s.a],components:{ExTable:l.a},computed:Object(r.a)({},Object(o.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.searchList();case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.parmValue.id=e.id,t.next=4,i.a.log(e.parmValue);case 4:if(!(n=t.sent)||0!==n.code||!n.data){t.next=10;break}e.tableData=n.data.list,e.pageInfo.total=Number(n.data.count),t.next=17;break;case 10:if(n&&100<=n.code&&n.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)})))()}}},n("bf44"),n=n("2877"),o=Object(n.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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}},[n("el-card",{staticStyle:{"margin-top":"-25px"}},[n("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(t){var a=t.scope;return[n("el-tag",{attrs:{size:e.tablebtnSize},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==a.row.type}))||{}).label||"--")}})]}}])})],1)],1)}),[],!1,null,"3b64f804",null);t.default=o.exports},"2b69":function(e,t,n){"use strict";n("cfc0")},"2bdf":function(e,t,n){},"30e3":function(e,t,n){"use strict";n("a138")},3264:function(e,t,n){"use strict";n("4de4"),n("a434");var a=n("53fe"),r=n.n(a);a={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}))}}},data:function(){return{tableSelection:[]}},watch:{},mounted:function(){this.rowDrop(),this.columnDrop()},directives:{drap:{inserted:function(e,t){e.onmousedown=function(n){var a=t.modifiers.parent?e.parentNode:e,r=document.body.offsetWidth,i=document.body.offsetHeight,s=a.offsetWidth,o=a.offsetHeight,l=n.clientX-a.offsetLeft,c=n.clientY-a.offsetTop;document.onmousemove=function(e){var n=e.clientX-l;e=e.clientY-c;t.modifiers.limit&&(n=r-s<(n=n<0?0:n)?r-s:n,e=i-o<(e=e<0?0:e)?i-o:e),a.style.left=n+"px",a.style.top=e+"px"},document.onmouseup=function(){document.onmousemove=null}}}}},methods:{arraySpanMethod:function(e){e.row,e.column,e.rowIndex,e.columnIndex},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(0===e.columnIndex)return t%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 n=e.data.splice(t.oldIndex,1)[0];e.data.splice(t.newIndex,0,n)}})},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 n=e.columns.splice(t.oldIndex,1)[0];e.columns.splice(t.newIndex,0,n)}})},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)}}},n("f111"),n("b464"),n=n("2877"),a=Object(n.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"table-header"},[e._l(e.table._defaultHeader_,(function(t,a){return["setcol"==t?n("el-dropdown",{key:a,attrs:{placement:"bottom-end",trigger:"click","hide-on-click":!1}},[n("el-button",{attrs:{size:"small"}},[e._v("列设置")]),n("el-dropdown-menu",{class:"ex-table-setcol-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[e._l(e.setColumns,(function(t,a){return[t._noset_?e._e():n("el-dropdown-item",{key:"setColumns"+a},[n("el-switch",{attrs:{"active-text":t.label,"active-value":!1,"inactive-value":!0},model:{value:t._hidden_,callback:function(n){e.$set(t,"_hidden_",n)},expression:"column._hidden_"}})],1)]}))],2)],1):e._e()]})),e._t("table-header",null,{selection:e.tableSelection,alldata:e.data})],2),n("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(t,a){return[t._hidden_||!t.type||t._slot_?t._hidden_?e._e():n("el-table-column",e._b({key:a,attrs:{"show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(a){return[n("span",[e._v(e._s(t.label))]),t._screen_?n("span",{on:{click:function(n){return n.stopPropagation(),e.addConditionItemByCol(t,a)}}},[!1===t._screen_tip_?n("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""}):n("el-tooltip",{staticClass:"item",attrs:{effect:t._screen_tip_effect_||"dark",content:t._screen_tip_||"筛选",placement:t._screen_tip_placement_||"top"}},[n("i",{staticClass:"el-icon-connection",style:e.isHasScreenColumn(t)?"color:#3888e5;":""})])],1):e._e()]}},{key:"default",fn:function(a){return t._slot_?e._t(t._slot_,null,{scope:a}):t._render_?[n("ex-slot",{attrs:{column:t,render:t._render_,scope:a}})]:[n("span",[e._v(e._s(t._format_?t._format_(a.row):e.getObjPrototype(a.row,t.prop)))])]}}],null,!0)},"el-table-column",t,!1)):n("el-table-column",e._b({key:a,attrs:{align:"center",width:"45px"}},"el-table-column",t,!1))]}))],2),!1!==e.page&&e.data&&0<e.data.length?n("div",{staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[n("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,"2f36d120",null);t.a=a.exports},3429:function(e,t,n){},3690:function(e,t,n){},3856:function(e,t,n){"use strict";n("09d7")},4554:function(e,t,n){},"48c3":function(e,t,n){"use strict";var a=n("1b69");t.a={list:function(e,t){return Object(a.a)("admin/orderlist",e,"post",t)},post:function(e,t){return Object(a.a)("admin/orderdelivery",e,"post",t)}}},"4c0c":function(e,t,n){},"4c1f":function(e,t,n){"use strict";var a=n("1b69");t.a={list:function(e,t){return Object(a.a)("admin/versionlist",e,"post",t)}}},"5bdf":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("96cf"),n("7db0"),n("159b"),n("a9e3"),n("3264")),s=n("c8ab"),o=n("48c3"),l=n("f5ed"),c=n("9f53"),u=n("2f62"),d=n("7d27");u={name:"order",mixins:[l.a,c.a],components:{ExTable:i.a,addEdit:s.default,PeriodDatePicker:d.a},computed:Object(r.a)(Object(r.a)({},Object(u.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{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:"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(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:""!==e.startTime?t.parmValue.order_low=e.startTime:t.parmValue.order_low="",""!==e.endTime?t.parmValue.order_up=e.endTime:t.parmValue.order_up="";case 3:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.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,o.a.list(e.parmValue);case 6:if(!(n=t.sent)||0!==n.code||!n.data){t.next=14;break}e.tableData=n.data.list,e.tableData.forEach((function(e){e.order_goods_num=e.order_num+e.unit+"/"+e.unit_weight+"kg",e.order_goods_num_t=+e.order_num*+e.unit_weight+"kg"})),e.pageInfo.total=Number(n.data.count),t.next=21;break;case 14:if(n&&100<=n.code&&n.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)})))()}}},n=n("2877"),u=Object(n.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"order pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("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(t){return[n("div",{staticStyle:{width:"100%"}},[n("el-row",[n("el-col",{attrs:{span:24}},[n("el-col",{staticStyle:{width:"115px"},attrs:{span:4}},[n("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 n("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),n("el-col",{staticStyle:{width:"312px",padding:"0 0 0 10px"},attrs:{span:4}},[n("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),n("el-col",{staticStyle:{width:"318px",padding:"0 0 0 10px"},attrs:{span:4}},[n("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[n("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,t){return n("el-option",{key:t+"se",attrs:{label:e.name,value:e.code}})})),1),n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),e.powers.some((function(e){return"008"==e}))?n("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px"},attrs:{span:4}},[n("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}))?n("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[n("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(t){var a=t.scope;return[n("el-tag",{attrs:{size:e.tablebtnSize,type:"1"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"详情",placement:"top"}},[n("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row,"007")}}})]):e._e(),e.powers.some((function(e){return"009"==e}))&&"1"===a.row.status?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"填写物流",placement:"top"}},[n("i",{staticClass:"el-icon-truck tb-icon",on:{click:function(t){return e.openModal(a.row,"009")}}})]):e._e()]}}],null,!1,3542175485)}):n("no-auth"),n("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,"9efc0f2e",null);t.default=u.exports},"5c7e":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=(n("96cf"),n("fb6a"),n("4de4"),n("a434"),n("159b"),n("e5d1")),i=n("9f53"),s=(n("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;t={startTime:""==e?"":this.transformTime(e),endTime:""==t?"":this.transformTime(t)};this.$emit("timeReturned",t)},transformTime:function(e){var t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,r=t.getDate(),i=t.getHours();e=t.getMinutes(),t=t.getSeconds();return"".concat(n,"-").concat(this.setStr(a),"-").concat(this.setStr(r)," ").concat(this.setStr(i),":").concat(this.setStr(e),":").concat(this.setStr(t))},setStr:function(e){var t=e+"";return e<10?"0"+t:t}}}),o=(n("9ff2"),n("2877")),l=(s=Object(o.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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,n("61f7"));s={name:"park",props:["showModel","id","isDetail","sitem"],mixins:[i.a],components:{PeriodDateTimePicker:s},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,n){""===t?n(new Error("账号不能为空!")):6===t.length&&Object(l.h)(t)?n():n(new Error("账号不正确!"))},trigger:"blur"}],password:[{required:!0,validator:function(e,t,n){var a;""===t?n(new Error("密码不能为空!")):6!==t.length?n(new Error("密码规则为2位字母+4位数字组合!")):(a=t.slice(0,2),t=t.slice(2,4),Object(l.h)(t)&&Object(l.i)(a)?n():n(new Error("密码规则为2位字母+4位数字组合!")))},trigger:"blur"}],starttime:[{required:!0,validator:function(t,n,a){""===n?a(new Error("开始时间不能为空!")):""===e.ruleForm.expiretime?a(new Error("结束时间不能为空!")):a()},trigger:"blur"}],nickname:[{required:!1,validator:function(e,t,n){""!==t&&(t.length<2||12<t.length||!Object(l.c)(t)||Object(l.d)(t))?n(new Error("客户姓名规则为2~12位汉字!")):n()},trigger:"blur"}],mobile:[{required:!1,validator:function(e,t,n){!Object(l.f)(t)&&t?n(new Error("手机号格式不正确!")):n()},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,n={};this.states.filter((function(a){a.id===e&&(n.video_name=a.video_name,n.id=a.id,n.status=a.status,t.tags.push(n))})),this.ruleForm.video.push(n.id)},handleClose:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.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 n.stop()}}),n)})))()},remoteMethod:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.videoForm.video_name=e,t.videoForm.size=100,n.next=4,r.a.videoList(t.videoForm);case 4:if(a=n.sent,t.states=a.data.video,!a||0!==a.code||!a.data){n.next=10;break}""!==e?(t.loading_video_set=!0,t.options=a.data.video):t.options=[],n.next=13;break;case 10:if(a&&100<=a.code&&a.code<=104)return n.next=13,t.logout();n.next=13;break;case 13:t.loading_video_set=!1;case 14:case"end":return n.stop()}}),n)})))()},closeModel:function(){},initForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){var n,a,i,s,o,l,c,u,d,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.a.detail({id:e.id});case 2:if(!(n=t.sent)||0!==n.code||!n.data){t.next=11;break}d=n.data,a=d.username,i=d.info,s=d.password,o=d.starttime,l=d.expiretime,c=d.nickname,u=d.mobile,d=d.remark,e.tags=i,p=[],e.tags.forEach((function(e){p.push(e.video_id)})),e.ruleForm={username:a.substr(a.length-6),password:s,starttime:o,expiretime:l,nickname:c,mobile:u,remark:d,video:p,id:e.id},t.next=14;break;case 11:if(n&&100<=n.code&&n.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:""!==e.startTime?t.ruleForm.starttime=e.startTime:t.ruleForm.starttime="",""!==e.endTime?t.ruleForm.expiretime=e.endTime:t.ruleForm.expiretime="";case 2:case"end":return n.stop()}}),n)})))()},submitForm:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var a,i,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=36;break}if(e.loading=!0,(a=Object.assign({},e.ruleForm)).username="1745"+a.username,i=!0,e.tags.forEach((function(e){"0"===e.status&&(i=!1)})),i){t.next=10;break}return e.$message.warning("不能绑定已禁用的视频!"),e.loading=!1,t.abrupt("return");case 10:if(s={},"add"===e.id)return t.next=14,r.a.add(a);t.next=17;break;case 14:s=t.sent,t.next=20;break;case 17:return t.next=19,r.a.update(a);case 19:s=t.sent;case 20:if(e.loading=!1,!s||0!==s.code){t.next=28;break}o="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:o,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=34;break;case 28:if(s&&100<=s.code&&s.code<=104)return t.next=31,e.logout();t.next=33;break;case 31:t.next=34;break;case 33:e.$message.warning(s.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(o.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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}},[n("el-card",{staticStyle:{"margin-top":"-25px"}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:24}},[n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rulesThis,"label-width":"110px"}},[n("el-form-item",{attrs:{disabled:e.isDetail,label:"账号",prop:"username"}},[n("el-input",{attrs:{placeholder:"XXXXXX",disabled:"007"===e.isDetail},model:{value:e.ruleForm.username,callback:function(t){e.$set(e.ruleForm,"username",t)},expression:"ruleForm.username"}},[n("template",{slot:"prepend"},[e._v("1745")])],2)],1),"003"===e.isDetail?n("el-form-item",{attrs:{disabled:e.isDetail,label:"密码",prop:"password"}},[n("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(),n("el-form-item",{attrs:{label:"有效期",prop:"starttime"}},[n("PeriodDateTimePicker",{attrs:{start:e.ruleForm.starttime,end:e.ruleForm.expiretime,type:1,disabled:"007"===e.isDetail,width:"288px"},on:{timeReturned:function(t){return e.timeReturned(t)}}})],1),n("el-form-item",{attrs:{label:"客户姓名",prop:"nickname"}},[n("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),n("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[n("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),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("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),n("el-form-item",{attrs:{label:"视频设置",prop:"video"}},[n("div",{staticClass:"video-set"},[n("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 n("el-option",{key:e.value,attrs:{label:e.video_name,disabled:"0"===e.status,value:e.id}})})),1),e._l(e.tags,(function(t,a){return n("el-tag",{directives:[{name:"show",rawName:"v-show",value:e.tags&&0<e.tags.length,expression:"tags && tags.length > 0"}],key:t.name+a,staticStyle:{margin:"10px 6px"},attrs:{"disable-transitions":!0,closable:"007"!==e.isDetail,type:"0"===t.status?"info":""},on:{close:function(n){return e.handleClose(t)}}},[e._v(" "+e._s(t.video_name)+" ")])}))],2)])],1)],1),n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},["007"!==e.isDetail?n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保 存 ")]):e._e(),n("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},"5de4":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("96cf"),n("7db0"),n("99af"),n("d81d"),n("159b"),n("f5ed")),s=n("21fa"),o=n("b36d"),l=n("2f62"),c=n("9f53");l={name:"MenuOperator",components:{addEdit:o.default},mixins:[i.a,c.a],computed:Object(r.a)(Object(r.a)({},Object(l.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,n,a,r,i){this.showModel=!0,this.modelId=e,this.level=n,this.parentIds=t,this.isDetail=a,this.isAdd=r,this.formData=i},submitRefresh:function(e,t,n){n<3?this.restSearch():this.getchildList(t)},remove:function(e,t,n,r){var i=this;return Object(a.a)(regeneratorRuntime.mark((function o(){return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=3,i.$confirm("确定要".concat("0"===r?"启用":"禁用","?"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(o={id:e,status:"1"===r?"0":"1"},l={},3===n)return a.next=5,s.a.actionstatus(o);a.next=8;break;case 5:l=a.sent,a.next=11;break;case 8:return a.next=10,s.a.menustatus(o);case 10:l=a.sent;case 11:if(!l||0!==l.code){a.next=16;break}i.$notify.success({title:"修改成功!",message:""}),3===n?i.getchildList(t):i.restSearch(),a.next=19;break;case 16:if(l&&100<=l.code&&l.code<=104)return a.next=19,i.logout();a.next=19;break;case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return o.stop()}}),o)})))()},del:function(e,t,n,r){var i=this;return Object(a.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=3,i.$confirm("确定要删除?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function a(){var r,o;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r={id:e},o={},3===n)return a.next=5,s.a.actiondel(r);a.next=8;break;case 5:o=a.sent,a.next=11;break;case 8:return a.next=10,s.a.menudel(r);case 10:o=a.sent;case 11:if(!o||0!==o.code){a.next=16;break}i.$notify.success({title:"删除成功!",message:""}),3===n?i.getchildList(t):i.restSearch(),a.next=19;break;case 16:if(o&&100<=o.code&&o.code<=104)return a.next=19,i.logout();a.next=19;break;case 19:case"end":return a.stop()}}),a)})))).catch((function(){}));case 3:case"end":return r.stop()}}),r)})))()},openChildren:function(e,t,n,a){a?this.tableData=1===n?this.tableData.map((function(t){return t.id===e&&(t.child=[]),t})):this.tableData.map((function(n){return n.id===t&&(n.child=n.child.map((function(t){return t.id===e&&(t.child=[]),t}))),n})):1===n?this.concatData(e,"0",n):this.getchildList(e)},getchildList:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){var a,r,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,s.a.actionList({id:e});case 3:if(a=n.sent,r=[],!a||0!==a.code||!a.data){n.next=9;break}r=a.data,n.next=12;break;case 9:if(a&&100<=a.code&&a.code<=104)return n.next=12,t.logout();n.next=12;break;case 12:i=(i=JSON.parse(JSON.stringify(t.tableData))).map((function(t,n){return t&&t.child&&0<t.child.length&&t.child.forEach((function(t,n){return e===t.id&&(t.child=r),t})),t})),t.tableData=i,t.loading=!1;case 16:case"end":return n.stop()}}),n)})))()},concatData:function(e,t,n){var r=this;return Object(a.a)(regeneratorRuntime.mark((function a(){var i,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r.loading=!0,a.next=4,s.a.list({});case 4:if(i=a.sent,o=[],!i||0!==i.code||!i.data){a.next=10;break}o=i.data,a.next=13;break;case 10:if(i&&100<=i.code&&i.code<=104)return a.next=13,r.logout();a.next=13;break;case 13:l=(l=JSON.parse(JSON.stringify(r.tableData))).map((function(a,r){return(1===n?e:t===a.id)&&(a.child=o[r].child),a})),r.tableData=l,r.loading=!1;case 17:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,s.a.list({});case 3:if(n=t.sent,e.tableData=[],!n||0!==n.code||!n.data){t.next=9;break}e.tableData=n.data,t.next=15;break;case 9:if(n&&100<=n.code&&n.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)})))()}}},n=n("2877"),l=Object(n.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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=l.exports},"5e2a":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("ade3"),i=n("5530"),s=(n("96cf"),n("7db0"),n("a9e3"),n("f5ed")),o=n("e5d1"),l=n("3264"),c=n("5c7e"),u=n("2f62"),d=n("9f53");u={name:"park",components:{addEdit:c.default,ExTable:l.a},mixins:[s.a,d.a],computed:Object(i.a)(Object(i.a)({},Object(u.b)(["tablebtnSize","searchSize","size"])),{},{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(){var e={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},tableData:[]};return Object(r.a)(e,"tableData",[]),Object(r.a)(e,"table",{stripe:!0,border:!0}),Object(r.a)(e,"pageInfo",{size:15,curr:1,total:0}),Object(r.a)(e,"columns",[{prop:"username",label:"账号",width:"100px",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:"90px",_slot_:"operation"}]),e},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,n){this.showModel=!0,this.modelId=e,this.isDetail=t,this.sitem=n},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.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,o.a.list(e.parmValue);case 6:if(!(n=t.sent)||0!==n.code||!n.data){t.next=12;break}e.tableData=n.data.list,e.pageInfo.total=Number(n.data.count),t.next=19;break;case 12:if(n&&100<=n.code&&n.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)})))()}}},n=n("2877"),u=Object(n.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"park pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("div",[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("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(t){return[n("div",{staticStyle:{width:"100%"}},[n("el-row",[n("el-col",{attrs:{span:24}},[n("el-col",{staticStyle:{width:"180px"},attrs:{span:4}},[n("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 n("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),n("el-col",{staticStyle:{width:"380px",padding:"0 0 0 10px"},attrs:{span:4}},[n("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[n("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,t){return n("el-option",{key:t+"se",attrs:{label:e.name,value:e.code}})})),1),n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),e.powers.some((function(e){return"008"==e}))?n("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px"},attrs:{span:4}},[n("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}))?n("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[n("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}))?n("el-col",{staticStyle:{width:"60px",float:"right"},attrs:{span:3}},[n("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(t){var a=t.scope;return[n("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":"1"==a.row.status?"success":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"time",fn:function(t){return t=t.scope,[n("span",[e._v(e._s(t.row.starttime)+"~"+e._s(t.row.expiretime))])]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"007"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"详情",placement:"top"}},[n("i",{staticClass:"el-icon-view tb-icon",on:{click:function(t){return e.openModal(a.row.id,"007",a.row)}}})]):e._e(),e.powers.some((function(e){return"005"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top"}},[n("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row.id,"005",a.row)}}})]):e._e()]}}],null,!1,655550468)}):e._e(),n("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}}}),n("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):n("div",[n("no-auth")],1)])}),[],!1,null,"a295a1c8",null);t.default=u.exports},"5e53":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("96cf"),n("7db0"),n("a9e3"),n("4c1f")),s=n("f5ed"),o=n("7d27"),l=n("2f62"),c=n("9f53");l={name:"updates",mixins:[s.a,c.a],components:{PeriodDatePicker:o.a},computed:Object(r.a)(Object(r.a)({},Object(l.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(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.list(e.parmValue);case 3:if(!(n=t.sent)||0!==n.code||!n.data){t.next=9;break}e.tableData=n.data.list,e.count=Number(n.data.count),t.next=16;break;case 9:if(n&&100<=n.code&&n.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)})))()}}},n=n("2877"),l=Object(n.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"updates pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("div",[n("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:""}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-form",{staticClass:"demo-table-expand",attrs:{size:e.size,"label-position":"top",inline:""}},[n("el-form-item",{attrs:{label:"更新内容"}},[n("p",{domProps:{innerHTML:e._s(t.row.content)}})])],1)]}}],null,!1,847983622)}),n("el-table-column",{attrs:{label:"版本号",prop:"version"}}),n("el-table-column",{attrs:{label:"更新模块",prop:"title"}}),n("el-table-column",{attrs:{label:"更新时间",prop:"addtime"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:0<e.count,expression:"count > 0"}],staticClass:"Pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[n("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):n("no-auth")],1)}),[],!1,null,"132b85ca",null);t.default=l.exports},"7d27":function(e,t,n){"use strict";var a={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;t={startTime:""==e?"":this.transformTime(e),endTime:""==t?"":this.transformTime(t)};this.$emit("timeReturned",t)},transformTime:function(e){var t=new Date(e),n=t.getFullYear();e=t.getMonth()+1,t=t.getDate();return n+"-"+(e<10?"0"+e:e)+"-"+(t<10?"0"+t:t)}}};n("2b69"),n=n("2877"),a=Object(n.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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,n){"use strict";n.r(t);var a={name:"loadingPage",data:function(){return{}},created:function(){}};n("e4ef"),n=n("2877"),a=Object(n.a)(a,(function(){this.$createElement;return this._self._c,this._m(0)}),[function(){var e=this.$createElement;e=this._self._c||e;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},8466:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("96cf"),n("7db0"),n("159b"),n("a9e3"),n("3264")),s=n("fe2d"),o=n("29d1"),l=n("9b98"),c=n("f5ed"),u=n("9f53"),d=n("2f62"),p=(n("4d63"),n("ac1f"),n("25f0"),n("99af"),{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 n=new RegExp("[0-9]+"),a=e.length,r="",i=0;i<a;i++)n.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})}}});n("1735"),n=n("2877"),p=Object(n.a)(p,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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:[c.a,u.a],components:{ExTable:i.a,addEdit:s.default,numBerRange:p,editRecord:o.default},computed:Object(r.a)(Object(r.a)({},Object(d.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,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(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.parmValue.stock_low=e.lower,t.parmValue.stock_up=e.online;case 2:case"end":return n.stop()}}),n)})))()},searchList:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.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:if(!(n=t.sent)||0!==n.code||!n.data){t.next=13;break}e.tableData=n.data.list,e.tableData.forEach((function(e){e.stock_balance+="kg"})),e.pageInfo.total=Number(n.data.count),t.next=20;break;case 13:if(n&&100<=n.code&&n.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)})))()}}},d=Object(n.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stock pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("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(t){return[n("div",{staticStyle:{width:"100%"}},[n("el-row",[n("el-col",{attrs:{span:24}},[n("el-col",{staticStyle:{width:"115px"},attrs:{span:4}},[n("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 n("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),n("el-col",{staticStyle:{width:"312px",padding:"0 0 0 10px"},attrs:{span:4}},[n("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),n("el-col",{staticStyle:{width:"318px",padding:"0 0 0 10px"},attrs:{span:4}},[n("el-input",{attrs:{size:e.searchSize,maxlength:40,placeholder:"关键字"},model:{value:e.input,callback:function(t){e.input=t},expression:"input"}},[n("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,t){return n("el-option",{key:t+"se",attrs:{label:e.name,value:e.code}})})),1),n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),e.powers.some((function(e){return"008"==e}))?n("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px"},attrs:{span:4}},[n("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}))?n("el-col",{staticStyle:{width:"80px",padding:"0 0 0 10px",float:"right"},attrs:{span:3}},[n("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(t){var a=t.scope;return[n("el-tag",{attrs:{size:e.tablebtnSize,type:"0"==a.row.status?"warning":""},domProps:{textContent:e._s((e.statusList.find((function(e){return e.id==a.row.status}))||{}).label||"--")}})]}},{key:"operation",fn:function(t){var a=t.scope;return[e.powers.some((function(e){return"005"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改",placement:"top"}},[n("i",{staticClass:"el-icon-edit tb-icon",on:{click:function(t){return e.openModal(a.row,!0)}}})]):e._e(),e.powers.some((function(e){return"010"==e}))?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"修改记录",placement:"top"}},[n("i",{staticClass:"el-icon-data-analysis tb-icon",on:{click:function(t){return e.openModal(a.row.id,!1)}}})]):e._e()]}}],null,!1,3672701667)}):n("no-auth"),n("add-edit",{attrs:{id:e.modelId,"show-model":e.showModel},on:{refresh:e.searchList,cancel:function(t){e.showModel=!1}}}),n("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,"7a110030",null);t.default=d.exports},8978:function(e,t,n){"use strict";n("dffb")},"8b69":function(e,t,n){},"8e3b":function(e,t,n){"use strict";n("b9c2")},9210:function(e,t,n){},9406:function(e,t,n){"use strict";n.r(t),n("2f62");var a={name:"dashboard",data:function(){return{}},created:function(){}};n("04f5"),n=n("2877"),a=Object(n.a)(a,(function(){this.$createElement;return this._self._c,this._m(0)}),[function(){var e=this.$createElement;e=this._self._c||e;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},"9b98":function(e,t,n){"use strict";var a=n("1b69"),r="admin/";t.a={update:function(e,t){return Object(a.a)(r+"stocksave",e,"post",t)},list:function(e,t){return Object(a.a)(r+"stocklist",e,"post",t)},log:function(e,t){return Object(a.a)(r+"stocklog",e,"post",t)}}},"9ed6":function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=(n("13d5"),n("b64b"),n("96cf"),n("1b69")),i=function(e,t){return Object(r.a)("admin/version",e,"post",t)},s={name:"Login",mixins:[n("9f53").a],data:function(){return{ver:"",show:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:function(e,t,n){""===t?n(new Error("账号不能为空!")):n()}}],password:[{required:!0,trigger:"blur",validator:function(e,t,n){n(),""===t?n(new Error("密码不能为空!")):n()}}]},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(a.a)(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i({});case 2:if(!(n=t.sent)||0!==n.code){t.next=8;break}a=n.data,e.ver=a.version,t.next=11;break;case 8:if(n&&100<=n.code&&n.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){return!!t&&(e.loading=!0,void e.$store.dispatch("user/login",e.loginForm).then((function(t){0===t.code?e.getMenu():(e.$message.warning(t.message),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,n){return"redirect"!==n&&(t[n]=e[n]),t}),{})}}};n("d3a7"),n=n("2877"),s=Object(n.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},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:{"el-input__icon":"password"===e.passwordType,"el-input__icon":"password"!==e.passwordType},attrs:{slot:"suffix"},nativeOn:{click:function(t){return e.showPwd(t)}},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,"662a7fad",null);t.default=s.exports},"9f53":function(e,t,n){"use strict";var a=n("1da1");n("96cf"),t.a={methods:{logout:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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)})))()}}}},"9ff2":function(e,t,n){"use strict";n("8b69")},a138:function(e,t,n){},a75f:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=(n("96cf"),n("d81d"),n("b0c0"),n("1b69")),i="admin/",s={list:function(e,t){return Object(r.a)(i+"video",e,"post",t)},edit:function(e,t){return Object(r.a)(i+"Edit",e,"post",t)},add:function(e,t){return Object(r.a)(i+"Create",e,"post",t)},detail:function(e,t){return Object(r.a)(i+"Read",e,"post",t)}},o=n("9f53"),l=(n("d3b7"),n("99af"),n("5daa")),c=n("5f87"),u={name:"Upload",props:{accept:String,multiple:{type:Boolean,default:!1},uploadcondition:{type:Function,default:null}},data:function(){return{loading:!1,imgAPI:l.a.baseURL}},methods:{handleChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function e(){var n,a,r,i,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=(n=t).$refs.inputer,a=s.files,0===(r=a.length))return e.abrupt("return");e.next=7;break;case 7:n.loading=n.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),i=0;case 9:if(!(i<=r)){e.next=22;break}if(i!==r){e.next=15;break}t.loading.close(),n.$refs.inputer.value="",e.next=19;break;case 15:return e.next=17,n.httpupLoad(a,i);case 17:"error"===(s=e.sent)?n.$emit("UploadErrorEvent"):n.$emit("UploadSuccessEvent",{url:s});case 19:i++,e.next=9;break;case 22:case"end":return e.stop()}}),e)})))()},httpupLoad:function(e,t){var n=this;return Object(a.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise((function(a,r){var i,s=n;n.uploadcondition(e[t])?((i=new FormData).append("img",e[t]),i.append("token",Object(c.e)()),axios.post("".concat(s.imgAPI,"Admin/upload"),i).then((function(e){var t;e&&e.data&&200===e.status&&e.data.data?(e=(t=e.data.data[0]).url,t=t.name,a({url:"".concat(s.imgAPI).concat(e),name:t})):r()})).catch((function(e){r()}))):a("break")})));case 1:case"end":return a.stop()}}),a)})))()}}},d=(n("eb21"),n("2877"));u=Object(d.a)(u,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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,u={name:"videos",props:["showModel","id","isDetail","sitem"],mixins:[o.a],components:{Upload:u},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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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 t.next=10,e.resetForm();case 10:return"007"===e.isDetail?(e.title="视频详情",e.rulesThis={}):(e.title="修改视频",e.rulesThis=e.rules),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(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.detail({id:e.id});case 2:if(!(n=t.sent)||0!==n.code||!n.data){t.next=7;break}e.ruleForm=n.data,t.next=10;break;case 7:if(n&&100<=n.code&&n.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var a,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=29;break}if(e.loading=!0,a=Object.assign({},e.ruleForm),r={},"add"===e.id)return t.next=7,s.add(a);t.next=10;break;case 7:r=t.sent,t.next=13;break;case 10:return t.next=12,s.update(a);case 12:r=t.sent;case 13:if(e.loading=!1,!r||0!==r.code){t.next=21;break}i="add"===e.id?"添加成功":"修改成功",e.$notify.success({title:i,message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=27;break;case 21:if(r&&100<=r.code&&r.code<=104)return t.next=24,e.logout();t.next=26;break;case 24:t.next=27;break;case 26:e.$message.warning(r.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){var t;e&&e.url&&"break"!==e.url&&(e=(t=e.url).url,t.name,this.ruleForm.video_img=e,this.$message.success("图片上传成功!"),this.$refs.ruleForm.validateField("video_img"))},beforeAvatarUpload:function(e){var t=!1,n=!1;return e&&("image/jpg"!==e.type&&"image/png"!==e.type&&"image/bmp"!==e.type&&"image/jpeg"!==e.type||(t=!0),n=e.size/1024/1024<5,t||this.$message.error("图片格式不正确!"),n||this.$message.error("图片大小不能超过 5MB!")),t&&n},closeImg:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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)})))()}}},n("e295"),u=Object(d.a)(u,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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,"7f964129",null);t.default=u.exports},a8f0:function(e,t,n){e.exports=n.p+"static/img/404.3550f437.jpg"},acfc:function(e,t,n){},b346:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=n("5530"),i=(n("96cf"),n("7db0"),n("159b"),n("a9e3"),n("3264")),s=n("1b69"),o="admin/",l=function(e,t){return Object(s.a)(o+"systemlist",e,"post",t)},c=function(e,t){return Object(s.a)(o+"getmoudel",e,"post",t)},u=n("f5ed"),d=n("7d27"),p=n("2f62"),m=n("9f53");p={name:"oplog",mixins:[u.a,m.a],components:{ExTable:i.a,PeriodDatePicker:d.a},computed:Object(r.a)(Object(r.a)({},Object(p.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(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(""!==e.lowtime?t.parmValue.lowtime=e.lowtime:t.parmValue.lowtime="",""!==e.uptime?t.parmValue.uptime=e.uptime:t.parmValue.uptime="",""!==t.parmValue.lowtime&&""!==t.parmValue.uptime)return t.parmValue.page=1,n.next=6,t.searchList();n.next=6;break;case 6:case"end":return n.stop()}}),n)})))()},getmoudel:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,c({});case 2:if(!(n=t.sent)||0!==n.code||!n.data){t.next=9;break}n.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;break;case 9:if(n&&100<=n.code&&n.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(a.a)(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,n=JSON.parse(JSON.stringify(e.parmValue)),a=n.moudel,n.moudel=0<a.length?a[0]:"",n.action=1<a.length?a[1]:"",t.next=8,l(n);case 8:if(!(r=t.sent)||0!==r.code||!r.data){t.next=14;break}e.tableData=r.data.list,e.pageInfo.total=Number(r.data.count),t.next=21;break;case 14:if(r&&100<=r.code&&r.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)})))()}}},n=n("2877"),p=Object(n.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"oplog pagePadding"},[e.powers&&0<e.powers.length&&e.powers.some((function(e){return"001"==e}))?n("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(t){return[n("div",{staticStyle:{width:"100%"}},[n("el-row",[n("el-col",{staticStyle:{padding:"0 0 10px 0"},attrs:{span:24}},[n("el-col",{staticStyle:{width:"302px",padding:"0 0 0 0px"},attrs:{span:6}},[n("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),n("el-col",{staticStyle:{width:"320px",padding:"0 0 0 10px"},attrs:{span:6}},[n("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}))?n("el-col",{staticStyle:{width:"80px",float:"right",padding:"0 0 0 0"},attrs:{span:3}},[n("el-button",{staticClass:"fr",attrs:{type:"warning",size:e.searchSize},on:{click:e.restSearch}},[e._v(" 重置 ")])],1):e._e()],1),n("el-col",{attrs:{span:24}},[n("el-col",{staticStyle:{width:"150px"},attrs:{span:4}},[n("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 n("el-option",{key:"status"+e.id,attrs:{label:e.label,value:e.id}})})),1)],1),n("el-col",{staticStyle:{width:"350px",padding:"0 0 0 10px"},attrs:{span:6}},[n("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"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchList(t)}},slot:"append"})],1)],1),e.powers.some((function(e){return"002"==e}))?n("el-col",{staticStyle:{width:"80px",float:"right",padding:"0 0 0 0"},attrs:{span:3}},[n("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,852571602)}):n("no-auth")],1)}),[],!1,null,"2b610618",null);t.default=p.exports},b36d:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=(n("96cf"),n("b0c0"),n("21fa")),i=[{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:"变动记录"}],s=n("cdf1"),o=n("9f53");o={components:{iconDialog:s.default},mixins:[o.a],props:["showModel","id","isDetail","parentIds","level","isAdd","type","formData"],data:function(){return{loading:!1,showIconModel:!1,title:"",btnList:i,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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",n=e.isAdd&&0===e.id?"0":e.parentIds,e.ruleForm={parentId:e.id,parentIds:n,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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var a,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=44;break}if(a={},i={},a=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 a.id,e.level<3)return t.next=10,r.a.update(a);t.next=13;break;case 10:i=t.sent,t.next=24;break;case 13:if(e.isAdd)return t.next=17,r.a.actionadd(a);t.next=20;break;case 17:i=t.sent,t.next=24;break;case 20:return t.next=23,r.a.actionedit(a);case 23:i=t.sent;case 24:if(e.loading=!1,!i||0!==i.code){t.next=35;break}e.ruleForm={},s=e.isAdd?"添加成功":"修改成功",e.$notify.success({title:s,message:""}),e.showModelThis=!1,s=e.parentIds,0===e.id&&(s="0"),e.$emit("refresh",e.id,s,e.level),t.next=42;break;case 35:if(i&&100<=i.code&&i.code<=104)return t.next=38,e.logout();t.next=40;break;case 38:t.next=42;break;case 40:s=e.isAdd?"添加失败":"修改失败",e.$notify.warning({title:s,message:i.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)})))()}}},n("3856"),n=n("2877"),o=Object(n.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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}},[n("el-card",[n("el-row",{attrs:{gutter:10}},[n("el-col",{attrs:{span:24}},[n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"is_show-icon":"",rules:e.rulesThis,"label-width":"130px"}},[e.level<3?n("el-form-item",{attrs:{label:"名称:",prop:"name"}},[n("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?n("el-form-item",{attrs:{label:"按钮标识:",prop:"code"}},[n("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 n("el-option",{key:e.code,attrs:{label:e.name,value:e.code}})})),1)],1):e._e(),e.level<3?n("el-form-item",{attrs:{label:"图标:",prop:"img"}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{directives:[{name:"show",rawName:"v-show",value:e.ruleForm.img,expression:"ruleForm.img"}],staticStyle:{width:"45px"},attrs:{span:3}},[n("div",{staticClass:"g-block",on:{click:function(t){e.showIconModel=!0}}},[n("i",{class:e.ruleForm.img})])]),n("el-col",{directives:[{name:"show",rawName:"v-show",value:!e.ruleForm.img,expression:"!ruleForm.img"}],attrs:{span:7}},[n("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){e.showIconModel=!0}}},[e._v(" 选择图标 ")])],1)],1),n("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?n("el-form-item",{attrs:{label:"路由:",prop:"route"}},[n("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?n("el-form-item",{attrs:{label:"页面组件路径:",prop:"component"}},[n("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"}},[n("template",{slot:"prepend"},[e._v("views/")])],2)],1):e._e(),n("el-form-item",{attrs:{label:"状态:",prop:"is_show"}},[n("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(" 启用 ")]),n("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?n("el-form-item",{attrs:{label:"排序权重:",prop:"weight"}},[n("el-row",{attrs:{gutter:10}},[n("el-col",{staticStyle:{padding:"0"},attrs:{span:16}},[n("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),n("el-col",{attrs:{span:7}},[n("el-tag",{attrs:{type:"danger"}},[e._v("数值越大排名越靠前")])],1)],1)],1):e._e()],1)],1),n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e.isDetail?e._e():n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" 保 存 ")]),n("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=o.exports},b464:function(e,t,n){"use strict";n("1143")},b9c2:function(e,t,n){},baa6:function(e,t,n){e.exports=n.p+"static/img/developing.eca3441e.jpg"},bf44:function(e,t,n){"use strict";n("acfc")},c8ab:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=(n("96cf"),n("48c3")),i=n("61f7"),s={name:"order",props:["showModel","id","isDetail"],mixins:[n("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,n){""!==t&&(Object(i.c)(t)||Object(i.d)(t))?n(new Error("物流单号格式不正确!")):n()},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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var a,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n)return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),a={ordersn:e.id.order_sn,post_company:a.post_company,post_code:a.post_code},t.next=6,r.a.post(a);t.next=21;break;case 6:if(!(i=t.sent)||0!==i.code){t.next=13;break}e.$notify.success({title:"".concat(e.title,"提交成功!"),message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=19;break;case 13:if(i&&100<=i.code&&i.code<=104)return t.next=16,e.logout();t.next=18;break;case 16:t.next=19;break;case 18:e.$message.warning(i.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)})))()}}};n("8e3b"),n=n("2877"),s=Object(n.a)(s,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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-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)],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,"2c0facfa",null);t.default=s.exports},cdf1:function(e,t,n){"use strict";n.r(t);var a={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(){}}};n=n("2877"),a=Object(n.a)(a,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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},cfc0:function(e,t,n){},d3a7:function(e,t,n){"use strict";n("4c0c")},d668:function(e,t,n){"use strict";n.r(t);var a=[function(){var e=this.$createElement;e=this._self._c||e;return e("div",{staticClass:"developing"},[e("img",{attrs:{src:n("baa6"),alt:""}})])}],r={name:"developing"},i=(n("df37"),n("2877"));a=Object(i.a)(r,(function(){this.$createElement;return this._self._c,this._m(0)}),a,!1,null,"71020079",null);t.default=a.exports},df37:function(e,t,n){"use strict";n("9210")},dffb:function(e,t,n){},e295:function(e,t,n){"use strict";n("3690")},e4ef:function(e,t,n){"use strict";n("3429")},e5d1:function(e,t,n){"use strict";var a=n("1b69"),r="admin/";t.a={list:function(e,t){return Object(a.a)(r+"accountlist",e,"post",t)},detail:function(e,t){return Object(a.a)(r+"accountinfo",e,"post",t)},update:function(e,t){return Object(a.a)(r+"accountsave",e,"post",t)},add:function(e,t){return Object(a.a)(r+"accountadd",e,"post",t)},videoList:function(e,t){return Object(a.a)(r+"video",e,"post",t)}}},eb21:function(e,t,n){"use strict";n("f94e")},f111:function(e,t,n){"use strict";n("2bdf")},f5ed:function(e,t,n){"use strict";var a=n("1da1");n("96cf"),t.a={methods:{handlePageChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.parmValue.page=e,n.next=3,t.searchList();case 3:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.parmValue.page=1,t.parmValue.size=e,n.next=4,t.searchList();case 4:case"end":return n.stop()}}),n)})))()}}}},f94e:function(e,t,n){},fe2d:function(e,t,n){"use strict";n.r(t);var a=n("1da1"),r=(n("96cf"),n("9b98")),i={name:"stock",props:["showModel","id","isDetail"],mixins:[n("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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.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(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$refs.ruleForm.validate(function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(n){var a,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=23;break}if(0===e.ruleForm.stock)return e.$message.warning("库存的变动数量不能为零!"),t.abrupt("return");t.next=4;break;case 4:return e.loading=!0,a=JSON.parse(JSON.stringify(e.ruleForm)),a={id:e.id.id,type:a.type,stock:a.stock},t.next=9,r.a.update(a);case 9:if(i=t.sent,e.loading=!1,!i||0!==i.code){t.next=18;break}e.$notify.success({title:"修改成功",message:""}),e.showModelThis=!1,e.$emit("refresh"),t.next=21;break;case 18:if(i&&100<=i.code&&i.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)})))()}}};n("30e3"),n=n("2877"),i=Object(n.a)(i,(function(){var e=this,t=e.$createElement;t=e._self._c||t;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=i.exports},feca:function(e,t,n){var a={"./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/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),n(e)}function i(e){if(n.o(a,e))return a[e];throw e=new Error("Cannot find module '"+e+"'"),e.code="MODULE_NOT_FOUND",e}r.keys=function(){return Object.keys(a)},r.resolve=i,(e.exports=r).id="feca"}}]);