Infsea.vue 4.84 KB
Newer Older
niewei committed
1 2
<template>
    <c-content class="eibs-tab">
niewei committed
3
       <!--  
niewei committed
4
       <c-row>
niewei committed
5
                  
niewei committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInfbutSearow">
            &Search
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInfbutExi">
            E&xit
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInfbutDsp">
            D&isplay
        </c-button>
niewei committed
22
       </c-col>                   
niewei committed
23 24 25 26 27 28 29 30 31 32 33
       <c-col :span="12">
        <el-form-item label="CUR" prop="cod">
            <c-input  v-model="model.cod" maxlength="3"  placeholder="请输入CUR"></c-input>
        </el-form-item>
       </c-col>
                                   
       <c-col :span="12">
        <el-form-item label="Currency Description" prop="seanam">
            <c-input  v-model="model.seanam" maxlength="40"  placeholder="请输入Currency Description"></c-input>
        </el-form-item>
       </c-col>
niewei committed
34
              --> 
niewei committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
       <!--          
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInfbutUserow">
            &Use
        </c-button>
       </c-col>
                  
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInfbutClr">
            &Clear
        </c-button>
       </c-col>
                 
       <c-col :span="12">
        <el-form-item label="display stream" prop="infbut.dspstm">
            <c-input  v-model="model.infbut.dspstm"  placeholder="请输入display stream"></c-input>
        </el-form-item>
       </c-col>
                 
       <c-col :span="12">
        <c-button size="small" type="primary"  @click="onInfbutButprt">
            导Excel
        </c-button>
       </c-col>
niewei committed
59
       
niewei committed
60
       </c-row>
niewei committed
61
       -->
niewei committed
62
       <c-infsearch-group @handleReset="onInfbutClr" @handleSearch="onInfbutSearow">
niewei committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
            <template slot="keepShow">
                <c-row>
                    <c-col :span="12">
                        <el-form-item label="币种" prop="cod">
                            <c-input  v-model="model.cod" maxlength="3"  placeholder="请输入CUR"></c-input>
                        </el-form-item>
                    </c-col>
                                   
                    <c-col :span="12">
                        <el-form-item label="币种名称" prop="seanam">
                            <c-input  v-model="model.seanam" maxlength="40"  placeholder="请输入Currency Description"></c-input>
                        </el-form-item>
                    </c-col>
                </c-row>
            </template>

       </c-infsearch-group>
niewei committed
80

niewei committed
81 82 83
      <c-row class="infrow" style="margin-top:20px;">
            <c-col>
                <c-button size="small" type="primary">导Excel</c-button>
niewei committed
84 85 86
                <c-button size="small" type="primary" 
                @click="onInfbutDsp" 
                :disabled="model.infbut.selrow === 0">Display</c-button>
niewei committed
87
                <c-button size="small" type="primary">Use</c-button>
niewei committed
88
            </c-col>
niewei committed
89 90
      </c-row>

niewei committed
91
      <!--
niewei committed
92 93 94
      <c-row class="infrow" style="margin-top:20px;">
            <c-istream-table :list="stmData.data" :columns="stmData.columns">
                <el-table-column prop="op" label="操作" width="100">
niewei committed
95 96 97 98 99
                    <template slot-scope="scope">
                        <a href="javascript:void(0)" @click="continueEdit(scope.row)">操作</a>
                    </template>
                </el-table-column>
            </c-istream-table>
niewei committed
100
      </c-row>
niewei committed
101 102 103 104 105 106 107 108 109 110
      -->
    <c-col :span="22" :offset="1">
      <c-istream-table 
        :border="true" 
        :list="tableData" 
        :columns="stmData.columns"
        v-on:chooseRowEvent="chooseRowEvent"
        style="width:80%,text-align:center">
      </c-istream-table>
    </c-col>
niewei committed
111

niewei committed
112 113 114 115
  </c-content>
</template>
<script>
import Api from "~/service/Api"
wangren committed
116
import commonProcess from "~/mixin/commonProcess";
niewei committed
117 118 119 120 121 122
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infcur/Event"

export default {
    inject: ['root'],
    props:["model","codes"],
wangren committed
123
    mixins: [commonProcess],
niewei committed
124 125 126 127
    data(){
        return {
                stmData: {
                    columns: [
niewei committed
128 129
                        "1 1 \"Currency\" 100 ",
                        "2 2 \"Description\" 300",
niewei committed
130 131 132 133
                    ]
                },
        }
    },
niewei committed
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
	computed: {
    tableData() {
      // "10000449\t2000007350\t2000007350-001\tBEIJING TESTTEST,BEIJING, CHINA\t\t100080\tBEIJING, CHINA\tTEST TEST1 CO.,LTD."
      console.log(this.model.infbut.dspstm.rows);
      return this.model.infbut.dspstm.rows;
    }
  
    
  },  
    methods:{
      
    chooseRowEvent(row) {
      this.model.infbut.selrow = row.IDX + 1;
    },
      ...Event},
niewei committed
149 150 151
    created:function(){

    }
niewei committed
152

niewei committed
153 154 155 156 157
}
</script>
<style>

</style>