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 99c1dc91
authored
Oct 17, 2024
by
liangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智能分析
1 parent
c339a8a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
10 deletions
src/views/assessZC/checkCompliance.vue
src/views/assessZC/checkCompliance.vue
View file @
99c1dc9
...
@@ -8,6 +8,11 @@
...
@@ -8,6 +8,11 @@
</p>
</p>
<div
class=
"continer flex-column"
>
<div
class=
"continer flex-column"
>
<div
class=
"top"
:class=
"dialogFullScreen ? 'noShow' : ''"
>
<div
class=
"top"
:class=
"dialogFullScreen ? 'noShow' : ''"
>
<el-button
type=
"primary"
class=
"working"
@
click=
"working('work')"
>
智能分析
</el-button>
<el-steps
:active=
"active"
align-center
finish-status=
"success"
>
<el-steps
:active=
"active"
align-center
finish-status=
"success"
>
<el-step
<el-step
v-for=
"item in tabList"
v-for=
"item in tabList"
...
@@ -393,7 +398,6 @@ export default {
...
@@ -393,7 +398,6 @@ export default {
async
init
(
type
)
{
async
init
(
type
)
{
let
params
=
{
let
params
=
{
projectStage
:
this
.
active
*
1
+
1
,
projectStage
:
this
.
active
*
1
+
1
,
hgx
:
'hgx'
,
...
type
,
...
type
,
}
}
Promise
.
all
([
selFile
(
params
),
selWtqdFZ
(
params
)]).
then
(
async
(
res
)
=>
{
Promise
.
all
([
selFile
(
params
),
selWtqdFZ
(
params
)]).
then
(
async
(
res
)
=>
{
...
@@ -419,6 +423,87 @@ export default {
...
@@ -419,6 +423,87 @@ export default {
this
.
blobType
=
'png'
this
.
blobType
=
'png'
this
.
iframeUrl
=
'/nopdf.png'
this
.
iframeUrl
=
'/nopdf.png'
}
}
}
if
(
res
[
1
].
data
)
{
this
.
questionList
=
res
[
1
].
data
.
records
this
.
wtmx
=
res
[
1
].
data
.
MapkyXqfx
let
counterNum
=
0
this
.
questionList
.
forEach
(
async
(
item
)
=>
{
if
(
item
.
isProblem
==
0
)
{
this
.
$set
(
item
,
'checked'
,
true
)
this
.
changeChecked
(
item
)
}
let
respon
=
await
selWtmx
({
qid
:
item
.
qid
})
counterNum
++
if
(
respon
.
data
.
records
&&
respon
.
data
.
records
.
length
>
0
)
{
respon
.
data
.
records
.
forEach
(
async
(
itemImg
)
=>
{
if
(
itemImg
.
url
)
{
let
paramsImg
=
{
fileId
:
itemImg
.
id
,
url
:
itemImg
.
url
,
}
let
resUrl
=
await
presignedUrl
(
paramsImg
)
this
.
$set
(
itemImg
,
'fileList'
,
[
{
url
:
resUrl
.
msg
,
},
])
itemImg
.
hideUploadEdit
=
true
}
else
{
itemImg
.
hideUploadEdit
=
false
}
})
this
.
$set
(
item
,
'evalList'
,
[...
respon
.
data
.
records
])
}
else
{
this
.
$set
(
item
,
'evalList'
,
[
{
evalQues
:
''
,
hideUploadEdit
:
false
,
},
])
}
if
(
counterNum
==
this
.
questionList
.
length
)
{
setTimeout
(()
=>
{
this
.
oldQuestionList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
questionList
))
},
300
)
}
})
}
})
},
working
(
type
){
let
params
=
{
projectStage
:
this
.
active
*
1
+
1
,
// hgx: 'hgx',
...
this
.
clqparams
,
}
if
(
type
==
'work'
){
params
.
hgx
=
'hgx'
}
Promise
.
all
([
selFile
(
params
),
selWtqdFZ
(
params
)]).
then
(
async
(
res
)
=>
{
this
.
tabListKY
=
[]
this
.
urlList
=
res
[
0
].
data
if
(
this
.
urlList
.
length
>
0
)
{
this
.
urlList
.
forEach
((
item
)
=>
{
this
.
tabListKY
.
push
({
typeText
:
item
.
materialName
,
typeCode
:
item
.
mid
,
})
})
this
.
activeName
=
this
.
tabListKY
[
0
].
typeCode
let
resList
=
await
selFileList
({
...
params
,
typeCode
:
this
.
tabListKY
[
0
].
typeCode
,
})
this
.
options
=
resList
.
data
||
[]
if
(
this
.
options
.
length
>
0
)
{
this
.
valuesel
=
this
.
options
[
0
].
name
this
.
downloadObject
(
this
.
options
[
0
],
this
.
tabListKY
[
0
].
typeCode
)
}
else
{
this
.
blobType
=
'png'
this
.
iframeUrl
=
'/nopdf.png'
}
}
else
{
}
else
{
// this.iframeUrl = "/nopdf.png";
// this.iframeUrl = "/nopdf.png";
}
}
...
@@ -556,7 +641,7 @@ export default {
...
@@ -556,7 +641,7 @@ export default {
if
(
JSON
.
stringify
(
this
.
questionList
)
==
JSON
.
stringify
(
this
.
oldQuestionList
))
{
if
(
JSON
.
stringify
(
this
.
questionList
)
==
JSON
.
stringify
(
this
.
oldQuestionList
))
{
this
.
active
=
id
*
1
this
.
active
=
id
*
1
// this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this
.
init
(
this
.
clqparams
)
this
.
working
(
this
.
clqparams
)
return
return
}
}
this
.
$confirm
(
'是否保存?'
,
'提示'
,
{
this
.
$confirm
(
'是否保存?'
,
'提示'
,
{
...
@@ -567,22 +652,16 @@ export default {
...
@@ -567,22 +652,16 @@ export default {
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
save
(
'3'
,
id
)
this
.
save
(
'3'
,
id
)
// this.active = id * 1;
// this.init(this.clqparams);
})
})
.
catch
((
action
)
=>
{
.
catch
((
action
)
=>
{
console
.
log
(
action
,
'actionaction'
)
console
.
log
(
action
,
'actionaction'
)
if
(
action
===
'cancel'
)
{
if
(
action
===
'cancel'
)
{
this
.
active
=
id
*
1
this
.
active
=
id
*
1
// this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this
.
init
(
this
.
clqparams
)
this
.
working
(
this
.
clqparams
)
}
else
{
}
else
{
}
}
})
})
// this.save()
// this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.init(this.clqparams);
},
},
delInput
(
item
,
index
)
{
delInput
(
item
,
index
)
{
if
(
item
.
evalList
.
length
<=
1
)
{
if
(
item
.
evalList
.
length
<=
1
)
{
...
@@ -683,7 +762,7 @@ export default {
...
@@ -683,7 +762,7 @@ export default {
})
})
}
else
{
}
else
{
this
.
active
=
id
*
1
this
.
active
=
id
*
1
this
.
init
(
this
.
clqparams
)
this
.
working
(
this
.
clqparams
)
}
}
}
else
{
}
else
{
this
.
$message
(
'保存失败'
)
this
.
$message
(
'保存失败'
)
...
@@ -1053,4 +1132,8 @@ export default {
...
@@ -1053,4 +1132,8 @@ export default {
display
:
inline-block
;
display
:
inline-block
;
width
:
100px
;
width
:
100px
;
}
}
.working
{
position
:
absolute
;
left
:
-100px
;
}
</
style
>
</
style
>
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