提交 a89bb2f4 编写于 作者: 刘英杰's avatar 刘英杰

v20250218 保存

上级 147a5e05
流水线 #33164 已通过 ,包含阶段
in 1 minute 和 24 second
import{C as e,a as s,G as t,u as n,S as o,w as a}from"./index-BzxfHB2h.js";import{u as r}from"./vue-router-C1-PZ1tM.js";import{g as c}from"./getApiCommonGetCurrentUserRoleList-WPE6XeCC.js";import{F as i,o as p,z as u,H as m,j as k,a9 as l,C as _}from"./vant-kpzePHT3.js";import"./axios-X0xcXtXw.js";const y={style:{display:"flex","justify-content":"center","margin-top":"50%"}},f={__name:"SSO",setup(f){const g=r(),v=()=>{t().then((e=>{s.set("oneWeekARange-user-info",JSON.stringify(e.response)),c().then((s=>{n().setUserInfo({...e.response,roleList:s.response,currentRole:s.response[0]}),g.replace({name:"responsibleForFilingRecords"})}))}))},R=async()=>{({asc:async()=>{let e={token:g.currentRoute.value.query.token};await(async e=>{const t=await o(e);void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())})(e)},first:async()=>{let e={sign:g.currentRoute.value.query.sign,code:g.currentRoute.value.query.code,timestamp:g.currentRoute.value.query.timestamp};await(async e=>{const t=await a(e);void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())})(e)},test:async()=>{const t=await e();void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())}})[g.currentRoute.value.query.type]()};return i((()=>{R()})),(e,s)=>{const t=l;return p(),u("div",y,[m(t,{size:"38px",color:"#1989fa",vertical:""},{default:k((()=>s[0]||(s[0]=[_(" 登录中")]))),_:1})])}}};export{f as default}; import{C as e,a as s,G as t,u as n,S as o,w as a}from"./index-DiB-r4xg.js";import{u as r}from"./vue-router-D04o8yi4.js";import{g as c}from"./getApiCommonGetCurrentUserRoleList-DFnSPunm.js";import{F as i,o as p,z as u,H as m,j as k,a9 as l,C as _}from"./vant-DDIt_bHk.js";import"./axios-X0xcXtXw.js";const y={style:{display:"flex","justify-content":"center","margin-top":"50%"}},f={__name:"SSO",setup(f){const g=r(),v=()=>{t().then((e=>{s.set("oneWeekARange-user-info",JSON.stringify(e.response)),c().then((s=>{n().setUserInfo({...e.response,roleList:s.response,currentRole:s.response[0]}),g.replace({name:"responsibleForFilingRecords"})}))}))},R=async()=>{({asc:async()=>{let e={token:g.currentRoute.value.query.token};await(async e=>{const t=await o(e);void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())})(e)},first:async()=>{let e={sign:g.currentRoute.value.query.sign,code:g.currentRoute.value.query.code,timestamp:g.currentRoute.value.query.timestamp};await(async e=>{const t=await a(e);void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())})(e)},test:async()=>{const t=await e();void 0===t?await g.replace({name:"403"}):""!==t.response.access_token.token_content&&(s.set("oneWeekARange-management-token",t.response.access_token.token_content),s.set("time",t.response.access_token.expires),v())}})[g.currentRoute.value.query.type]()};return i((()=>{R()})),(e,s)=>{const t=l;return p(),u("div",y,[m(t,{size:"38px",color:"#1989fa",vertical:""},{default:k((()=>s[0]||(s[0]=[_(" 登录中")]))),_:1})])}}};export{f as default};
import{C as e,a as t,G as s,u as n,b as a,S as o,w as r}from"./index-BzxfHB2h.js";import{u as c}from"./vue-router-C1-PZ1tM.js";import{g as i}from"./getApiCommonGetCurrentUserRoleList-WPE6XeCC.js";import{F as u,o as p,z as m,H as k,j as l,a9 as y,C as _}from"./vant-kpzePHT3.js";import"./axios-X0xcXtXw.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},d={__name:"SSOInfo",setup(d){const g=c(),v=()=>{s().then((e=>{t.set("oneWeekARange-user-info",JSON.stringify(e.response)),i().then((t=>{n().setUserInfo({...e.response,roleList:t.response,currentRole:t.response[0]}),a().setDayViewItemData({userid:n().getUserInfo().user_id,date:g.currentRoute.value.query.date}),g.push({path:"/dayDetails",query:{pushMessage:1}})}))}))},R=async()=>{({asc:async()=>{let e={token:g.currentRoute.value.query.token};await(async e=>{const s=await o(e);void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())})(e)},first:async()=>{let e={sign:g.currentRoute.value.query.sign,code:g.currentRoute.value.query.code,timestamp:g.currentRoute.value.query.timestamp};await(async e=>{const s=await r(e);void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())})(e)},test:async()=>{const s=await e();void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())}})[g.currentRoute.value.query.type]()};return u((()=>{R()})),(e,t)=>{const s=y;return p(),m("div",f,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:l((()=>t[0]||(t[0]=[_(" 登录中")]))),_:1})])}}};export{d as default}; import{C as e,a as t,G as s,u as n,b as a,S as o,w as r}from"./index-DiB-r4xg.js";import{u as c}from"./vue-router-D04o8yi4.js";import{g as i}from"./getApiCommonGetCurrentUserRoleList-DFnSPunm.js";import{F as u,o as p,z as m,H as k,j as l,a9 as y,C as _}from"./vant-DDIt_bHk.js";import"./axios-X0xcXtXw.js";const f={style:{display:"flex","justify-content":"center","margin-top":"50%"}},d={__name:"SSOInfo",setup(d){const g=c(),v=()=>{s().then((e=>{t.set("oneWeekARange-user-info",JSON.stringify(e.response)),i().then((t=>{n().setUserInfo({...e.response,roleList:t.response,currentRole:t.response[0]}),a().setDayViewItemData({userid:n().getUserInfo().user_id,date:g.currentRoute.value.query.date}),g.push({path:"/dayDetails",query:{pushMessage:1}})}))}))},R=async()=>{({asc:async()=>{let e={token:g.currentRoute.value.query.token};await(async e=>{const s=await o(e);void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())})(e)},first:async()=>{let e={sign:g.currentRoute.value.query.sign,code:g.currentRoute.value.query.code,timestamp:g.currentRoute.value.query.timestamp};await(async e=>{const s=await r(e);void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())})(e)},test:async()=>{const s=await e();void 0===s?await g.replace({name:"403"}):""!==s.response.access_token.token_content&&(t.set("oneWeekARange-management-token",s.response.access_token.token_content),t.set("time",s.response.access_token.expires),v())}})[g.currentRoute.value.query.type]()};return u((()=>{R()})),(e,t)=>{const s=y;return p(),m("div",f,[k(s,{size:"38px",color:"#1989fa",vertical:""},{default:l((()=>t[0]||(t[0]=[_(" 登录中")]))),_:1})])}}};export{d as default};
import{c as e}from"./index-BzxfHB2h.js";function r(r){return e.get("/api/Common/GetCurrentUserRoleList",r)}export{r as g}; import{c as e}from"./index-DiB-r4xg.js";function r(r){return e.get("/api/Common/GetCurrentUserRoleList",r)}export{r as g};
import"./index-BzxfHB2h.js";import{u as t}from"./vue-router-C1-PZ1tM.js";import{o as e,z as a,H as r,K as s,a7 as n,a5 as o}from"./vant-kpzePHT3.js";import"./axios-X0xcXtXw.js";const i=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,m={__name:"index",setup(m){const l=t(),u=()=>l.back();return(t,m)=>{const l=n,p=o;return e(),a(s,null,[r(l,{"left-text":"返回","left-arrow":"",onClickLeft:u}),r(p,{image:i,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{m as default}; import"./index-DiB-r4xg.js";import{u as t}from"./vue-router-D04o8yi4.js";import{o as e,z as a,H as r,K as s,a7 as n,a5 as o}from"./vant-DDIt_bHk.js";import"./axios-X0xcXtXw.js";const i=""+new URL("warning-zGbTxtDs.png",import.meta.url).href,m={__name:"index",setup(m){const l=t(),u=()=>l.back();return(t,m)=>{const l=n,p=o;return e(),a(s,null,[r(l,{"left-text":"返回","left-arrow":"",onClickLeft:u}),r(p,{image:i,style:{width:"100%",height:"100%"},description:"用户无权限,请重新登录!"},null,8,["image"])],64)}}};export{m as default};
import{j as s}from"./index-BzxfHB2h.js";import{r as o,F as a,o as l,z as t,H as e,A as i}from"./vant-kpzePHT3.js";import"./vue-router-C1-PZ1tM.js";import"./axios-X0xcXtXw.js";const r={class:"publicContainerNoPadding"},n={__name:"index",setup:n=>(o({fillInWork:{show:!1}}),a((()=>{document.title="系统配置"})),(o,a)=>{const n=s;return l(),t("div",r,[e(n,{path:"/welcome",title:"分管填报记录查看"}),a[0]||(a[0]=i("div",{class:"w-full h-[10px]"},null,-1)),a[1]||(a[1]=i("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])})};export{n as default}; import{j as s}from"./index-DiB-r4xg.js";import{r as o,F as a,o as l,z as t,H as e,A as i}from"./vant-DDIt_bHk.js";import"./vue-router-D04o8yi4.js";import"./axios-X0xcXtXw.js";const r={class:"publicContainerNoPadding"},n={__name:"index",setup:n=>(o({fillInWork:{show:!1}}),a((()=>{document.title="系统配置"})),(o,a)=>{const n=s;return l(),t("div",r,[e(n,{path:"/welcome",title:"分管填报记录查看"}),a[0]||(a[0]=i("div",{class:"w-full h-[10px]"},null,-1)),a[1]||(a[1]=i("div",{class:"w-full h-[calc(100%-56px)] p-2 overflow-y-auto"},null,-1))])})};export{n as default};
import{c as s,i as e,h as a,j as o}from"./index-BzxfHB2h.js";import{b as l,r as t,F as n,o as r,z as i,H as f,A as u,j as p,f as c,C as d,a0 as m,a2 as w}from"./vant-kpzePHT3.js";import"./vue-router-C1-PZ1tM.js";import"./axios-X0xcXtXw.js";const h={class:"publicContainerNoPadding"},y={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},v={class:"w-full h-full flex items-center justify-between p-3"},k={__name:"index",setup(k){const x=l(),j=t({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function C(){j.fillInWork.show=!0}function _(){x.value.save()}function b(s){j.fillInWork.show=s}function I(){var e;s.get("/api/Common/GetAheadWriteSwitch",e).then((s=>{j.role=s.response}))}return n((()=>{I()})),(s,l)=>{const t=o,n=e,k=w,I=a;return r(),i("div",h,[f(t,{path:"/welcome",title:"工作安排填报"}),u("div",y,[f(n,{ref_key:"saveRef",ref:x,show:j.fillInWork.show,onCloseDateComponent:b},null,8,["show"])]),f(I,null,{default:p((()=>[u("div",v,[1==j.role?(r(),c(k,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:C},{default:p((()=>l[0]||(l[0]=[d(" 添加日期 ")]))),_:1})):m("",!0),f(k,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:_},{default:p((()=>l[1]||(l[1]=[d("保存")]))),_:1})])])),_:1})])}}};export{k as default}; import{c as s,i as e,h as a,j as o}from"./index-DiB-r4xg.js";import{b as l,r as t,F as n,o as r,z as i,H as f,A as u,j as p,f as c,C as d,a0 as m,a2 as w}from"./vant-DDIt_bHk.js";import"./vue-router-D04o8yi4.js";import"./axios-X0xcXtXw.js";const h={class:"publicContainerNoPadding"},y={class:"w-full h-[calc(100%-120px)] p-3 py-2 overflow-y-auto"},v={class:"w-full h-full flex items-center justify-between p-3"},k={__name:"index",setup(k){const x=l(),j=t({role:"0",data:{myFillingIn:[]},fillInWork:{show:!1}});function C(){j.fillInWork.show=!0}function _(){x.value.save()}function b(s){j.fillInWork.show=s}function I(){var e;s.get("/api/Common/GetAheadWriteSwitch",e).then((s=>{j.role=s.response}))}return n((()=>{I()})),(s,l)=>{const t=o,n=e,k=w,I=a;return r(),i("div",h,[f(t,{path:"/welcome",title:"工作安排填报"}),u("div",y,[f(n,{ref_key:"saveRef",ref:x,show:j.fillInWork.show,onCloseDateComponent:b},null,8,["show"])]),f(I,null,{default:p((()=>[u("div",v,[1==j.role?(r(),c(k,{key:0,style:{"border-radius":"8px"},plain:"",type:"primary",class:"w-[28%]",onClick:C},{default:p((()=>l[0]||(l[0]=[d(" 添加日期 ")]))),_:1})):m("",!0),f(k,{style:{"border-radius":"8px"},type:"primary",class:"w-[70%]",onClick:_},{default:p((()=>l[1]||(l[1]=[d("保存")]))),_:1})])])),_:1})])}}};export{k as default};
此差异已折叠。
import{_ as r}from"./index-BzxfHB2h.js";import"./vant-kpzePHT3.js";import"./vue-router-C1-PZ1tM.js";import"./axios-X0xcXtXw.js";const t=r({},[["render",function(r,t){return null}]]);export{t as default}; import{_ as r}from"./index-DiB-r4xg.js";import"./vant-DDIt_bHk.js";import"./vue-router-D04o8yi4.js";import"./axios-X0xcXtXw.js";const t=r({},[["render",function(r,t){return null}]]);export{t as default};
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
import{c as e,_ as t}from"./index-BzxfHB2h.js";import{b3 as i,o as a,z as r,A as s,f as c,j as n,a0 as l,B as d,a5 as o}from"./vant-kpzePHT3.js";function p(t,i){const a={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:a,...i})}function f(t,i){const a={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:a,...i})}const h={class:"file-preview"},u={style:{height:"100%"}},m={key:1},y=["src"],v={key:2},g=["src"],w={key:3},x=["src"],b={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},j={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},k=["src"],O={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},P={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},T=["src"],L=["src"],_={key:7,style:{height:"100%"}},S=["src"],G={key:8},D={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};const I=t({name:"filePreview",components:{},props:{fileObj:{type:Object,default:()=>({})}},data:()=>({url:window.location.origin+"/fileReader/?file="+window.location.origin,src:"http://static.shanhuxueyuan.com/test6.docx",renderedLoading:!0,previewType:"",errorShow:!1}),mounted(){this.previewType=this.getPreviewType()},methods:{getPreviewType(){let e="";switch(this.fileObj.file_name.split(".").pop()){case"doc":case"docx":case"DOC":case"DOCX":e="docx";break;case"xls":case"xlsx":case"XLS":case"XLSX":e="excel";break;case"ppt":case"pptx":case"PPT":case"PPTX":e="ppt";break;case"pdf":case"PDF":e="pdf";break;case"jpg":case"jpeg":case"png":case"gif":case"JPG":case"JPEG":case"PNG":case"GIF":e="image";break;case"mp4":case"ogg":case"webm":e="video";break;case"mp3":case"wav":e="audio";break;case"txt":e="txt";break;default:e="custom",this.renderedLoading=!1}return e},rendered(){this.renderedLoading=!1},errorHandler(e){this.errorShow=!0},clickDownload(e,t){const i=document.createElement("a");i.href=e,i.download=t,i.target="_blank",i.dispatchEvent(new MouseEvent("click"))},viewImage(e){i([e])}}},[["render",function(e,t,i,p,f,I){const X=o;return a(),r("div",h,[s("div",u,[f.errorShow?(a(),c(X,{key:0},{description:n((()=>t[6]||(t[6]=[s("p",null,"加载失败,请尝试下载预览",-1)]))),_:1})):l("",!0),"docx"==f.previewType?(a(),r("div",m,[s("iframe",{style:{height:"calc(100vh - 80px)"},src:f.url+i.fileObj.path,height:"100%",width:"100%"},null,8,y)])):l("",!0),"excel"==f.previewType?(a(),r("div",v,[s("iframe",{style:{height:"calc(100vh - 80px)"},src:f.url+i.fileObj.path,height:"100%",width:"100%"},null,8,g)])):l("",!0),"pdf"==f.previewType?(a(),r("div",w,[s("iframe",{src:f.url+i.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,x)])):l("",!0),"video"==f.previewType?(a(),r("div",b,[s("div",j,d(i.fileObj.file_name),1),s("video",{src:i.fileObj.path,controls:"",onLoadeddata:t[0]||(t[0]=(...e)=>I.rendered&&I.rendered(...e)),style:{width:"80%"}},t[7]||(t[7]=[s("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,k)])):l("",!0),"audio"==f.previewType?(a(),r("div",O,[s("div",P,d(i.fileObj.file_name),1),s("audio",{src:i.fileObj.path,controls:"",onLoadeddata:t[1]||(t[1]=(...e)=>I.rendered&&I.rendered(...e))},t[8]||(t[8]=[s("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,T)])):l("",!0),"image"==f.previewType?(a(),r("div",{key:6,onClick:t[3]||(t[3]=e=>I.viewImage(i.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[s("img",{src:i.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:t[2]||(t[2]=(...e)=>I.rendered&&I.rendered(...e))},null,40,L)])):l("",!0),"txt"==f.previewType?(a(),r("div",_,[s("iframe",{src:i.fileObj.path,width:"100%",height:"100%",onLoad:t[4]||(t[4]=(...e)=>I.rendered&&I.rendered(...e))},t[9]||(t[9]=[s("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,S)])):l("",!0),"custom"==f.previewType?(a(),r("div",G,[s("div",D,[s("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:t[5]||(t[5]=e=>I.clickDownload(i.fileObj.path,i.fileObj.file_name))},d(i.fileObj.file_name),1),t[10]||(t[10]=s("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):l("",!0)])])}],["__scopeId","data-v-f13c766f"]]);export{f as a,p as g,I as v}; import{c as e,_ as t}from"./index-DiB-r4xg.js";import{b2 as i,o as a,z as r,A as s,f as c,j as n,a0 as l,B as d,a5 as o}from"./vant-DDIt_bHk.js";function p(t,i){const a={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleInfo",{params:a,...i})}function f(t,i){const a={userid:t.userid,date:t.date};return e.get("/api/PlanSchedule/GetPlanScheduleTrackList",{params:a,...i})}const h={class:"file-preview"},u={style:{height:"100%"}},m={key:1},y=["src"],v={key:2},g=["src"],w={key:3},x=["src"],b={key:4,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},j={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},k=["src"],O={key:5,style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},P={style:{"margin-bottom":"10px","font-size":"20px",color:"#000"}},T=["src"],L=["src"],_={key:7,style:{height:"100%"}},S=["src"],G={key:8},D={style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}};const I=t({name:"filePreview",components:{},props:{fileObj:{type:Object,default:()=>({})}},data:()=>({url:window.location.origin+"/fileReader/?file="+window.location.origin,src:"http://static.shanhuxueyuan.com/test6.docx",renderedLoading:!0,previewType:"",errorShow:!1}),mounted(){this.previewType=this.getPreviewType()},methods:{getPreviewType(){let e="";switch(this.fileObj.file_name.split(".").pop()){case"doc":case"docx":case"DOC":case"DOCX":e="docx";break;case"xls":case"xlsx":case"XLS":case"XLSX":e="excel";break;case"ppt":case"pptx":case"PPT":case"PPTX":e="ppt";break;case"pdf":case"PDF":e="pdf";break;case"jpg":case"jpeg":case"png":case"gif":case"JPG":case"JPEG":case"PNG":case"GIF":e="image";break;case"mp4":case"ogg":case"webm":e="video";break;case"mp3":case"wav":e="audio";break;case"txt":e="txt";break;default:e="custom",this.renderedLoading=!1}return e},rendered(){this.renderedLoading=!1},errorHandler(e){this.errorShow=!0},clickDownload(e,t){const i=document.createElement("a");i.href=e,i.download=t,i.target="_blank",i.dispatchEvent(new MouseEvent("click"))},viewImage(e){i([e])}}},[["render",function(e,t,i,p,f,I){const X=o;return a(),r("div",h,[s("div",u,[f.errorShow?(a(),c(X,{key:0},{description:n((()=>t[6]||(t[6]=[s("p",null,"加载失败,请尝试下载预览",-1)]))),_:1})):l("",!0),"docx"==f.previewType?(a(),r("div",m,[s("iframe",{style:{height:"calc(100vh - 80px)"},src:f.url+i.fileObj.path,height:"100%",width:"100%"},null,8,y)])):l("",!0),"excel"==f.previewType?(a(),r("div",v,[s("iframe",{style:{height:"calc(100vh - 80px)"},src:f.url+i.fileObj.path,height:"100%",width:"100%"},null,8,g)])):l("",!0),"pdf"==f.previewType?(a(),r("div",w,[s("iframe",{src:f.url+i.fileObj.path,style:{height:"calc(100vh - 80px)"},height:"100%",width:"100%"},null,8,x)])):l("",!0),"video"==f.previewType?(a(),r("div",b,[s("div",j,d(i.fileObj.file_name),1),s("video",{src:i.fileObj.path,controls:"",onLoadeddata:t[0]||(t[0]=(...e)=>I.rendered&&I.rendered(...e)),style:{width:"80%"}},t[7]||(t[7]=[s("p",null,"抱歉,您的浏览器不支持视频标签。",-1)]),40,k)])):l("",!0),"audio"==f.previewType?(a(),r("div",O,[s("div",P,d(i.fileObj.file_name),1),s("audio",{src:i.fileObj.path,controls:"",onLoadeddata:t[1]||(t[1]=(...e)=>I.rendered&&I.rendered(...e))},t[8]||(t[8]=[s("p",null,"抱歉,您的浏览器不支持音频标签。",-1)]),40,T)])):l("",!0),"image"==f.previewType?(a(),r("div",{key:6,onClick:t[3]||(t[3]=e=>I.viewImage(i.fileObj.path)),style:{display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}},[s("img",{src:i.fileObj.path,alt:"",style:{"max-width":"100%","max-height":"100%"},onLoad:t[2]||(t[2]=(...e)=>I.rendered&&I.rendered(...e))},null,40,L)])):l("",!0),"txt"==f.previewType?(a(),r("div",_,[s("iframe",{src:i.fileObj.path,width:"100%",height:"100%",onLoad:t[4]||(t[4]=(...e)=>I.rendered&&I.rendered(...e))},t[9]||(t[9]=[s("p",null,"抱歉,您的浏览器不支持在页面中显示 txt 文件。",-1)]),40,S)])):l("",!0),"custom"==f.previewType?(a(),r("div",G,[s("div",D,[s("a",{style:{"margin-bottom":"10px","font-size":"20px"},onClick:t[5]||(t[5]=e=>I.clickDownload(i.fileObj.path,i.fileObj.file_name))},d(i.fileObj.file_name),1),t[10]||(t[10]=s("p",null,"抱歉,暂不支持预览该类型文件,请点击下载后自行预览。",-1))])])):l("",!0)])])}],["__scopeId","data-v-f13c766f"]]);export{f as a,p as g,I as v};
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0"> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=0">
<title></title> <title></title>
<script type="module" crossorigin src="./assets/index-BzxfHB2h.js"></script> <script type="module" crossorigin src="./assets/index-DiB-r4xg.js"></script>
<link rel="modulepreload" crossorigin href="./assets/vant-kpzePHT3.js"> <link rel="modulepreload" crossorigin href="./assets/vant-DDIt_bHk.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-C1-PZ1tM.js"> <link rel="modulepreload" crossorigin href="./assets/vue-router-D04o8yi4.js">
<link rel="modulepreload" crossorigin href="./assets/axios-X0xcXtXw.js"> <link rel="modulepreload" crossorigin href="./assets/axios-X0xcXtXw.js">
<link rel="stylesheet" crossorigin href="./assets/index-B2D601j5.css"> <link rel="stylesheet" crossorigin href="./assets/index-CKqohZ27.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
</div> </div>
<!--content--> <!--content-->
<div class="w-full h-[calc(100%-120px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto"> <div class="w-full h-[calc(100%-120px)] z-40 pt-3 bg-[#F3F4F6] relative overflow-y-auto">
<van-notice-bar color="#1989fa" background="#ecf9ff" left-icon="info-o"> <!-- <van-notice-bar color="#1989fa" background="#ecf9ff" left-icon="info-o">
温馨提示:新增加的日程,需要提交后才能上传附件哦。 温馨提示:新增加的日程,需要提交后才能上传附件哦。
</van-notice-bar> </van-notice-bar> -->
<van-form ref="form" class=""> <van-form ref="form" class="">
<!--开始时间--> <!--开始时间-->
<van-cell-group> <van-cell-group>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
</van-cell-group> </van-cell-group>
<!-- 附件上传 --> <!-- 附件上传 -->
<van-cell-group class="mt-3"> <van-cell-group class="mt-3">
<van-field v-if="init.schedule.add.formData.id" label="附件上传" name="uploader"> <van-field label="附件上传" name="uploader">
<template #input> <template #input>
<!-- 拍照--> <!-- 拍照-->
<!-- <van-image <!-- <van-image
...@@ -240,7 +240,8 @@ ...@@ -240,7 +240,8 @@
</div> </div>
</div> </div>
</van-popup> </van-popup>
<div class="container1 "> <div class="container1 ">
<!--content--> <!--content-->
<div class="w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]"> <div class="w-screen h-screen overflow-y-auto relative bg-[#F4F6F7]">
...@@ -248,7 +249,7 @@ ...@@ -248,7 +249,7 @@
<div class="w-full h-[108px] bg-white z-50 sticky top-0"> <div class="w-full h-[108px] bg-white z-50 sticky top-0">
<childrenIndexHeader path="/responsibleForFilingRecords" title="日程管理"> <childrenIndexHeader path="/responsibleForFilingRecords" title="日程管理">
<template #importFile> <template #importFile>
<span @click="init.operatingTrajectory.show = true" class="text-blue-500">操作轨迹</span> <span @click="getOperatingTrajectory();init.operatingTrajectory.show = true" class="text-blue-500">操作轨迹</span>
</template> </template>
</childrenIndexHeader> </childrenIndexHeader>
<div class="w-full h-[54px]"> <div class="w-full h-[54px]">
...@@ -435,6 +436,7 @@ const init = reactive({ ...@@ -435,6 +436,7 @@ const init = reactive({
} }
}) })
//返回
const back = () => { const back = () => {
if (init.formData.pushMessage !== void 0) { if (init.formData.pushMessage !== void 0) {
//消息推送 进入 需返回 主页 //消息推送 进入 需返回 主页
...@@ -445,7 +447,9 @@ const back = () => { ...@@ -445,7 +447,9 @@ const back = () => {
router.back(); router.back();
} }
} }
//切换tab
const tabChange = (e) => { const tabChange = (e) => {
active.value = e active.value = e
} }
const activityPeopleCard = ref(''); const activityPeopleCard = ref('');
...@@ -508,6 +512,8 @@ function submit(item, typeKey) { ...@@ -508,6 +512,8 @@ function submit(item, typeKey) {
} }
init.scheduleEndTime.value = res.response.end; init.scheduleEndTime.value = res.response.end;
init.scheduleBeginTime.value = res.response.begin; init.scheduleBeginTime.value = res.response.begin;
init.schedule.add.show = false;
} }
return res return res
}) })
...@@ -535,6 +541,8 @@ function submit(item, typeKey) { ...@@ -535,6 +541,8 @@ function submit(item, typeKey) {
begin: res.response.begin.split(':'), begin: res.response.begin.split(':'),
end: res.response.end.split(':'), end: res.response.end.split(':'),
} }
init.schedule.add.show = false;
} }
return res return res
// this.getScheduleDetails({leader_id:this.schedule.userid,date:this.schedule.date}) // this.getScheduleDetails({leader_id:this.schedule.userid,date:this.schedule.date})
...@@ -547,20 +555,28 @@ function submit(item, typeKey) { ...@@ -547,20 +555,28 @@ function submit(item, typeKey) {
//附件删除 //附件删除
function fileDelete(fileList, file, fileIndex, formItem) { function fileDelete(fileList, file, fileIndex, formItem) {
hooks.publicConfirm(() => { if (formItem.id){
hooks.myEncapsulationFunction(() => { hooks.publicConfirm(() => {
return api.postApiPlanSchedulePlanScheduleFileDel({
id: formItem.id,
file_id: file.id,
}).then(res => {
if (res.code === 1) {
fileList.splice(fileIndex, 1)
}
return res
})
}, false, '正在删除...')
hooks.myEncapsulationFunction(() => {
return api.postApiPlanSchedulePlanScheduleFileDel({
id: formItem.id,
file_id: file.id,
}).then(res => {
if (res.code === 1) {
fileList.splice(fileIndex, 1)
}
return res
}) })
}, false, '正在删除...')
})
}else{
// 未提交的情况,直接从数组中删除
fileList.splice(fileIndex, 1)
}
} }
...@@ -576,7 +592,8 @@ function beforeUpload(file, item) { ...@@ -576,7 +592,8 @@ function beforeUpload(file, item) {
init.schedule.add.formData.file_list.push(res.response) init.schedule.add.formData.file_list.push(res.response)
// 保存附件 // 保存附件
api.postApiPlanSchedulePlanScheduleSave( if(item.id){
api.postApiPlanSchedulePlanScheduleSave(
{ {
...item, ...item,
"begin": item.begin.join(':'), "begin": item.begin.join(':'),
...@@ -598,6 +615,7 @@ function beforeUpload(file, item) { ...@@ -598,6 +615,7 @@ function beforeUpload(file, item) {
} }
return res return res
}) })
}
// 保存附件 // 保存附件
return res return res
...@@ -655,11 +673,14 @@ function addSchedule() { ...@@ -655,11 +673,14 @@ function addSchedule() {
"userid": "", "userid": "",
"date": "", "date": "",
'timeRange': ['09:41:00', '12:00:00'], 'timeRange': ['09:41:00', '12:00:00'],
" ": [], "begin": [],
"end": [], "end": [],
"content": "", "content": "",
"file_list": [] "file_list": []
} }
console.log(init.schedule.add.formData);
// 显示弹窗
init.schedule.add.show = true init.schedule.add.show = true
} }
......
...@@ -59,7 +59,16 @@ ...@@ -59,7 +59,16 @@
</div> </div>
<div v-if="init.switchView.show" class="w-full ccFlex absolute bottom-0 " <div v-if="init.switchView.show" class="w-full ccFlex absolute bottom-0 "
style="color: #b0b0b0;font-size: 10px">Build 1.0.0 - 250218 1.0.2 >
<span
style="text-align: center;
color: #b1b1b1;
font-size: 12px;
width: 100%;
"
>
V1.0.1.250205-250220
</span>
</div> </div>
<div v-if="!init.switchView.show"> <div v-if="!init.switchView.show">
<!-- 周视图 --> <!-- 周视图 -->
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或