<template> <div class="eibs-tab"> <c-col :span="8" style="height: 24px" > <el-form-item label="Accounts Defined" class="messageLabel"> </el-form-item> </c-col> <c-table :border="true" :list="data" ref="table" style="width:80%,text-aligen:center" height="500" :paginationShow="false" > <el-table-column label="Type" width="auto" prop="typ" sortable ></el-table-column> <el-table-column label="Cur." width="auto" prop="cur" sortable ></el-table-column> <el-table-column label="Account No." width="auto" prop="extkey" sortable ></el-table-column> <el-table-column label="科目代码" width="auto" prop="trmtyp" sortable ></el-table-column> <el-table-column label=" " width="auto" prop="nam" sortable ></el-table-column> </c-table> </div> </template> <script> import Api from "~/service/Api" import commonProcess from "~/mixin/commonProcess"; import CodeTable from "~/config/CodeTable" import Event from "~/model/Dbipty/Event" export default { inject: ['root'], props:["model","codes"], mixins: [commonProcess], data(){ return { data:[], }; }, methods:{...Event}, created:function(){}, watch: { "model.recpan.act": function () { this.data = this.model.recpan.act; this.$nextTick(() => { for (let i = 0; i < this.data.length; i++) { if (this.data[i].exeflg == "Y") { this.$refs.table.$refs.table.toggleRowSelection( this.data[i], true ); } } }); }, }, } </script> <style> </style> <!-- <c-col :span="12"> <el-form-item label="Total Number of Accounts" prop="recpan.actnum"> <c-input v-model="model.recpan.actnum" placeholder="请输入Total Number of Accounts"></c-input> </el-form-item> </c-col> -->