PageSourceSearch

https://www.swugs.ynu.edu.cn/_nuxt/_id_.36b62dc7.js

js ynu.edu.cn collected 2026-10-02 03:15:02 UTC 3,687 bytes, 1 lines download raw bytes

1import{h as T,r as U,bz as $,z as h,j as C,e as V,f as a,w as d,a as N,o as y,l as r,bI as j,bT as E,u as l,c4 as S,k as z,b2 as B,K as O,a4 as A,bK as D}from"./entry.8b9b9593.js";import{_ as F}from"./nuxt-link.e56c3b14.js";import{_ as K}from"./QBanner.a4137b36.js";import{_ as R}from"./QForm.c1f9af29.js";import{u as m}from"./useAuthFetch.a00bdef4.js";const I={class:"row items-center justify-between"},L={class:"text-h6 row items-center"},Q={class:"row items-center"},G={class:"q-pa-md column q-gutter-y-sm"},H={class:"row items-center q-gutter-x-md"},J={class:"row items-start q-gutter-x-md"},M={class:"row items-start q-gutter-x-md"},te={__name:"[id]",async setup(P){let u,p;const i=N(),_=T(),f=U(null),o=$({seq:-new Date().getTime(),reportTime:"",reporter:"",reporterTitle:"",reporterUnit:"",address:"",title:"",link:""}),b=h(()=>!!o.id);if(_.params.id!=="$")try{const s=([u,p]=C(()=>m("/api/admin/lecture",{query:{action:"load",id:_.params.id}})),u=await u,p(),u);Object.assign(o,s)}catch(s){i.notifyError(s)}function v(){f.value.validate().then(async s=>{if(s)try{const t=await m("/api/admin/lecture",{method:"post",query:{action:"save",id:o.id},body:o});Object.assign(o,t),i.notifySuccess()}catch(t){i.notifyError(t)}})}function x(){i.dialog({title:"确认",message:"确认要删除本条信息?",cancel:!0,persistent:!0}).onOk(async()=>{try{await m("/api/admin/lecture",{method:"post",query:{action:"remove",id:o.id}}),i.notifySuccess(),B("/admin/lecture/list")}catch(s){i.notifyError(s)}})}return(s,t)=>{const c=O,g=F,q=A,w=K,n=D,k=R;return y(),V("div",null,[a(w,{class:"bg-grey-2 text-primary"},{default:d(()=>[r("div",I,[r("div",L,[a(g,{href:"/admin/lecture/list"},{default:d(()=>[a(c,{icon:"arrow_back_ios",round:"",flat:"",class:"q-mr-lg"})]),_:1}),j(" 西联讲坛 - "+E(l(b)?"编辑":"新增")+" 报告 ",1)]),r("div",Q,[a(c,{icon:"save",color:"blue",flat:"",label:"保存",onClick:t[0]||(t[0]=e=>v())}),l(b)?(y(),V(S,{key:0},[a(c,{icon:"close",color:"deep-orange",flat:"",label:"删除",onClick:t[1]||(t[1]=e=>x())}),a(q,{vertical:"",inset:""})],64)):z("",!0)])])]),_:1}),a(k,{ref_key:"form",ref:f,autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false"},{default:d(()=>[r("div",G,[r("div",H,[a(n,{class:"col",modelValue:l(o).title,"onUpdate:modelValue":t[2]||(t[2]=e=>l(o).title=e),label:"报告题目","label-color":"teal",maxlength:"255",rules:[e=>!!e||"此字段必填"]},null,8,["modelValue","rules"])]),r("div",J,[a(n,{class:"col",modelValue:l(o).reporter,"onUpdate:modelValue":t[3]||(t[3]=e=>l(o).reporter=e),label:"报告人","label-color":"teal",rules:[e=>!!e||"此字段必填"]},null,8,["modelValue","rules"]),a(n,{class:"col",modelValue:l(o).reporterTitle,"onUpdate:modelValue":t[4]||(t[4]=e=>l(o).reporterTitle=e),label:"人才称号","label-color":"teal"},null,8,["modelValue"])]),r("div",null,[a(n,{class:"col",modelValue:l(o).reporterUnit,"onUpdate:modelValue":t[5]||(t[5]=e=>l(o).reporterUnit=e),label:"报告人单位","label-color":"teal",rules:[e=>!!e||"此字段必填"]},null,8,["modelValue","rules"])]),r("div",M,[a(n,{class:"col",modelValue:l(o).reportTime,"onUpdate:modelValue":t[6]||(t[6]=e=>l(o).reportTime=e),label:"时间","label-color":"teal",rules:[e=>!!e||"此字段必填"]},null,8,["modelValue","rules"]),a(n,{class:"col",modelValue:l(o).address,"onUpdate:modelValue":t[7]||(t[7]=e=>l(o).address=e),"label-color":"teal",label:"地点",rules:[e=>!!e||"此字段必填"]},null,8,["modelValue","rules"])]),r("div",null,[a(n,{class:"col",modelValue:l(o).link,"onUpdate:modelValue":t[8]||(t[8]=e=>l(o).link=e),label:"新闻链接","label-color":"teal"},null,8,["modelValue"])])])]),_:1},512)])}}};export{te 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.