|
@@ -87,8 +87,6 @@ function Detail(props) {
|
|
});
|
|
});
|
|
const cellPosition = useRef({});
|
|
const cellPosition = useRef({});
|
|
|
|
|
|
- const [imgPic, setImgPic] = useState('');
|
|
|
|
-
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
// if (!version.id) return
|
|
// if (!version.id) return
|
|
// 不请求excelFileList 时清空excelFileList,否则会出现清单切换后如果attachment_id不存在,附件信息没有更新
|
|
// 不请求excelFileList 时清空excelFileList,否则会出现清单切换后如果attachment_id不存在,附件信息没有更新
|
|
@@ -537,7 +535,6 @@ function Detail(props) {
|
|
}, [compareList]);
|
|
}, [compareList]);
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
- // if (versionList.length == 0) return;
|
|
|
|
if (!currentUser.ID) return;
|
|
if (!currentUser.ID) return;
|
|
if (!version.id) {
|
|
if (!version.id) {
|
|
changeVersion(excelID);
|
|
changeVersion(excelID);
|
|
@@ -560,15 +557,6 @@ function Detail(props) {
|
|
新建清单
|
|
新建清单
|
|
</Button>
|
|
</Button>
|
|
)}
|
|
)}
|
|
- <Button
|
|
|
|
- onClick={() => {
|
|
|
|
- const src = sheetRef.current?.luckysheet.getScreenshot();
|
|
|
|
- exportExcelImg(src).then(res => setImgPic(res));
|
|
|
|
- // setImgPic(src);
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
- 导出图片
|
|
|
|
- </Button>
|
|
|
|
<CurrentInfo version={version} flowDetail={flowDetail} />
|
|
<CurrentInfo version={version} flowDetail={flowDetail} />
|
|
</div>
|
|
</div>
|
|
<div className={styles.btns}>
|
|
<div className={styles.btns}>
|
|
@@ -578,12 +566,18 @@ function Detail(props) {
|
|
保存
|
|
保存
|
|
</Button>
|
|
</Button>
|
|
)}
|
|
)}
|
|
|
|
+ <Button type="primary" onClick={() => setVersionTreeVisible(true)}>
|
|
|
|
+ 历史版本
|
|
|
|
+ </Button>
|
|
<Button
|
|
<Button
|
|
type="primary"
|
|
type="primary"
|
|
style={{ marginRight: 20 }}
|
|
style={{ marginRight: 20 }}
|
|
- onClick={() => setVersionTreeVisible(true)}
|
|
|
|
|
|
+ onClick={() => {
|
|
|
|
+ const src = sheetRef.current?.luckysheet.getScreenshot();
|
|
|
|
+ exportExcelImg(src, currentUser?.CName);
|
|
|
|
+ }}
|
|
>
|
|
>
|
|
- 历史版本
|
|
|
|
|
|
+ 导出图片
|
|
</Button>
|
|
</Button>
|
|
<Avatar.Group style={{ marginRight: 20 }}>
|
|
<Avatar.Group style={{ marginRight: 20 }}>
|
|
{user.map((item, id) => (
|
|
{user.map((item, id) => (
|
|
@@ -617,7 +611,6 @@ function Detail(props) {
|
|
onChange={e => exportExcl(e.target.files)}
|
|
onChange={e => exportExcl(e.target.files)}
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- {imgPic && <img src={imgPic} />}
|
|
|
|
{showPsrBtns && <PsrControl sheetRef={sheetRef} />}
|
|
{showPsrBtns && <PsrControl sheetRef={sheetRef} />}
|
|
<div style={{ display: 'flex' }}>
|
|
<div style={{ display: 'flex' }}>
|
|
<div
|
|
<div
|