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

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

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

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

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

liushikai committed
123 124 125 126 127 128 129 130 131
<style>
.m-table-search-form {
  position: flex;
  flex-direction: row;
}
.m-table-search-form .el-form-item__content {
  width: calc(100% - 110px);
}
</style>