Compare commits

..

No commits in common. "d16d881828259a23d4ac00c4653cc8fb9c673029" and "cae47fb0e8605c93d12aa20706dd4f6c8bb23c29" have entirely different histories.

10 changed files with 55 additions and 49 deletions

BIN
build.rar

Binary file not shown.

View File

@ -317,8 +317,7 @@ export default function Xmzlmb() {
columns={columns1}
key="inx"
dataSource={dataSources}
pagination={false}
virtual={true}
pagination={{pageSize:5}}
scroll={{ x: width, y: 250, scrollToFirstRowOnChange: true }}
onRow={record => {
return {

View File

@ -7,12 +7,14 @@ export default function drpOption({data}) {
const maxValX = Math.max(...data.map(obj => obj.z))
const minValX = Math.min(...data.map(obj => obj.z))
let arr =[]
data.forEach(item=>{
arr.push([item.z,item.q])
console.log(data);
arr.push([item.q,item.z])
})
console.log(arr,data.map(o => o.z),'jhsdjkashdjkahjk');
// debugger;
// console.log(GetInterval(minValX,maxValX),'jhsdjkashdjkahjk');
return {
toolbox: {
show: true,

View File

@ -20,35 +20,35 @@ const Page = () => {
setUrl(item.img)
}
useEffect(() => {
// let scale = 1
// const img = document.getElementById("img");
// const fun = (e) => {
// console.log(1111)
// // 大于0:滚轮向上滚动 小于0:滚轮向下滚动
// if (e.wheelDelta > 0) {
// scale += 0.05;
// img.style.transform = `scale(${scale})`;
// } else {
// if (scale == 1) {
// img.style.left = 0 + "px";
// img.style.top = 0 + "px";
// }
// // 缩放值大于1时,可以缩小,反之亦然
// if (scale > 1) {
// scale -= 0.05;
// img.style.transform = `scale(${scale})`;
// }
// }
// }
// img.addEventListener("wheel", fun)
let scale = 1
const img = document.getElementById("img");
const fun = (e) => {
console.log(1111)
// 大于0:滚轮向上滚动 小于0:滚轮向下滚动
if (e.wheelDelta > 0) {
scale += 0.05;
img.style.transform = `scale(${scale})`;
} else {
if (scale == 1) {
img.style.left = 0 + "px";
img.style.top = 0 + "px";
}
// 缩放值大于1时,可以缩小,反之亦然
if (scale > 1) {
scale -= 0.05;
img.style.transform = `scale(${scale})`;
}
}
}
img.addEventListener("wheel", fun)
// // getSyData()
// // getSlData()
// // getWyData()
// // getDmData()
// return () => {
// img.removeEventListener("wheel", fun)
// }
// getSyData()
// getSlData()
// getWyData()
// getDmData()
return () => {
img.removeEventListener("wheel", fun)
}
}, [])
return (
@ -56,9 +56,20 @@ const Page = () => {
<div style={{ display: 'flex', justifyContent: 'start', alignItems: 'center', padding: 10 }}>
{list.map(item => <div className={url == item.img ? stylesCss.active : stylesCss.tabCheck} onClick={() => tabClick(item)}>{item.name}</div>)}
</div>
<div style={{height: 'calc(100% - 60px)',textAlign:'center',padding:20,overflow:'auto'}}>
<Image src={url} width='80%' preview={false} />
<Rnd
default={{
x: 200,
y: 60,
width: '80%',
height: 'calc(100% - 200px)'
}}
>
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', width:'72%',height:'98%',}}>
<Image src={url} id="img" style={{margin:'auto',margin:'20px',height:'750px'}} preview={false} />
</div>
</Rnd>
</div>
)
}

View File

@ -25,7 +25,7 @@ const Page = () => {
<div className={styles.title}>
<Image src={title} />转移路线示意图
</div>
<div style={{height: 'calc(100% - 40px)',textAlign:'center'}}>
<div style={{display:'flex',justifyContent:'center',height: 'calc(100% - 40px)',alignItems:'center'}}>
<Image src={zd} width='80%' preview={false} />
</div>

View File

@ -2,8 +2,7 @@
font-size: 16px;
color: #000000;
// width: 112px;
height: 32px;
margin-bottom:20px;
height: 32px
}
.content{
font-size: 17px;

View File

@ -12,7 +12,6 @@ import { CrudOpRender_text } from '../../../components/crud/CrudOpRender';
import { render } from 'react-dom';
import { httpgetExport } from '../../../utils/request';
import { exportFile } from '../../../utils/tools';
import dayjs from 'dayjs';
const url = "http://223.75.53.141:9102/test.by-lyf.tmp"
const typeOb={0:'宪法',1:'法律',2:'行政法规',3:'督察法规',4:'司法解释',5:'地方性法规'}
@ -43,8 +42,7 @@ const Page = () => {
</>
},
{
title: '公布日期', key: 'announcementDate', dataIndex: 'announcementDate',
render: (value) => <span>{dayjs(value).format('YYYY-MM-DD')}</span>,
title: '公布日期', key: 'announcementDate', dataIndex: 'announcementDate'
},
{
title: '施行日期', key: 'implementationDate', dataIndex: 'implementationDate'

View File

@ -30,7 +30,7 @@ const Page = () => {
const [isFetch, setIsFetch] = useState(false)
const columns = [
{ title: '序号', key: 'inx', dataIndex: 'inx', width: 60, align: "center" },
{ title: '填报时间', key: 'createTime', dataIndex: 'createTime', ellipsis: true,render: (value) => <span>{dayjs(value).format('YYYY-MM-DD HH:mm')}</span>, },
{ title: '填报时间', key: 'createTime', dataIndex: 'createTime', ellipsis: true },
{
title: '案件名称', key: 'caseName', dataIndex: 'caseName',
},
@ -40,7 +40,6 @@ const Page = () => {
},
{
title: '发现时间', key: 'caseDate', dataIndex: 'caseDate',
render: (value) => <span>{dayjs(value).format('YYYY-MM-DD')}</span>,
},
{

View File

@ -39,7 +39,7 @@ const Page = ({ title = '标题' }) => {
},
radiusAxis: {
min:MaxMin.min-1,
min:0,
max:MaxMin.max,
interval: 1,
// // 刻度

View File

@ -11,7 +11,6 @@ import { createCrudService } from '../../../components/crud/_';
import { CrudOpRender_text } from '../../../components/crud/CrudOpRender';
import { httpgetExport } from '../../../utils/request';
import { exportFile } from '../../../utils/tools';
import dayjs from 'dayjs';
const url = "http://223.75.53.141:9102/test.by-lyf.tmp"
const obj={0:"党支部工作制度",1:"行政工作制度",2:"部门工作制度",3:"安全管理制度",4:"工程管理制度",5:"技术规程",6:"岗位责任制"}
@ -32,8 +31,7 @@ const Page = () => {
title: '制度类型', key: 'type', dataIndex: 'type',render:(v)=><>{obj[v]}</>
},
{
title: '发布日期', key: 'releaseDate', dataIndex: 'releaseDate',
render: (value) => <span>{dayjs(value).format('YYYY-MM-DD')}</span>,
title: '发布日期', key: 'releaseDate', dataIndex: 'releaseDate'
},
{
title: '发布单位', key: 'fillUnit', dataIndex: 'fillUnit'