TodoItem.vue 2.97 KB
Newer Older
fukai committed
1 2
<template>
        <div class="e-table-wrapper" style="height:100%">
liuxin committed
3 4
                <c-table
                :data="todolist"
fukai committed
5
                    style="width: 100%"
傅凯 committed
6 7
                    max-height="500"
                    size="mini"
fukai committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
                    >
                    <el-table-column
                      prop="typ"
                      label="操作类型"
                      sortable
                      >
                      <template slot-scope="scope">
                        <span>{{ findCodeLabel(codes.oratyp,scope.row.typ) }}</span>
                      </template>
                    </el-table-column>
                    <el-table-column
                      prop="inifrm"
                      label="交易码"
                      sortable
                      >
                    </el-table-column>
                    <el-table-column
                      prop="ownref"
                      label="业务编号"
                      sortable
                      >
                    </el-table-column>
                    <el-table-column
                      prop="nam"
                      label="概要描述"
                      sortable
                      >
                    </el-table-column>
                    <el-table-column
                      prop="usr"
                      label="经办柜员"
                      sortable
                      >
                    </el-table-column>
                    <el-table-column
                      prop="cur"
                      label="币种"
                      sortable
                      >
                    </el-table-column>
                    <el-table-column
                      prop="amt"
                      label="金额"
                      sortable
                      width="100">
                    </el-table-column>
liuxin committed
54
                  </c-table>
fukai committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
                  <el-pagination
                    layout="prev, pager, next"
                    :total="pager.total">
                  </el-pagination>
          </div>
</template>
<script>
import CodeTable from "~/config/CodeTable"
import Api from "~/service/Api"
export default {
    props:['todoType'],
    data(){
        return {
            
            codes:{
                    oratyp:CodeTable.oratyp,
                },
            todolist:[],
            pager:{total:0,curIdx:0}
        }
    },
    methods:{
        async onOffpTodo(){
傅凯 committed
78
                    
fukai committed
79 80 81 82 83 84 85 86 87 88 89 90 91
                    let rtnmsg = await Api.post("office/offp_todo",{data:{'offp_todotyp':this.todoType}})
                    if(rtnmsg.code == SUCCESS)
                    {
                        //TODO 处理数据逻辑
                      this.todolist = rtnmsg.data.offp_todolst
                    }
                    else
                    {
                       this.$notify.error({title: '错误',message: '服务请求失败!'});
                    }
         }
    },
    mounted(){
fukai committed
92
        //this.onOffpTodo()
fukai committed
93 94 95 96
    }
}
</script>