猎户系统

10.c905803d0f557e70b984.js 14KB

1
  1. webpackJsonp([10],{"+wrf":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAYZJREFUWEftlj1Ow0AQhd8UHIALcADodhJzAEQLBSKCCgQUSCAhRBdqoKFIAUgIUUABUqCnRpTsTip6LpATIHuQo1gyxg75sQlIdrne3fn2zdvZIYz5ozHHRwnwNxRwzumwXmDmzEM45+qqqpVK5SRr/87iIgCstXtE1OgG3mXm8zSIQlJgrd0ioqt4QCJaM8bcJiFyBxCRVVW9SzttEATL1Wr18QvYsLlPWyciC6oaBpgAcAyg3p13BOAQwAcRLRpjnqL1uSkgInOq+gBgEkCDmfcjb4VGFZFTVT0A0CaiJWPMcwiRC4C1dpaImgCmAFwy83bc3NFNcc6dAdgB8O77fs3zvNeRAURkGkBTVWeI6MYYsx7JG1cgGhORa1XdIKI3ALWRAcKNW63WfBAEm8y8EvdGGkD4X0TuVfWCmV9yAcgychbAt1swSCHqVfmSIP8HIM9a0I8HCitEQ6egVKBUoFRgkEqYVOuHnrDTa/aaU1hPmPYc/1pPOIinCn0N+wEpAcauwCeKpsG1tlJr/wAAAABJRU5ErkJggg=="},"2MWG":function(t,e){},EKI2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),s=a("McOJ"),r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{staticClass:"addLable_dialog",attrs:{title:t.title,visible:t.lableGroup,"append-to-body":!0,width:"40%"},on:{"update:visible":function(e){t.lableGroup=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"groupCon"},[i("div",{staticClass:"group_item"},[i("div",{staticClass:"lable"},[t._v("标签组名称:")]),t._v(" "),i("div",{staticClass:"opaArea"},[i("el-input",{staticClass:"ipt_group",attrs:{placeholder:"请输入标签组名称"},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}})],1)]),t._v(" "),i("div",{staticClass:"group_item",staticStyle:{"align-items":"baseline","margin-top":"10px"}},[i("div",{staticClass:"lable"},[t._v("标签名称:")]),t._v(" "),i("div",{staticClass:"opaArea"},[t._l(t.moreLable,function(e,n){return i("div",{key:e.tag_id,staticClass:"flex"},[i("el-input",{staticClass:"ipt_group tMar10",attrs:{placeholder:"请输入标签名称"},model:{value:e.tag_name,callback:function(a){t.$set(e,"tag_name",a)},expression:"m.tag_name"}}),t._v(" "),t.moreLable&&t.moreLable.length>1?i("span",{staticClass:"flex"},[i("el-tooltip",{attrs:{effect:"light",content:"删除该标签",placement:"left"}},[i("span",{staticClass:"minusIptGroup",on:{click:function(e){return t.moreLable.splice(n,1)}}},[t._v("-")])]),t._v(" "),0==n?i("img",{staticStyle:{width:"20px",margin:"0 8px",cursor:"pointer"},attrs:{src:a("+wrf"),alt:""}}):t._e(),t._v(" "),i("el-tooltip",{attrs:{effect:"light",content:"上移",placement:"left"}},[n>0?i("img",{staticStyle:{width:"20px",margin:"0 8px",cursor:"pointer"},attrs:{src:a("XtJf"),alt:""},on:{click:function(e){return t.upClick(n)}}}):t._e()]),t._v(" "),n==t.moreLable.length-1?i("img",{staticStyle:{width:"20px",cursor:"pointer"},attrs:{src:a("Eaxd"),alt:""}}):t._e(),t._v(" "),i("el-tooltip",{attrs:{effect:"light",content:"下移",placement:"left"}},[n<t.moreLable.length-1?i("img",{staticStyle:{width:"20px",cursor:"pointer"},attrs:{src:a("w80D"),alt:""},on:{click:function(e){return t.downClick(n)}}}):t._e()])],1):t._e()],1)}),t._v(" "),i("div",{staticClass:"addIptGroup",on:{click:function(e){return t.moreLable.push({tag_id:t.moreLable.length,tag_name:""})}}},[t._v("\n + 添加标签\n ")])],2)])]),t._v(" "),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("div",{staticClass:"flex"},["edit"==t.source?i("div",{staticClass:"f14 c-00B38A pointer",on:{click:function(e){return t.deleTagGroup()}}},[t._v("\n 删除该标签组\n ")]):t._e(),t._v(" "),i("div",{staticClass:"lMarauto"},[i("el-button",{attrs:{disabled:t.loading,size:"mini"},on:{click:function(e){t.lableGroup=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{disabled:t.loading,size:"mini",type:"primary"},on:{click:function(e){"add"==t.source?t.addTagGroup():t.editTagGroup()}}},[t._v("确 定")])],1)])])])},staticRenderFns:[]};var o=a("VU/8")({name:"tagGroup",props:["source"],data:function(){return{lableGroup:!1,loading:!1,groupName:"",groupId:"",moreLable:[{tag_id:0,tag_name:""}]}},computed:{title:function(){return"add"===this.source?"新建标签组":"编辑标签组"}},methods:{deleTagGroup:function(){var t=this;this.$confirm("是否删除该标签组?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.loading=!0,t.$axios.post(t.URL.BASEURL+t.URL.dele_tag_group,{group_id:t.groupId}).then(function(e){(e=e.data)&&0==e.errno?(t.lableGroup=!1,t.$parent.init(1),t.$message.success("操作成功")):4002!=e.errno&&t.$message.warning(e.err||"操作失败"),t.loading=!1}).catch(function(e){t.$message({message:"服务故障,请稍候再试",type:"warning"}),t.loading=!1})})},editTagGroup:function(){var t=this;if(""==this.groupName)return this.$message({message:"标签组名称不能为空",type:"warning"}),!1;var e=!1;if(this.moreLable.forEach(function(a){if(""==a.tag_name)return t.$message({message:"标签名称不能为空",type:"warning"}),e=!0,!1}),e)return!1;this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.edit_tag_group,{group_name:this.groupName,group_id:this.groupId,tag_list:this.moreLable}).then(function(e){(e=e.data)&&0==e.errno?(t.lableGroup=!1,t.$parent.init(1),t.$message.success("操作成功")):4002!=e.errno&&t.$message.warning(e.err||"操作失败"),t.loading=!1}).catch(function(e){t.$message({message:"服务故障,请稍候再试",type:"warning"}),t.loading=!1})},addTagGroup:function(){var t=this;if(""==this.groupName)return this.$message({message:"标签组名称不能为空",type:"warning"}),!1;var e=!1;if(this.moreLable.forEach(function(a){if(""==a.tag_name)return t.$message({message:"标签名称不能为空",type:"warning"}),e=!0,!1}),e)return!1;this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.add_tag_group,{group_name:this.groupName,tag_list:this.moreLable}).then(function(e){(e=e.data)&&0==e.errno?(t.lableGroup=!1,t.$parent.init(1),t.$message.success("操作成功")):4002!=e.errno&&t.$message.warning(e.err||"操作失败"),t.loading=!1}).catch(function(e){t.$message({message:"服务故障,请稍候再试",type:"warning"}),t.loading=!1})},upClick:function(t){if(0==t)return!1;this.moreLable=this.swapItems(this.moreLable,t,t-1)},downClick:function(t){if(t==this.moreLable.length-1)return!1;this.moreLable=this.swapItems(this.moreLable,t,t+1)},swapItems:function(t,e,a){return t[e]=t.splice(a,1,t[e])[0],t}}},r,!1,function(t){a("QhiS")},null,null).exports,l={name:"tabManage",mixins:[a("lbyi").a],components:{selfInput:s.a,tagGroup:o},data:function(){return{loading:!1,total:0,resetFlag:!1,input_keyword:"",source:"add"}},directives:{focus:{inserted:function(t){t.querySelector("input").focus()}}},created:function(){this.init(1)},methods:{orderList:function(){var t=this,e=[];if(this.tableData.forEach(function(t){e.push({order:t.order,group_id:t.group_id})}),e&&0==e.length)return this.$message({message:"操作错误,请稍候重试",type:"info"}),!1;this.$axios.post(this.URL.BASEURL+this.URL.order_tag_group,{group_list:e}).then(function(e){(e=e.data)&&0==e.errno?t.init("orderGroup"):t.$message({message:e.err,type:"info"})})},forceUpdate:function(){this.$forceUpdate()},addLableGroup:function(t,e){var a=this;this.source=t,this.$nextTick(function(){a.$refs.tagRef.lableGroup=!0,"edit"==t?(a.$refs.tagRef.groupName=e.group_name,a.$refs.tagRef.groupId=e.group_id,a.$refs.tagRef.moreLable=JSON.parse(n()(e.tag_list))):"add"==t&&(a.$refs.tagRef.groupName="",a.$refs.tagRef.groupId="",a.$refs.tagRef.moreLable=[{tag_id:0,tag_name:""}])})},addLable:function(t){t.iptshow=!0,t.addLableVal="",this.$forceUpdate()},iptBlur:function(t){var e=this;t.iptshow=!1,this.$forceUpdate(),t.addLableVal&&this.$axios.post(this.URL.BASEURL+this.URL.add_tag,{group_id:t.group_id,tag_name:t.addLableVal}).then(function(a){if((a=a.data)&&0==a.errno)return t.tag_list.push({tag_name:t.addLableVal}),void(t.tag_num+=1);e.$message({message:a.err,type:"info"})})},resetEvent:function(){this.resetFlag=!this.resetFlag,this.input_keyword="",this.init()},init:function(t){var e=this;this.loading="orderGroup"!=t,this.$axios.get(this.URL.BASEURL+this.URL.tagList,{params:{keyword:this.input_keyword}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.tableData=t.rst,e.total=e.tableData.length,e.tableData.forEach(function(t){t.iptshow=!1,t.addLableVal=""})):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{staticClass:"screenBox"},[i("self-input",{attrs:{hasLabel:!1,label_name:"标签搜索"},on:{inputChange:function(e){t.input_keyword=e,t.init(1)}}}),t._v(" "),i("div",{staticClass:"reset",on:{click:t.resetEvent}},[t._v("重置")])],1),t._v(" "),i("div",{staticClass:"tableInfo"},[i("div",[i("div",{staticClass:"flex"},[i("div",{staticClass:"totalCustom"},[t._v("\n 共"),i("span",[t._v(t._s(t.total))]),t._v("个标签组\n ")])])]),t._v(" "),i("div",{staticClass:"flex"},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.addLableGroup("add")}}},[t._v("添加标签组")])],1)]),t._v(" "),i("div",{staticClass:"tagListBox"},t._l(t.tableData,function(e,n){return i("div",{key:e.group_id,staticClass:"tagItemBox"},[i("div",{staticStyle:{width:"15%","flex-shrink":"0"}},[i("div",{staticClass:"fWeight600 c-333 f14"},[t._v("\n "+t._s(e.group_name?e.group_name:"-")+"\n ")]),t._v(" "),i("div",{staticClass:"c-666 f13 tMar10"},[t._v("\n 共"+t._s(e.tag_num?e.tag_num:"-")+"个标签\n ")])]),t._v(" "),i("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap"}},[i("div",{staticClass:"add",on:{click:function(a){return t.addLable(e)}}},[t._v("+ 添加")]),t._v(" "),e.iptshow?i("el-input",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"ipt",attrs:{placeholder:"请输入标签"},on:{input:t.forceUpdate,blur:function(a){return t.iptBlur(e)}},model:{value:e.addLableVal,callback:function(a){t.$set(e,"addLableVal",a)},expression:"item.addLableVal"}}):t._e(),t._v(" "),t._l(e.tag_list,function(e){return i("div",{key:e.tag_id,staticClass:"lableItem"},[t._v("\n "+t._s(e.tag_name)+"\n ")])})],2),t._v(" "),i("div",{staticClass:"flex-align-center lMarauto editArea"},[i("div",{staticClass:"pointer rMar10 flex-align-center",on:{click:function(e){return t.upClick(n)}}},[0==n?i("img",{attrs:{src:a("+wrf"),alt:""}}):t._e(),t._v(" "),n>0?i("img",{attrs:{src:a("XtJf"),alt:""}}):t._e(),t._v("\n 上移\n ")]),t._v(" "),i("div",{staticClass:"pointer rMar10 flex-align-center",on:{click:function(e){return t.downClick(n)}}},[n==t.tableData.length-1?i("img",{attrs:{src:a("Eaxd"),alt:""}}):t._e(),t._v(" "),n<t.tableData.length-1?i("img",{attrs:{src:a("w80D"),alt:""}}):t._e(),t._v("\n 下移\n ")]),t._v(" "),i("div",{staticClass:"pointer flex-align-center",on:{click:function(a){return t.addLableGroup("edit",e)}}},[i("img",{attrs:{src:a("KzIr"),alt:""}}),t._v("\n 修改\n ")])])])}),0),t._v(" "),i("tagGroup",{ref:"tagRef",attrs:{source:t.source}})],1)},staticRenderFns:[]};var g=a("VU/8")(l,c,!1,function(t){a("mjOE"),a("2MWG")},"data-v-00879386",null);e.default=g.exports},Eaxd:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAA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sRwQ318G0OEYxOdlIufU+uhJCN0yIEp9BLnZsHjYSHYxCH6Fb50dkOHhTuRyBwDeFVfquzOMSD+APwD2qPXnhhxwFotZ6OxAzLnO5SlA6kDqQOrAC3ZAqS2Q8wAuILLgfGuLW/j4B9cDkW0a86H8RKTUCMjjuPMarhfxaIwpAdgHSt+fg8gnS5jcdYZMZpbZ7GUo8RfkPLww99gC7wAAAABJRU5ErkJggg=="},QhiS:function(t,e){},XtJf:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAXJJREFUWEftlr9KxEAQh7858AF8AR9AH8D2doOtFuKhlaIWgoKIndZqY3GFCiIWWiiovdXdJlha2/sCPoGQkQQCIZc77k9CPEjKDTvz7W9mfrtCxZ9UnJ8a4H8ooMbouL0gzvU9hBpzAqg4d9Evfry5DABtNg8RaceJVQ/E96/zIEopgVq7i+pdJuGmOPeYhSgcQK3dQPUpV3LVNfH9t/S/QgHUmGUgSjADnANRD4DIGaqnwC8iK9LtvicQhQGoMR7wCsyi2hbfP0p6K2pUtfYS1WPgB1gV54KYbdzuT+9TYxaBF2AOuBXn9tLNnUyKGnMF7APfhGFLguBzYgD1vHnCMEq+ADyIc1sJXFqB1No9sA180Wi0JgaIT+p5S4Thjji3nlEm9pesV6i1z4jcSKfzUQhAvzLmKZA7hqMY0SDnywafHoAiJiEvxtAK1AC1ArUClSswihP2WOngN2HuXdDzIKkcoKwSDBO31NuwBpgKBf4ABxKz0ARXw2QAAAAASUVORK5CYII="},lbyi:function(t,e,a){"use strict";e.a={data:function(){return{tableData:[]}},methods:{upClick:function(t){if(0==t)return!1;this.tableData=this.swapItems(this.tableData,t,t-1),"tagManage"==this.$route.name&&this.orderList()},downClick:function(t){if(t==this.tableData.length-1)return!1;this.tableData=this.swapItems(this.tableData,t,t+1),"tagManage"==this.$route.name&&this.orderList()},swapItems:function(t,e,a){return t[e]=t.splice(a,1,t[e])[0],t}}}},mjOE:function(t,e){},w80D:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAWtJREFUWEftlrFKw1AUhr9T8AF8AR9AH8C1SXDVQSw6KeogKIi46awuDh1UEHHQQUHdndqT4Ojs7gv4BEKOJCRSStvUNKEWctd7zznf/c+fcyOMecmY61MB/A8FzHEsrxdEte8l0ryDzsTBYwfIe/usuKEVyEqUd78CqBSoFBhagb8MokFTrftznRyAvIMmK25oBbISZe2b5y0Qhluiutp5th+Aue4jIlfSar2N/Byb580Shk/AHHAnqhspRC8Ac5xbYBP4oFZrjAyQvKbzQAQxA1yL6k7nK5sa1xznAtgFPgnDhgTBeyEASTEPeAamMWuK7x90KmCue47ZIfAFLItqEMUVBpBALAIvwBRwChzF7RA5wewY+EZkSdrt17RNhQLEEK67htlDT+OarYjvR4C/q3CABGIbs5suiHVRve8GK+2XzOr1fUSacUGzPfH9y16qlAaQeCLygInqWb9ZUkoLsgZX6R6oACZKgR9YR7PQD0yjSgAAAABJRU5ErkJggg=="}});