index.vue 3.37 KB
Newer Older
wangguangchao committed
1 2 3
<template>
  <div class="eContainer-taskList">
    <c-tabs :value="tabVal" type="card" @tab-click="tabClick">
liushikai committed
4
      <el-tab-pane label="待经办列表" name="sptsel">
wangguangchao committed
5
        <!-- <c-table :columnsConfig="tableColumns" :list="tableData"></c-table> -->
liushikai committed
6 7
        <span slot="label">
          待经办列表
潘际乾 committed
8 9 10 11 12
          <el-badge
            v-if="$store.state.Status.taskList.sptsel > 0"
            :value="$store.state.Status.taskList.sptsel"
            :max="99"
          />
liushikai committed
13
        </span>
潘际乾 committed
14
        <c-content :height="180">
潘际乾 committed
15
          <t-sptsel />
16
        </c-content>
wangguangchao committed
17
      </el-tab-pane>
潘际乾 committed
18

liushikai committed
19
      <el-tab-pane label="待复核列表" name="trnrel">
liushikai committed
20 21
        <span slot="label">
          待复核列表
潘际乾 committed
22 23 24 25 26
          <el-badge
            v-if="$store.state.Status.taskList.trnrel > 0"
            :value="$store.state.Status.taskList.trnrel"
            :max="99"
          />
liushikai committed
27
        </span>
潘际乾 committed
28
        <c-content :height="180">
潘际乾 committed
29 30
          <t-trnrel />
        </c-content>
wangguangchao committed
31
      </el-tab-pane>
潘际乾 committed
32 33

      <el-tab-pane label="已完成列表" name="trnfnd">
潘际乾 committed
34
        <c-content :height="180">
潘际乾 committed
35
          <t-trnfnd />
36
        </c-content>
wangguangchao committed
37
      </el-tab-pane>
38
      <el-tab-pane label="待申报列表" name="bopsel">
潘际乾 committed
39
        <t-bopsel />
wangguangchao committed
40
      </el-tab-pane>
wangguangchao committed
41
      <el-tab-pane label="草稿箱" name="sptbrk">
liushikai committed
42 43
        <span slot="label">
          草稿箱
潘际乾 committed
44 45 46 47 48
          <el-badge
            v-if="$store.state.Status.taskList.sptbrk > 0"
            :value="$store.state.Status.taskList.sptbrk"
            :max="99"
          />
liushikai committed
49
        </span>
潘际乾 committed
50
        <t-sptbrk />
wangguangchao committed
51
      </el-tab-pane>
wangguangchao committed
52
      <el-tab-pane label="到期提示" name="diasel">
53 54
        <span slot="label">
          到期提示
潘际乾 committed
55 56 57 58 59
          <el-badge
            v-if="$store.state.Status.taskList.diasel > 0"
            :value="$store.state.Status.taskList.diasel"
            :max="99"
          />
60
        </span>
潘际乾 committed
61
        <c-content :height="180">
潘际乾 committed
62
          <t-diasel />
63
        </c-content>
潘际乾 committed
64
      </el-tab-pane>
hulei committed
65
      <!--
liuxin committed
66 67 68 69 70 71 72 73
        <el-tab-pane label="数据对比" name="compare">
            <span slot="label">
                数据对比
            </span>
            <c-content :height="180">
            <t-compare />
            </c-content>
        </el-tab-pane>
hulei committed
74
        -->
wangguangchao committed
75 76 77 78 79 80
    </c-tabs>
  </div>
</template>

<script>
import Sptsel from "~/views/Business/Sptsel";
wangguangchao committed
81
import Sptbrk from "~/views/Business/Sptsel/Sptbrk";
wangguangchao committed
82
import Trnrel from "~/views/Business/Trnrel";
wangguangchao committed
83
import Trnfnd from "~/views/Business/Trnrel/Trnfnd";
wangguangchao committed
84
import Diasel from "~/views/Business/Diasel";
85
import Bopsel from "~/views/Business/Bopsel";
liuxin committed
86
import Compare from "./compare";
wangguangchao committed
87 88

export default {
潘际乾 committed
89 90
  data() {
    return {};
潘际乾 committed
91 92 93 94
  },
  computed: {
    tabVal: {
      get() {
潘际乾 committed
95
        return this.$store.state.Status.taskListTabVal || "sptsel";
潘际乾 committed
96 97
      },
      set(val) {
潘际乾 committed
98 99 100
        this.$store.commit("setTaskListTabVal", val);
      },
    },
liushikai committed
101
  },
wangguangchao committed
102
  name: "TaskList",
潘际乾 committed
103
  created() {},
潘际乾 committed
104
  methods: {
105
    tabClick(tab) {
wangren committed
106
      this.$store.commit("setTaskListTabVal", tab.name);
107
    },
潘际乾 committed
108
  },
潘际乾 committed
109 110 111 112 113 114 115
  components: {
    "t-sptsel": Sptsel,
    "t-sptbrk": Sptbrk,
    "t-trnrel": Trnrel,
    "t-trnfnd": Trnfnd,
    "t-diasel": Diasel,
    "t-bopsel": Bopsel,
liuxin committed
116
    "t-compare": Compare,
潘际乾 committed
117
  },
wangguangchao committed
118 119 120 121 122
};
</script>

<style scoped>
.eContainer-taskList {
潘际乾 committed
123
  /* padding: 3px 15px; */
wangguangchao committed
124 125
}
</style>
liushikai committed
126 127 128 129 130 131 132 133 134
<style>
.m-table-search-form {
  position: flex;
  flex-direction: row;
}
.m-table-search-form .el-form-item__content {
  width: calc(100% - 110px);
}
</style>