Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
中汽研标准应用数据库
car-database-web
Commits
23bc210c
Commit
23bc210c
authored
Sep 05, 2024
by
baiyanhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审查页面相关代码提交
parent
7012f7f8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
121 additions
and
119 deletions
+121
-119
innovation.js
src/api/innovation/innovation.js
+1
-1
test.js
src/api/task/test.js
+2
-12
index.js
src/router/index.js
+8
-1
index.vue
src/views/review/already/index.vue
+1
-1
index.vue
src/views/review/createReview/deleteReviewDetails/index.vue
+1
-1
index.vue
src/views/review/createReview/deleteReviewScene/index.vue
+6
-6
index.vue
src/views/review/createReview/newReviewKeypoints/index.vue
+9
-3
index.vue
src/views/review/createReview/newReviewScene/index.vue
+5
-3
index.vue
src/views/review/reviewWait/index.vue
+1
-1
index.vue
src/views/review/sceneReview/index.vue
+31
-28
index.vue
src/views/review/wait/index.vue
+56
-62
No files found.
src/api/innovation/innovation.js
View file @
23bc210c
...
@@ -14,7 +14,7 @@ export function listInnovation(query) {
...
@@ -14,7 +14,7 @@ export function listInnovation(query) {
}
}
export
function
listInnovationFinsh
(
query
)
{
export
function
listInnovationFinsh
(
query
)
{
return
request
({
return
request
({
url
:
'/review/scene/change/task/
innovationBase
FindFinish'
,
url
:
'/review/scene/change/task/FindFinish'
,
method
:
'post'
,
method
:
'post'
,
headers
:{
headers
:{
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
...
...
src/api/task/test.js
View file @
23bc210c
...
@@ -84,17 +84,7 @@ export function testInitatereviewAdd(query) {
...
@@ -84,17 +84,7 @@ export function testInitatereviewAdd(query) {
data
:
query
data
:
query
})
})
}
}
// 发起评审页面 查询审查场景
export
function
testScene
(
query
)
{
return
request
({
url
:
'/review/scene/change/task/getSceneList'
,
method
:
'post'
,
headers
:{
'Content-Type'
:
'application/json'
,
},
data
:
query
})
}
// 发起评审页面 查询评审人员 不需要参数
// 发起评审页面 查询评审人员 不需要参数
export
function
testReviewer
()
{
export
function
testReviewer
()
{
return
request
({
return
request
({
...
@@ -151,7 +141,7 @@ export function testDetailsListAll(query) {
...
@@ -151,7 +141,7 @@ export function testDetailsListAll(query) {
})
})
}
}
// 发起评审页面 获取场景列表
// 发起评审页面 获取场景列表
export
function
testScene
ListAll
(
query
)
{
export
function
testScene
(
query
)
{
return
request
({
return
request
({
url
:
'/review/scene/change/task/getSceneListAll'
,
url
:
'/review/scene/change/task/getSceneListAll'
,
method
:
'post'
,
method
:
'post'
,
...
...
src/router/index.js
View file @
23bc210c
...
@@ -83,7 +83,14 @@ export const constantRoutes = [
...
@@ -83,7 +83,14 @@ export const constantRoutes = [
meta
:
{
title
:
'个人中心'
,
icon
:
'user'
}
meta
:
{
title
:
'个人中心'
,
icon
:
'user'
}
}
}
]
]
}
},
//去评审页面跳转 2024-9-5 16:25:29
{
path
:
'/goreview'
,
component
:
()
=>
import
(
'@/views/review/sceneReview/index'
),
name
:
'GoReview'
,
meta
:
{
title
:
'去评审'
,
icon
:
'dashboard'
}
},
]
]
// 动态路由,基于用户权限动态去加载
// 动态路由,基于用户权限动态去加载
...
...
src/views/review/already/index.vue
View file @
23bc210c
...
@@ -232,7 +232,7 @@ export default {
...
@@ -232,7 +232,7 @@ export default {
keyword
:
''
keyword
:
''
},
},
tableData
:
[],
tableData
:
[],
listUrl
:
'/review/scene/change/task/
innovationBaseF
indFinish'
,
listUrl
:
'/review/scene/change/task/
f
indFinish'
,
showSearch
:
true
,
showSearch
:
true
,
dialogManger
:
{
dialogManger
:
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
...
src/views/review/createReview/deleteReviewDetails/index.vue
View file @
23bc210c
...
@@ -516,7 +516,7 @@ export default {
...
@@ -516,7 +516,7 @@ export default {
this
.
newReviewSceneRemark
=
this
.
formModel
.
beizhuxinxi
this
.
newReviewSceneRemark
=
this
.
formModel
.
beizhuxinxi
this
.
newResDataAdd
.
newText
=
this
.
newReviewSceneT
ext
this
.
newResDataAdd
.
newText
=
this
.
selectedDetailsSave
.
t
ext
this
.
newResDataAdd
.
remark
=
this
.
newReviewSceneRemark
this
.
newResDataAdd
.
remark
=
this
.
newReviewSceneRemark
...
...
src/views/review/createReview/deleteReviewScene/index.vue
View file @
23bc210c
...
@@ -552,13 +552,13 @@ export default {
...
@@ -552,13 +552,13 @@ export default {
// 按钮-选择审查场景
// 按钮-选择审查场景
handleReSelectScene
()
{
handleReSelectScene
()
{
testScene
({
detailsId
:
this
.
newResDataAdd
.
detailsId
})
testScene
({
detailsId
:
this
.
newResDataAdd
.
detailsId
})
.
then
(
res
=>
{
.
then
(
res
ponse
=>
{
this
.
receivedScene
=
res
this
.
receivedScene
=
res
ponse
this
.
newResDataAdd
.
old
Text
=
this
.
receivedScene
.
scene
this
.
newResDataAdd
.
new
Text
=
this
.
receivedScene
.
scene
this
.
dialog
SceneDetails
=
true
this
.
dialog
VisibleScene
=
true
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
console
.
log
(
'test
Details
方法出错'
,
error
)
console
.
log
(
'test
ReSelectScene
方法出错'
,
error
)
})
})
},
},
// 按钮-确认发起
// 按钮-确认发起
...
@@ -623,7 +623,7 @@ export default {
...
@@ -623,7 +623,7 @@ export default {
selectedScene
(
newVal
)
{
selectedScene
(
newVal
)
{
this
.
selectedSceneSave
=
newVal
this
.
selectedSceneSave
=
newVal
console
.
log
(
'selectedSceneSave的新值'
,
this
.
selectedSceneSave
)
console
.
log
(
'selectedSceneSave的新值'
,
this
.
selectedSceneSave
)
this
.
newResDataAdd
.
oldText
=
this
.
selectedSceneSave
.
text
//
this.newResDataAdd.oldText = this.selectedSceneSave.text
}
}
}
}
}
}
...
...
src/views/review/createReview/newReviewKeypoints/index.vue
View file @
23bc210c
...
@@ -134,12 +134,18 @@
...
@@ -134,12 +134,18 @@
<el-col
:span=
"18"
>
<el-col
:span=
"18"
>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<div
class=
"assessor-text"
>
<div
class=
"assessor-text"
>
<div
评审人员:
<div
v-for=
"(reviewer, index) in this.receivedReviewer"
v-for=
"(reviewer, index) in this.receivedReviewer"
:key=
"index"
:key=
"index"
style=
"margin-bottom: 10px"
style=
"margin-bottom: 10px ;
display: flex;
position: relative;
flex-flow: row ;
"
>
>
{{ reviewer.dept.deptName }}:{{ reviewer.dept.leader }}
<span
style=
"position: absolute;"
>
{{ reviewer.nickName }}({{ reviewer.dept.deptName }})
</span>
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
...
...
src/views/review/createReview/newReviewScene/index.vue
View file @
23bc210c
...
@@ -315,7 +315,7 @@ export default {
...
@@ -315,7 +315,7 @@ export default {
standard
:
''
,
standard
:
''
,
type
:
''
,
type
:
''
,
keypointId
:
''
,
keypointId
:
''
,
keypoint
:
''
,
keypoint
:
''
,
detailsId
:
''
,
detailsId
:
''
,
details
:
''
,
details
:
''
,
...
@@ -480,11 +480,13 @@ export default {
...
@@ -480,11 +480,13 @@ export default {
)
)
testKeypoint
({
standardId
:
this
.
newResDataAdd
.
standardId
})
testKeypoint
({
standardId
:
this
.
newResDataAdd
.
standardId
})
.
then
(
response
=>
{
.
then
(
response
=>
{
console
.
log
(
response
)
this
.
receivedkeypoints
=
response
this
.
receivedkeypoints
=
response
//keypointId => /review/scene/change/task/getKeyPointList
//keypointId => /review/scene/change/task/getKeyPointList
//keypoint => /review/scene/change/task/getKeyPointList
//keypoint => /review/scene/change/task/getKeyPointList
this
.
newResDataAdd
.
keypointId
=
this
.
receivedkeypoints
.
keypointId
this
.
newResDataAdd
.
keypoint
=
this
.
receivedkeypoints
.
keypoint
this
.
newResDataAdd
.
keypointId
=
this
.
receivedkeypoints
.
data
.
keypointId
this
.
newResDataAdd
.
keypoint
=
this
.
receivedkeypoints
.
data
.
keypoint
this
.
dialogVisibleKeypoints
=
true
this
.
dialogVisibleKeypoints
=
true
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
...
...
src/views/review/reviewWait/index.vue
View file @
23bc210c
...
@@ -342,7 +342,7 @@ export default {
...
@@ -342,7 +342,7 @@ export default {
/* 去评审按钮页面跳转*/
/* 去评审按钮页面跳转*/
handleReview
(
row
)
{
handleReview
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
`/review/
reviewSceneR
eview`
,
path
:
`/review/
gor
eview`
,
query
:
{
id
:
row
.
id
}
query
:
{
id
:
row
.
id
}
// params:{ },
// params:{ },
})
})
...
...
src/views/review/sceneReview/index.vue
View file @
23bc210c
...
@@ -3,24 +3,26 @@
...
@@ -3,24 +3,26 @@
<div
class=
"subtitle"
>
评审对象
</div>
<div
class=
"subtitle"
>
评审对象
</div>
<el-row
:gutter=
"20"
justify=
"center"
type=
"flex"
>
<el-row
:gutter=
"20"
justify=
"center"
type=
"flex"
>
<el-col
:span=
"20"
>
<el-col
:span=
"20"
>
<el-form
label-suffix=
":"
>
<el-form
label-suffix=
":"
:data=
"this.resData"
>
<el-form-item
label=
"条款分类"
prop=
"type"
>
<el-form-item
label=
"条款分类"
prop=
"type"
>
{{
typeList
.
find
(
item
=>
item
.
dictValue
===
resData
.
type
).
dictLabel
}}
<!--
{{
typeList
.
find
(
item
=>
item
.
dictValue
===
resData
.
type
).
dictLabel
}}
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"标准条款"
prop=
"chapter standard"
>
<el-form-item
label=
"标准条款"
prop=
"chapter standard"
>
{{
resData
.
chapter
}}
{{
resData
.
standard
}}
<!--
{{
resData
.
chapter
}}
{{
resData
.
standard
}}
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"审查要点"
prop=
"keypoint"
>
<el-form-item
label=
"审查要点"
prop=
"keypoint"
>
{{
resData
.
keypoint
}}
<!--
{{
resData
.
keypoint
}}
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"审查细则"
prop=
"details"
>
<el-form-item
label=
"审查细则"
prop=
"details"
>
{{
resData
.
details
}}
<!--
{{
resData
.
details
}}
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"新增场景"
prop=
"newText"
style=
"color: red"
>
<el-form-item
label=
"新增场景"
prop=
"newText"
style=
"color: red"
>
{{
resData
.
newText
}}
<!--
{{
resData
.
newText
}}
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注信息"
prop=
"remark"
style=
"color: red"
>
<el-form-item
label=
"备注信息"
prop=
"remark"
style=
"color: red"
>
{{
resData
.
remark
}}
<!--
{{
resData
.
remark
}}
-->
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-col>
</el-col>
...
@@ -138,14 +140,16 @@ export default {
...
@@ -138,14 +140,16 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
gainDictDataList
()
;
this
.
gainDictDataList
()
console
.
log
(
'this.$route.query.id:'
,
this
.
$route
.
query
.
id
)
console
.
log
(
'this.$route.query.id:'
,
this
.
$route
.
query
.
id
)
this
.
id
=
this
.
$route
.
query
.
id
?
this
.
$route
.
query
.
id
.
toString
()
:
''
// 确保 id 存在
this
.
id
=
this
.
$route
.
query
.
id
?
this
.
$route
.
query
.
id
.
toString
()
:
''
// 确保 id 存在
if
(
this
.
id
)
{
if
(
this
.
id
)
{
reviewInnovation
({
id
:
this
.
id
}).
then
(
response
=>
{
reviewInnovation
({
id
:
this
.
id
})
.
then
(
response
=>
{
this
.
resData
=
response
.
data
||
{}
// 确保数据存在
this
.
resData
=
response
.
data
||
{}
// 确保数据存在
}).
catch
(
error
=>
{
})
.
catch
(
error
=>
{
console
.
error
(
'Error loading review data:'
,
error
)
console
.
error
(
'Error loading review data:'
,
error
)
})
})
}
}
...
@@ -164,28 +168,28 @@ export default {
...
@@ -164,28 +168,28 @@ export default {
this
.
typeList
=
response
.
data
||
[]
this
.
typeList
=
response
.
data
||
[]
})
})
},
},
// 字典格式化 operationSort 字段
//
//
字典格式化 operationSort 字段
formatOperationSort
(
row
,
column
)
{
//
formatOperationSort(row, column) {
const
reviewTypeList
=
this
.
reviewTypeList
.
find
(
//
const reviewTypeList = this.reviewTypeList.find(
item
=>
item
.
dictValue
===
row
.
operationSort
//
item => item.dictValue === row.operationSort
)
//
)
return
reviewTypeList
?
reviewTypeList
.
dictLabel
:
''
//
return reviewTypeList ? reviewTypeList.dictLabel : ''
},
//
},
// 字典格式化 type 字段
//
//
字典格式化 type 字段
formatType
(
row
,
column
)
{
//
formatType(row, column) {
const
typeList
=
this
.
typeList
.
find
(
item
=>
item
.
dictValue
===
row
.
type
)
//
const typeList = this.typeList.find(item => item.dictValue === row.type)
return
typeList
?
typeList
.
dictLabel
:
''
//
return typeList ? typeList.dictLabel : ''
},
//
},
handleSubmit
()
{
handleSubmit
()
{
// 确保在提交时 auditModel 的所有字段都被正确设置
// 确保在提交时 auditModel 的所有字段都被正确设置
this
.
auditModel
.
taskId
=
this
.
id
this
.
auditModel
.
taskId
=
this
.
id
this
.
auditModel
.
comment
=
this
.
model
.
deptName
this
.
auditModel
.
comment
=
this
.
model
.
deptName
console
.
log
(
this
.
auditModel
,
"即将发送的 auditModel 数据"
)
console
.
log
(
this
.
auditModel
,
'即将发送的 auditModel 数据'
)
submitInnovationAudit
(
this
.
auditModel
)
submitInnovationAudit
(
this
.
auditModel
)
.
then
(
response
=>
{
.
then
(
response
=>
{
console
.
log
(
'Audit submitted:'
,
response
)
console
.
log
(
'Audit submitted:'
,
response
)
this
.
$router
.
push
({
path
:
'/review/wait'
})
this
.
$router
.
push
({
path
:
'/review/wait'
})
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
console
.
error
(
'Error submitting audit:'
,
error
)
console
.
error
(
'Error submitting audit:'
,
error
)
...
@@ -193,11 +197,10 @@ export default {
...
@@ -193,11 +197,10 @@ export default {
},
},
handleRadioChange
(
value
)
{
handleRadioChange
(
value
)
{
this
.
auditModel
.
passed
=
value
===
'agree'
?
1
:
0
this
.
auditModel
.
passed
=
value
===
'agree'
?
1
:
0
console
.
log
(
this
.
auditModel
.
passed
,
"Radio changed, passed value updated"
)
console
.
log
(
this
.
auditModel
.
passed
,
'Radio changed, passed value updated'
)
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/review/wait/index.vue
View file @
23bc210c
...
@@ -13,20 +13,6 @@
...
@@ -13,20 +13,6 @@
size=
"small"
size=
"small"
:inline=
"true"
:inline=
"true"
>
>
<el-form-item
prop=
"inspectStandardNo"
>
<el-select
v-model=
"queryParams.inspectStandardNo"
placeholder=
"检验标准"
clearable
>
<el-option
v-for=
"dict in dict.type.review_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
prop=
"operationSort"
>
<el-form-item
prop=
"operationSort"
>
<el-select
<el-select
v-model=
"queryParams.operationSort"
v-model=
"queryParams.operationSort"
...
@@ -92,14 +78,14 @@
...
@@ -92,14 +78,14 @@
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<
!-- <
el-table-column
<el-table-column
label=
"评审单编号"
label=
"评审单编号"
sortable
sortable
min-width=
"200"
min-width=
"200"
align=
"left"
align=
"left"
prop=
"id"
prop=
"id"
>
>
</el-table-column>
-->
</el-table-column>
<el-table-column
<el-table-column
label=
"检验标准"
label=
"检验标准"
sortable
sortable
...
@@ -165,7 +151,6 @@
...
@@ -165,7 +151,6 @@
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-hasPermi=
"['review:already:detail']"
size=
"mini"
size=
"mini"
type=
"primary"
type=
"primary"
plain
plain
...
@@ -187,8 +172,8 @@
...
@@ -187,8 +172,8 @@
v-show=
"total > 0"
v-show=
"total > 0"
:total=
"total"
:total=
"total"
:background=
"false"
:background=
"false"
:page
.
sync=
"queryParams.page"
:page
.
sync=
"queryParams.page
Num
"
:limit
.
sync=
"queryParams.
s
ize"
:limit
.
sync=
"queryParams.
pageS
ize"
@
pagination=
"loadData"
@
pagination=
"loadData"
>
>
</pagination>
</pagination>
...
@@ -230,8 +215,8 @@
...
@@ -230,8 +215,8 @@
<
script
>
<
script
>
import
page
from
'@/mixins/page'
import
page
from
'@/mixins/page'
import
dialog
from
'./components/dialog.vue'
import
dialog
from
'./components/dialog.vue'
import
{
getDicts
}
from
'
../../..
/api/system/dict/data'
import
{
getDicts
}
from
'
@
/api/system/dict/data'
import
{
list
Innovation
}
from
'../../../api/innovation/innovation'
;
import
{
list
Reviewer
}
from
'../../../api/reviewer/reviewer'
export
default
{
export
default
{
components
:
{
components
:
{
'yan-dialog'
:
dialog
'yan-dialog'
:
dialog
...
@@ -248,7 +233,7 @@ export default {
...
@@ -248,7 +233,7 @@ export default {
keyword
:
''
keyword
:
''
},
},
tableData
:
[],
tableData
:
[],
listUrl
:
'/review/scene/change/task/
innovationBaseF
indPending'
,
listUrl
:
'/review/scene/change/task/
f
indPending'
,
showSearch
:
true
,
showSearch
:
true
,
dialogManger
:
{
dialogManger
:
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -267,8 +252,9 @@ export default {
...
@@ -267,8 +252,9 @@ export default {
}
}
}
}
},
},
reviewTypeList
:[],
// request:'',
typeList
:[]
reviewTypeList
:
[],
typeList
:
[]
}
}
},
},
watch
:
{
watch
:
{
...
@@ -279,48 +265,50 @@ export default {
...
@@ -279,48 +265,50 @@ export default {
}
}
}
}
},
},
created
(){
created
()
{
this
.
gainDictDataList
()
this
.
gainDictDataList
()
},
},
methods
:
{
methods
:
{
//计算任务等待时间
//计算任务等待时间
formatWaitingTime
(
row
){
formatWaitingTime
(
row
)
{
const
beginTime
=
new
Date
(
row
.
taskBeginTime
)
;
//开始时间
const
beginTime
=
new
Date
(
row
.
taskBeginTime
)
//开始时间
const
nowTime
=
new
Date
()
;
//当前时间
const
nowTime
=
new
Date
()
//当前时间
const
diffTime
=
nowTime
-
beginTime
;
//时间差
const
diffTime
=
nowTime
-
beginTime
//时间差
if
(
diffTime
<=
0
)
{
if
(
diffTime
<=
0
)
{
return
'刚刚'
;
return
'刚刚'
}
}
//显示精确到小时
//显示精确到小时
const
daysCount
=
Math
.
floor
(
diffTime
/
(
24
*
3600
*
1000
));
const
daysCount
=
Math
.
floor
(
diffTime
/
(
24
*
3600
*
1000
))
const
hoursCount
=
Math
.
floor
(
diffTime
/
(
3600
*
1000
))
-
daysCount
*
24
;
const
hoursCount
=
Math
.
floor
(
diffTime
/
(
3600
*
1000
))
-
daysCount
*
24
if
(
daysCount
>
0
){
if
(
daysCount
>
0
)
{
return
`
${
daysCount
}
天
${
hoursCount
}
小时前`
return
`
${
daysCount
}
天
${
hoursCount
}
小时前`
}
else
if
(
hoursCount
>
0
)
{
}
else
if
(
hoursCount
>
0
)
{
return
`
${
hoursCount
}
小时前`
return
`
${
hoursCount
}
小时前`
}
else
{
}
else
{
return
'一小时之内'
return
'一小时之内'
}
}
},
},
gainDictDataList
(){
gainDictDataList
()
{
const
obj
=
'type'
const
obj
=
'type'
const
obj1
=
'review_type'
const
obj1
=
'review_type'
// 获取 review_type 字典数据
// 获取 review_type 字典数据
getDicts
(
'review_type'
).
then
(
response
=>
{
getDicts
(
'review_type'
).
then
(
response
=>
{
this
.
reviewTypeList
=
response
.
data
||
[]
this
.
reviewTypeList
=
response
.
data
||
[]
})
})
// 获取 type 字典数据
// 获取 type 字典数据
getDicts
(
'type'
).
then
(
response
=>
{
getDicts
(
'type'
).
then
(
response
=>
{
this
.
typeList
=
response
.
data
||
[]
this
.
typeList
=
response
.
data
||
[]
})
})
},
},
formatOperationSort
(
row
,
column
)
{
formatOperationSort
(
row
,
column
)
{
const
reviewTypeList
=
this
.
reviewTypeList
.
find
(
item
=>
item
.
dictValue
===
row
.
operationSort
)
const
reviewTypeList
=
this
.
reviewTypeList
.
find
(
item
=>
item
.
dictValue
===
row
.
operationSort
)
return
reviewTypeList
?
reviewTypeList
.
dictLabel
:
''
return
reviewTypeList
?
reviewTypeList
.
dictLabel
:
''
},
},
formatType
(
row
,
column
)
{
formatType
(
row
,
column
)
{
const
typeList
=
this
.
typeList
.
find
(
item
=>
item
.
dictValue
===
row
.
type
)
const
typeList
=
this
.
typeList
.
find
(
item
=>
item
.
dictValue
===
row
.
type
)
return
typeList
?
typeList
.
dictLabel
:
''
return
typeList
?
typeList
.
dictLabel
:
''
},
},
/* 关闭移交弹窗-保存*/
/* 关闭移交弹窗-保存*/
...
@@ -354,8 +342,8 @@ export default {
...
@@ -354,8 +342,8 @@ export default {
/* 去评审按钮页面跳转*/
/* 去评审按钮页面跳转*/
handleReview
(
row
)
{
handleReview
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
`/
review/sceneR
eview`
,
path
:
`/
gor
eview`
,
query
:
{
id
:
row
.
id
}
,
query
:
{
id
:
row
.
id
}
// params:{ },
// params:{ },
})
})
},
},
...
@@ -368,25 +356,31 @@ export default {
...
@@ -368,25 +356,31 @@ export default {
this
.
queryParams
.
page
=
1
this
.
queryParams
.
page
=
1
this
.
getList
()
this
.
getList
()
},
},
getList
(){
getList
()
{
//打印参数
//打印参数
// console.log(this.queryParams)
// console.log(this.queryParams)
// console.log(6666)
// console.log(6666)
listInnovation
(
this
.
queryParams
).
then
(
response
=>
{
listReviewer
(
this
.
queryParams
)
this
.
tableData
=
response
.
rows
.
then
(
response
=>
{
}).
catch
(
error
=>
{
console
.
error
(
"Error fetching data:"
,
error
)})
this
.
tableData
=
response
.
rows
})
.
catch
(
error
=>
{
console
.
error
(
'Error fetching data:'
,
error
)
})
},
},
/* 重置*/
/* 重置*/
resetQuery
()
{
resetQuery
()
{
this
.
queryParams
.
page
=
1
this
.
queryParams
=
{
this
.
queryParams
.
keyword
=
''
pageNum
:
1
,
this
.
queryParams
.
operationSort
=
''
pageSize
:
10
,
this
.
queryParams
.
type
=
''
operationSort
:
''
,
type
:
''
,
keyword
:
''
}
this
.
handleQuery
()
this
.
handleQuery
()
}
,
}
/* 数据字典转换*/
/* 数据字典转换*/
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment