|
|
+import{d as N,ay as V,r as _,ai as n,aq as k,P as D,o as A,c as B,U as t,O as i,a as o,T as m,S as T,aF as q,aG as U}from"./vue.adf17aba.js";import{c as E}from"./index.0545ebb5.js";import{u as F}from"./index.b098562c.js";import{_ as G}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const L=l=>(q("data-v-651a6b26"),l=l(),U(),l),O={style:{height:"525px"}},P=L(()=>o("hr",{style:{"margin-top":"5px"}},null,-1)),R={style:{display:"flex","align-items":"center"}},j={style:{"margin-right":"8px","line-height":"normal"}},z={class:"double-line"},H={class:"data-color",style:{"margin-right":"8px"}},J=N({__name:"SingleSearch",emits:["updateSelected"],setup(l,{emit:u}){const h=F(),{profile:f}=V(h),c=_(!1),r=_(""),p=_("");function g(){v()}async function v(){c.value=!0;try{const a={profile_id:f.value.profile_id,asin:r.value},s=await E(a);p.value=s.data}catch(a){console.log("error:",a)}finally{c.value=!1}}const y=u;function S(a){y("updateSelected",a)}return(a,s)=>{const w=n("el-input"),x=n("el-image"),b=n("el-tooltip"),d=n("el-table-column"),C=n("el-table"),I=k("loading");return D((A(),B("div",O,[t(w,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=e=>r.value=e),onChange:g,placeholder:"按ASIN搜索"},null,8,["modelValue"]),P,t(C,{data:p.value,"show-header":!1,onSelectionChange:S,height:"450",style:{width:"100%"}},{default:i(()=>[t(d,{prop:"date",label:"商品"},{default:i(e=>[o("div",R,[o("div",j,[t(x,{class:"img-box",src:e.row.image_link},null,8,["src"])]),o("div",null,[t(b,{class:"box-item",effect:"dark",content:e.row.title,placement:"top"},{default:i(()=>[o("div",z,m(e.row.title?e.row.title:"--"),1)]),_:2},1032,["content"]),o("span",null,[T("ASIN: "),o("span",H,m(e.row.asin?e.row.asin:"--"),1)])])])]),_:1}),t(d,{prop:"name",label:"Name",width:"80"},{default:i(e=>[]),_:1}),t(d,{type:"selection",width:"55"})]),_:1},8,["data"])])),[[I,c.value]])}}});const Z=G(J,[["__scopeId","data-v-651a6b26"]]);export{Z as default};
|