(null) //补正种类
@@ -878,7 +879,7 @@ export default function Correction() {
useEffect(() => {
// getData(1)
-
+
getData(1)
setPage(1)
// console.log(tagCor);
@@ -927,7 +928,7 @@ export default function Correction() {
: <>
{correctionArray.map((item: any, index: any) => {
- // setBack(item.tagDataIds.includes(part1)?true:false)
+ // setBack(item.tagDataIds.includes(part1)?true:false)
const downCode = [
{
key: 'downword',
@@ -935,6 +936,13 @@ export default function Correction() {
{
+ // alert(item.correctionType);
+
+ // if (item.correctionType == 'ALL') {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/${item.projId}`)
+ // } else {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/correction/${item.projId}`)
+ // }
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/correction/${item.projId}`)
}}
>
@@ -949,6 +957,12 @@ export default function Correction() {
style={{ width: 100, display: 'flex', justifyContent: 'center', alignItems: 'center' }}
onClick={() => {
+ // if (item.correctionType == 'ALL') {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/pdf/${item.projId}`)
+ // } else {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/correction/pdf/${item.projId}`)
+
+ // }
window.open(`${Axios.defaults?.baseURL}/route/proj/download/code/correction/pdf/${item.projId}`)
}}
>
@@ -966,7 +980,15 @@ export default function Correction() {
style={{ width: 100, display: 'flex', justifyContent: 'center', alignItems: 'center' }}
onClick={() => {
+ // if (item.correctionType == 'ALL') {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/${item.projId}`)
+ // } else {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/correction/${item.projId}`)
+
+ // }
window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/correction/${item.projId}`)
+
+
}}
>
Word
@@ -980,6 +1002,12 @@ export default function Correction() {
style={{ width: 100, display: 'flex', justifyContent: 'center', alignItems: 'center' }}
onClick={() => {
+ // if (item.correctionType == 'ALL') {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/pdf/${item.projId}`)
+ // } else {
+ // window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/correction/pdf/${item.projId}`)
+
+ // }
window.open(`${Axios.defaults?.baseURL}/route/proj/download/manual/correction/pdf/${item.projId}`)
}}
>
@@ -1013,7 +1041,11 @@ export default function Correction() {
-
+
{
+ nav(`/proj-edit/${item.projId}`);
+ sessionStorage.setItem('projName', item.projName);
+ sessionStorage.setItem('projStatus', item.generate.generateStatus == 'SUCCESS' ? '查看' : '编辑');
+ }} title={item.projName}>
{item.projName}
@@ -1029,7 +1061,7 @@ export default function Correction() {
}}>
{
tagCorArray.map((tagitem: any) => {
-
+
const [part1, part2] = tagitem.value.split(':');
// setTagDataIds(tagitem.tagDataIds)
if (part2 !== 'TAG_NOT') {
@@ -1040,13 +1072,13 @@ export default function Correction() {
color: item.tagDataIds.includes(part1) ? '#ffffff' : '#5a5a5a',
border: item.tagDataIds.includes(part1) ? ' 1px solid #ff7b00' : ' 1px solid #5a5a5a',
// background: back?'#ff7b00':'',
-
+
}}
onClick={
- (e:any) => {
+ (e: any) => {
// 获取点击的这个盒子的背景色
-
-
+
+
post
({
messageApi,
url: `/api/proj/correction/apply/tag/save-or-delete`,
@@ -1062,18 +1094,18 @@ export default function Correction() {
if (data.data.data === 'SAVE') {
-
+
e.target.style.background = '#ff7b00';
e.target.style.color = '#ffffff';
e.target.style.border = '1px solid #ff7b00';
-
+
} else if (data.data.data === 'DELETE') {
-
+
e.target.style.background = '';
e.target.style.color = '#5a5a5a';
e.target.style.border = '1px solid #5a5a5a';
-
+
}
},