1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template>
- <div id="flow">
- <el-card v-for="(i, index) in list" :key="`flow-${index}`" style="margin: 10px">
- <template #header>
- <el-row type="flex" :gutter="10" justify="space-between">
- <el-col :span="8">{{ getStep(i) }}</el-col>
- <el-col :span="5">{{ getTime(i) }}</el-col>
- </el-row>
- </template>
- 意见:
- <p>{{ i.desc }}</p>
- </el-card>
- </div>
- </template>
- <script>
- const { cashStatus } = require('@common/dict/couindex');
- const moment = require('moment');
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'flow',
- props: { list: { type: Array } },
- components: {},
- data: function () {
- return {
- status: cashStatus,
- };
- },
- created() {},
- methods: {
- getStep(data) {
- const { status } = data;
- const r = this.status.find((f) => f.value === status);
- if (r) return r.label;
- else return '未知步骤';
- },
- getTime(data) {
- return moment(_.get(data, 'desc_time')).format('YYYY-MM-DD HH:mm:ss');
- },
- },
- computed: {
- ...mapState(['user', 'menuParams']),
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- };
- </script>
- <style lang="less" scoped></style>
|