Commit 57dff67b authored by baiyanhao's avatar baiyanhao

修改我的已审界面数据展示

parent 75591aca
...@@ -52,6 +52,17 @@ export function alreadyReviewer(query) { ...@@ -52,6 +52,17 @@ export function alreadyReviewer(query) {
headers:{ headers:{
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
data: query
})
}
export function listReviewerFinish(query) {
return request({
url: '/review/scene/change/task/FindFinish',
method: 'post',
headers:{
'Content-Type': 'application/json',
},
data: query data: query
}) })
} }
\ No newline at end of file
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
clearable clearable
> >
<el-option <el-option
v-for="dict in dict.type.type" v-for="dict in dict.type.cene_type_wait"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
...@@ -146,7 +146,8 @@ ...@@ -146,7 +146,8 @@
sortable sortable
min-width="200" min-width="200"
align="left" align="left"
prop="innovationBaseResult" prop="decision"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
...@@ -215,7 +216,9 @@ ...@@ -215,7 +216,9 @@
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 { listInnovationFinsh } from '../../../api/innovation/innovation'; import { listReviewerFinish } from '@/views/review/already';
export default { export default {
components: { components: {
'yan-dialog': dialog 'yan-dialog': dialog
...@@ -252,7 +255,8 @@ export default { ...@@ -252,7 +255,8 @@ export default {
} }
}, },
reviewTypeList:[], reviewTypeList:[],
typeList:[] typeList:[],
reviewStatusList:[]
} }
}, },
watch: { watch: {
...@@ -270,6 +274,7 @@ export default { ...@@ -270,6 +274,7 @@ export default {
gainDictDataList(){ gainDictDataList(){
const obj = 'scene_type_wait' const obj = 'scene_type_wait'
const obj1= 'review_type' const obj1= 'review_type'
const obj2= 'system_review_test'
// 获取 review_type 字典数据 // 获取 review_type 字典数据
getDicts('review_type').then(response => { getDicts('review_type').then(response => {
this.reviewTypeList = response.data || [] this.reviewTypeList = response.data || []
...@@ -278,6 +283,10 @@ export default { ...@@ -278,6 +283,10 @@ export default {
// 获取 type 字典数据 // 获取 type 字典数据
getDicts('scene_type_wait').then(response => { getDicts('scene_type_wait').then(response => {
this.typeList = response.data || [] this.typeList = response.data || []
})
// 获取 system_review_test 字典数据
getDicts('system_review_test').then(response => {
this.reviewStatusList = response.data || []
}) })
}, },
formatOperationSort(row,column) { formatOperationSort(row,column) {
...@@ -288,6 +297,10 @@ export default { ...@@ -288,6 +297,10 @@ export default {
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 : ''
}, },
formatReviewStatus(row,column){
const reviewStatusList= this.reviewStatusList.find(item => item.dictValue === row.reviewStatus)
return reviewStatusList ? reviewStatusList.dictLabel : ''
},
/* 关闭移交弹窗-保存*/ /* 关闭移交弹窗-保存*/
handleClose() { handleClose() {
this.handOverDialog.visible = false this.handOverDialog.visible = false
...@@ -345,10 +358,16 @@ export default { ...@@ -345,10 +358,16 @@ export default {
//打印参数 //打印参数
// console.log(this.queryParams) // console.log(this.queryParams)
// console.log(6666) // console.log(6666)
listInnovationFinsh(this.queryParams).then(response => { listReviewerFinish(this.queryParams).then(response => {
this.tableData = response.rows this.tableData = response.rows
}).catch(error => {console.error("Error fetching data:", error)}) }).catch(error => {console.error("Error fetching data:", error)})
}, },
formatDecision(row, column) {
if (row.decision === 'PASS') {
return '通过'}else if (row.decision === 'REJECT') {
return '不通过'}
}
},
/* 重置*/ /* 重置*/
resetQuery() { resetQuery() {
this.queryParams.page = 1 this.queryParams.page = 1
...@@ -359,9 +378,9 @@ export default { ...@@ -359,9 +378,9 @@ export default {
this.handleQuery() this.handleQuery()
}, },
/* 数据字典转换*/ /* 数据字典转换*/
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/* 标题样式 */ /* 标题样式 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment