x-php-Admin/dist/static/js/440.3f847139.js

1 line
4.8 KiB
JavaScript
Raw Normal View History

2023-11-21 00:07:12 +00:00
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[440],{8440:function(e,l,t){t.r(l),t.d(l,{default:function(){return f}});var a=t(6252),d=t(3577);const i=e=>((0,a.dD)("data-v-5406f3ff"),e=e(),(0,a.Cn)(),e),s=i((()=>(0,a._)("i",{class:"el-icon-circle-plus"},null,-1))),r={class:"tree"},o={class:"custom-tree-node"},n={class:"file-name"},u={key:0,class:"icon",src:""},c={key:0},m=i((()=>(0,a._)("i",{class:"el-icon-more el-icon--right"},null,-1))),h=i((()=>(0,a._)("div",{class:"acea-row row-right page"},null,-1)));function p(e,l,t,i,p,w){const _=(0,a.up)("el-dropdown-item"),g=(0,a.up)("el-dropdown-menu"),b=(0,a.up)("el-dropdown"),f=(0,a.up)("el-tree"),k=(0,a.up)("el-col"),W=(0,a.up)("el-button"),x=(0,a.up)("el-row"),v=(0,a.up)("el-table-column"),S=(0,a.up)("el-divider"),C=(0,a.up)("el-table"),E=(0,a.up)("el-card"),L=(0,a.Q2)("loading");return(0,a.wg)(),(0,a.iD)("div",null,[(0,a.Wm)(x,{class:"ivu-mt box-wrapper"},{default:(0,a.w5)((()=>[(0,a.Wm)(k,(0,a.dG)(p.grid1,{class:"left-wrapper"}),{default:(0,a.w5)((()=>[(0,a._)("div",{class:"tree_tit",onClick:l[0]||(l[0]=(...e)=>w.addSort&&w.addSort(...e))},[s,(0,a.Uk)(" 添加分类 ")]),(0,a._)("div",r,[(0,a.Wm)(f,{data:p.labelSort,"node-key":"id","default-expand-all":"","highlight-current":"","expand-on-click-node":!1,onNodeClick:w.bindMenuItem,"current-node-key":p.treeId},{default:(0,a.w5)((()=>[(0,a._)("span",o,[(0,a._)("span",n,[e.data.pid?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("img",u)),(0,a.Uk)(" "+(0,d.zw)(e.data.name),1)]),e.data.id?((0,a.wg)(),(0,a.iD)("span",c,[(0,a.Wm)(b,{onCommand:l[1]||(l[1]=l=>w.clickMenu(e.data,l))},{default:(0,a.w5)((()=>[m,(0,a._)("template",null,[(0,a.Wm)(g,null,{default:(0,a.w5)((()=>[(0,a.Wm)(_,{command:"1"},{default:(0,a.w5)((()=>[(0,a.Uk)("编辑分类")])),_:1}),e.data.id?((0,a.wg)(),(0,a.j4)(_,{key:0,command:"2"},{default:(0,a.w5)((()=>[(0,a.Uk)("删除分类")])),_:1})):(0,a.kq)("",!0)])),_:1})])])),_:1})])):(0,a.kq)("",!0)])])),_:1},8,["data","onNodeClick","current-node-key"])])])),_:1},16),(0,a.Wm)(k,(0,a.dG)(p.grid2,{ref:"rightBox"}),{default:(0,a.w5)((()=>[(0,a.Wm)(E,{bordered:!1,shadow:"never"},{default:(0,a.w5)((()=>[(0,a.Wm)(x,null,{default:(0,a.w5)((()=>[(0,a.Wm)(k,null,{default:(0,a.w5)((()=>[(0,a.Wm)(W,{type:"primary",onClick:w.add},{default:(0,a.w5)((()=>[(0,a.Uk)("添加标签")])),_:1},8,["onClick"])])),_:1})])),_:1}),(0,a.wy)(((0,a.wg)(),(0,a.j4)(C,{data:p.labelLists,ref:"table",class:"mt14","highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},{default:(0,a.w5)((()=>[(0,a.Wm)(v,{label:"ID",width:"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.id),1)])])),_:1}),(0,a.Wm)(v,{label:"标签名称",width:"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.label_name),1)])])),_:1}),(0,a.Wm)(v,{label:"分类名称","min-width":"80"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("span",null,(0,d.zw)(e.scope.row.cate_name),1)])])),_:1}),(0,a.Wm)(v,{fixed:"right",label:"操作",width:"100"},{default:(0,a.w5)((()=>[(0,a._)("template",null,[(0,a._)("a",{onClick:l[2]||(l[2]=l=>w.edit(e.scope.row.id))},"修改"),(0,a.Wm)(S,{direction:"vertical"}),(0,a._)("a",{onClick:l[3]||(l[3]=l=>w.del(e.scope.row,"删除分类",e.scope.$index))},"删除")])])),_:1})])),_:1},8,["data"])),[[L,p.loading]]),h])),_:1})])),_:1},16)])),_:1})])}var w=t(3907),_={name:"user_label",data(){return{treeId:"",grid1:{xl:4,lg:4,md:6,sm:8,xs:0},grid2:{xl:20,lg:20,md:18,sm:16,xs:24},loading:!1,labelFrom:{page:1,limit:15,label_cate:""},labelLists:[],total:0,theme3:"light",labelSort:[],sortName:"",current:0}},computed:{...(0,w.rn)("media",["isMobile"]),labelWidth(){return this.isMobile?void 0:"80px"},labelPosition(){return this.isMobile?"top":"right"}},created(){},methods:{add(){},getList(){this.loading=!0},edit(e){console.log(e)},del(e,l,t){let a={title:l,num:t,url:`user/user_label/del/${e.id}`,method:"DELETE",ids:""};this.$modalSure(a).then((e=>{this.$message.success(e.msg),this.l