build[vite.config.js package.json]:新增打包配置项 新增terser依赖 chore[config.js]:修改开发环境baseUrl feat[api/pestis/pestis.js]:新增【智能孢子仪】处理状态接口 perf[src/views/index.vue]:优化部分代码,使其符合vue3编码规范,增强代码规范性与健壮性 feat[src/views/index.vue]:新增了有关【智能孢子仪】的新功能

This commit is contained in:
YangBin 2024-10-11 09:11:46 +08:00
parent df8a4e7b98
commit 869d84292c
436 changed files with 2858 additions and 21013 deletions

View File

@ -1 +0,0 @@
import{_ as h,r as f,d as n,o as m,c as b,e as t,w as o,n as r,l as e,f as g,v as k,q as x,s as w}from"./index.9f28707e.js";const v="/assets/401.a61ddb94.gif";const a=s=>(x("data-v-980b8710"),s=s(),w(),s),y={class:"errPage-container"},I=a(()=>e("h1",{class:"text-jumbo text-ginormous"}," 401\u9519\u8BEF! ",-1)),B=a(()=>e("h2",null,"\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF01",-1)),C=a(()=>e("h6",null,"\u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6CA1\u6709\u8BBF\u95EE\u6743\u9650\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u975E\u6CD5\u64CD\u4F5C\uFF01\u60A8\u53EF\u4EE5\u8FD4\u56DE\u4E3B\u9875\u9762",-1)),G={class:"list-unstyled"},N={class:"link-type"},S=["src"],V={__name:"401",setup(s){let{proxy:c}=k();const l=f(v+"?"+ +new Date);function d(){c.$route.query.noGoBack?c.$router.push({path:"/"}):c.$router.go(-1)}return($,q)=>{const u=n("el-button"),i=n("router-link"),_=n("el-col"),p=n("el-row");return m(),b("div",y,[t(u,{icon:"arrow-left",class:"pan-back-btn",onClick:d},{default:o(()=>[r(" \u8FD4\u56DE ")]),_:1}),t(p,null,{default:o(()=>[t(_,{span:12},{default:o(()=>[I,B,C,e("ul",G,[e("li",N,[t(i,{to:"/"},{default:o(()=>[r(" \u56DE\u9996\u9875 ")]),_:1})])])]),_:1}),t(_,{span:12},{default:o(()=>[e("img",{src:g(l),width:"313",height:"428",alt:"Girl has dropped her ice cream."},null,8,S)]),_:1})]),_:1})])}}},D=h(V,[["__scopeId","data-v-980b8710"]]);export{D as default};

Binary file not shown.

1
dist/assets/401.70086cd9.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as a,r as s,d as t,o as e,c as l,e as r,w as n,n as o,l as u,f as c,v as d,q as i,s as p}from"./index.e5c8b0d6.js";const f=a=>(i("data-v-980b8710"),a=a(),p(),a),h={class:"errPage-container"},_=f((()=>u("h1",{class:"text-jumbo text-ginormous"}," 401错误! ",-1))),b=f((()=>u("h2",null,"您没有访问权限!",-1))),m=f((()=>u("h6",null,"对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面",-1))),g={class:"list-unstyled"},k={class:"link-type"},w=["src"],x=a({__name:"401",setup(a){let{proxy:i}=d();const p=s("/assets/401.a61ddb94.gif?"+ +new Date);function f(){i.$route.query.noGoBack?i.$router.push({path:"/"}):i.$router.go(-1)}return(a,s)=>{const d=t("el-button"),i=t("router-link"),x=t("el-col"),v=t("el-row");return e(),l("div",h,[r(d,{icon:"arrow-left",class:"pan-back-btn",onClick:f},{default:n((()=>[o(" 返回 ")])),_:1}),r(v,null,{default:n((()=>[r(x,{span:12},{default:n((()=>[_,b,m,u("ul",g,[u("li",k,[r(i,{to:"/"},{default:n((()=>[o(" 回首页 ")])),_:1})])])])),_:1}),r(x,{span:12},{default:n((()=>[u("img",{src:c(p),width:"313",height:"428",alt:"Girl has dropped her ice cream."},null,8,w)])),_:1})])),_:1})])}}},[["__scopeId","data-v-980b8710"]]);export{x as default};

BIN
dist/assets/401.70086cd9.js.gz vendored Normal file

Binary file not shown.

1
dist/assets/404.0562204c.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as s,D as a,d as t,o as l,c,l as i,A as d,f as e,e as _,w as n,F as r,n as o,q as p,s as v}from"./index.e5c8b0d6.js";const b="/assets/404_cloud.98e7ac66.png",h=s=>(p("data-v-5945313b"),s=s(),v(),s),u={class:"wscn-http404-container"},m={class:"wscn-http404"},g=r('<div class="pic-404" data-v-5945313b><img class="pic-404__parent" src="/assets/404.538aa4d7.png" alt="404" data-v-5945313b><img class="pic-404__child left" src="'+b+'" alt="404" data-v-5945313b><img class="pic-404__child mid" src="'+b+'" alt="404" data-v-5945313b><img class="pic-404__child right" src="'+b+'" alt="404" data-v-5945313b></div>',1),f={class:"bullshit"},w=h((()=>i("div",{class:"bullshit__oops"}," 404错误! ",-1))),x={class:"bullshit__headline"},j=h((()=>i("div",{class:"bullshit__info"}," 对不起您正在寻找的页面不存在。尝试检查URL的错误然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 ",-1))),k=s({__name:"404",setup(s){let r=a((()=>"找不到网页!"));return(s,a)=>{const p=t("router-link");return l(),c("div",u,[i("div",m,[g,i("div",f,[w,i("div",x,d(e(r)),1),j,_(p,{to:"/index",class:"bullshit__return-home"},{default:n((()=>[o(" 返回首页 ")])),_:1})])])])}}},[["__scopeId","data-v-5945313b"]]);export{k as default};

BIN
dist/assets/404.0562204c.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as o,D as i,d as l,o as d,c as n,l as s,A as r,f as p,e as h,w as u,F as v,n as m,q as b,s as g}from"./index.9f28707e.js";const f="/assets/404.538aa4d7.png",e="/assets/404_cloud.98e7ac66.png";const a=t=>(b("data-v-5945313b"),t=t(),g(),t),x={class:"wscn-http404-container"},w={class:"wscn-http404"},S=v('<div class="pic-404" data-v-5945313b><img class="pic-404__parent" src="'+f+'" alt="404" data-v-5945313b><img class="pic-404__child left" src="'+e+'" alt="404" data-v-5945313b><img class="pic-404__child mid" src="'+e+'" alt="404" data-v-5945313b><img class="pic-404__child right" src="'+e+'" alt="404" data-v-5945313b></div>',1),k={class:"bullshit"},I=a(()=>s("div",{class:"bullshit__oops"}," 404\u9519\u8BEF! ",-1)),N={class:"bullshit__headline"},V=a(()=>s("div",{class:"bullshit__info"}," \u5BF9\u4E0D\u8D77\uFF0C\u60A8\u6B63\u5728\u5BFB\u627E\u7684\u9875\u9762\u4E0D\u5B58\u5728\u3002\u5C1D\u8BD5\u68C0\u67E5URL\u7684\u9519\u8BEF\uFF0C\u7136\u540E\u6309\u6D4F\u89C8\u5668\u4E0A\u7684\u5237\u65B0\u6309\u94AE\u6216\u5C1D\u8BD5\u5728\u6211\u4EEC\u7684\u5E94\u7528\u7A0B\u5E8F\u4E2D\u627E\u5230\u5176\u4ED6\u5185\u5BB9\u3002 ",-1)),y={__name:"404",setup(t){let c=i(()=>"\u627E\u4E0D\u5230\u7F51\u9875\uFF01");return(B,C)=>{const _=l("router-link");return d(),n("div",x,[s("div",w,[S,s("div",k,[I,s("div",N,r(p(c)),1),V,h(_,{to:"/index",class:"bullshit__return-home"},{default:u(()=>[m(" \u8FD4\u56DE\u9996\u9875 ")]),_:1})])])])}}},q=o(y,[["__scopeId","data-v-5945313b"]]);export{q as default};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/assets/Area.c9643e70.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Area.c9643e70.js.gz vendored Normal file

