PageSourceSearch

https://historyecho.ai/_nuxt/CzY2ZGJk.js

js historyecho.ai collected 2026-10-01 23:50:12 UTC 4,587 bytes, 1 lines download raw bytes

1import{d as U,q as $,G as q,c as K,o as N,h as a,f as u,u as x,M as i,t as o,au as l,n as p,B as w,U as g}from"#entry";import{n as _}from"./D3_jEl54.js";import{_ as b}from"./BVztqLS-.js";import"./PmiSjZVF.js";import"./1HFvyq7q.js";const T={class:"flex justify-start items-center gap-1"},M=["title"],P={class:"w-[60px] text-sssm text-blue-300 text-center"},j={class:"w-[60px] text-sssm text-blue-300 text-center"},D={class:"w-[60px] text-sssm text-green-300 text-center"},z={class:"w-[60px] text-sssm text-green-300 text-center"},A={class:"flex items-center gap-1"},F=U({__name:"one_my_person",props:{bind:{},entity_id:{}},emits:["update:bind"],setup(f,{emit:y}){const t=f,r=$({...t.bind});q(()=>t.bind,n=>{r.value={...n}},{deep:!0});const m=y,v=n=>n===1?"text-green-500":n===2?"text-yellow-500":n===3?"text-orange-500":"text-gray-400",k=n=>n===null?"text-gray-400":n===2?"text-green-500":n===1?"text-yellow-500":"text-red-500",h=n=>n===1?"text-green-500":n===2?"text-yellow-500":n===3?"text-orange-500":"text-gray-400",C=n=>n===1?"1":n===0?"0":n.toString(),V=n=>n===1?"bg-blue-500":n===0?"bg-red-500":"bg-green-500",d=async(n,e)=>{e===""&&(e=null);var s=await w.post_request("/myperson_change_value/",{id:r.value.id,tag:n,value:e,entity_id:t.entity_id});if(s.success&&s.data&&s.data.info){const c=_(s.data.info);n==="state"&&(r.value.state=c.state),m("update:bind",c)}},S=()=>{t.bind.baike_id?g.open_new_tab(`https://baike.baidu.com/item/${t.bind.person_name}/${t.bind.baike_id}`):t.bind.person_name&&g.open_new_tab(`https://baike.baidu.com/item/${t.bind.person_name}`)},B=async()=>{const e=(r.value.state??0)===0?1:0;if(!r.value.id){await d("state",e);return}await w.post_request("/myperson_change_state/",{id:r.value.id,value:e,entity_id:t.entity_id});const s=_({...t.bind,state:e});r.value.state=s.state,m("update:bind",s)};return(n,e)=>(N(),K("div",{class:"py-2",onClick:e[11]||(e[11]=i(()=>{},["stop"]))},[a("div",T,[u(x(b),{modelValue:t.bind.person_id,"onUpdate:modelValue":e[0]||(e[0]=s=>t.bind.person_id=s),type:"text",class:"w-[120px] h-8 text-sssm placeholder:text-gray-300",placeholder:"person_id",onChange:e[1]||(e[1]=s=>d("person_id",t.bind.person_id))},null,8,["modelValue"]),a("span",{class:"w-[120px] text-sssm text-gray-400 overflow-hidden text-ellipsis whitespace-nowrap cursor-pointer hover:text-blue-500",title:t.bind.person_name,onClick:i(S,["stop"])},o(t.bind.person_name),9,M),u(x(b),{"model-value":t.bind.baike_id??"",type:"number",class:"w-[80px] h-8 text-sssm placeholder:text-gray-300 [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",placeholder:"baike_id","onUpdate:modelValue":e[2]||(e[2]=s=>d("baike_id",s===""?null:Number(s))),onKeydown:[e[3]||(e[3]=l(i(()=>{},["prevent"]),["up"])),e[4]||(e[4]=l(i(()=>{},["prevent"]),["down"]))]},null,8,["model-value"]),a("span",{class:p(["w-[40px] text-sssm text-center",v(t.bind.same_name)])},o(t.bind.same_name),3),a("span",P,o(t.bind.figure_year_start||"-"),1),a("span",j,o(t.bind.figure_year_end||"-"),1),a("span",D,o(t.bind.person_year_start||"-"),1),a("span",z,o(t.bind.person_year_end||"-"),1),a("span",{class:p(["w-[40px] text-sssm text-center",k(t.bind.same_year)])},o(t.bind.same_year??"-"),3),u(x(b),{"model-value":t.bind.index??"",type:"number",class:"w-[50px] h-8 text-sssm placeholder:text-gray-300 [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",placeholder:"index","onUpdate:modelValue":e[5]||(e[5]=s=>d("index",s===""?null:Number(s))),onKeydown:[e[6]||(e[6]=l(i(()=>{},["prevent"]),["up"])),e[7]||(e[7]=l(i(()=>{},["prevent"]),["down"]))]},null,8,["model-value"]),a("span",{class:p(["w-[40px] text-sssm text-center",h(t.bind.degree)])},o(t.bind.degree),3),a("div",A,[a("div",{class:p(["text-xs w-6 h-6 rounded-full text-white cursor-pointer flex items-center justify-center",V(r.value.state??0)]),onClick:i(B,["stop"]),title:"点击切换 0/1"},o(C(r.value.state??0)),3),u(x(b),{"model-value":r.value.state??"",type:"number",class:p(["w-[50px] h-8 text-sssm placeholder:text-gray-300 [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none text-center",(r.value.state??0)>=5?"bg-green-500 text-white":(r.value.state??0)>=1?"bg-blue-500 text-white":"bg-red-500 text-white"]),placeholder:"state","onUpdate:modelValue":e[8]||(e[8]=s=>d("state",s===""?null:Number(s))),onKeydown:[e[9]||(e[9]=l(i(()=>{},["prevent"]),["up"])),e[10]||(e[10]=l(i(()=>{},["prevent"]),["down"]))],title:"输入任意值(如 5)"},null,8,["model-value","class"])])])]))}});
1export{F as default};

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.