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 0f2bc8da
authored
Sep 24, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编制配置
1 parent
e3acb912
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
40 deletions
src/views/compliance/addConfigure.vue
src/views/compliance/checkRules.vue
src/views/compliance/addConfigure.vue
View file @
0f2bc8d
...
...
@@ -227,7 +227,7 @@
</el-form>
<div
class=
"setscrolldialogx"
>
<el-table
@
select=
"handleSelectionChangeXM"
@
select
ion-change
=
"handleSelectionChangeXM"
@
select-all=
"selectAll"
@
row-click=
"(row, column, event) => handleRowClick(row, column, event, 'multipleTableXM')"
ref=
"multipleTableXM"
...
...
@@ -352,6 +352,7 @@
<div
class=
"setscrolldialog"
>
<el-table
@
selection-change=
"handleSelectionChangeZJ"
@
row-click=
"(row, column, event) => handleRowClick(row, column, event, 'multipleTableZJ')"
ref=
"multipleTableZJ"
:data=
"tableDataRule"
tooltip-effect=
"dark myTooltips"
...
...
@@ -590,6 +591,7 @@ export default {
},
//选择项目
saveZJ
()
{
console
.
log
(
this
.
addZJListXM
,
this
.
addtableDataXM
,
'选择了'
)
if
(
this
.
addZJListXM
.
length
<
1
)
{
this
.
$message
(
"请选择项目"
);
return
;
...
...
@@ -694,6 +696,7 @@ export default {
},
handleSelectionChangeXM
(
selection
)
{
console
.
log
(
'点击了'
)
// this.addZJListXM = this.$refs.multipleTableXM.selection;
if
(
selection
.
length
<
1
)
{
return
...
...
src/views/compliance/checkRules.vue
View file @
0f2bc8d
...
...
@@ -210,7 +210,7 @@
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
v-if=
"s
cope.row.questionId == 1
"
v-if=
"s
howbzArr.includes(scope.row.questionId+'')
"
type=
"primary"
class=
"btn-search"
@
click=
"editxq(scope.row,scope.$index, '详情')"
...
...
@@ -318,7 +318,7 @@
<
template
slot-scope=
"scope"
>
<el-button
size=
"small"
v-if=
"s
cope.row.questionId == 1
"
v-if=
"s
howbzArr.includes(scope.row.questionId+'')
"
type=
"primary"
class=
"btn-search"
@
click=
"edit(scope.row,scope.$index)"
...
...
@@ -345,13 +345,18 @@
:modal-append-to-body=
"false"
:append-to-body=
"false"
>
<div
class=
"bjrule"
>
<el-checkbox-group
v-model=
"checkList"
:disabled=
"xqedit"
>
<div
class=
"bjrule"
>
<el-checkbox-group
v-model=
"checkList"
:disabled=
"xqedit"
v-if=
"questionId == 1"
>
<el-checkbox
label=
"1"
>
应有可研报告或项目说明书
</el-checkbox>
<el-checkbox
label=
"2"
>
可研评审意见
</el-checkbox>
<el-checkbox
label=
"3"
>
可研批复
</el-checkbox>
</el-checkbox-group>
<div
v-else-if=
"questionId == 2"
>
<p>
可研中的需求内容应与业务需求报告中的需求匹配度(%)
<el-input-number
v-model=
"numval"
:step=
"10"
:max=
"100"
:min=
"0"
:disabled=
"xqedit"
></el-input-number></p>
</div>
<p
class=
"midBtn bjBtn"
>
<span
@
click=
"cancelBJ()"
>
取消
</span
><span
@
click=
"saveBJ()"
>
保存
</span>
...
...
@@ -381,7 +386,12 @@ export default {
editIndex
:
99999999
,
checkList
:
[],
tableDataQR
:
[],
ruleFormdialogAdd
:
{},
ruleFormdialogAdd
:
{
ruleName
:
''
,
creator
:
''
,
ruleStatus
:
'0'
,
},
listData
:
{},
qdtableData
:
JSON
.
parse
(
JSON
.
stringify
(
MaterialsList
())),
tableDataNew
:
MaterialsList
(),
...
...
@@ -394,10 +404,9 @@ export default {
},
ruleFormdialog
:
{
batchYear
:
""
,
batchName
:
""
,
planReviewDate
:
""
,
fullName
:
""
,
ruleName
:
''
,
ruleStatus
:
''
,
creator
:
''
,
},
tableData
:
[],
...
...
@@ -442,6 +451,9 @@ export default {
],
},
configInfo
:
''
,
//编制的入参信息
questionId
:
''
,
//编制的编号
numval
:
""
,
showbzArr
:[
'1'
,
'2'
]
};
},
filters
:
{
...
...
@@ -475,7 +487,7 @@ export default {
let
namesString
=
paramsArr
.
map
(
obj
=>
obj
.
configValue
).
join
(
'-'
);
let
quesStr
=
paramsArr
.
map
(
obj
=>
obj
.
questionId
).
join
(
'-'
);
console
.
log
(
namesString
,
'222222'
)
//下边字符串转好在传过来
if
(
namesString
)
{
...
...
@@ -484,6 +496,7 @@ export default {
}
Object
.
assign
(
params
,
this
.
ruleFormdialogAdd
);
console
.
log
(
params
,
'222222'
)
addruleFormulation
(
params
).
then
((
res
)
=>
{
this
.
dialogAdd
=
false
;
this
.
resetForm
();
...
...
@@ -508,6 +521,9 @@ export default {
this
.
xqedit
=
false
this
.
editIndex
=
index
this
.
dialogedit
=
true
;
this
.
questionId
=
info
.
questionId
;
console
.
log
(
info
,
this
.
questionId
,
'555'
)
// if (info.questionId == 1 && info.configValue) {
// this.checkList = info.configValue.split(",");
// }
...
...
@@ -516,9 +532,13 @@ export default {
//详情里的编制
editxq
(
info
,
index
){
console
.
log
(
info
,
index
,
"2222"
);
if
(
info
.
configValue
)
{
this
.
questionId
=
info
.
questionId
if
(
this
.
questionId
==
1
)
{
this
.
checkList
=
info
.
configValue
.
split
(
","
)
}
if
(
this
.
questionId
==
2
){
this
.
numval
=
info
.
configValue
;
}
this
.
xqedit
=
true
this
.
dialogedit
=
true
;
},
...
...
@@ -541,33 +561,11 @@ export default {
pageSize
:
this
.
pageSize
,
};
Object
.
assign
(
params
,
this
.
ruleForm
);
console
.
log
(
params
);
console
.
log
(
params
,
'入参'
);
let
res
=
await
ruleFormulation
(
params
);
console
.
log
(
res
,
"reslll11"
);
if
(
res
.
code
==
"200"
)
{
this
.
tableData
=
res
.
data
.
records
;
this
.
tableData
.
forEach
((
item
)
=>
{
switch
(
item
.
projectStage
)
{
case
"1"
:
this
.
$set
(
item
,
"projectStagetext"
,
"可研"
);
break
;
case
"2"
:
this
.
$set
(
item
,
"projectStagetext"
,
"计划"
);
break
;
case
"3"
:
this
.
$set
(
item
,
"projectStagetext"
,
"采购"
);
break
;
case
"4"
:
this
.
$set
(
item
,
"projectStagetext"
,
"合同"
);
break
;
case
"5"
:
this
.
$set
(
item
,
"projectStagetext"
,
"执行"
);
break
;
case
"6"
:
this
.
$set
(
item
,
"projectStagetext"
,
"结决算及转资"
);
break
;
}
});
this
.
total
=
res
.
data
.
total
*
1
;
}
},
...
...
@@ -590,13 +588,11 @@ export default {
this
.
ruleFormdialog
=
this
.
checkedList
[
0
];
let
params
=
{
id
:
this
.
checkedList
[
0
].
id
// current: this.XQcurrentPage,
// pageSize: this.pageSizeXQ,
// projectStage: this.checkedList[0].questionId,
};
let
res
=
await
iPageRorm
(
params
);
this
.
tableDataXQ
=
res
.
data
.
records
;
this
.
totalXQ
=
res
.
data
.
total
;
// this.resetForm()
},
//表格颜色
...
...
@@ -614,7 +610,7 @@ export default {
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
selection
[
1
],
true
);
}
this
.
checkedList
=
this
.
$refs
.
multipleTable
.
selection
;
this
.
ruleFormdialog
=
this
.
checkedList
[
0
];
//
this.ruleFormdialog = this.checkedList[0];
console
.
log
(
this
.
checkedList
,
"2222"
);
},
handleSizeChange
(
val
)
{
...
...
@@ -629,6 +625,9 @@ export default {
},
cancel
()
{
this
.
dialog
=
false
;
this
.
ruleFormdialog
=
{
ruleName
:
''
}
},
handleSizeChangeXQ
(
val
)
{
this
.
pageSizeXQ
=
val
;
...
...
@@ -643,10 +642,14 @@ export default {
this
.
checkList
=
[];
},
saveBJ
()
{
this
.
configInfo
=
''
,
this
.
dialogedit
=
false
;
if
(
Array
.
isArray
(
this
.
checkList
)
){
if
(
this
.
questionId
==
1
){
this
.
configInfo
=
this
.
checkList
.
sort
().
join
();
}
if
(
this
.
questionId
==
2
){
this
.
configInfo
=
this
.
numval
;
}
if
(
this
.
configInfo
){
this
.
tableDataQR
[
this
.
editIndex
].
configValue
=
this
.
configInfo
}
...
...
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