Binary file not shown.

1
dist/assets/Classify.2ba7fe30.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Classify.2ba7fe30.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/assets/Drought.e2c6d878.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Drought.e2c6d878.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
import"./index.2809c208.js";import{_ as u,r as h,a7 as p,x,o as _,c as m,q as g,s as v,l as b}from"./index.9f28707e.js";import{ai as y,aj as f}from"./linkSeriesData.e74eae00.js";const w=o=>(g("data-v-14fba62b"),o=o(),v(),o),A={class:"EchartsBox"},I=w(()=>b("div",{id:"myChart2"},null,-1)),S=[I],k={__name:"EchartsHNT",props:{heightArr:{type:Array,default:()=>[]}},setup(o){const s=o;let l=h([]),d=h([]);return p(()=>{console.log(s.heightArr,"heightArr"),s.heightArr.length>0&&(l.value=s.heightArr.map((t,e)=>({value:t.subregionName||"",textStyle:{fontSize:12,fontWeight:400,width:80,overflow:"break"}})),d.value=s.heightArr.map((t,e)=>t.nonFarm||0))}),x(()=>{var t=document.getElementById("myChart2"),e=y(t);window.addEventListener("resize",function(){e.resize()});var i;let r=l.value,n=d.value;for(let a=0;a<n.length;a++);i={title:{text:"",subtext:""},tooltip:{show:!0,trigger:"axis"},xAxis:{data:r,axisLabel:{inside:!1,color:"#aaa"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new f(0,0,0,1,[{offset:0,color:"#aee7be"},{offset:.5,color:"#c2ebcf"},{offset:1,color:"#d6f0e1"}])},emphasis:{itemStyle:{color:new f(0,0,0,1,[{offset:0,color:"#8cd8a1"},{offset:.7,color:"#a1dcb2"},{offset:1,color:"#caefd5"}])}},data:n}]};const c=6;e.on("click",function(a){console.log(r[Math.max(a.dataIndex-c/2,0)]),e.dispatchAction({type:"dataZoom",startValue:r[Math.max(a.dataIndex-c/2,0)],endValue:r[Math.min(a.dataIndex+c/2,n.length-1)]})}),i&&e.setOption(i)}),(t,e)=>(_(),m("div",A,S))}},L=u(k,[["__scopeId","data-v-14fba62b"]]);export{L as default};

Binary file not shown.

1
dist/assets/EchartsHNT.e29382a8.js vendored Normal file
View File

@ -0,0 +1 @@
import"./index.2809c208.js";import{_ as e,r as a,a7 as t,x as o,o as s,c as i,q as r,s as l,l as n}from"./index.e5c8b0d6.js";import{ai as c,aj as d}from"./linkSeriesData.e74eae00.js";const f={class:"EchartsBox"},h=[(e=>(r("data-v-14fba62b"),e=e(),l(),e))((()=>n("div",{id:"myChart2"},null,-1)))],m=e({__name:"EchartsHNT",props:{heightArr:{type:Array,default:()=>[]}},setup(e){const r=e;let l=a([]),n=a([]);return t((()=>{r.heightArr.length>0&&(l.value=r.heightArr.map(((e,a)=>({value:e.subregionName||"",textStyle:{fontSize:12,fontWeight:400,width:80,overflow:"break"}}))),n.value=r.heightArr.map(((e,a)=>e.nonFarm||0)))})),o((()=>{var e,a=document.getElementById("myChart2"),t=c(a);window.addEventListener("resize",(function(){t.resize()}));let o=l.value,s=n.value;for(let i=0;i<s.length;i++);e={title:{text:"",subtext:""},tooltip:{show:!0,trigger:"axis"},xAxis:{data:o,axisLabel:{inside:!1,color:"#aaa"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{name:"面积(亩)",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new d(0,0,0,1,[{offset:0,color:"#aee7be"},{offset:.5,color:"#c2ebcf"},{offset:1,color:"#d6f0e1"}])},emphasis:{itemStyle:{color:new d(0,0,0,1,[{offset:0,color:"#8cd8a1"},{offset:.7,color:"#a1dcb2"},{offset:1,color:"#caefd5"}])}},data:s}]};t.on("click",(function(e){t.dispatchAction({type:"dataZoom",startValue:o[Math.max(e.dataIndex-3,0)],endValue:o[Math.min(e.dataIndex+3,s.length-1)]})})),e&&t.setOption(e)})),(e,a)=>(s(),i("div",f,h))}},[["__scopeId","data-v-14fba62b"]]);export{m as default};

BIN
dist/assets/EchartsHNT.e29382a8.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import"./index.2809c208.js";import{_ as x,r as u,a2 as p,a7 as _,x as y,ah as v,a4 as w,o as b,c as g,q as k,s as z,l as L}from"./index.9f28707e.js";import{ai as h,aj as c}from"./linkSeriesData.e74eae00.js";const B=n=>(k("data-v-f50ade16"),n=n(),z(),n),S={class:"EchartsBox"},E=B(()=>L("div",{id:"myChart"},null,-1)),I=[E],A={__name:"EchartsMJ",props:{mj:{type:Object,default:()=>[]}},setup(n){const f=n;let l=u([]),d=u([]);function m(){var s=document.getElementById("myChart"),t=h(s);window.addEventListener("resize",function(){t.resize()});var a;let o=l.value,i=d.value;for(let e=0;e<i.length;e++);a={title:{text:"",subtext:""},tooltip:{trigger:"axis",formatter:function(e){return e[0].name+"<br/><span style='display:inline-block;width:8px;height:8px;background:#aee7be;border-radius: 4px;margin-right: 6px;'></span>\u9762\u79EF\uFF1A"+e[0].value+" (\u4EA9)"},textStyle:{fontSize:14}},xAxis:{data:o,axisLabel:{inside:!1,color:"#aaa"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new c(0,0,0,1,[{offset:0,color:"#aee7be"},{offset:.5,color:"#c2ebcf"},{offset:1,color:"#d6f0e1"}])},emphasis:{itemStyle:{color:new c(0,0,0,1,[{offset:0,color:"#8cd8a1"},{offset:.7,color:"#a1dcb2"},{offset:1,color:"#caefd5"}])}},data:i}]};const r=6;t.on("click",function(e){t.dispatchAction({type:"dataZoom",startValue:o[Math.max(e.dataIndex-r/2,0)],endValue:o[Math.min(e.dataIndex+r/2,i.length-1)]})}),a&&t.setOption(a)}return p(()=>f.mj,(s,t)=>{l.value=s.map((a,o)=>a.subregionName),d.value=s.map((a,o)=>a.nonFarm),m()}),_(()=>{console.log(f.mj)}),y(()=>{var s=document.getElementById("myChart"),t=h(s);window.addEventListener("resize",function(){t.resize()});var a;let o=l.value,i=d.value;for(let e=0;e<i.length;e++);a={title:{text:"",subtext:""},tooltip:{show:!0,trigger:"axis"},xAxis:{data:o,axisLabel:{inside:!0,color:"#fff"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{name:"\u9762\u79EF\uFF08\u4EA9\uFF09",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new c(0,0,0,1,[{offset:0,color:"#aee7be"},{offset:.5,color:"#c2ebcf"},{offset:1,color:"#d6f0e1"}])},emphasis:{itemStyle:{color:new c(0,0,0,1,[{offset:0,color:"#8cd8a1"},{offset:.7,color:"#a1dcb2"},{offset:1,color:"#caefd5"}])}},data:i}]};const r=6;t.on("click",function(e){t.dispatchAction({type:"dataZoom",startValue:o[Math.max(e.dataIndex-r/2,0)],endValue:o[Math.min(e.dataIndex+r/2,i.length-1)]})}),a&&t.setOption(a)}),v(()=>{}),w(()=>{window.removeEventListener("resize",()=>{})}),(s,t)=>(b(),g("div",S,I))}},C=x(A,[["__scopeId","data-v-f50ade16"]]);export{C as default};

Binary file not shown.

1
dist/assets/EchartsMJ.c9f3d8c1.js vendored Normal file
View File

@ -0,0 +1 @@
import"./index.2809c208.js";import{_ as e,r as a,a2 as t,a7 as o,x as s,ad as i,a4 as n,o as r,c as l,q as c,s as d,l as f}from"./index.e5c8b0d6.js";import{ai as x,aj as m}from"./linkSeriesData.e74eae00.js";const h={class:"EchartsBox"},p=[(e=>(c("data-v-f50ade16"),e=e(),d(),e))((()=>f("div",{id:"myChart"},null,-1)))],u=e({__name:"EchartsMJ",props:{mj:{type:Object,default:()=>[]}},setup(e){const c=e;let d=a([]),f=a([]);return t((()=>c.mj),((e,a)=>{d.value=e.map(((e,a)=>e.subregionName)),f.value=e.map(((e,a)=>e.nonFarm)),function(){var e,a=document.getElementById("myChart"),t=x(a);window.addEventListener("resize",(function(){t.resize()}));let o=d.value,s=f.value;for(let i=0;i<s.length;i++);e={title:{text:"",subtext:""},tooltip:{trigger:"axis",formatter:function(e){return e[0].name+"<br/><span style='display:inline-block;width:8px;height:8px;background:#aee7be;border-radius: 4px;margin-right: 6px;'></span>面积:"+e[0].value+" (亩)"},textStyle:{fontSize:14}},xAxis:{data:o,axisLabel:{inside:!1,color:"#aaa"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{name:"面积(亩)",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new m(0,0,0,1,[{offset:0,color:"#aee7be"},{offset:.5,color:"#c2ebcf"},{offset:1,color:"#d6f0e1"}])},emphasis:{itemStyle:{color:new m(0,0,0,1,[{offset:0,color:"#8cd8a1"},{offset:.7,color:"#a1dcb2"},{offset:1,color:"#caefd5"}])}},data:s}]},t.on("click",(function(e){t.dispatchAction({type:"dataZoom",startValue:o[Math.max(e.dataIndex-3,0)],endValue:o[Math.min(e.dataIndex+3,s.length-1)]})})),e&&t.setOption(e)}()})),o((()=>{})),s((()=>{var e,a=document.getElementById("myChart"),t=x(a);window.addEventListener("resize",(function(){t.resize()}));let o=d.value,s=f.value;for(let i=0;i<s.length;i++);e={title:{text:"",subtext:""},tooltip:{show:!0,trigger:"axis"},xAxis:{data:o,axisLabel:{inside:!0,color:"#fff"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{name:"面积(亩)",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new m(0,0,0,1,[{offset:0,color:"#aee7be"},{offset:.5,color:"#c2ebcf"},{offset:1,color:"#d6f0e1"}])},emphasis:{itemStyle:{color:new m(0,0,0,1,[{offset:0,color:"#8cd8a1"},{offset:.7,color:"#a1dcb2"},{offset:1,color:"#caefd5"}])}},data:s}]};t.on("click",(function(e){t.dispatchAction({type:"dataZoom",startValue:o[Math.max(e.dataIndex-3,0)],endValue:o[Math.min(e.dataIndex+3,s.length-1)]})})),e&&t.setOption(e)})),i((()=>{})),n((()=>{window.removeEventListener("resize",(()=>{}))})),(e,a)=>(r(),l("div",h,p))}},[["__scopeId","data-v-f50ade16"]]);export{u as default};

