123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <template>
- <view>
- <view class="navbar">
- <view class="back">
- <text class="iconfont icon-fanhui " @click="backLast()"></text>
- </view>
- <text>文件列表</text>
- </view>
- <view class="shenbaoList">
- <view class="list_li" v-for="(item,index) in list" :key="index">
- <view class="title">{{item.name}}</view>
- <view class="li_bottom">
- <view>等级:{{item.grade_name || '--'}}</view>
- <view>分值:<text style="color: red;">{{item.check_status==2 ? item.point : '0'}}</text></view>
- </view>
- <view class="li_bottom">
- <view>名次:{{item.ranking || '--'}}</view>
- <view>状态:<text style="color: #19b83b;" v-if="item.check_status==2">审核通过</text>
- <text style="color: #007AFF;" v-else-if="item.check_status==1">待审核</text>
- <text style="color: red;" v-else>审核失败</text>
- </view>
- </view>
- <view class="li_bottom">
- <view>颁发单位:{{item.unit || '--'}}</view>
- <view>{{item.award_day || '--'}}</view>
- </view>
- <view class="li_bottom">
- <view>审核人:{{item.check_admin ? item.check_admin.name : '--'}}</view>
- <view style="display: flex;align-items: center;justify-content: flex-end;">
- <view class="button none" @click="detail(item)" style="margin-left: 20upx;">
- <text>详情</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- var app = getApp()
- import navBar from '../../components/navBar/navbar.vue';
- export default {
- components: {
- navBar
- },
- data() {
- return {
- list: [],
- show: false,
- uploadPdf: '',
- is_open: false, //是否再上传时间段
- };
- },
- onLoad(options) {
- this.getDetails(options.id)
- },
- methods: {
- getDetails(id) {
- app.request('/examine/examine-detail', {
- examine_question_id: id
- }, 'post').then(res => {
- console.log(res, 'ppppp')
- this.list = res.data.data
- })
- },
- detail(item) {
- let obj = item.resources
- var arr = Object.values(obj)
- uni.navigateTo({
- url: './shenbaoDetail?url=' + arr[0]
- })
- },
- deletes(item) {
- var data = {
- examine_question_id: item.id,
- id: item.examine.id,
- staff_id: item.examine.staff.id
- }
- app.request('/examine/delete', data, 'post').then(res => {
- console.log(res)
- uni.showToast({
- title: '删除成功',
- icon: 'none'
- })
- this.getList()
- })
- },
- backLast: function() {
- uni.reLaunch({
- url: './shenbao'
- })
- },
- }
- }
- </script>
- <style lang="scss">
- page {
- background: #f5f5f5;
- }
- .iframe {
- width: 100%;
- height: 100%;
- position: fixed;
- z-index: 222;
- top: 0;
- left: 0;
- }
- .title {
- font-size: 16px;
- font-weight: 550;
- color: #4d4d4d;
- border-bottom: dashed 1px #EFF1F6;
- padding-bottom: 10px;
- }
- .navbar {
- font-size: 32upx;
- height: 100upx;
- line-height: 100upx;
- color: #888888;
- position: relative;
- position: fixed;
- top: 0;
- z-index: 9999999;
- width: 100%;
- background-color: #FFFFFF;
- text-align: center;
- border-bottom: solid 2upx #EFF1F6;
- .back {
- height: 100upx;
- width: 100upx;
- text-align: center;
- // background-color: #007AFF;
- position: absolute;
- float: left;
- left: 0upx;
- font-size: 32upx;
- }
- }
- .shenbaoList {
- padding-top: 100upx;
- display: flex;
- flex-direction: column;
- width: 100%;
- align-items: center;
- .list_li {
- display: flex;
- flex-direction: column;
- width: 90%;
- margin-top: 20upx;
- padding: 20upx;
- font-size: 26upx;
- background: white;
- .text1 {
- padding-top: 10upx;
- }
- .li_bottom {
- display: flex;
- padding-top: 5px;
- align-items: center;
- justify-content: space-between;
- // padding-top: 10upx;
- .button {
- border-radius: 3px;
- }
- .none {
- background: #1c85f1;
- color: white;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 8upx 15upx;
- }
- .upload {
- background: #19b83b;
- color: white;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 8upx 15upx;
- }
- }
- }
- }
- </style>
|