PageSourceSearch

https://erp.dianxiaobao.net/assets/chunk/094b0dac.CtlM9FRT.js

js dianxiaobao.net collected 2026-09-28 06:06:32 UTC 45,433 bytes, 5 lines download raw bytes

1import{n as e,r as t}from"./61b66786.8BhlS34s.js";import{Ao as n,Fa as r,Fd as i,Fo as a,Ia as o,Io as s,Na as c,Pa as l,Pd as u,Qa as d,Qp as f,Ra as p,Sd as m,Xa as h,Ya as g,Za as _,Zp as v,ao as y,ap as b,io as x,ko as S,oo as ee,op as C,so as w,vo as T,xd as E,yo as te}from"./027ffcfc.eLkoaQ3Q.js";import{o as D,s as O}from"./265e7545.DC6cMsFm.js";import{Bt as k,J as A,Pt as ne,f as j,r as re}from"./ce65bdc9.BVjkH_eL.js";import{Wt as ie,zn as ae}from"./4473ac67.BzSFK8kg.js";import{$ as oe,C as se,G as ce,M as le,S as ue,Y as de,a as fe,at as pe,c as me,ct as he,it as M,lt as ge,n as _e,nt as ve,ot as ye,rt as be,st as xe,tt as Se,u as N}from"./5d3dfec8.BiVdPxC8.js";import{i as Ce,n as we,o as Te,p as Ee,r as De}from"./4525b928.UxINBsTv.js";import{r as Oe,t as ke}from"./f732c6ef.C4-izj4X.js";import{n as Ae,t as je}from"./41e7ff9b.D4CN6hVE.js";import{mapGetters as Me}from"https://js-c.etc4.com/dxb/js/vuex.DhHkobAa.js";import{Fragment as P,createBlock as F,createCommentVNode as I,createElementBlock as L,createElementVNode as R,createTextVNode as z,createVNode as B,normalizeClass as Ne,openBlock as V,renderList as H,resolveComponent as U,resolveDirective as Pe,toDisplayString as W,vShow as G,withCtx as K,withDirectives as q,withModifiers as J}from"https://js-c.etc4.com/dxb/js/vue.CQKD6T8K.js";function Fe(e,t,n,r,i,a){let o=U(`DxbTab`),s=U(`Button`),c=U(`DxbIcon`),l=U(`DxbDraggable`),u=U(`Checkbox`),d=U(`CheckboxGroup`),f=U(`Card`),p=U(`Input`),m=U(`Modal`);return V(),F(m,{class:`title-make-tool-modal`,"model-value":n.modelValue,width:`1000`,zIndex:1001,title:`智能标题`,onOnCancel:a.handleClose},{footer:K(()=>[R(`div`,vt,[R(`div`,yt,[B(u,{modelValue:a.tabActive.isUpper,"onUpdate:modelValue":t[15]||=e=>a.tabActive.isUpper=e},{default:K(()=>[...t[30]||=[z(` 首字母大写`,-1)]]),_:1},8,[`modelValue`])]),R(`div`,bt,[B(s,{type:`text`,onClick:a.handleClose},{default:K(()=>[...t[31]||=[z(` 取消 `,-1)]]),_:1},8,[`onClick`]),B(s,{type:`primary`,onClick:a.handleOk},{default:K(()=>[...t[32]||=[z(` 确定 `,-1)]]),_:1},8,[`onClick`])])])]),default:K(()=>[B(o,{modelValue:i.tab.current,"onUpdate:modelValue":t[0]||=e=>i.tab.current=e,data:i.tab.data},null,8,[`modelValue`,`data`]),R(`div`,Le,[R(`div`,Re,[R(`div`,ze,[t[16]||=R(`div`,{class:`tipText mb20`},[R(`span`,null,`可拖动移动顺序`)],-1),B(l,{modelValue:a.tabActive.component,"onUpdate:modelValue":t[1]||=e=>a.tabActive.component=e,draggable:`.btn-row`,onEnd:a.handleDragEnd},{default:K(()=>[(V(!0),L(P,null,H(a.tabActive.component,(e,t)=>(V(),L(`div`,{class:Ne([`btn-row`,{"diy-btn":e.type.includes(`diy`)}])},[a.tabActive.componentActive.type==e.type?(V(),F(s,{key:0,type:`primary`,style:{"min-width":`74px`},onClick:t=>a.handleClickComponent(e)},{default:K(()=>[z(W(e.name),1)]),_:2},1032,[`onClick`])):(V(),F(s,{key:1,style:{"min-width":`74px`},onClick:t=>a.handleClickComponent(e)},{default:K(()=>[z(W(e.name),1)]),_:2},1032,[`onClick`])),R(`div`,Be,[B(c,{name:`iconbianji1`,onClick:t=>a.handleEditComponent(e)},null,8,[`onClick`]),B(c,{name:`iconshanchu`,onClick:t=>a.handleDeleteComponent(e)},null,8,[`onClick`])])],2))),256))]),_:1},8,[`modelValue`,`onEnd`])]),a.tabActive.type==`title`?(V(),L(`div`,Ve,[R(`a`,{onClick:t[2]||=(...e)=>a.handleAddComponent&&a.handleAddComponent(...e)},[B(c,{name:`iconzengjia`}),t[17]||=R(`span`,null,`添加标题组成`,-1)])])):I(``,!0)]),R(`div`,He,[a.tabActive.componentActive.type==`yingxiaoci`?(V(),L(`div`,Ue,[R(`div`,We,[B(u,{"model-value":a.checkAllValueOfYingxiaoci,onOnChange:a.handleSelectAllYingxiaoci},{default:K(()=>[...t[18]||=[R(`span`,null,`全选`,-1)]]),_:1},8,[`model-value`,`onOnChange`])]),B(d,{modelValue:a.tabActive.componentActive.selected,"onUpdate:modelValue":t[3]||=e=>a.tabActive.componentActive.selected=e},{default:K(()=>[R(`div`,Ge,[(V(!0),L(P,null,H(a.tabActive.componentActive.list,(e,t)=>(V(),L(`div`,{key:t,style:{width:`200px`}},[B(u,{label:e.id,style:{display:`flex`,"white-space":`nowrap`,overflow:`hidden`}},{default:K(()=>[R(`span`,Ke,W(e.enName)+`(`+W(e.cnName)+`)`,1)]),_:2},1032,[`label`])]))),128))])]),_:1},8,[`modelValue`])])):I(``,!0),a.tabActive.componentActive.type==`shuxingci`?(V(),L(`div`,qe,[a.checkHasAttrs(a.tabActive.componentActive.list)?(V(),L(`div`,Je,[R(`div`,Ye,[B(s,{type:`primary`,onClick:a.handleSelectCategory},{default:K(()=>[...t[19]||=[z(` 重选分类 `,-1)]]),_:1},8,[`onClick`]),B(u,{"model-value":a.checkAllValueOfShuxingci,onOnChange:a.handleCheckAllAttr},{default:K(()=>[...t[20]||=[z(` 全选 `,-1)]]),_:1},8,[`model-value`,`onOnChange`])]),B(d,{modelValue:a.tabActive.componentActive.selected,"onUpdate:modelValue":t[4]||=e=>
1a.tabActive.componentActive.selected=e,onOnChange:a.handleSyncSelectedWord},{default:K(()=>[(V(!0),L(P,null,H(a.tabActive.componentActive.list,(e,t)=>(V(),L(P,null,[(e.showType==`list_box`||e.showType==`check_box`)&&e.attributeValues?(V(),F(f,{key:0,bordered:!1,style:{"margin-bottom":`5px`}},{title:K(()=>[R(`p`,Xe,[R(`span`,null,W(e.cnName),1)])]),default:K(()=>[R(`div`,Ze,[(V(!0),L(P,null,H(e.attributeValues,(e,t)=>(V(),L(`div`,{key:t,style:{width:`200px`}},[B(u,{label:e.enName,style:{display:`flex`,"white-space":`nowrap`,overflow:`hidden`}},{default:K(()=>[R(`span`,Qe,W(e.enName),1)]),_:2},1032,[`label`])]))),128))])]),_:2},1024)):I(``,!0)],64))),256))]),_:1},8,[`modelValue`,`onOnChange`])])):(V(),L(`div`,$e,[B(s,{type:`primary`,onClick:a.handleSelectCategory},{default:K(()=>[...t[21]||=[z(` 选择分类 `,-1)]]),_:1},8,[`onClick`])]))])):I(``,!0),[`yingxiaoci`,`shuxingci`,`hotWord`].includes(a.tabActive.componentActive.type)?I(``,!0):(V(),L(`div`,et,[a.tabActive.componentActive.list.length?(V(),L(`div`,tt,[R(`div`,nt,[B(s,{type:`primary`,onClick:a.handleImport},{default:K(()=>[...t[22]||=[z(` 重新导入词组 `,-1)]]),_:1},8,[`onClick`])]),B(d,{modelValue:a.tabActive.componentActive.selected,"onUpdate:modelValue":t[5]||=e=>a.tabActive.componentActive.selected=e,onOnChange:a.handleSyncSelectedWord},{default:K(()=>[R(`div`,rt,[(V(!0),L(P,null,H(a.tabActive.componentActive.list,(e,t)=>(V(),L(`div`,{key:t,style:{width:`200px`}},[(V(),F(u,{key:e.id,label:e.id,style:{display:`flex`,"white-space":`nowrap`,overflow:`hidden`}},{default:K(()=>[R(`span`,it,W(e.keywordEn),1),e.keywordCn?(V(),L(`span`,at,`(`+W(e.keywordCn)+`)`,1)):I(``,!0)]),_:2},1032,[`label`]))]))),128))])]),_:1},8,[`modelValue`,`onOnChange`])])):(V(),L(`div`,ot,[B(s,{type:`primary`,onClick:a.handleImport},{default:K(()=>[...t[23]||=[z(` 导入线上词库 `,-1)]]),_:1},8,[`onClick`])]))])),a.tabActive.componentActive.type==`hotWord`?(V(),L(`div`,st,[a.tabActive.componentActive.list.length?(V(),L(`div`,ct,[R(`div`,lt,[B(s,{type:`primary`,onClick:a.handleImportHotWord},{default:K(()=>[...t[24]||=[z(` 重新导入 `,-1)]]),_:1},8,[`onClick`])]),B(d,{modelValue:a.tabActive.componentActive.selected,"onUpdate:modelValue":t[6]||=e=>a.tabActive.componentActive.selected=e,onOnChange:a.handleSyncSelectedWord},{default:K(()=>[R(`div`,ut,[(V(!0),L(P,null,H(a.tabActive.componentActive.list,(e,t)=>(V(),L(`div`,{key:t,style:{width:`200px`}},[(V(),F(u,{key:e.keywordEn,label:e.keywordEn,style:{display:`flex`,"white-space":`nowrap`,overflow:`hidden`}},{default:K(()=>[R(`span`,dt,W(e.keywordEn),1),e.keywordCn?(V(),L(`span`,ft,`(`+W(e.keywordCn)+`)`,1)):I(``,!0)]),_:2},1032,[`label`]))]))),128))])]),_:1},8,[`modelValue`,`onOnChange`])])):(V(),L(`div`,pt,[B(s,{type:`primary`,onClick:a.handleImportHotWord},{default:K(()=>[...t[25]||=[z(` 导入热搜词 `,-1)]]),_:1},8,[`onClick`])]))])):I(``,!0)])]),B(m,{modelValue:i.modal.add.show,"onUpdate:modelValue":t[9]||=e=>i.modal.add.show=e,title:`新增组成`,onOnChange:t[10]||=e=>i.modal.add.show=!1},{footer:K(()=>[R(`div`,ht,[B(s,{onClick:t[8]||=J(e=>i.modal.add.show=!1,[`stop`])},{default:K(()=>[...t[26]||=[z(` 取消`,-1)]]),_:1}),B(s,{onClick:J(a.handleAddComponent2,[`stop`])},{default:K(()=>[...t[27]||=[z(` 确定`,-1)]]),_:1},8,[`onClick`])])]),default:K(()=>[R(`div`,mt,[B(p,{modelValue:i.modal.add.name,"onUpdate:modelValue":t[7]||=e=>i.modal.add.name=e,placeholder:`请填写`},null,8,[`modelValue`])])]),_:1},8,[`modelValue`]),B(m,{modelValue:i.modal.edit.show,"onUpdate:modelValue":t[13]||=e=>i.modal.edit.show=e,title:`修改组成名称`,onOnChange:t[14]||=e=>i.modal.edit.show=!1},{footer:K(()=>[R(`div`,_t,[B(s,{onClick:t[12]||=J(e=>i.modal.edit.show=!1,[`stop`])},{default:K(()=>[...t[28]||=[z(` 取消`,-1)]]),_:1}),B(s,{onClick:J(a.handleEditComponent2,[`stop`])},{default:K(()=>[...t[29]||=[z(` 确定`,-1)]]),_:1},8,[`onClick`])])]),default:K(()=>[R(`div`,gt,[B(p,{modelValue:i.modal.edit.name,"onUpdate:modelValue":t[11]||=e=>i.modal.edit.name=e,placeholder:`请填写`},null,8,[`modelValue`])])]),_:1},8,[`modelValue`])]),_:1},8,[`model-value`,`onOnCancel`])}var Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,Y;function X(){return(X=e((()=>{te(),Oe(),se(),v(),A(),b(),d(),m(),Ie={name:`AeTitleMakeToolModal`,props:{modelValue:{type:Boolean,default:!1},storeId:{type:[Number,String],default:``},cateId:{type:[Number,String],default:``}},emits:[`update:modelValue`,`close`],data(){let e={data:[{type:`title`,name:`ä¸
1»æ ‡é¢˜`,isUpper:!1,component:[{type:`yingxiaoci`,name:`营销词`,list:[],selected:[]},{type:`hexinci`,name:`核心词`,list:[],selected:[]},{type:`shuxingci`,name:`属性词`,list:[],selected:[]},{type:`hotWord`,name:`热搜词`,list:[],selected:[]}],componentActive:null}],current:`title`};return e.data.forEach(e=>{e.componentActive=e.component[0]}),{tab:e,ajaxed:!1,modal:{add:{show:!1,name:``},edit:{show:!1,item:null,name:``}}}},computed:{tabActive(){return this.tab.data.find(e=>e.type==this.tab.current)},checkAllValueOfYingxiaoci(){let e=this.tab.data[0].component.find(e=>e.type==`yingxiaoci`);return e.list.length==e.selected.length&&e.list.length>0},checkAllValueOfShuxingci(){let e=this.tab.data[0].component.find(e=>e.type==`shuxingci`),t=e.list.map(e=>Array.isArray(e.attributeValues)?e.attributeValues.length:0);return re.sum(t)===e.selected.length&&e.selected.length>0}},watch:{async modelValue(e){if(this.ajaxed||(this.ajaxed=!0,ce().then(e=>{let t=this.tab.data[0].component.find(e=>e.type==`yingxiaoci`);t&&(t.list=e)})),e)if(this.cateId)this.handleAttrByCateId(this.cateId);else{let e=await f.get(`ae_cache_title_make`);e&&(this.tab=e)}}},methods:{handleDragEnd(){this.tabActive.type!=`title`&&this.tab.data.forEach(e=>{e.type!=`title`&&(e.component=j(this.tabActive.component),e.componentActive=e.component.find(e=>e.type==this.tabActive.componentActive.type))})},checkHasAttrs(e){return e.some(e=>(e.showType==`list_box`||e.showType==`check_box`)&&e.attributeValues)},handleSelectAllYingxiaoci(e){let t=this.tab.data[0].component.find(e=>e.type==`yingxiaoci`);t.selected=e?t.list.map(e=>e.id):[]},handleClickComponent(e){this.tabActive.componentActive=e},handleAddComponent(){this.modal.add.show=!0},handleAddComponent2(){if(this.modal.add.name.trim()==``){C.error(`请输入组成名称~`);return}this.tabActive.component.push({type:`diy_${k(5)}`,name:this.modal.add.name.trim(),list:[],selected:[]}),this.modal.add.show=!1},handleEditComponent(e){this.modal.edit.show=!0,this.modal.edit.item=e,this.modal.edit.name=e.name},handleEditComponent2(){if(this.modal.edit.name.trim()==``){C.error(`请输入组成名称~`);return}this.modal.edit.item.name=this.modal.edit.name.trim(),this.modal.edit.show=!1},handleDeleteComponent(e){let t=this.tabActive.component.findIndex(t=>t.type==e.type);t>-1&&this.tabActive.component.splice(t,1)},handleSelectCategory(){this.$category(e=>{N({storeId:this.storeId,cateId:e.categoryId}).then(e=>{e.forEach(e=>{let t=JSON.parse(e.names);e.showType=e.attributeShowTypeValue,e.cnName=t.zh,e.enName=t.en,e.attributeValues=e.values,Array.isArray(e.attributeValues)&&e.attributeValues.forEach(e=>{let t=JSON.parse(e.names);e.cnName=t.zh,e.enName=t.en})});let t=[...e];this.syncInitData2Tab(t)})})},handleAttrByCateId(e){N({storeId:this.storeId,cateId:e}).then(e=>{e.forEach(e=>{let t=JSON.parse(e.names);e.showType=e.attributeShowTypeValue,e.cnName=t.zh,e.enName=t.en,e.attributeValues=e.values,Array.isArray(e.attributeValues)&&e.attributeValues.forEach(e=>{let t=JSON.parse(e.names);e.cnName=t.zh,e.enName=t.en})});let t=[...e];this.tab.data.forEach(e=>{e.component.forEach(e=>{e.type===`shuxingci`&&(e.select=[],e.list=j(t))})})})},syncInitData2Tab(e){let t=this.tabActive.componentActive.type;this.tab.data.forEach(n=>{n.component.forEach(n=>{n.type==t&&(n.select=[],n.list=j(e))})})},handleCheckAllAttr(e){let t=[];e&&this.tabActive.componentActive.list.forEach(e=>{Array.isArray(e.attributeValues)&&e.attributeValues.forEach(e=>{t.push(e.enName)})}),this.tabActive.componentActive.selected=t},handleSyncSelectedWord(){let{type:e,selected:t}=this.tabActive.componentActive;this.tab.data.forEach(n=>{n.component.forEach(n=>{n.type==e&&(n.selected=j(t))})})},handleImport(){let e=[],t=this;this.$DxbModal.confirm({loading:!1,headTitle:`选择关键词`,render:ke,width:1360,props:{props:{isImportModal:!0,storeId:this.storeId},style:{maxHeight:`60vh`,overflow:`auto`,paddingRight:`10px`},on:{onSelect:t=>{e=t}}},onOk:()=>{if(e.length==0){C.error(`请选择关键词`);return}t.handleImport2(e)}})},handleImportHotWord(){let e=[],t=this;this.$DxbModal.confirm({loading:!1,headTitle:`选择热搜词`,render:T,width:1360,props:{props:{isImportModal:!0},style:{maxHeight:`60vh`,overflow:`auto`,paddingRight:`10px`},on:{onSelect:t=>{e=t}}},onOk:()=>
1{if(e.length==0){C.error(`请选择关键词`);return}t.handleImport2(e,`keywordEn`)}})},handleImport2(e,t=`id`){this.syncInitData2Tab(e);let n=this.tabActive.componentActive.type;this.tab.data.forEach(e=>{e.component.forEach(e=>{e.type==n&&(e.selected=e.list.map(e=>e[t]))})})},handleClose(){this.$emit(`update:modelValue`,!1)},handleOk(){f.set(`ae_cache_title_make`,this.tab),this.$emit(`ok`,this.tab),this.$emit(`update:modelValue`,!1)}}},Le={class:`main-wrap mt-5`},Re={class:`left-box`},ze={class:`left-box-top`},Be={class:`flex-row-margin-small edit-bar`},Ve={key:0,class:`left-box-bottom`},He={class:`right-box`},Ue={key:`yinxiaoci-checkbox-list`,class:`checkbox-list`},We={style:{"margin-bottom":`10px`}},Ge={class:`flex-center`,style:{"flex-wrap":`wrap`}},Ke={style:{"margin-left":`5px`}},qe={key:`shuxingci-checkbox-list`,class:`checkbox-list`,style:{height:`100%`}},Je={key:0},Ye={class:`flex-row-between`,style:{"margin-bottom":`20px`}},Xe={class:`flex-row-between`,style:{display:`flex`}},Ze={class:`flex-center`,style:{"flex-wrap":`wrap`}},Qe={style:{"margin-left":`5px`}},$e={key:1,class:`btn-box flex-row-center`},et={key:2,class:`checkbox-list`,style:{height:`100%`}},tt={key:0},nt={style:{"margin-bottom":`15px`}},rt={class:`flex-center`,style:{"flex-wrap":`wrap`}},it={style:{"margin-left":`5px`}},at={key:0},ot={key:1,class:`btn-box flex-row-center`},st={key:3,class:`checkbox-list`,style:{height:`100%`}},ct={key:0},lt={style:{"margin-bottom":`15px`}},ut={class:`flex-center`,style:{"flex-wrap":`wrap`}},dt={style:{"margin-left":`5px`}},ft={key:0},pt={key:1,class:`btn-box flex-row-center`},mt={style:{padding:`20px 0`}},ht={class:`flex-row-end flex-row-margin`},gt={style:{padding:`20px 0`}},_t={class:`flex-row-end flex-row-margin`},vt={class:`flex-row-between flex-row-margin`},yt={class:`left`},bt={class:`right`},Y=E(Ie,[[`render`,Fe],[`__scopeId`,`data-v-e6d7ce6a`]])})))()}var xt=t({default:()=>Q});function St(e,t,n,r,i,a){let o=U(`DxbShopSelect`),s=U(`DxbLabelItem`),c=U(`Option`),l=U(`Select`),u=U(`Button`),d=U(`Input`),f=U(`DxbSelectSortable`),p=U(`DxbSearchWraper`),m=U(`Icon`),h=U(`DropdownItem`),g=U(`DropdownMenu`),_=U(`Dropdown`),v=U(`Cascader`),y=U(`DxbBtnBar`),b=U(`Tag`),x=U(`DxbGapBar`),S=U(`Table`),ee=U(`DxbPage`),C=U(`FormItem`),w=U(`Form`),T=U(`Modal`),E=U(`DxbIcon`),te=U(`Tooltip`),D=U(`Radio`),O=U(`RadioGroup`),k=U(`TitleGroupModal`),A=U(`AeTitleBatchEditModal`),ne=U(`AeTitleMakeToolModal`),j=U(`DxbPermissionPage`),re=Pe(`loading`);return V(),F(j,{class:`title-store`},{default:K(()=>[B(p,{style:{"margin-top":`-20px`}},{default:K(()=>[B(s,{label:`店铺`,suffix:``},{default:K(()=>[B(o,{modelValue:i.search.store,"onUpdate:modelValue":[t[0]||=e=>i.search.store=e,a.changeStore]},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),B(s,{label:`分组`,suffix:``},{default:K(()=>[B(l,{modelValue:i.search.group,"onUpdate:modelValue":t[1]||=e=>i.search.group=e,style:{width:`150px`},onOnChange:a.getTableDataFrom1},{default:K(()=>[(V(!0),L(P,null,H(i.search.groupList,(e,t)=>(V(),F(c,{key:t,value:e.id},{default:K(()=>[z(W(e.name),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`,`onOnChange`])]),_:1}),B(s,{label:`关键词`,suffix:``},{default:K(()=>[B(d,{modelValue:i.search.keyword,"onUpdate:modelValue":t[2]||=e=>i.search.keyword=e,style:{width:`100%`},search:``,onOnSearch:a.getTableDataFrom1},{append:K(()=>[B(u,{icon:`ios-search`,onClick:J(a.getTableDataFrom1,[`stop`])},null,8,[`onClick`])]),_:1},8,[`modelValue`,`onOnSearch`])]),_:1}),n.isImportModal?(V(),F(f,{key:0,modelValue:i.sort.value,"onUpdate:modelValue":t[3]||=e=>i.sort.value=e,list:i.sort.data,valueKey:`type`,onOnChange:a.getTableData},null,8,[`modelValue`,`list`,`onOnChange`])):I(``,!0)]),_:1}),n.isImportModal?I(``,!0):(V(),F(y,{key:0,class:`sticky-bar`},{right:K(()=>[B(f,{modelValue:i.sort.value,"onUpdate:modelValue":t[5]||=e=>i.sort.value=e,list:i.sort.data,valueKey:`type`,onOnChange:a.getTableData},null,8,[`modelValue`,`list`,`onOnChange`]),n.isImportModal?I(``,!0):(V(),F(u,{key:0,type:`primary`,onClick:t[6]||=J(e=>i.modal.group.show=!0,[`stop`])},{default:K(()=>
1[...t[68]||=[z(` 分组管理 `,-1)]]),_:1}))]),default:K(()=>[B(_,{transfer:``,onOnClick:a.handleAdd},{list:K(()=>[B(g,null,{default:K(()=>[B(h,{name:`hand`},{default:K(()=>[...t[52]||=[z(` 手动添加标题 `,-1)]]),_:1}),B(h,{name:`auto`},{default:K(()=>[...t[53]||=[z(` 一键智能生成标题 `,-1)]]),_:1}),B(h,{name:`tonghang`},{default:K(()=>[...t[54]||=[z(` 采集同行店铺的商品 `,-1)]]),_:1}),B(h,{name:`shouye`},{default:K(()=>[...t[55]||=[z(` 采集速卖通首页搜索结果的商品标题 `,-1)]]),_:1}),B(h,{name:`lianjie`},{default:K(()=>[...t[56]||=[z(` 按商品链接采集商品的标题 `,-1)]]),_:1})]),_:1})]),default:K(()=>[B(u,{type:`primary`},{default:K(()=>[t[51]||=R(`span`,null,`添加`,-1),B(m,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`onOnClick`]),B(u,{onClick:J(a.handleDelWord,[`stop`])},{default:K(()=>[...t[57]||=[z(` 删除 `,-1)]]),_:1},8,[`onClick`]),B(u,{onClick:J(a.handleBatchEdit,[`stop`])},{default:K(()=>[...t[58]||=[z(` 批量修改 `,-1)]]),_:1},8,[`onClick`]),B(v,{modelValue:i.move.group,"onUpdate:modelValue":t[4]||=e=>i.move.group=e,data:i.move.groupList,"load-data":a.getGroupList2,onOnChange:a.handleMoveWord},{default:K(()=>[B(u,null,{default:K(()=>[t[59]||=R(`span`,null,`移动至`,-1),B(m,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`modelValue`,`data`,`load-data`,`onOnChange`]),B(u,{loading:i.loading.fanyi,onClick:J(a.handleFanyi,[`stop`])},{default:K(()=>[i.loading.fanyi?(V(),L(`span`,Tt,`翻译中...`+W(i.translate.total?`${i.translate.current}/${i.translate.total}`:``),1)):(V(),L(`span`,wt,`翻译`))]),_:1},8,[`loading`,`onClick`]),B(_,{transfer:``,onOnClick:a.handleFilter},{list:K(()=>[B(g,null,{default:K(()=>[B(h,{name:`pinpaici`},{default:K(()=>[...t[61]||=[z(` 品牌侵权词 `,-1)]]),_:1}),B(h,{name:`weijinci`},{default:K(()=>[...t[62]||=[z(` 包含违禁词 `,-1)]]),_:1}),B(h,{name:`wordOptimize`},{default:K(()=>[...t[63]||=[z(` 违禁词优化 `,-1)]]),_:1})]),_:1})]),default:K(()=>[B(u,null,{default:K(()=>[t[60]||=R(`span`,null,`过滤词`,-1),B(m,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`onOnClick`]),B(_,{transfer:``,onOnClick:a.handleBatchMore},{list:K(()=>[B(g,null,{default:K(()=>[B(h,{name:`export`},{default:K(()=>[...t[65]||=[z(` 导出选择 `,-1)]]),_:1}),B(h,{name:`exportAll`},{default:K(()=>[...t[66]||=[z(` 导出全部 `,-1)]]),_:1}),B(h,{name:`import`},{default:K(()=>[...t[67]||=[z(` 导入 `,-1)]]),_:1})]),_:1})]),default:K(()=>[B(u,null,{default:K(()=>[t[64]||=R(`span`,null,`更多操作`,-1),B(m,{type:`ios-arrow-down`})]),_:1})]),_:1},8,[`onOnClick`])]),_:1})),q((V(),L(`div`,null,[B(S,{ref:`table`,size:`small`,columns:i.table.column,data:i.table.data},{title:K(({row:e,column:t,index:n})=>[R(`div`,Et,[R(`p`,null,W(e.title),1),e.titleCn?(V(),L(`p`,Dt,W(e.titleCn),1)):I(``,!0),R(`p`,null,[q(R(`img`,Ot,null,512),[[G,e.isInProdName]])]),R(`p`,null,[e.banTitleTypeName?(V(),F(b,{key:0,color:`red`,style:{overflow:`visible`,"white-space":`pre`}},{default:K(()=>[z(W(e.banTitleTypeName),1)]),_:2},1024)):I(``,!0)])])]),time:K(({row:e,column:n,index:r})=>[R(`p`,null,[t[69]||=R(`span`,null,`加入:`,-1),R(`span`,null,W(e.createTime),1)]),R(`p`,null,[t[70]||=R(`span`,null,`更新:`,-1),R(`span`,null,W(e.updateTime),1)])]),action:K(({row:t,column:r,index:i})=>[B(x,{class:`flex-row-center`},{default:K(()=>[n.isImportModal?(V(),L(`a`,{key:0,onClick:J(n=>e.$emit(`export`,t.title),[`prevent`])},`添加到标题`,8,kt)):(V(),L(`a`,{key:1,onClick:J(e=>a.handleEdit(t),[`stop`])},`修改`,8,At))]),_:2},1024)]),_:1},8,[`columns`,`data`]),B(ee,{modelValue:i.table.page,"onUpdate:modelValue":[t[7]||=e=>i.table.page=e,t[8]||=()=>{a.getTableData()}],sticky:``,style:{bottom:`0`}},null,8,[`modelValue`])])),[[re,i.loading.page]]),B(T,{modelValue:i.modal.hand.show,"onUpdate:modelValue":t[11]||=e=>i.modal.hand.show=e,title:`手动添加标题`,width:`800`,onOnCancel:t[12]||=e=>i.modal.hand.show=!1},{footer:K(()=>[R(`div`,Nt,[B(u,{onClick:t[10]||=J(e=>i.modal.hand.show=!1,[`stop`])},{default:K(()=>[...t[72]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,onClick:J(a.handleAddHand2,[`stop`])},{default:K(()=>[...t[73]||=[z(` 确定 `,-1)]]),_:1},8,[`onClick`])])]),default:K(()=>[B(w,{ref:`handForm`,model:i.modal.hand,class:`flex-column-margin`,style:{"max-height":`60vh`,overflow:`auto`}},{default:K(()=>[R(`div`,null,[R(`p`,jt,[t[71]||=R(`span`,null,`标题`,-1),R(`b`,Mt,W(a.titleLength)+`个`,1)]),B(C,{prop:`title`,rules:[...e.$formRules.isNotChinese],style:{"margin-bottom":`0`}},{default:K(()=>[B(d,{modelValue:i.modal.hand.title,"onUpdate:modelValue":t[9]||=e=>i.modal.hand.title=e,type:`textarea`,placeholder:`输入标题,以换行隔开`,rows:4},null,8,[`modelValue`])]),_:1},8,[`rules`])])]),_:1},8,[`model`])]),_:1},8,[`modelValue`]),B(T,{modelValue:i.modal.edit.show,"onUpdate:modelValue":t[15]||=e=>i.modal.edit.show=e,class:`title-modify-modal`,title:`修改标题`,width:`1000`,onOnCancel:t[16]||=e=>i.modal.edit.show=!1},{footer:K(()=>[R(`div`,Ft,[B(u,{onClick:t[14]||=J(e=>i.modal.edit.show=!1,[`stop`])},{default:K(()=>[...t[75]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,onClick:J(a.handleEdit2,[`stop`])},{default:K(()=>[...t[76]||=[z(` 确定 `,-1)]]),_:1},8,[`onClick`])])]),default:K(()=>[i.modal.edit.row?(V(),F(w,{key:0,ref:`editForm`,model:i.modal.edit.row,"label-width":130},{default:K(()=>[B(C,{label:`标题:`,prop:`title`,rules:[...e.$formRules.required,...e.$formRules.isNotChinese,...e.$formRules.trimNoEmptyNotChinese]},{default:K(()=>[R(`div`,null,[B(d,{modelValue:i.modal.edit.row.title,"onUpdate:modelValue":t[13]||=e=>i.modal.edit.row.title=e,class:`title-input`,placeholder:`输入商品标题`,"show-word-limit":``,maxlength:`128`,style:{width:`700px`}},{append:K(()=>[R(`div`,Pt,[B(te,{content:`首字母大写`},{default:K(()=>[B(E,{name:`iconshouzimudaxie`,size:`20`,onClick:J(a.handleUpperCase,[`stop`])},null,8,[`onClick`])]),_:1})])]),_:1},8,[`modelValue`])]),t[74]||=R(`p`,{class:`tipText`},` 请输入最长不超过128个字符的商品标题,不能出现中文,注意!输入奇怪的字符会影响权重 `,-1)]),_:1},8,[`rules`])]),_:1},8,[`model`])):I(``,!0)]),_:1},8,[`modelValue`]),B(T,{modelValue:i.modal.tonghang.show,"onUpdate:modelValue":t[19]||=e=>i.modal.tonghang.show=e,title:`输入网址`,onOnCancel:t[20]||=e=>i.modal.tonghang.show=!1},{footer:K(()=>[R(`div`,Lt,[B(u,{onClick:t[18]||=J(e=>i.modal.tonghang.show=!1,[`stop`])},{default:K(()=>[...t[77]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,onClick:J(a.handleTonghang2,[`stop`])},{default:K(()=>[...t[78]||=[z(` 确定 `,-1)]]),_:1},8,[`onClick`])])]),default:K(()=>[R(`div`,It,[B(d,{modelValue:i.modal.tonghang.link,"onUpdate:modelValue":t[17]||=e=>
1i.modal.tonghang.link=e,placeholder:`输入同行店铺首页网址 如https://xx.aliexpress.com/xx`,style:{width:`400px`}},null,8,[`modelValue`])])]),_:1},8,[`modelValue`]),B(T,{modelValue:i.modal.tonghang.show2,"onUpdate:modelValue":t[27]||=e=>i.modal.tonghang.show2=e,title:`选择`,onOnCancel:t[28]||=e=>i.modal.tonghang.show2=!1},{footer:K(()=>[R(`div`,zt,[B(u,{onClick:t[26]||=J(e=>i.modal.tonghang.show2=!1,[`stop`])},{default:K(()=>[...t[84]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,loading:i.loading.tonghang3,onClick:J(a.handleTonghang3,[`stop`])},{default:K(()=>[i.loading.tonghang3?(V(),L(`span`,Vt,`处理中...`)):(V(),L(`span`,Bt,`确定`))]),_:1},8,[`loading`,`onClick`])])]),default:K(()=>[B(w,{ref:`tonghangForm`,model:i.modal.tonghang,"label-width":150},{default:K(()=>[B(C,{label:`采集方式`},{default:K(()=>[B(O,{modelValue:i.modal.tonghang.model,"onUpdate:modelValue":t[21]||=e=>i.modal.tonghang.model=e},{default:K(()=>[B(D,{label:`group`},{default:K(()=>[...t[79]||=[z(` 按产品分组采集 `,-1)]]),_:1}),B(D,{label:`keyword`},{default:K(()=>[...t[80]||=[z(` 按关键词搜索采集 `,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),q(B(C,{prop:`group`,label:`产品分组:`},{default:K(()=>[B(v,{modelValue:i.modal.tonghang.group,"onUpdate:modelValue":t[22]||=e=>i.modal.tonghang.group=e,data:i.modal.tonghang.groupList,placeholder:`选择要采集的分组`,style:{width:`240px`}},null,8,[`modelValue`,`data`])]),_:1},512),[[G,i.modal.tonghang.model==`group`]]),q(B(C,{prop:`keyword`,label:`关键词:`},{default:K(()=>[B(d,{modelValue:i.modal.tonghang.keyword,"onUpdate:modelValue":t[23]||=e=>i.modal.tonghang.keyword=e,placeholder:`输入要搜索的关键词`,style:{width:`240px`}},null,8,[`modelValue`])]),_:1},512),[[G,i.modal.tonghang.model==`keyword`]]),B(C,{label:`采集页数范围:`},{default:K(()=>[R(`div`,Rt,[t[81]||=R(`span`,null,`从`,-1),B(C,{prop:`start`,rules:[...e.$formRules.required,...e.$formRules.isFei0Integer]},{default:K(()=>[B(d,{modelValue:i.modal.tonghang.start,"onUpdate:modelValue":t[24]||=e=>i.modal.tonghang.start=e,style:{width:`60px`}},null,8,[`modelValue`])]),_:1},8,[`rules`]),t[82]||=R(`span`,null,`页 到 第`,-1),B(C,{prop:`end`,rules:[...e.$formRules.required,...e.$formRules.isFei0Integer]},{default:K(()=>[B(d,{modelValue:i.modal.tonghang.end,"onUpdate:modelValue":t[25]||=e=>i.modal.tonghang.end=e,style:{width:`60px`}},null,8,[`modelValue`])]),_:1},8,[`rules`]),t[83]||=R(`span`,null,`页`,-1)])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`modelValue`]),B(T,{modelValue:i.modal.shouye.show,"onUpdate:modelValue":t[31]||=e=>i.modal.shouye.show=e,title:`输入搜索关键词`,onOnCancel:t[32]||=e=>i.modal.shouye.show=!1},{footer:K(()=>[R(`div`,Z,[B(u,{onClick:t[30]||=J(e=>i.modal.shouye.show=!1,[`stop`])},{default:K(()=>[...t[85]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,onClick:J(a.handleShouye2,[`stop`])},{default:K(()=>[...t[86]||=[z(` 确定 `,-1)]]),_:1},8,[`onClick`])])]),default:K(()=>[R(`div`,Ht,[B(d,{modelValue:i.modal.shouye.keyword,"onUpdate:modelValue":t[29]||=e=>i.modal.shouye.keyword=e,placeholder:`请输入关键词`,style:{width:`400px`}},null,8,[`modelValue`])])]),_:1},8,[`modelValue`]),B(T,{modelValue:i.modal.shouye.show2,"onUpdate:modelValue":t[37]||=e=>i.modal.shouye.show2=e,title:`选择`,onOnCancel:t[38]||=e=>i.modal.shouye.show2=!1},{footer:K(()=>[R(`div`,Wt,[B(u,{onClick:t[36]||=J(e=>i.modal.shouye.show2=!1,[`stop`])},{default:K(()=>[...t[90]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,loading:i.loading.shouye3,onClick:J(a.handleShouye3,[`stop`])},{default:K(()=>[i.loading.shouye3?(V(),L(`span`,Kt,`处理中...`)):(V(),L(`span`,Gt,`确定`))]),_:1},8,[`loading`,`onClick`])])]),default:K(()=>[B(w,{ref:`shouyeForm`,model:i.modal.shouye,"label-width":150},{default:K(()=>[B(C,{prop:`category`,label:`选择产品类目:`},{default:K(()=>[B(l,{modelValue:i.modal.shouye.category,"onUpdate:modelValue":t[33]||=e=>i.modal.shouye.category=e,style:{width:`240px`}},{default:K(()=>[(V(!0),L(P,null,H(i.modal.shouye.categoryList,(e,t)=>(V(),F(c,{key:t,value:e.catId},{default:K(()=>[z(W(e.cnName),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`])]),_:1}),B(C,{label:`采集页数范围:`},{default:K(()=>[R(`div`,Ut,[t[87]||=R(`span`,null,`从`,-1),B(C,{prop:`start`,rules:[...e.$formRules.required,...e.$formRules.isFei0Integer]},{default:K(()=>[B(d,{modelValue:i.modal.shouye.start,"onUpdate:modelValue":t[34]||=e=>i.modal.shouye.start=e,style:{width:`60px`}},null,8,[`modelValue`])]),_:1},8,[`rules`]),t[88]||=R(`span`,null,`页 到 第`,-1),B(C,{prop:`end`,rules:[...e.$formRules.required,...e.$formRules.isFei0Integer]},{default:K(()=>[B(d,{modelValue:i.modal.shouye.end,"onUpdate:modelValue":t[35]||=e=>i.modal.shouye.end=e,style:{width:`60px`}},null,8,[`modelValue`])]),_:1},8,[`rules`]),t[89]||=R(`span`,null,`页`,-1)])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`modelValue`]),B(T,{modelValue:i.modal.lianjie.show,"onUpdate:modelValue":t[41]||=e=>i.modal.lianjie.show=e,title:`按商品链接采集商品标题`,onOnCancel:t[42]||=e=>i.modal.lianjie.show=!1},{footer:K(()=>[R(`div`,Jt,[B(u,{onClick:t[40]||=J(e=>i.modal.lianjie.show=!1,[`stop`])},{default:K(()=>[...t[91]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,loading:i.loading.lianjie2,onClick:J(a.handleLianjie2,[`stop`])},{default:K(()=>[i.loading.lianjie2?(V(),L(`span`,Xt,`处理中...`)):(V(),L(`span`,Yt,`确定`))]),_:1},8,[`loading`,`onClick`])])]),default:K(()=>[R(`div`,qt,[B(d,{modelValue:i.modal.lianjie.links,"onUpdate:modelValue":t[39]||=e=>i.modal.lianjie.links=e,type:`textarea`,placeholder:`输入商品链接网址,一行一个`,rows:6},null,8,[`modelValue`])])]),_:1},8,[`modelValue`]),B(k,{modelValue:i.modal.group.show,"onUpdate:modelValue":t[43]||=e=>i.modal.group.show=e,onOk:t[44]||=e=>a.init()},null,8,[`modelValue`]),B(A,{modelValue:i.modal.batch.show,"onUpdate:modelValue":t[45]||=e=>i.modal.batch.show=e,onEdit:a.handleBatchEdit2},null,8,[`modelValue`,`onEdit`]),B(ne,{modelValue:i.modal.titleMake.show,"onUpdate:modelValue":t[46]||=e=>i.modal.titleMake.show=e,storeId:i.search.store,onOk:a.handleMakeTitle},null,8,[`modelValue`,`storeId`,`onOk`]),B(T,{modelValue:i.modal.import.show,"onUpdate:modelValue":t[49]||=e=>i.modal.import.show=e,title:`导入标题`,width:`600`,onOnCancel:t[50]||=e=>i.modal.import.show=!1},{footer:K(()=>[R(`div`,$t,[B(u,{onClick:t[48]||=J(e=>i.modal.import.show=!1,[`stop`])},{default:K(()=>[...t[94]||=[z(` 取消 `,-1)]]),_:1}),B(u,{type:`primary`,loading:i.modal.import.loading,onClick:J(a.handleImport3,[`stop`])},{default:K(()=>[i.modal.import.loading?(V(),L(`span`,tn,`处理中...(`+W(i.modal.import.process)+`)`,1)):(V(),L(`span`,en,`确定`))]),_:1},8,[`loading`,`onClick`])])]),default:K(()=>[R(`div`,Zt,[R(`div`,Qt,[B(u,{type:`primary`,onClick:J(a.handleImport1,[`stop`])},{default:K(()=>[...t[92]||=[z(` 选择导入文件 `,-1)]]),_:1},8,[`onClick`]),t[93]||=R(`a`,{href:`https://res.dianxiaobao.net/00/00/00/feitian/%E6%A0%87%E9%A2%98%E5%BA%93/dxb_ae_title_keyword.xls`,target:`_blank`,style:{"margin-left":`60px`}},`下载模板`,-1)]),R(`div`,null,[R(`span`,null,W(i.modal.import.file?i.modal.import.file.name:`您没有选中任何文件`),1),R(`input`,{ref:`uploadInput`,type:`file`,accept:`.csv, application/vnd.ms-excel,application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,multiple:!1,style:{width:`0`,height:`0`,opacity:`0`},onChange:t[47]||=(...e)=>a.handleImport2&&a.handleImport2(...e)},null,544)])])]),_:1},8,[`modelValue`])]),_:1})}var Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Z,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,Q;function $(){return($=e((()=>{s(),X(),Ae(),_(),se(),ae(),w(),x(),u(),n(),g(),Ee(),D(),A(),o(),b(),l(),c(),m(),Ct={name:`TitleStore`,components:{AeTitleBatchEditModal:a,EditInput:r,AeTitleMakeToolModal:Y,TitleGroupModal:h,TitleBatchEditModal:je},mixins:[ee,y],props:{isImportModal:{type:Boolean,default:!1}},data(){return{search:{store:``,group:``,groupList:[],keyword:``},loading:{page:!0,fanyi:!1,tonghang3:!1,shouye3:!1,lianjie2:!1},modal:{hand:{show:!1,title:``},group:{show:!1},batch:{show:!1},edit:{show:!1,row:null},titleMake:{show:!1},tonghang:{show:!1,show2:!1,link:``,model:`group`,group:[],groupList:[],keyword:``,start:1,end:1},shouye:{show:!1,show2:!1,keyword:``,category:``,categoryList:[],start:1,end:1},lianjie:{show:!1,links:``},import:{show:!1,file:null,loading:!1,process:`0%`}},move:{group:[],groupList:[]},sort:{value:{},data:[]},table:{column:[{type:`selection`,width:60,align:`center`},{title:`商品标题`,key:`title`,slot:`title`,align:`left`,minWidth:400}
1,{title:`时间`,slot:`time`,align:`center`,width:220},{title:`标题来源`,key:`wordsSourceName`,align:`center`},{title:`修改`,slot:`action`,align:`center`}],data:[],page:{current:1,total:0,pageSize:this.$config.pageSize}},translate:{current:0,total:0}}},computed:{...Me(`user_store`,[`currentShopId`,`shopList`]),titleLength(){let e=this.modal.hand.title.trim().replace(/\n{2,}/g,`
2`).split(/\n/g);return this.modal.hand.title.trim().length==0?0:e.length}},mounted(){this.search.store=this.currentShopId,this.$bus.on(`wordTranslateProcess`,this.wordTranslateProcessListen),this.init()},beforeUnmount(){this.$bus.off(`wordTranslateProcess`,this.wordTranslateProcessListen)},methods:{wordTranslateProcessListen(e){let{totalNumber:t,currNumber:n,failNumber:r,succNumber:i}=e.content;this.translate.total=t,this.translate.current=n,n===t&&(this.$Modal.success({title:`翻译完成,成功:${i},失败:${r}`}),this.getTableData(),this.loading.fanyi=!1)},handleWordOptimize(){let e=this.$refs.table.getSelection();if(e.length==0){C.error(`请先选择数据~`);return}_e({storeId:this.search.store,ids:e.map(e=>e.id).join(`,`)}).then(e=>{this.getTableData(),C.success(`优化完成`)})},handleImport(){this.modal.import.show=!0,this.modal.import.file=null,this.$refs.uploadInput.value=``},handleImport1(){let e=document.createEvent(`MouseEvents`);e.initEvent(`click`,!0,!1),this.$refs.uploadInput.dispatchEvent(e)},async handleImport2(e){let t=e.target.files;t.length<1||(this.modal.import.file=t[0])},async handleImport3(){if(!this.modal.import.file){C.error(`请先上传文件`);return}this.modal.import.loading=!0,this.modal.import.process=`0%`;let e=await i({suffix:`.${this.modal.import.file.name.match(/[^.]*$/)?.[0]||`xls`}`,file:this.modal.import.file,maxSize:10,expired:7});ue({groupId:this.search.group,storeId:this.search.store,url:e.url}).then(e=>{this.getLoopProcess({code:e,interval:10,callback:this.progressAction})}).catch(e=>{this.modal.import.loading=!1})},progressAction(e){let{succNum:t,failNum:n,totalNum:r}=e,i=t*1+n*1;this.modal.import.process=`${Math.floor(i/r*100)}%`,i>=r&&(this.modal.import.show=!1,this.modal.import.loading=!1,this.getTableDataFrom1(),C.success(`导入完成,成功:${t},失败:${n}`))},async init(){this.move.group=[],this.move.groupList=this.shopList.map(e=>Object.assign(e,{label:e.storeName,value:e.id,storeId:e.id,isStore:!0,loading:!1,isLeaf:!1,children:[]}));let e=await Se();this.sort.data=e.map(e=>({type:e.code,name:e.name})),await this.getGroupList(),this.getTableDataFrom1()},async changeStore(e){this.search.store=e,await this.getGroupList(),this.getTableDataFrom1()},handleMakeTitle(e){let t=e.data,n=[],r=t[0].isUpper,i=1;t[0].component.forEach(e=>{let t={};e.type==`yingxiaoci`&&(t.marketIds=e.selected),e.type==`shuxingci`&&(t.properties=e.selected),e.type==`hexinci`&&(t.keywordIds=e.selected),e.type==`hotWord`&&(t.hotWords=e.selected),e.type.match(/^diy/)&&(t[`custom${i++}`]=e.selected),n.push(t)}),me({storeId:this.search.store,groupId:this.search.group,isUpper:r,jsonTitle:JSON.stringify(n)}).then(e=>{this.modal.titleMake.show=!1,C.success(`生成成功~`),this.getTableDataFrom1()})},handleAdd(e){if(!this.search.group){C.error(`请选择分组~`);return}e==`hand`&&(this.modal.hand.show=!0),e==`auto`&&(this.modal.titleMake.show=!0),e==`tonghang`&&(this.modal.tonghang.show=!0),e==`shouye`&&(this.modal.shouye.show=!0),e==`lianjie`&&(this.modal.lianjie.show=!0)},handleTonghang2(){let e=this.modal.tonghang.link.trim();if(e==``){C.error(`请输入网址~`);return}let t=O.detect(e);if(!t.success){C.error(t.msg);return}if(t.data.ptType!=`smt`){C.error(`只支持速卖通店铺`);return}if(t.data.pageType!=`storeIndex`){C.error(`只支持店铺首页`);return}this.modal.tonghang.urlInfo=t.data.location,this.modal.tonghang.storeId=e.match(/\/(\d+)\??/)[1];let n=`https://www.aliexpress.com/store/productGroupsAjax.htm?storeId=${this.modal.tonghang.storeId}`;Ce(n).then(e=>{this.modal.tonghang.show=!1,this.modal.tonghang.show2=!0,this.modal.tonghang.groupList=e}).catch(e=>{C.error(e.message||e)})},handleTonghang3(){this.$refs.tonghangForm.validate(async e=>{if(!e){C.error(`请正确输入`);return}let{model:t,group:n,keyword:r,start:i,end:a,storeId:o}=this.modal.tonghang;if(i=Number.parseInt(i),a=Number.parseInt(a),t==`group`&&n.length==0){C.error(`请选择分组~`);return}if(t==`keyword`&&r==``){C.error(`请输入关键词~`);return}if(a<i){C.error(`页数由小到大输入~`);return}this.loading.tonghang3=!0;let s=this.modal.tonghang.urlInfo,c=n[n.length-1].match(/(\d+(_\d+)?)\.html/)[1].split(`_`),l=c[c.length-1],u=[],{ownerMemberId:d,storeId:f}=await Te(s.href);for(let e=i;e<=a;e++)try{let n=await we({productGroupId:t===`group`?l:``,searchText:t===`group`?``:r,currentPage:e,sellerId:d,storeNumber:f});u.push(...n.filter(e=>e.title))}catch{}for(let e=0;e<u.length;e++)try{await M({storeId:this.search.store,groupId:this.search.group,titleName:(u[e].title||``).trim()})}catch{}this.loading.tonghang3=!1,this.modal.tonghang.show=!1,this.modal.tonghang.show2=!1,C.success(`获取成功`),this.getTableDataFrom1()})},async handleShouye2(){if(this.modal.shouye.keyword.trim()==``){C.error(`请输入搜索关键词~`);return}let e=await ie({cateId:0});this.modal.shouye.categoryList=e,this.modal.shouye.show=!1,this.modal.shouye.show2=!0}
2,handleShouye3(){this.$refs.shouyeForm.validate(async e=>{if(!e){C.error(`请正确输入`);return}let{keyword:t,category:n,start:r,end:i}=this.modal.shouye;if(r=Number.parseInt(r),i=Number.parseInt(i),i<r){C.error(`页数由小到大输入~`);return}this.loading.shouye3=!0;let a=[];for(let e=r;e<=i;e++){let r=await De({catId:n,SearchText:t,page:e});a.push(...r)}for(let e=0;e<a.length;e++)try{await M({storeId:this.search.store,groupId:this.search.group,titleName:(a[e].title?.displayTitle||a[e].productName||``).trim()})}catch{}this.loading.shouye3=!1,this.modal.shouye.show=!1,this.modal.shouye.show2=!1,C.success(`获取成功`),this.getTableDataFrom1()})},async handleLianjie2(){let e=this.modal.lianjie.links.trim();if(e==``){C.error(`请输入商品链接~`);return}if(e=e.replace(/\n{1,}/g,`
3`).split(/\n/),e.length==0){C.error(`请输入商品链接网址`);return}if(e.every((e,t,n)=>{let r=O.detect(e);return!(!r.success||r.data.ptType!=`smt`||r.data.pageType!=`detail`)})==0){C.error(`请输入正确的速卖通商品链接`);return}this.loading.lianjie2=!0;let t=await p(e,!1);for(let e of t){if(!e.title)throw Error();await M({storeId:this.search.store,groupId:this.search.group,titleName:(e.title||``).trim()})}this.loading.lianjie2=!1,this.modal.lianjie.show=!1,C.success(`获取成功`),this.getTableDataFrom1()},handleAddHand2(){this.$refs.handForm.validate(async e=>{if(!e){C.error(`请正确输入`);return}if(this.titleLength==0){C.error(`请输入标题~`);return}let{title:t}=this.modal.hand;t=t.trim().replace(/\n{2,}/g,`
4`).split(`
5`);for(let e=0;e<t.length;e++)await ve({storeId:this.search.store,groupId:this.search.group,titleName:t[e]});this.modal.hand.show=!1,C.success(`添加完成~`),this.getTableData()})},handleDelWord(){let e=this.$refs.table.getSelection();if(e.length==0){C.error(`请先选择数据~`);return}S(()=>{pe({storeId:this.search.store,groupId:this.search.group,ids:e.map(e=>e.id).join(`,`)}).then(e=>{C.success(`删除成功~`),this.getTableData()})})},handleBatchEdit(){if(this.$refs.table.getSelection().length==0){C.error(`请先选择数据~`);return}this.modal.batch.show=!0},handleBatchEdit2(e){let t=this.$refs.table.getSelection();if(t.length==0){C.error(`请先选择数据~`);return}be({storeId:this.search.store,groupId:this.search.group,ids:t.map(e=>e.id).join(`,`),title:JSON.stringify({title:e.title}),isUpper:e.title.shouzimu}).then(e=>{C.success(`修改完成~`),this.getTableData()})},handleEdit(e){this.modal.edit.show=!0,this.modal.edit.row={...e}},handleEdit2(){this.$refs.editForm.validate(async e=>{if(!e){C.error(`请正确输入`);return}ye({storeId:this.search.store,groupId:this.search.group,id:this.modal.edit.row.id,title:this.modal.edit.row.title}).then(e=>{this.modal.edit.show=!1,this.getTableData(),C.success(`修改完成~`)})})},handleMoveWord(e){let t=this.$refs.table.getSelection();if(t.length==0){C.error(`请先选择数据~`),this.move.group=[];return}he({storeId:this.search.store,groupId:this.search.group,ids:t.map(e=>e.id).join(`,`),moveToStoreId:e[0],moveToGroupId:e.length>1?e[e.length-1]:``}).then(e=>{this.move.group=[],C.success(`移动成功~`),this.getTableData()}).catch(e=>{this.move.group=[]})},handleFanyi(){let e=this.$refs.table.getSelection();if(e.length==0){C.error(`请先选择数据~`);return}this.loading.fanyi=!0,this.translate.total=0,this.translate.current=0,ge({storeId:this.search.store,groupId:this.search.group,ids:e.map(e=>e.id).join(`,`)}).catch(e=>{this.loading.fanyi=!1})},handleFilter(e){let t=this.$refs.table.getSelection();if(t.length==0){C.error(`请先选择数据~`);return}if(e===`wordOptimize`){this.handleWordOptimize();return}de({storeId:this.search.store,groupId:this.search.group,ids:t.map(e=>e.id).join(`,`),cusType:e==`weijinci`?1:2}).then(t=>{let n=e==`weijinci`?`违禁词`:`品牌词`;Array.isArray(t)&&t.length?t.forEach(e=>{let t=this.table.data.find(t=>t.id==e.id);t.markWord=e.markWord,t.banTitleTypeName=t.markWord.filter(e=>t.title.includes(e)).join(`、`),t.banTitleTypeName&&=`${n}:${t.banTitleTypeName}`}):C.success(`恭喜,未检测到${e==`weijinci`?`违禁词`:`品牌词`}`)})},handleExport(){let e=this.$refs.table.getSelection();if(e.length==0){C.error(`请先选择数据~`);return}let t={storeId:this.search.store,groupId:this.search.group};t.ids=e.map(e=>e.id).join(`,`),this.handleExportAndTip(()=>fe(t))},handleExportAll(){let e={storeId:this.search.store,groupId:this.search.group};this.handleExportAndTip(()=>fe(e))},handleBatchMore(e){e===`export`&&this.handleExport(),e===`exportAll`&&this.handleExportAll(),e===`import`&&this.handleImport()},getGroupList(){return new Promise((e,t)=>
5{oe({storeId:this.search.store,parentId:void 0}).then(t=>{this.search.groupList=t||[],this.search.group=t.length?t[0].id:``,e()}).catch(e=>{t(e.message||e)})})},getGroupList2(e,t){function n(e,t){return e.length&&e.forEach(e=>{e.label=e.name,e.value=e.id,e.storeId=t,e.isLeaf&&(e.loading=!1,e.children=[])}),e}e.loading=!0,oe({storeId:e.storeId,parentId:e.isStore?void 0:e.value}).then(r=>{e.loading=!1,Array.isArray(r)&&r.length?e.children=n(r,e.storeId):e.children.push({label:`全部`,value:0}),t&&t()})},handleUpperCase(){this.modal.edit.row.title=ne.upCase(this.modal.edit.row.title)},getTableDataFrom1(){this.table.page.current=1,this.getTableData()},getTableData(){let e={1:`自建`,2:`智能生成`,3:`同行`};this.loading.page=!0,xe({storeId:this.search.store,groupId:this.search.group,searchField:`keywordEn`,searchValue:this.search.keyword,sortField:this.sort.value._selected,sortType:this.sort.value._sortType,pageCurrent:this.table.page.current,pageSize:this.table.page.pageSize}).then(async t=>{let n=t.records||[];if(n.forEach(t=>{t.wordsSourceName=e[t.wordsSource]}),n.length){let e=await le({storeId:this.search.store,keywords:JSON.stringify(n.map(e=>e.title))});for(let t of n)t.isInProdName=e[t.title]?.isT||!1}this.table.data=n,this.table.page.total=t.total,this.loading.page=!1}).catch(e=>{this.loading.page=!1})}}},wt={key:0},Tt={key:1},Et={style:{"white-space":`pre-wrap`}},Dt={key:0},Ot={src:`https://img.alicdn.com/tfs/TB1E7ydYYr1gK0jSZFDXXb9yVXa-90-90.png`,style:{width:`25px`}},kt=[`onClick`],At=[`onClick`],jt={style:{"margin-bottom":`5px`}},Mt={class:`ml10`,style:{color:`var(--warn-color)`}},Nt={class:`flex-row-end flex-row-margin`},Pt={style:{display:`flex`,"align-items":`center`}},Ft={class:`flex-row-end flex-row-margin`},It={class:`flex-row-center`,style:{padding:`20px 0`}},Lt={class:`flex-row-end flex-row-margin`},Rt={class:`flex-center flex-row-margin`},zt={class:`flex-row-end flex-row-margin`},Bt={key:0},Vt={key:1},Ht={class:`flex-row-center`,style:{padding:`20px 0`}},Z={class:`flex-row-end flex-row-margin`},Ut={class:`flex-center flex-row-margin`},Wt={class:`flex-row-end flex-row-margin`},Gt={key:0},Kt={key:1},qt={style:{}},Jt={class:`flex-row-end flex-row-margin`},Yt={key:0},Xt={key:1},Zt={class:`padding:0 50px`},Qt={class:`flex-row-margin`,style:{padding:`10px 0`}},$t={class:`flex-row-end flex-row-margin`},en={key:0},tn={key:1},Q=E(Ct,[[`render`,St],[`__scopeId`,`data-v-c2a58e20`]])})))()}export{X as a,Y as i,xt as n,$ as r,Q as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.