BIN
dist/assets/EchartsMJ.c9f3d8c1.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import"./index.2809c208.js";import{_ as u,r as i,a2 as p,x as m,ah as h,o as v,c as _,q as b,s as y,l as x}from"./index.9f28707e.js";import{ai as l}from"./linkSeriesData.e74eae00.js";const g=r=>(b("data-v-f518f7d9"),r=r(),y(),r),w={class:"EchartsBox"},S=g(()=>x("div",{id:"myChart3"},null,-1)),z=[S],B={__name:"EchartsZB",props:{zb:{type:Object,default:()=>[]}},setup(r){const d=r;let n=i([]),s=i(0);function c(){var o=document.getElementById("myChart3"),a=l(o);window.addEventListener("resize",function(){a.resize()});var t;t={title:{text:"\u8BBE\u65BD\u519C\u4E1A\u603B\u9762\u79EF",subtext:s.value+"\u4EA9",left:"center",top:"center",textStyle:{color:"#000",fontSize:16,fontWeight:"normal"}},tooltip:{trigger:"item",formatter:function(e){return(e.value/s.value*100).toFixed(2)==="NaN"?"\u8BBE\u65BD\u519C\u4E1A\u9762\u79EF\u5360\u6BD4<br/>"+e.name+": "+e.value+"\u4EA9<br/>\u767E\u5206\u6BD4: "+0+"%":"\u8BBE\u65BD\u519C\u4E1A\u9762\u79EF\u5360\u6BD4<br/>"+e.name+": "+e.value+"\u4EA9<br/>\u767E\u5206\u6BD4: "+(e.value/s.value*100).toFixed(2)+"%"},textStyle:{fontSize:12}},series:[{name:"\u8BBE\u65BD\u519C\u4E1A\u9762\u79EF\u5360\u6BD4",type:"pie",radius:["55%","85%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!1,fontSize:26,fontWeight:"normal",formatter:function(e){return"\u8BBE\u65BD\u519C\u4E1A\u603B\u9762\u79EF<br/>"+s.value+"\u4EA9"}}},labelLine:{show:!1},data:n.value}]},t&&a.setOption(t)}return p(()=>d.zb,(o,a)=>{let t=0;n.value=o.map((e,f)=>(t+=Number(e.nonFarm),o.length-1==f&&(s.value=t.toFixed(2)),{value:e.nonFarm,name:e.subregionName})),c()}),m(()=>{var o=document.getElementById("myChart3"),a=l(o);window.addEventListener("resize",function(){a.resize()});var t;t={tooltip:{trigger:"item"},series:[{name:"Access From",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:[]}]},t&&a.setOption(t)}),h(()=>{}),(o,a)=>(v(),_("div",w,z))}},I=u(B,[["__scopeId","data-v-f518f7d9"]]);export{I as default};

Binary file not shown.

1
dist/assets/EchartsZB.9e099dec.js vendored Normal file
View File

@ -0,0 +1 @@
import"./index.2809c208.js";import{_ as e,r as t,a2 as a,x as r,ad as o,o as i,c as n,q as s,s as l,l as d}from"./index.e5c8b0d6.js";import{ai as m}from"./linkSeriesData.e74eae00.js";const u={class:"EchartsBox"},f=[(e=>(s("data-v-f518f7d9"),e=e(),l(),e))((()=>d("div",{id:"myChart3"},null,-1)))],b=e({__name:"EchartsZB",props:{zb:{type:Object,default:()=>[]}},setup(e){const s=e;let l=t([]),d=t(0);return a((()=>s.zb),((e,t)=>{let a=0;var r,o,i;l.value=e.map(((t,r)=>(a+=Number(t.nonFarm),e.length-1==r&&(d.value=a.toFixed(2)),{value:t.nonFarm,name:t.subregionName}))),o=document.getElementById("myChart3"),i=m(o),window.addEventListener("resize",(function(){i.resize()})),(r={title:{text:"设施农业总面积",subtext:d.value+"亩",left:"center",top:"center",textStyle:{color:"#000",fontSize:16,fontWeight:"normal"}},tooltip:{trigger:"item",formatter:function(e){return"NaN"===(e.value/d.value*100).toFixed(2)?"设施农业面积占比<br/>"+e.name+": "+e.value+"亩<br/>百分比: 0%":"设施农业面积占比<br/>"+e.name+": "+e.value+"亩<br/>百分比: "+(e.value/d.value*100).toFixed(2)+"%"},textStyle:{fontSize:12}},series:[{name:"设施农业面积占比",type:"pie",radius:["55%","85%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!1,fontSize:26,fontWeight:"normal",formatter:function(e){return"设施农业总面积<br/>"+d.value+"亩"}}},labelLine:{show:!1},data:l.value}]})&&i.setOption(r)})),r((()=>{var e,t=document.getElementById("myChart3"),a=m(t);window.addEventListener("resize",(function(){a.resize()})),(e={tooltip:{trigger:"item"},series:[{name:"Access From",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:[]}]})&&a.setOption(e)})),o((()=>{})),(e,t)=>(i(),n("div",u,f))}},[["__scopeId","data-v-f518f7d9"]]);export{b as default};

BIN
dist/assets/EchartsZB.9e099dec.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

48
dist/assets/Environment.f047e8ae.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Environment.f047e8ae.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/assets/Freeze.d326e34d.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Freeze.d326e34d.js.gz vendored Normal file

Binary file not shown.

1
dist/assets/Modify.2dbbb3e0.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Modify.2dbbb3e0.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/assets/Site.3131275c.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Site.3131275c.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/assets/Site.5a0c8302.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Site.5a0c8302.css.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

1
dist/assets/TimeLine.89abb5b7.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/TimeLine.89abb5b7.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{_ as I,r,a2 as V,ah as M,d as i,o as p,c as E,l as N,k,f as _,J as U,m as C,e as c,w as d,O as j}from"./index.9f28707e.js";const J={class:"LeftBox"},O={class:"RightBox"},q={__name:"TimeLine2",props:{bgcolor:{type:String,default:"dark"},nowValue:{type:String,default:""},yearArr:{type:Array,default:()=>[]},second:{type:Number,default:1e3}},emits:["handleNowValueChange"],setup(L,{emit:t}){const l=L;let f=null,s=r(5),o=r(1),a=r(0),B=r(0),m=r(100);const b=r({});let v=r(!1),e=r([]);const z=n=>{switch(n){case 0:console.log("0"),t("handleNowValueChange",e.value[0]);break;case 25:console.log("25"),t("handleNowValueChange",e.value[1]);break;case 50:console.log("50"),t("handleNowValueChange",e.value[2]);break;case 75:console.log("75"),t("handleNowValueChange",e.value[3]);break;case 100:console.log("100"),t("handleNowValueChange",e.value[4]);break}},x=()=>{v.value=!v.value},T=()=>{o.value>1&&(o.value--,console.log("\u51CF"),a.value=0,e.value=Array.from(l.yearArr).slice((o.value-1)*s.value,o.value*s.value),t("handleNowValueChange",e.value[0]))},P=()=>{o.value<Math.ceil(l.yearArr.length/s.value)&&(o.value++,console.log("\u52A0"),a.value=0,e.value=Array.from(l.yearArr).slice((o.value-1)*s.value,o.value*s.value),t("handleNowValueChange",e.value[0]))};return V(()=>l.yearArr,(n,u)=>{console.log(n,u),e.value=Array.from(n).slice((o.value-1)*s.value,o.value*s.value),console.log(e.value)}),V(e,(n,u)=>{console.log(n,u);let g={};e.value.forEach((w,h)=>{g[h*25]=w}),console.log(g),b.value=g,m.value=(e.value.length-1)*25},{deep:!0}),V(v,(n,u)=>{n?f=setInterval(()=>{a.value<m.value?(a.value+=25,t("handleNowValueChange",e.value[Math.floor(a.value/25)])):(a.value=0,t("handleNowValueChange",e.value[Math.floor(a.value/25)]))},l.second):f&&clearInterval(f)}),M(()=>{console.log(l.nowValue,l.yearArr,l.bgcolor,l.second)}),(n,u)=>{const g=i("el-slider"),w=i("DArrowLeft"),h=i("el-icon"),y=i("el-tooltip"),S=i("VideoPause"),D=i("VideoPlay"),R=i("DArrowRight");return p(),E("div",{class:j(l.bgcolor=="light"?"TimeLine2-light":"TimeLine2-dark")},[N("div",J,[l.yearArr.length?(p(),k(g,{key:0,modelValue:_(a),"onUpdate:modelValue":u[0]||(u[0]=A=>U(a)?a.value=A:a=A),step:25,"show-stops":"","show-tooltip":!1,min:_(B),max:_(m),marks:b.value,onChange:z},null,8,["modelValue","min","max","marks"])):C("",!0)]),N("div",O,[c(y,{class:"box-item",effect:"light",content:"\u4E0A\u4E00\u9875",placement:"top"},{default:d(()=>[c(h,{color:l.bgcolor=="light"?"#4a0987":"white",size:"30px",onClick:T},{default:d(()=>[c(w)]),_:1},8,["color"])]),_:1}),c(y,{class:"box-item",effect:"light",content:"\u64AD\u653E/\u6682\u505C",placement:"top"},{default:d(()=>[_(v)?(p(),k(h,{key:0,color:l.bgcolor=="light"?"#4a0987":"white",size:"30px",onClick:x},{default:d(()=>[c(S)]),_:1},8,["color"])):C("",!0),_(v)?C("",!0):(p(),k(h,{key:1,color:l.bgcolor=="light"?"#4a0987":"white",size:"30px",onClick:x},{default:d(()=>[c(D)]),_:1},8,["color"]))]),_:1}),c(y,{class:"box-item",effect:"light",content:"\u4E0B\u4E00\u9875",placement:"top"},{default:d(()=>[c(h,{color:l.bgcolor=="light"?"#4a0987":"white",size:"30px",onClick:P},{default:d(()=>[c(R)]),_:1},8,["color"])]),_:1})])],2)}}},G=I(q,[["__scopeId","data-v-4a4c3008"]]);export{G as default};

Binary file not shown.

1
dist/assets/TimeLine2.d7161b1e.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as e,r as a,a2 as l,ad as o,d as t,o as u,c as r,l as n,k as s,f as c,J as i,m as v,e as h,w as d,O as g}from"./index.e5c8b0d6.js";const f={class:"LeftBox"},m={class:"RightBox"},p=e({__name:"TimeLine2",props:{bgcolor:{type:String,default:"dark"},nowValue:{type:String,default:""},yearArr:{type:Array,default:()=>[]},second:{type:Number,default:1e3}},emits:["handleNowValueChange"],setup(e,{emit:p}){const w=e;let y=null,k=a(5),V=a(1),b=a(0),C=a(0),x=a(100);const A=a({});let _=a(!1),N=a([]);const L=e=>{switch(e){case 0:p("handleNowValueChange",N.value[0]);break;case 25:p("handleNowValueChange",N.value[1]);break;case 50:p("handleNowValueChange",N.value[2]);break;case 75:p("handleNowValueChange",N.value[3]);break;case 100:p("handleNowValueChange",N.value[4])}},z=()=>{_.value=!_.value},I=()=>{V.value>1&&(V.value--,b.value=0,N.value=Array.from(w.yearArr).slice((V.value-1)*k.value,V.value*k.value),p("handleNowValueChange",N.value[0]))},M=()=>{V.value<Math.ceil(w.yearArr.length/k.value)&&(V.value++,b.value=0,N.value=Array.from(w.yearArr).slice((V.value-1)*k.value,V.value*k.value),p("handleNowValueChange",N.value[0]))};return l((()=>w.yearArr),((e,a)=>{N.value=Array.from(e).slice((V.value-1)*k.value,V.value*k.value)})),l(N,((e,a)=>{let l={};N.value.forEach(((e,a)=>{l[25*a]=e})),A.value=l,x.value=25*(N.value.length-1)}),{deep:!0}),l(_,((e,a)=>{e?y=setInterval((()=>{b.value<x.value?(b.value+=25,p("handleNowValueChange",N.value[Math.floor(b.value/25)])):(b.value=0,p("handleNowValueChange",N.value[Math.floor(b.value/25)]))}),w.second):y&&clearInterval(y)})),o((()=>{})),(e,a)=>{const l=t("el-slider"),o=t("DArrowLeft"),p=t("el-icon"),y=t("el-tooltip"),k=t("VideoPause"),V=t("VideoPlay"),N=t("DArrowRight");return u(),r("div",{class:g("light"==w.bgcolor?"TimeLine2-light":"TimeLine2-dark")},[n("div",f,[w.yearArr.length?(u(),s(l,{key:0,modelValue:c(b),"onUpdate:modelValue":a[0]||(a[0]=e=>i(b)?b.value=e:b=e),step:25,"show-stops":"","show-tooltip":!1,min:c(C),max:c(x),marks:A.value,onChange:L},null,8,["modelValue","min","max","marks"])):v("",!0)]),n("div",m,[h(y,{class:"box-item",effect:"light",content:"上一页",placement:"top"},{default:d((()=>[h(p,{color:"light"==w.bgcolor?"#4a0987":"white",size:"30px",onClick:I},{default:d((()=>[h(o)])),_:1},8,["color"])])),_:1}),h(y,{class:"box-item",effect:"light",content:"播放/暂停",placement:"top"},{default:d((()=>[c(_)?(u(),s(p,{key:0,color:"light"==w.bgcolor?"#4a0987":"white",size:"30px",onClick:z},{default:d((()=>[h(k)])),_:1},8,["color"])):v("",!0),c(_)?v("",!0):(u(),s(p,{key:1,color:"light"==w.bgcolor?"#4a0987":"white",size:"30px",onClick:z},{default:d((()=>[h(V)])),_:1},8,["color"]))])),_:1}),h(y,{class:"box-item",effect:"light",content:"下一页",placement:"top"},{default:d((()=>[h(p,{color:"light"==w.bgcolor?"#4a0987":"white",size:"30px",onClick:M},{default:d((()=>[h(N)])),_:1},8,["color"])])),_:1})])],2)}}},[["__scopeId","data-v-4a4c3008"]]);export{p as default};

BIN
dist/assets/TimeLine2.d7161b1e.js.gz vendored Normal file

Binary file not shown.

1
dist/assets/Transitional.7504968d.js vendored Normal file

File diff suppressed because one or more lines are too long

BIN
dist/assets/Transitional.7504968d.js.gz vendored Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +1 @@
const a="/assets/a10.3fd58f9a.svg";export{a as default}; const s="/assets/a10.3fd58f9a.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a11.6b839a29.svg";export{a as default}; const s="/assets/a11.6b839a29.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a14.ad240e07.svg";export{a as default}; const s="/assets/a14.ad240e07.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a17.74ba4066.svg";export{a as default}; const s="/assets/a17.74ba4066.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a2.d9efa3e8.svg";export{a as default}; const s="/assets/a2.d9efa3e8.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a21.b0d62cda.svg";export{a as default}; const s="/assets/a21.b0d62cda.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a22.a87ff5c5.svg";export{a as default}; const s="/assets/a22.a87ff5c5.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a23.e569202a.svg";export{a as default}; const s="/assets/a23.e569202a.svg";export{s as default};

View File

@ -1 +1 @@
const s="/assets/a26.f9ce66ec.svg";export{s as default}; const s="/assets/a25.f9ce66ec.svg";export{s as default};

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -1 +1 @@
const s="/assets/a26.f9ce66ec.svg";export{s as default}; const s="/assets/a25.f9ce66ec.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a28.a5734191.svg";export{a as default}; const s="/assets/a28.a5734191.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a29.70b102af.svg";export{a as default}; const s="/assets/a29.70b102af.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a5.a3580530.svg";export{a as default}; const s="/assets/a5.a3580530.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a8.af6e2704.svg";export{a as default}; const s="/assets/a8.af6e2704.svg";export{s as default};

View File

@ -1 +1 @@
const a="/assets/a9.6828ea18.svg";export{a as default}; const s="/assets/a9.6828ea18.svg";export{s as default};

View File

@ -1 +0,0 @@
import{G as E,a as O,r as i,S as z,d as s,T as F,o as x,c as G,e as t,w as a,f as o,K as y,k as J,l as m,A as C,M,J as S,n as V,v as P}from"./index.9f28707e.js";import{c as q,d as H}from"./user.6eeb7ca9.js";const L={class:"app-container"},Q=m("h4",{class:"form-header h4"},"\u57FA\u672C\u4FE1\u606F",-1),W=m("h4",{class:"form-header h4"},"\u89D2\u8272\u4FE1\u606F",-1),X={style:{"text-align":"center","margin-left":"-120px","margin-top":"30px"}},Y=E({name:"AuthRole"}),oe=Object.assign(Y,{setup(Z){const b=O(),{proxy:f}=P(),g=i(!0),v=i(0),u=i(1),d=i(10),h=i([]),_=i([]),r=i({nickName:void 0,userName:void 0,userId:void 0});function $(l){f.$refs.roleRef.toggleRowSelection(l)}function T(l){h.value=l.map(e=>e.roleId)}function A(l){return l.roleId}function w(){const l={path:"/system/user"};f.$tab.closeOpenPage(l)}function B(){const l=r.value.userId,e=h.value.join(",");H({userId:l,roleIds:e}).then(c=>{f.$modal.msgSuccess("\u6388\u6743\u6210\u529F"),w()})}return(()=>{const l=b.params&&b.params.userId;l&&(g.value=!0,q(l).then(e=>{r.value=e.user,_.value=e.roles,v.value=_.value.length,z(()=>{_.value.forEach(c=>{c.flag&&f.$refs.roleRef.toggleRowSelection(c)})}),g.value=!1}))})(),(l,e)=>{const c=s("el-input"),k=s("el-form-item"),I=s("el-col"),U=s("el-row"),N=s("el-form"),p=s("el-table-column"),j=s("el-table"),D=s("pagination"),R=s("el-button"),K=F("loading");return x(),G("div",L,[Q,t(N,{model:o(r),"label-width":"80px"},{default:a(()=>[t(U,null,{default:a(()=>[t(I,{span:8,offset:2},{default:a(()=>[t(k,{label:"\u7528\u6237\u6635\u79F0",prop:"nickName"},{default:a(()=>[t(c,{modelValue:o(r).nickName,"onUpdate:modelValue":e[0]||(e[0]=n=>o(r).nickName=n),disabled:""},null,8,["modelValue"])]),_:1})]),_:1}),t(I,{span:8,offset:2},{default:a(()=>[t(k,{label:"\u767B\u5F55\u8D26\u53F7",prop:"userName"},{default:a(()=>[t(c,{modelValue:o(r).userName,"onUpdate:modelValue":e[1]||(e[1]=n=>o(r).userName=n),disabled:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),W,y((x(),J(j,{"row-key":A,onRowClick:$,ref:"roleRef",onSelectionChange:T,data:o(_).slice((o(u)-1)*o(d),o(u)*o(d))},{default:a(()=>[t(p,{label:"\u5E8F\u53F7",width:"55",type:"index",align:"center"},{default:a(n=>[m("span",null,C((o(u)-1)*o(d)+n.$index+1),1)]),_:1}),t(p,{type:"selection","reserve-selection":!0,width:"55"}),t(p,{label:"\u89D2\u8272\u7F16\u53F7",align:"center",prop:"roleId"}),t(p,{label:"\u89D2\u8272\u540D\u79F0",align:"center",prop:"roleName"}),t(p,{label:"\u6743\u9650\u5B57\u7B26",align:"center",prop:"roleKey"}),t(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:a(n=>[m("span",null,C(l.parseTime(n.row.createTime)),1)]),_:1})]),_:1},8,["data"])),[[K,o(g)]]),y(t(D,{total:o(v),page:o(u),"onUpdate:page":e[2]||(e[2]=n=>S(u)?u.value=n:null),limit:o(d),"onUpdate:limit":e[3]||(e[3]=n=>S(d)?d.value=n:null)},null,8,["total","page","limit"]),[[M,o(v)>0]]),t(N,{"label-width":"100px"},{default:a(()=>[m("div",X,[t(R,{type:"primary",onClick:e[4]||(e[4]=n=>B())},{default:a(()=>[V("\u63D0\u4EA4")]),_:1}),t(R,{onClick:e[5]||(e[5]=n=>w())},{default:a(()=>[V("\u8FD4\u56DE")]),_:1})])]),_:1})])}}});export{oe as default};

Binary file not shown.

1
dist/assets/authRole.ce873a9f.js vendored Normal file
View File

@ -0,0 +1 @@
import{G as e,a as l,r as a,S as t,d as o,T as n,o as s,c as r,e as u,w as i,f as d,K as c,k as p,l as m,A as f,M as g,J as v,n as b,v as h}from"./index.e5c8b0d6.js";import{c as w,d as _}from"./user.cbff96c4.js";const x={class:"app-container"},k=m("h4",{class:"form-header h4"},"基本信息",-1),y=m("h4",{class:"form-header h4"},"角色信息",-1),N={style:{"text-align":"center","margin-left":"-120px","margin-top":"30px"}},I=e({name:"AuthRole"}),R=Object.assign(I,{setup(e){const I=l(),{proxy:R}=h(),V=a(!0),S=a(0),$=a(1),j=a(10),C=a([]),T=a([]),U=a({nickName:void 0,userName:void 0,userId:void 0});function A(e){R.$refs.roleRef.toggleRowSelection(e)}function K(e){C.value=e.map((e=>e.roleId))}function O(e){return e.roleId}function E(){R.$tab.closeOpenPage({path:"/system/user"})}return(()=>{const e=I.params&&I.params.userId;e&&(V.value=!0,w(e).then((e=>{U.value=e.user,T.value=e.roles,S.value=T.value.length,t((()=>{T.value.forEach((e=>{e.flag&&R.$refs.roleRef.toggleRowSelection(e)}))})),V.value=!1})))})(),(e,l)=>{const a=o("el-input"),t=o("el-form-item"),h=o("el-col"),w=o("el-row"),I=o("el-form"),G=o("el-table-column"),J=o("el-table"),M=o("pagination"),P=o("el-button"),q=n("loading");return s(),r("div",x,[k,u(I,{model:d(U),"label-width":"80px"},{default:i((()=>[u(w,null,{default:i((()=>[u(h,{span:8,offset:2},{default:i((()=>[u(t,{label:"用户昵称",prop:"nickName"},{default:i((()=>[u(a,{modelValue:d(U).nickName,"onUpdate:modelValue":l[0]||(l[0]=e=>d(U).nickName=e),disabled:""},null,8,["modelValue"])])),_:1})])),_:1}),u(h,{span:8,offset:2},{default:i((()=>[u(t,{label:"登录账号",prop:"userName"},{default:i((()=>[u(a,{modelValue:d(U).userName,"onUpdate:modelValue":l[1]||(l[1]=e=>d(U).userName=e),disabled:""},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})])),_:1},8,["model"]),y,c((s(),p(J,{"row-key":O,onRowClick:A,ref:"roleRef",onSelectionChange:K,data:d(T).slice((d($)-1)*d(j),d($)*d(j))},{default:i((()=>[u(G,{label:"序号",width:"55",type:"index",align:"center"},{default:i((e=>[m("span",null,f((d($)-1)*d(j)+e.$index+1),1)])),_:1}),u(G,{type:"selection","reserve-selection":!0,width:"55"}),u(G,{label:"角色编号",align:"center",prop:"roleId"}),u(G,{label:"角色名称",align:"center",prop:"roleName"}),u(G,{label:"权限字符",align:"center",prop:"roleKey"}),u(G,{label:"创建时间",align:"center",prop:"createTime",width:"180"},{default:i((l=>[m("span",null,f(e.parseTime(l.row.createTime)),1)])),_:1})])),_:1},8,["data"])),[[q,d(V)]]),c(u(M,{total:d(S),page:d($),"onUpdate:page":l[2]||(l[2]=e=>v($)?$.value=e:null),limit:d(j),"onUpdate:limit":l[3]||(l[3]=e=>v(j)?j.value=e:null)},null,8,["total","page","limit"]),[[g,d(S)>0]]),u(I,{"label-width":"100px"},{default:i((()=>[m("div",N,[u(P,{type:"primary",onClick:l[4]||(l[4]=e=>function(){const e=U.value.userId,l=C.value.join(",");_({userId:e,roleIds:l}).then((e=>{R.$modal.msgSuccess("授权成功"),E()}))}())},{default:i((()=>[b("提交")])),_:1}),u(P,{onClick:l[5]||(l[5]=e=>E())},{default:i((()=>[b("返回")])),_:1})])])),_:1})])}}});export{R as default};

BIN
dist/assets/authRole.ce873a9f.js.gz vendored Normal file

Binary file not shown.

1
dist/assets/authUser.48b74734.js vendored Normal file
View File

@ -0,0 +1 @@
import{G as e,a,r as l,I as o,d as n,T as t,o as r,c as s,K as u,M as i,f as p,e as d,w as c,j as m,n as f,k as h,J as b,l as g,A as y,v as w}from"./index.e5c8b0d6.js";import v from"./selectUser.78af3543.js";import{a as _,b as I,c as C}from"./role.f62b5a30.js";const k={class:"app-container"},N=e({name:"AuthUser"}),S=Object.assign(N,{setup(e){const N=a(),{proxy:S}=w(),{sys_normal_disable:U}=S.useDict("sys_normal_disable"),j=l([]),x=l(!0),V=l(!0),$=l(!0),K=l(0),R=l([]),T=o({pageNum:1,pageSize:10,roleId:N.params.roleId,userName:void 0,phonenumber:void 0});function P(){x.value=!0,_(T).then((e=>{j.value=e.rows,K.value=e.total,x.value=!1}))}function z(){S.$tab.closeOpenPage({path:"/system/role"})}function O(){T.pageNum=1,P()}function q(){S.resetForm("queryRef"),O()}function A(e){R.value=e.map((e=>e.userId)),$.value=!e.length}function D(){S.$refs.selectRef.show()}function F(e){const a=T.roleId,l=R.value.join(",");S.$modal.confirm("是否取消选中用户授权数据项?").then((function(){return C({roleId:a,userIds:l})})).then((()=>{P(),S.$modal.msgSuccess("取消授权成功")})).catch((()=>{}))}return P(),(e,a)=>{const l=n("el-input"),o=n("el-form-item"),w=n("el-button"),_=n("el-form"),C=n("el-col"),N=n("right-toolbar"),R=n("el-row"),G=n("el-table-column"),J=n("dict-tag"),M=n("el-table"),Q=n("pagination"),B=t("hasPermi"),E=t("loading");return r(),s("div",k,[u(d(_,{model:p(T),ref:"queryRef",inline:!0},{default:c((()=>[d(o,{label:"用户名称",prop:"userName"},{default:c((()=>[d(l,{modelValue:p(T).userName,"onUpdate:modelValue":a[0]||(a[0]=e=>p(T).userName=e),placeholder:"请输入用户名称",clearable:"",style:{width:"240px"},onKeyup:m(O,["enter"])},null,8,["modelValue","onKeyup"])])),_:1}),d(o,{label:"手机号码",prop:"phonenumber"},{default:c((()=>[d(l,{modelValue:p(T).phonenumber,"onUpdate:modelValue":a[1]||(a[1]=e=>p(T).phonenumber=e),placeholder:"请输入手机号码",clearable:"",style:{width:"240px"},onKeyup:m(O,["enter"])},null,8,["modelValue","onKeyup"])])),_:1}),d(o,null,{default:c((()=>[d(w,{type:"primary",icon:"Search",onClick:O},{default:c((()=>[f("搜索")])),_:1}),d(w,{icon:"Refresh",onClick:q},{default:c((()=>[f("重置")])),_:1})])),_:1})])),_:1},8,["model"]),[[i,p(V)]]),d(R,{gutter:10,class:"mb8"},{default:c((()=>[d(C,{span:1.5},{default:c((()=>[u((r(),h(w,{type:"primary",plain:"",icon:"Plus",onClick:D},{default:c((()=>[f("添加用户")])),_:1})),[[B,["system:role:add"]]])])),_:1},8,["span"]),d(C,{span:1.5},{default:c((()=>[u((r(),h(w,{type:"danger",plain:"",icon:"CircleClose",disabled:p($),onClick:F},{default:c((()=>[f("批量取消授权")])),_:1},8,["disabled"])),[[B,["system:role:remove"]]])])),_:1},8,["span"]),d(C,{span:1.5},{default:c((()=>[d(w,{type:"warning",plain:"",icon:"Close",onClick:z},{default:c((()=>[f("关闭")])),_:1})])),_:1},8,["span"]),d(N,{showSearch:p(V),"onUpdate:showSearch":a[2]||(a[2]=e=>b(V)?V.value=e:null),onQueryTable:P},null,8,["showSearch"])])),_:1}),u((r(),h(M,{data:p(j),onSelectionChange:A},{default:c((()=>[d(G,{type:"selection",width:"55",align:"center"}),d(G,{label:"用户名称",prop:"userName","show-overflow-tooltip":!0}),d(G,{label:"用户昵称",prop:"nickName","show-overflow-tooltip":!0}),d(G,{label:"邮箱",prop:"email","show-overflow-tooltip":!0}),d(G,{label:"手机",prop:"phonenumber","show-overflow-tooltip":!0}),d(G,{label:"状态",align:"center",prop:"status"},{default:c((e=>[d(J,{options:p(U),value:e.row.status},null,8,["options","value"])])),_:1}),d(G,{label:"创建时间",align:"center",prop:"createTime",width:"180"},{default:c((a=>[g("span",null,y(e.parseTime(a.row.createTime)),1)])),_:1}),d(G,{label:"操作",align:"center","class-name":"small-padding fixed-width"},{default:c((e=>[u((r(),h(w,{link:"",type:"primary",icon:"CircleClose",onClick:a=>{return l=e.row,void S.$modal.confirm('确认要取消该用户"'+l.userName+'"角色吗?').then((function(){return I({userId:l.userId,roleId:T.roleId})})).then((()=>{P(),S.$modal.msgSuccess("取消授权成功")})).catch((()=>{}));var l}},{default:c((()=>[f("取消授权")])),_:2},1032,["onClick"])),[[B,["system:role:remove"]]])])),_:1})])),_:1},8,["data"])),[[E,p(x)]]),u(d(Q,{total:p(K),page:p(T).pageNum,"onUpdate:page":a[3]||(a[3]=e=>p(T).pageNum=e),limit:p(T).pageSize,"onUpdate:limit":a[4]||(a[4]=e=>p(T).pageSize=e),onPagination:P},null,8,["total","page","limit"]),[[i,p(K)>0]]),d(p(v),{ref:"selectRef",roleId:p(T).roleId,onOk:O},null,8,["roleId"])])}}});export{S as default};

BIN
dist/assets/authUser.48b74734.js.gz vendored Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{G,a as J,r as d,I as M,d as r,T as V,o as h,c as H,K as m,M as $,f as o,e,w as t,j as x,n as _,k as w,J as W,l as X,A as Y,v as Z}from"./index.9f28707e.js";import ee from"./selectUser.19e5831b.js";import{a as oe,b as te,c as le}from"./role.9e851762.js";const ne={class:"app-container"},ae=G({name:"AuthUser"}),pe=Object.assign(ae,{setup(se){const R=J(),{proxy:u}=Z(),{sys_normal_disable:A}=u.useDict("sys_normal_disable"),k=d([]),y=d(!0),g=d(!0),N=d(!0),v=d(0),U=d([]),n=M({pageNum:1,pageSize:10,roleId:R.params.roleId,userName:void 0,phonenumber:void 0});function c(){y.value=!0,oe(n).then(s=>{k.value=s.rows,v.value=s.total,y.value=!1})}function K(){const s={path:"/system/role"};u.$tab.closeOpenPage(s)}function f(){n.pageNum=1,c()}function P(){u.resetForm("queryRef"),f()}function T(s){U.value=s.map(a=>a.userId),N.value=!s.length}function j(){u.$refs.selectRef.show()}function B(s){u.$modal.confirm('\u786E\u8BA4\u8981\u53D6\u6D88\u8BE5\u7528\u6237"'+s.userName+'"\u89D2\u8272\u5417\uFF1F').then(function(){return te({userId:s.userId,roleId:n.roleId})}).then(()=>{c(),u.$modal.msgSuccess("\u53D6\u6D88\u6388\u6743\u6210\u529F")}).catch(()=>{})}function D(s){const a=n.roleId,b=U.value.join(",");u.$modal.confirm("\u662F\u5426\u53D6\u6D88\u9009\u4E2D\u7528\u6237\u6388\u6743\u6570\u636E\u9879?").then(function(){return le({roleId:a,userIds:b})}).then(()=>{c(),u.$modal.msgSuccess("\u53D6\u6D88\u6388\u6743\u6210\u529F")}).catch(()=>{})}return c(),(s,a)=>{const b=r("el-input"),C=r("el-form-item"),p=r("el-button"),q=r("el-form"),I=r("el-col"),z=r("right-toolbar"),L=r("el-row"),i=r("el-table-column"),O=r("dict-tag"),Q=r("el-table"),E=r("pagination"),S=V("hasPermi"),F=V("loading");return h(),H("div",ne,[m(e(q,{model:o(n),ref:"queryRef",inline:!0},{default:t(()=>[e(C,{label:"\u7528\u6237\u540D\u79F0",prop:"userName"},{default:t(()=>[e(b,{modelValue:o(n).userName,"onUpdate:modelValue":a[0]||(a[0]=l=>o(n).userName=l),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D\u79F0",clearable:"",style:{width:"240px"},onKeyup:x(f,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,{label:"\u624B\u673A\u53F7\u7801",prop:"phonenumber"},{default:t(()=>[e(b,{modelValue:o(n).phonenumber,"onUpdate:modelValue":a[1]||(a[1]=l=>o(n).phonenumber=l),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801",clearable:"",style:{width:"240px"},onKeyup:x(f,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(C,null,{default:t(()=>[e(p,{type:"primary",icon:"Search",onClick:f},{default:t(()=>[_("\u641C\u7D22")]),_:1}),e(p,{icon:"Refresh",onClick:P},{default:t(()=>[_("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"]),[[$,o(g)]]),e(L,{gutter:10,class:"mb8"},{default:t(()=>[e(I,{span:1.5},{default:t(()=>[m((h(),w(p,{type:"primary",plain:"",icon:"Plus",onClick:j},{default:t(()=>[_("\u6DFB\u52A0\u7528\u6237")]),_:1})),[[S,["system:role:add"]]])]),_:1},8,["span"]),e(I,{span:1.5},{default:t(()=>[m((h(),w(p,{type:"danger",plain:"",icon:"CircleClose",disabled:o(N),onClick:D},{default:t(()=>[_("\u6279\u91CF\u53D6\u6D88\u6388\u6743")]),_:1},8,["disabled"])),[[S,["system:role:remove"]]])]),_:1},8,["span"]),e(I,{span:1.5},{default:t(()=>[e(p,{type:"warning",plain:"",icon:"Close",onClick:K},{default:t(()=>[_("\u5173\u95ED")]),_:1})]),_:1},8,["span"]),e(z,{showSearch:o(g),"onUpdate:showSearch":a[2]||(a[2]=l=>W(g)?g.value=l:null),onQueryTable:c},null,8,["showSearch"])]),_:1}),m((h(),w(Q,{data:o(k),onSelectionChange:T},{default:t(()=>[e(i,{type:"selection",width:"55",align:"center"}),e(i,{label:"\u7528\u6237\u540D\u79F0",prop:"userName","show-overflow-tooltip":!0}),e(i,{label:"\u7528\u6237\u6635\u79F0",prop:"nickName","show-overflow-tooltip":!0}),e(i,{label:"\u90AE\u7BB1",prop:"email","show-overflow-tooltip":!0}),e(i,{label:"\u624B\u673A",prop:"phonenumber","show-overflow-tooltip":!0}),e(i,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(l=>[e(O,{options:o(A),value:l.row.status},null,8,["options","value"])]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180"},{default:t(l=>[X("span",null,Y(s.parseTime(l.row.createTime)),1)]),_:1}),e(i,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:t(l=>[m((h(),w(p,{link:"",type:"primary",icon:"CircleClose",onClick:re=>B(l.row)},{default:t(()=>[_("\u53D6\u6D88\u6388\u6743")]),_:2},1032,["onClick"])),[[S,["system:role:remove"]]])]),_:1})]),_:1},8,["data"])),[[F,o(y)]]),m(e(E,{total:o(v),page:o(n).pageNum,"onUpdate:page":a[3]||(a[3]=l=>o(n).pageNum=l),limit:o(n).pageSize,"onUpdate:limit":a[4]||(a[4]=l=>o(n).pageSize=l),onPagination:c},null,8,["total","page","limit"]),[[$,o(v)>0]]),e(o(ee),{ref:"selectRef",roleId:o(n).roleId,onOk:f},null,8,["roleId"])])}}});export{pe as default};

Binary file not shown.

View File

@ -1 +0,0 @@
import{r as i,d as m,o as b,k as p,w as l,e,f as c}from"./index.9f28707e.js";const N={__name:"basicInfoForm",props:{info:{type:Object,default:null}},setup(o){const d=i({tableName:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u540D\u79F0",trigger:"blur"}],tableComment:[{required:!0,message:"\u8BF7\u8F93\u5165\u8868\u63CF\u8FF0",trigger:"blur"}],className:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u4F53\u7C7B\u540D\u79F0",trigger:"blur"}],functionAuthor:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005",trigger:"blur"}]});return(V,a)=>{const n=m("el-input"),u=m("el-form-item"),r=m("el-col"),f=m("el-row"),s=m("el-form");return b(),p(s,{ref:"basicInfoForm",model:o.info,rules:c(d),"label-width":"150px"},{default:l(()=>[e(f,null,{default:l(()=>[e(r,{span:12},{default:l(()=>[e(u,{label:"\u8868\u540D\u79F0",prop:"tableName"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0",modelValue:o.info.tableName,"onUpdate:modelValue":a[0]||(a[0]=t=>o.info.tableName=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(u,{label:"\u8868\u63CF\u8FF0",prop:"tableComment"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165",modelValue:o.info.tableComment,"onUpdate:modelValue":a[1]||(a[1]=t=>o.info.tableComment=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(u,{label:"\u5B9E\u4F53\u7C7B\u540D\u79F0",prop:"className"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165",modelValue:o.info.className,"onUpdate:modelValue":a[2]||(a[2]=t=>o.info.className=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:12},{default:l(()=>[e(u,{label:"\u4F5C\u8005",prop:"functionAuthor"},{default:l(()=>[e(n,{placeholder:"\u8BF7\u8F93\u5165",modelValue:o.info.functionAuthor,"onUpdate:modelValue":a[3]||(a[3]=t=>o.info.functionAuthor=t)},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:24},{default:l(()=>[e(u,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(n,{type:"textarea",rows:3,modelValue:o.info.remark,"onUpdate:modelValue":a[4]||(a[4]=t=>o.info.remark=t)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])}}};export{N as default};

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More