123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <template>
- <div id="list-1">
- <van-row>
- <van-col span="24" class="main">
- <van-col span="24" class="list" v-for="(item, index) in list" :key="index">
- <van-col span="24" class="title textOver">
- {{ item.name }}
- </van-col>
- <van-col span="24" class="other">
- <van-col span="24" class="otherInfo">
- 申请人:<span>{{ item.apply_name || '暂无' }}</span>
- </van-col>
- <van-col span="24" class="otherInfo">
- 申请类型:<span>{{ item.type || '暂无' }}</span>
- </van-col>
- <van-col span="24" class="otherInfo">
- 申请状态:<span>{{ getStu(item.status) }}</span>
- </van-col>
- </van-col>
- <van-col span="24" class="btn">
- <van-button size="small" type="info" @click="view(item)">查看信息</van-button>
- <van-button size="small" type="info" @click="examine(item)" v-if="item.status == '0'">审核申请</van-button>
- <van-button size="small" type="info" @click="toFile(item)" v-if="item.status == '1' || item.status == '2'">报告文件</van-button>
- </van-col>
- </van-col>
- </van-col>
- </van-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'list-1',
- props: {
- list: { type: Array },
- },
- components: {},
- data: function () {
- return {};
- },
- created() {},
- methods: {
- view(data) {
- this.$emit('view', data);
- },
- examine(data) {
- this.$emit('examine', data);
- },
- toFile(data) {
- this.$emit('toFile', data);
- },
- // 整理状态
- getStu(status) {
- if (status == '0') return '已提交给相应机构,请等待审核';
- else if (status == '1') return '管理员审核通过,请及时发送相应文件!';
- else if (status == '-1') return '管理员审核未通过,请查看审核意见,并重新提交申请';
- else if (status == '2') return '文件已发送';
- },
- },
- computed: {
- ...mapState(['user']),
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- watch: {
- test: {
- deep: true,
- immediate: true,
- handler(val) {},
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .main {
- padding: 8px 8px 0 8px;
- .list {
- background-color: #fff;
- margin: 0 0 8px 0;
- padding: 8px;
- border-radius: 5px;
- .title {
- font-size: 16px;
- font-weight: bold;
- margin: 0 0 5px 0;
- }
- .other {
- margin: 0 0 5px 0;
- .otherInfo {
- font-size: 14px;
- color: #666;
- margin: 0 0 5px 0;
- span {
- color: #000;
- }
- }
- }
- .btn {
- text-align: center;
- .van-button {
- margin: 0 5px;
- }
- }
- }
- }
- </style>
|