Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
project_progress
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 03a2859d
authored
Jun 20, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赛选项目
1 parent
e551d5e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
88 deletions
src/api/index.js
src/views/compliance/taskConfigure.vue
src/api/index.js
View file @
03a2859
...
...
@@ -291,6 +291,10 @@ export function iPageRorm(params) {
export
function
auditTasks
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/auditTasks/`
,
params
)
}
//自动稽核任务配置 全部项目
export
function
selProjectList
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/auditTasks/selProjectList`
,
params
)
}
//新增自动稽核任务配置
export
function
addauditTasks
(
params
)
{
return
post
(
`
${
ARCH_EVALUATION
}
/auditTasks/ad`
,
params
)
...
...
src/views/compliance/taskConfigure.vue
View file @
03a2859
...
...
@@ -408,39 +408,6 @@
<el-form-item
class=
"RuleItem"
>
<span
class=
"zjquery"
@
click=
"checkRules()"
>
查询
</span>
</el-form-item>
<!-- <el-form-item label="检查说明:" prop="checkDesc" class="fromItem">
<el-input
v-model="ruleFormRule.checkDesc"
placeholder="请输入"
clearable
></el-input>
</el-form-item> -->
<!-- <el-form-item label="规则状态:" prop="ruleStatus" class="fromItem">
<el-select
v-model="ruleFormRule.ruleStatus"
placeholder="请选择"
clearable
>
<el-option label="开启" value="0"></el-option>
<el-option label="关闭" value="1"></el-option>
</el-select>
</el-form-item> -->
<!-- <el-form-item label="创建人:" prop="creator" class="fromItem">
<el-input
v-model="ruleFormRule.creator"
placeholder="请输入"
clearable
></el-input>
</el-form-item> -->
<!-- <el-form-item label="创建时间:" prop="createTime" class="fromItem">
<el-date-picker
v-model="ruleFormRule.createTime"
type="date"
placeholder="选择日期"
>
</el-date-picker>
</el-form-item> -->
</el-form>
<div
class=
"setscrolldialog"
>
<el-table
...
...
@@ -697,7 +664,7 @@
<p
class=
"zjBtn"
>
稽核规则
</p>
<div
class=
"setscrolldialogAdd"
>
<el-table
:data=
"
XQ
tableData"
:data=
"
add
tableData"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
...
...
@@ -758,20 +725,20 @@
</el-table>
</div>
<el-pagination
@
size-change=
"handleSizeChange
XQ
"
@
current-change=
"handleCurrentChange
XQ
"
:current-page=
"
XQcurrentPage
"
@
size-change=
"handleSizeChange
BJGZ
"
@
current-change=
"handleCurrentChange
BJGZ
"
:current-page=
"
currentPageBJGZ
"
:page-sizes=
"[5, 10, 20, 50]"
:page-size=
"
1000
"
:page-size=
"
5
"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"
XQ
total"
:total=
"
add
total"
class=
"elpagination"
>
</el-pagination>
<p
class=
"zjBtn"
>
待稽核项目
</p>
<div
class=
"setscrolldialogAdd"
>
<el-table
:data=
"
XQ
tableDataXM"
:data=
"
add
tableDataXM"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
...
...
@@ -838,9 +805,9 @@
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"handleSizeChangeXQ
XM"
@
current-change=
"handleCurrentChange
XQ
XM"
:current-page=
"
XQcurrentPage
XM"
@
size-change=
"handleSizeChangeBJ
XM"
@
current-change=
"handleCurrentChange
BJ
XM"
:current-page=
"
currentPageBJ
XM"
:page-sizes=
"[5, 10, 20, 50]"
:page-size=
"1000"
layout=
"total, sizes, prev, pager, next, jumper"
...
...
@@ -910,12 +877,7 @@
<div
class=
"setscrolldialogAdd"
>
<el-table
@
selection-change=
"handleSelectionChangeZJ"
:data=
"
addtableData.slice(
(addcurrentPage - 1) * pageSizeAdd,
addcurrentPage * pageSizeAdd
)
"
:data=
"addtableData"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
...
...
@@ -986,11 +948,11 @@
</el-table>
</div>
<el-pagination
@
size-change=
"handleSizeChange
Add
"
@
current-change=
"handleCurrentChange
Add
"
:current-page=
"
addcurrentPage
"
@
size-change=
"handleSizeChange
BJGZ
"
@
current-change=
"handleCurrentChange
BJGZ
"
:current-page=
"
currentPageBJGZ
"
:page-sizes=
"[5, 10, 20, 50]"
:page-size=
"
1000
"
:page-size=
"
5
"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"addtotal"
class=
"elpagination"
...
...
@@ -1001,12 +963,7 @@
</p>
<div
class=
"setscrolldialogAdd"
>
<el-table
:data=
"
addtableDataXM.slice(
(addcurrentPageXM - 1) * pageSizeAddXM,
addcurrentPageXM * pageSizeAddXM
)
"
:data=
"addtableDataXM"
tooltip-effect=
"dark myTooltips"
style=
"width: 100%"
header-cell-class-name=
"custom-th-background"
...
...
@@ -1083,9 +1040,9 @@
</el-table-column>
</el-table>
<el-pagination
@
size-change=
"handleSizeChange
Add
XM"
@
current-change=
"handleCurrentChange
Add
XM"
:current-page=
"
addcurrentPage
XM"
@
size-change=
"handleSizeChange
BJ
XM"
@
current-change=
"handleCurrentChange
BJ
XM"
:current-page=
"
currentPageBJ
XM"
:page-sizes=
"[5, 10, 20, 50]"
:page-size=
"1000"
layout=
"total, sizes, prev, pager, next, jumper"
...
...
@@ -1117,6 +1074,7 @@ import {
delProject
,
delRule
,
iPageRorm
,
selProjectList
}
from
"@/api/index"
;
import
{
generateYearOptions
,
projectCategoryText
}
from
"@/utils/cache"
;
export
default
{
...
...
@@ -1242,10 +1200,13 @@ export default {
XQtotal
:
0
,
pageSizeXQ
:
5
,
XQcurrentPage
:
1
,
pageSizeXQXM
:
5
,
XQcurrentPageXM
:
1
,
totalXQXM
:
0
,
defaultDate
:
new
Date
(),
currentPageBJXM
:
1
,
pageSizeBJXM
:
5
,
currentPageBJGZ
:
1
,
pageSizeBJGZ
:
5
,
};
},
watch
:
{
...
...
@@ -1314,11 +1275,14 @@ export default {
},
//详情
async
detailsForm
()
{
this
.
currentPageBJXM
=
1
this
.
pageSizeBJXM
=
5
this
.
currentPageBJGZ
=
1
this
.
pageSizeBJGZ
=
5
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
return
;
}
console
.
log
(
this
.
checkedList
[
0
],
"checkedList[0]"
);
this
.
ruleFormdialogXQ
=
this
.
checkedList
[
0
];
this
.
ruleFormdialogXQ
.
dates
=
[
this
.
checkedList
[
0
].
auditStartTime
,
...
...
@@ -1327,25 +1291,25 @@ export default {
this
.
dialog
=
true
;
let
params
=
{
auditId
:
this
.
checkedList
[
0
].
auditId
,
current
:
this
.
XQcurrentPage
,
pageSize
:
this
.
pageSize
XQ
,
current
:
this
.
currentPageBJGZ
,
pageSize
:
this
.
pageSize
BJGZ
,
};
let
params2
=
{
auditId
:
this
.
checkedList
[
0
].
auditId
,
current
:
this
.
XQcurrentPage
XM
,
pageSize
:
this
.
pageSize
XQ
XM
,
current
:
this
.
currentPageBJ
XM
,
pageSize
:
this
.
pageSize
BJ
XM
,
};
Promise
.
all
([
selRuleProject
(
params
),
selProject
(
params2
)]).
then
((
res
)
=>
{
this
.
XQ
tableData
=
res
[
0
].
data
.
records
;
this
.
XQ
tableDataXM
=
res
[
1
].
data
.
records
;
this
.
XQ
tableDataXM
.
forEach
((
item
)
=>
{
this
.
add
tableData
=
res
[
0
].
data
.
records
;
this
.
add
tableDataXM
=
res
[
1
].
data
.
records
;
this
.
add
tableDataXM
.
forEach
((
item
)
=>
{
this
.
$set
(
item
,
"projectCategory"
,
projectCategoryText
(
item
.
projectCategory
)
);
});
this
.
XQ
total
=
res
[
0
].
data
.
total
;
this
.
add
total
=
res
[
0
].
data
.
total
;
this
.
totalXQXM
=
res
[
1
].
data
.
total
;
this
.
dialogXQ
=
true
;
});
...
...
@@ -1457,9 +1421,6 @@ export default {
if
(
res
.
code
==
"200"
)
{
this
.
dialogRule
=
true
;
this
.
tableDataRule
=
res
.
data
.
records
;
// this.tableDataRule=this.tableDataRule.filter(item=>{
// return item.ruleStatus==0
// })
this
.
totalRule
=
res
.
data
.
total
*
1
;
}
},
...
...
@@ -1501,15 +1462,53 @@ export default {
handleCurrentChangeXQ
(
val
)
{
this
.
XQcurrentPage
=
val
;
},
handleSizeChangeXQXM
(
val
)
{
this
.
pageSizeXQXM
=
val
;
},
handleCurrentChangeXQXM
(
val
)
{
this
.
XQcurrentPageXM
=
val
;
},
handleSizeChangeAddXM
(
val
)
{
this
.
pageSizeAddXM
=
val
;
},
handleCurrentChangeBJXM
(
val
){
this
.
currentPageBJXM
=
val
;
this
.
handselProject
()
},
handleSizeChangeBJXM
(
val
)
{
this
.
pageSizeBJXM
=
val
;
this
.
handselProject
()
},
handleCurrentChangeBJGZ
(
val
){
this
.
currentPageBJGZ
=
val
;
this
.
BJselRuleProject
()
},
handleSizeChangeBJGZ
(
val
)
{
this
.
pageSizeBJGZ
=
val
;
this
.
BJselRuleProject
()
},
//分页从新调取
async
handselProject
(){
let
params2
=
{
auditId
:
this
.
checkedList
[
0
].
auditId
,
current
:
this
.
currentPageBJXM
,
pageSize
:
this
.
pageSizeBJXM
,
};
let
res
=
await
selProject
(
params2
)
this
.
addtableDataXM
=
res
.
data
.
records
;
this
.
addtableDataXM
.
forEach
(
item
=>
{
this
.
$set
(
item
,
"projectCategory"
,
projectCategoryText
(
item
.
projectCategory
)
);
})
},
//编辑规则
async
BJselRuleProject
(){
let
params
=
{
auditId
:
this
.
checkedList
[
0
].
auditId
,
current
:
this
.
currentPageBJGZ
,
pageSize
:
this
.
pageSizeBJGZ
,
};
let
res
=
await
selRuleProject
(
params
)
this
.
addtableData
=
res
.
data
.
records
;
},
handleCurrentChangeAddXM
(
val
)
{
this
.
addcurrentPageXM
=
val
;
},
...
...
@@ -1522,6 +1521,11 @@ export default {
},
//编辑
edit
()
{
this
.
currentPageBJXM
=
1
this
.
pageSizeBJXM
=
5
this
.
currentPageBJGZ
=
1
this
.
pageSizeBJGZ
=
5
this
.
oldid
=
""
this
.
showDate
=
false
;
if
(
this
.
checkedList
.
length
!=
1
)
{
this
.
$message
(
"请选择"
);
...
...
@@ -1532,26 +1536,29 @@ export default {
this
.
checkedList
[
0
].
auditStartTime
,
this
.
checkedList
[
0
].
auditEndTime
,
];
this
.
addtableDataXM
=
[]
let
params
=
{
auditId
:
this
.
checkedList
[
0
].
auditId
,
current
:
this
.
XQcurrentPage
,
pageSize
:
this
.
pageSize
XQ
,
current
:
this
.
currentPageBJGZ
,
pageSize
:
this
.
pageSize
BJGZ
,
};
let
params2
=
{
auditId
:
this
.
checkedList
[
0
].
auditId
,
current
:
this
.
XQcurrentPage
XM
,
pageSize
:
this
.
pageSize
XQ
XM
,
current
:
this
.
currentPageBJ
XM
,
pageSize
:
this
.
pageSize
BJ
XM
,
};
Promise
.
all
([
selRuleProject
(
params
),
selProject
(
params2
)]).
then
((
res
)
=>
{
Promise
.
all
([
selRuleProject
(
params
),
selProject
(
params2
)
,
selProjectList
(
params2
)
]).
then
((
res
)
=>
{
this
.
addtableData
=
res
[
0
].
data
.
records
;
this
.
addtableDataXM
=
res
[
1
].
data
.
records
;
this
.
addtotal
=
res
[
0
].
data
.
total
;
this
.
addtotalXM
=
res
[
1
].
data
.
total
;
let
allList
=
res
[
2
].
data
.
records
;
allList
.
forEach
(
item
=>
{
this
.
oldid
=
this
.
oldid
.
concat
(
item
.
projectId
+
","
);
})
this
.
dialogBJ
=
true
;
this
.
oldid
=
""
;
if
(
this
.
addtableDataXM
.
length
>
0
)
{
this
.
addtableDataXM
.
forEach
((
item
)
=>
{
this
.
oldid
=
this
.
oldid
.
concat
(
item
.
projectId
+
","
);
this
.
$set
(
item
,
"projectCategory"
,
...
...
@@ -1559,6 +1566,7 @@ export default {
);
});
}
console
.
log
(
this
.
oldid
,
this
.
addtableDataXM
,
'this.addtableDataXM'
)
});
},
//删除
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment