| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a91e312"],{"0636":function(e,t,a){},"1fcf":function(e,t,a){},"24e2":function(e,t,a){"use strict";var c=a("7a23");const o=Object(c["withScopeId"])("data-v-49bbfab0");Object(c["pushScopeId"])("data-v-49bbfab0");const s={class:"link-selector-wrap"};Object(c["popScopeId"])();const r=o((e,t,a,r,n,l)=>{const i=Object(c["resolveComponent"])("a-tab-pane"),d=Object(c["resolveComponent"])("a-tabs"),p=Object(c["resolveComponent"])("a-modal");return Object(c["openBlock"])(),Object(c["createBlock"])("div",s,[Object(c["createVNode"])(p,{destroyOnClose:"",maskClosable:!1,bodyStyle:{padding:"10px"},width:"70%",visible:a.visible,title:"链接选择器",onCancel:l.onClose,"onUpdate:visible":l.updateVisible,footer:null},{default:o(()=>[Object(c["createVNode"])(d,{activeKey:n.type,"onUpdate:activeKey":t[1]||(t[1]=e=>n.type=e)},{default:o(()=>[(Object(c["openBlock"])(!0),Object(c["createBlock"])(c["Fragment"],null,Object(c["renderList"])(n.typeList,e=>(Object(c["openBlock"])(),Object(c["createBlock"])(i,{key:e.type,tab:e.name},{default:o(()=>[(Object(c["openBlock"])(),Object(c["createBlock"])(Object(c["resolveDynamicComponent"])(e.component),{selected:n.selected,onReturnData:l.selectThisData},null,8,["selected","onReturnData"]))]),_:2},1032,["tab"]))),128))]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel","onUpdate:visible"])])}),n=Object(c["withScopeId"])("data-v-012bd170");Object(c["pushScopeId"])("data-v-012bd170");const l={class:"table-warp"},i={class:"search-wrap"},d={class:"search-item"},p=Object(c["createVNode"])("div",{class:"item-label"},"名称:",-1),m={class:"item-element"},b=Object(c["createTextVNode"])("已选"),h=Object(c["createTextVNode"])("选择"),u={class:"pagination-warp"};Object(c["popScopeId"])();const O=n((e,t,a,o,s,r)=>{const O=Object(c["resolveComponent"])("a-input-search"),j=Object(c["resolveComponent"])("a-button"),g=Object(c["resolveComponent"])("ele-pro-table"),v=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",l,[Object(c["createVNode"])("div",i,[Object(c["createVNode"])("div",d,[p,Object(c["createVNode"])("div",m,[Object(c["createVNode"])(O,{value:s.searchData.title,"onUpdate:value":t[1]||(t[1]=e=>s.searchData.title=e),onPressEnter:r.getList,placeholder:"请输入","allow-clear":"",onSearch:r.getList},null,8,["value","onPressEnter","onSearch"])])])]),Object(c["createVNode"])("div",null,[Object(c["createVNode"])(g,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:n(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(j,{key:0,size:"small",type:"link"},{default:n(()=>[b]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(j,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:n(()=>[h]),_:2},1032,["onClick"]))]),other_attr:n(({record:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.other_attr||"--"),1)]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",u,[Object(c["createVNode"])(v,{onChange:t[2]||(t[2]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[3]||(t[3]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var j=a("bc3a"),g=a.n(j),v=a("4360"),y=a("a18c"),k=a("d2b8"),_=a("f64c"),w=a("ed3b");const f=g.a.create({baseURL:"https://book.shuhi.com/api"});function V(e){v["a"].dispatch("user/removeToken").then(()=>{if(!e){const e=y["a"].currentRoute.path;return y["a"].push({path:"/login",query:e&&"/"!==e?{form:e}:null})}location.replace("/login")})}f.interceptors.request.use(e=>{const t=k["a"].takeToken();return t&&(e.headers[k["a"].tokenHeaderName]=t),e},e=>Promise.reject(e)),f.interceptors.response.use(e=>(1!=e.data.code&&401!=e.data.code&&403!=e.data.code&&_["a"].error(e.data.msg),e),e=>{let t=e.response;return 401===t.data.code&&(t.config.url===k["a"].menuUrl?V():(w["a"].destroyAll(),w["a"].info({title:"系统提示",content:"登录状态已过期, 请退出重新登录!",okText:"重新登录",onOk:()=>{V(!0)}}))),Promise.reject(e)});var N=f;function D(e){return new Promise((t,a)=>{N({url:"/api/manager/Information/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}function I(e){return new Promise((t,a)=>{N({url:"/api/manager/Combo/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}function P(e){return new Promise((t,a)=>{N({url:"/api/manager/HaiweiGoods/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}function x(e){return new Promise((t,a)=>{N({url:"/api/manager/HaiweiBrand/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}function C(e){return new Promise((t,a)=>{N({url:"/api/manager/Design/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}function B(e){return new Promise((t,a)=>{N({url:"/api/manager/TaoDecorate/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}function T(e){return new Promise((t,a)=>{N({url:"/api/manager/TaokeDesign/getList",method:"post",data:e}).then(e=>{1==e.data.code?t(e.data.data):a(new Error(e.data.msg))}).catch(e=>{a(e)})})}var L={name:"comboLink",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:1,searchData:{title:""},pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"其他属性",dataIndex:"other_attr",slots:{customRender:"other_attr"}},{title:"补充",dataIndex:"other_attr2",slots:{customRender:"other_attr2"}},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,title:this.searchData.title};I(e).then(e=>{this.list=e.list.map(e=>({id:e.id,name:e.title,type:this.type,other_attr:"所属商户:"+e.merchant_name,thisObject:e})),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}},S=(a("feff"),a("6b0d")),z=a.n(S);const R=z()(L,[["render",O],["__scopeId","data-v-012bd170"]]);var E=R;const U=Object(c["withScopeId"])("data-v-31d0dc3e");Object(c["pushScopeId"])("data-v-31d0dc3e");const $={class:"table-warp"},A={class:"search-wrap"},H={class:"search-item"},J=Object(c["createVNode"])("div",{class:"item-label"},"名称:",-1),K={class:"item-element"},q=Object(c["createTextVNode"])("已选"),F=Object(c["createTextVNode"])("选择"),G={class:"pagination-warp"};Object(c["popScopeId"])();const M=U((e,t,a,o,s,r)=>{const n=Object(c["resolveComponent"])("a-input-search"),l=Object(c["resolveComponent"])("a-button"),i=Object(c["resolveComponent"])("ele-pro-table"),d=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",$,[Object(c["createVNode"])("div",A,[Object(c["createVNode"])("div",H,[J,Object(c["createVNode"])("div",K,[Object(c["createVNode"])(n,{value:s.searchData.name,"onUpdate:value":t[1]||(t[1]=e=>s.searchData.name=e),onPressEnter:r.getList,placeholder:"请输入","allow-clear":"",onSearch:r.getList},null,8,["value","onPressEnter","onSearch"])])])]),Object(c["createVNode"])("div",null,[Object(c["createVNode"])(i,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:U(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:0,size:"small",type:"link"},{default:U(()=>[q]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:U(()=>[F]),_:2},1032,["onClick"]))]),other_attr:U(({record:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.other_attr||"--"),1)]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",G,[Object(c["createVNode"])(d,{onChange:t[2]||(t[2]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[3]||(t[3]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var Q={name:"privilegeH5",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:3,searchData:{name:""},pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"其他属性",dataIndex:"other_attr",slots:{customRender:"other_attr"}},{title:"补充",dataIndex:"other_attr2",slots:{customRender:"other_attr2"}},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,name:this.searchData.name};P(e).then(e=>{this.list=e.list.map(e=>({id:e.id,name:e.name,type:this.type,other_attr:`所属分类:${e.category_name}[${["直充","卡券"][e.type-1]}]`,thisObject:e})),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}};a("3937");const W=z()(Q,[["render",M],["__scopeId","data-v-31d0dc3e"]]);var X=W;const Y=Object(c["withScopeId"])("data-v-43a148cc");Object(c["pushScopeId"])("data-v-43a148cc");const Z={class:"table-warp"},ee={class:"search-wrap"},te={class:"search-item"},ae=Object(c["createVNode"])("div",{class:"item-label"},"名称:",-1),ce={class:"item-element"},oe=Object(c["createTextVNode"])("已选"),se=Object(c["createTextVNode"])("选择"),re={class:"pagination-warp"};Object(c["popScopeId"])();const ne=Y((e,t,a,o,s,r)=>{const n=Object(c["resolveComponent"])("a-input-search"),l=Object(c["resolveComponent"])("a-button"),i=Object(c["resolveComponent"])("ele-pro-table"),d=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",Z,[Object(c["createVNode"])("div",ee,[Object(c["createVNode"])("div",te,[ae,Object(c["createVNode"])("div",ce,[Object(c["createVNode"])(n,{value:s.searchData.name,"onUpdate:value":t[1]||(t[1]=e=>s.searchData.name=e),onPressEnter:r.getList,placeholder:"请输入","allow-clear":"",onSearch:r.getList},null,8,["value","onPressEnter","onSearch"])])])]),Object(c["createVNode"])("div",null,[Object(c["createVNode"])(i,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:Y(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:0,size:"small",type:"link"},{default:Y(()=>[oe]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:Y(()=>[se]),_:2},1032,["onClick"]))]),other_attr:Y(({record:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.other_attr||"--"),1)]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",re,[Object(c["createVNode"])(d,{onChange:t[2]||(t[2]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[3]||(t[3]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var le={name:"privilegeApi",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:4,searchData:{name:""},pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"其他属性",dataIndex:"other_attr",slots:{customRender:"other_attr"}},{title:"补充",dataIndex:"other_attr2",slots:{customRender:"other_attr2"}},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,brand_name:this.searchData.name};x(e).then(e=>{this.list=e.list.map(e=>({id:e.id,name:e.brand_name,type:this.type,other_attr:"类型:"+["直充","卡券"][e.type-1],thisObject:e})),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}};a("cf23");const ie=z()(le,[["render",ne],["__scopeId","data-v-43a148cc"]]);var de=ie;const pe=Object(c["withScopeId"])("data-v-c3226e1c");Object(c["pushScopeId"])("data-v-c3226e1c");const me={class:"table-warp"},be={class:"search-wrap"},he={class:"search-item"},ue=Object(c["createVNode"])("div",{class:"item-label"},"名称:",-1),Oe={class:"item-element"},je=Object(c["createTextVNode"])("已选"),ge=Object(c["createTextVNode"])("选择"),ve={class:"pagination-warp"};Object(c["popScopeId"])();const ye=pe((e,t,a,o,s,r)=>{const n=Object(c["resolveComponent"])("a-input-search"),l=Object(c["resolveComponent"])("a-button"),i=Object(c["resolveComponent"])("ele-pro-table"),d=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",me,[Object(c["createVNode"])("div",be,[Object(c["createVNode"])("div",he,[ue,Object(c["createVNode"])("div",Oe,[Object(c["createVNode"])(n,{value:s.searchData.name,"onUpdate:value":t[1]||(t[1]=e=>s.searchData.name=e),onPressEnter:r.getList,placeholder:"请输入","allow-clear":"",onSearch:r.getList},null,8,["value","onPressEnter","onSearch"])])])]),Object(c["createVNode"])("div",null,[Object(c["createVNode"])(i,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:pe(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:0,size:"small",type:"link"},{default:pe(()=>[je]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:pe(()=>[ge]),_:2},1032,["onClick"]))]),other_attr:pe(({record:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.other_attr||"--"),1)]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",ve,[Object(c["createVNode"])(d,{onChange:t[2]||(t[2]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[3]||(t[3]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var ke={name:"information",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:2,searchData:{name:""},pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"其他属性",dataIndex:"other_attr",slots:{customRender:"other_attr"}},{title:"补充",dataIndex:"other_attr2",slots:{customRender:"other_attr2"}},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,title:this.searchData.name};D(e).then(e=>{this.list=e.list.map(e=>({id:e.id,name:e.title,type:this.type,other_attr:"",thisObject:e})),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}};a("c720");const _e=z()(ke,[["render",ye],["__scopeId","data-v-c3226e1c"]]);var we=_e;const fe=Object(c["withScopeId"])("data-v-05fa29da");Object(c["pushScopeId"])("data-v-05fa29da");const Ve={class:"table-warp"},Ne={class:"search-wrap"},De={class:"search-item"},Ie=Object(c["createVNode"])("div",{class:"item-label"},"名称:",-1),Pe={class:"item-element"},xe={class:"search-item"},Ce=Object(c["createVNode"])("div",{class:"item-label"},"类型:",-1),Be={class:"item-element"},Te=Object(c["createTextVNode"])("已选"),Le=Object(c["createTextVNode"])("选择"),Se={class:"pagination-warp"};Object(c["popScopeId"])();const ze=fe((e,t,a,o,s,r)=>{const n=Object(c["resolveComponent"])("a-input-search"),l=Object(c["resolveComponent"])("a-select"),i=Object(c["resolveComponent"])("a-button"),d=Object(c["resolveComponent"])("ele-pro-table"),p=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",Ve,[Object(c["createVNode"])("div",Ne,[Object(c["createVNode"])("div",De,[Ie,Object(c["createVNode"])("div",Pe,[Object(c["createVNode"])(n,{value:s.searchData.name,"onUpdate:value":t[1]||(t[1]=e=>s.searchData.name=e),onPressEnter:r.getList,placeholder:"请输入","allow-clear":"",onSearch:r.getList},null,8,["value","onPressEnter","onSearch"])])]),Object(c["createVNode"])("div",xe,[Ce,Object(c["createVNode"])("div",Be,[Object(c["createVNode"])(l,{value:s.searchData.type,"onUpdate:value":t[2]||(t[2]=e=>s.searchData.type=e),placeholder:"请选择",options:s.selectOptions,onChange:t[3]||(t[3]=e=>r.getList()),style:{"min-width":"150px"}},null,8,["value","options"])])])]),Object(c["createVNode"])("div",null,[Object(c["createVNode"])(d,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:fe(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(i,{key:0,size:"small",type:"link"},{default:fe(()=>[Te]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(i,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:fe(()=>[Le]),_:2},1032,["onClick"]))]),other_attr:fe(({record:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.other_attr||"--"),1)]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",Se,[Object(c["createVNode"])(p,{onChange:t[4]||(t[4]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[5]||(t[5]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var Re={name:"application",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:5,searchData:{name:"",type:-1},selectOptions:[{label:"全部应用",value:-1},{label:"系统内部页面",value:1},{label:"三方模块",value:2},{label:"集成小程序插件",value:20}],pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"其他属性",dataIndex:"other_attr",slots:{customRender:"other_attr"}},{title:"补充",dataIndex:"other_attr2",slots:{customRender:"other_attr2"}},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,title:this.searchData.name,type:this.searchData.type};C(e).then(e=>{this.list=e.list.map(e=>{let t=e.desc+"";return e.desc="",{id:e.id,name:e.title,type:this.type,other_attr:t,thisObject:e}}),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}};a("e049");const Ee=z()(Re,[["render",ze],["__scopeId","data-v-05fa29da"]]);var Ue=Ee;const $e=Object(c["withScopeId"])("data-v-6eb6f6b6");Object(c["pushScopeId"])("data-v-6eb6f6b6");const Ae={class:"table-warp"},He=Object(c["createTextVNode"])("已选"),Je=Object(c["createTextVNode"])("选择"),Ke={class:"pagination-warp"};Object(c["popScopeId"])();const qe=$e((e,t,a,o,s,r)=>{const n=Object(c["resolveComponent"])("a-button"),l=Object(c["resolveComponent"])("ele-pro-table"),i=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",Ae,[Object(c["createVNode"])("div",null,[Object(c["createVNode"])(l,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:$e(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(n,{key:0,size:"small",type:"link"},{default:$e(()=>[He]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(n,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:$e(()=>[Je]),_:2},1032,["onClick"]))]),other_attr:$e(({record:e})=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.other_attr||"--"),1)]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",Ke,[Object(c["createVNode"])(i,{onChange:t[1]||(t[1]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[2]||(t[2]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var Fe={name:"application",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:6,searchData:{name:"",type:-1},selectOptions:[{label:"全部应用",value:-1},{label:"系统内部页面",value:1},{label:"三方模块",value:2},{label:"集成小程序插件",value:20}],pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"备注",dataIndex:"remark"},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,title:this.searchData.name,type:this.searchData.type};B(e).then(e=>{this.list=e.list.map(e=>({id:e.id,name:e.title,type:this.type,thisObject:e})),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}};a("38eb");const Ge=z()(Fe,[["render",qe],["__scopeId","data-v-6eb6f6b6"]]);var Me=Ge;const Qe=Object(c["withScopeId"])("data-v-0a13167b");Object(c["pushScopeId"])("data-v-0a13167b");const We={class:"table-warp"},Xe=Object(c["createTextVNode"])("已选"),Ye=Object(c["createTextVNode"])("选择"),Ze={class:"pagination-warp"};Object(c["popScopeId"])();const et=Qe((e,t,a,o,s,r)=>{const n=Object(c["resolveComponent"])("a-button"),l=Object(c["resolveComponent"])("ele-pro-table"),i=Object(c["resolveComponent"])("a-pagination");return Object(c["openBlock"])(),Object(c["createBlock"])("div",We,[Object(c["createVNode"])("div",null,[Object(c["createVNode"])(l,{style:{margin:"0 10px"},"row-key":"id",datasource:s.list,columns:s.columns,toolkit:null,needPage:!1},{action:Qe(({record:e})=>[a.selected&&a.selected.id&&a.selected.type==s.type&&e.id==a.selected.id?(Object(c["openBlock"])(),Object(c["createBlock"])(n,{key:0,size:"small",type:"link"},{default:Qe(()=>[Xe]),_:1})):(Object(c["openBlock"])(),Object(c["createBlock"])(n,{key:1,size:"small",onClick:t=>r.selectThisData(e),type:"primary"},{default:Qe(()=>[Ye]),_:2},1032,["onClick"]))]),_:1},8,["datasource","columns"])]),Object(c["createVNode"])("div",Ze,[Object(c["createVNode"])(i,{onChange:t[1]||(t[1]=e=>r.getList()),"show-total":e=>`共有 ${e} 条数据`,current:s.pageParams.page,"onUpdate:current":t[2]||(t[2]=e=>s.pageParams.page=e),total:s.pageParams.total,"show-less-items":""},null,8,["show-total","current","total"])])])});var tt={name:"application",emits:["returnData"],props:{selected:Object},components:{},data(){return{type:7,searchData:{name:"",type:-1},selectOptions:[{label:"全部应用",value:-1},{label:"系统内部页面",value:1},{label:"三方模块",value:2},{label:"集成小程序插件",value:20}],pageParams:{page:1,page_size:10,total:0},list:[],columns:[{title:"ID",dataIndex:"id"},{title:"名称",dataIndex:"name"},{title:"备注",dataIndex:"remark"},{title:"操作",dataIndex:"action",slots:{customRender:"action"}}]}},created(){this.getList()},methods:{getList(){let e={...this.pageParams,title:this.searchData.name,type:this.searchData.type};T(e).then(e=>{this.list=e.list.map(e=>{let t={id:e.id,name:e.title,type:this.type,thisObject:e,remark:""};return e.second_type_name&&(t.remark=e.second_type_name+"-"+e.third_type_name),t}),this.pageParams.total=e.total})},selectThisData(e){this.$emit("returnData",e)}}};a("4d9f");const at=z()(tt,[["render",et],["__scopeId","data-v-0a13167b"]]);var ct=at;let ot=[{type:1,name:"套餐",component:"comboLink"},{type:2,name:"资讯",component:"information"},{type:3,name:"h5特权",component:"privilegeH5"},{type:4,name:"API特权",component:"privilegeApi"},{type:5,name:"应用模块",component:"application"},{type:6,name:"自定义装修",component:"customPage"},{type:7,name:"淘客",component:"taoke"}];var st={name:"linkSelector",emits:["select","update:visible"],components:{comboLink:E,privilegeH5:X,information:we,application:Ue,privilegeApi:de,customPage:Me,taoke:ct},props:{visible:Boolean,data:Object},data(){return{type_name:["套餐","资讯","h5特权","API特权","应用模块"],typeList:JSON.parse(JSON.stringify(ot)),type:1,showData:[!0,!0,!0,!0,!0,!0],selected:{id:"",name:"",type:""}}},watch:{visible(){this.data&&this.data.id?(this.selected={id:this.data.id,name:this.data.name,type:this.data.type},this.type=this.data.type):(this.selected={id:"",name:"",type:""},this.type=1);let e=[];this.data.limitTabType&&(Array.isArray(this.data.limitTabType)?(this.data.limitTabType.forEach(t=>{ot.forEach(a=>{t==a.type&&e.push(a)})}),this.type=this.data.type||1,this.typeList=e):(ot.forEach(t=>{this.data.limitTabType==t.type&&e.push(t)}),this.typeList=e,this.type=this.data.limitTabType))}},methods:{updateVisible(e){this.$emit("update:visible",e)},onClose(){this.updateVisible(!1)},selectThisData(e){if(e){let t=this.typeList.find(t=>t.type==e.type);this.updateVisible(!1),this.$emit("confirm",{id:e.id,name:e.name,type:e.type,type_name:t.name,thisObject:e.thisObject})}}}};a("2f0e");const rt=z()(st,[["render",r],["__scopeId","data-v-49bbfab0"]]);t["a"]=rt},"2f0e":function(e,t,a){"use strict";a("c85a")},3469:function(e,t,a){},"38eb":function(e,t,a){"use strict";a("c074")},3937:function(e,t,a){"use strict";a("8317")},"4d9f":function(e,t,a){"use strict";a("c0d1")},8317:function(e,t,a){},c074:function(e,t,a){},c0d1:function(e,t,a){},c720:function(e,t,a){"use strict";a("0636")},c85a:function(e,t,a){},cf23:function(e,t,a){"use strict";a("fed5")},e049:function(e,t,a){"use strict";a("1fcf")},fed5:function(e,t,a){},feff:function(e,t,a){"use strict";a("3469")}}]);
|