|
@@ -38,8 +38,9 @@
|
|
ref="table"
|
|
ref="table"
|
|
:height="300" style="width: 100%;">
|
|
:height="300" style="width: 100%;">
|
|
<el-table-column prop="name" label="姓名" sortable width="150"></el-table-column>
|
|
<el-table-column prop="name" label="姓名" sortable width="150"></el-table-column>
|
|
- <el-table-column :prop="index" :label="item" sortable show-overflow-tooltip v-for="(item, index) in tblCols"
|
|
|
|
- :key="index"></el-table-column>
|
|
|
|
|
|
+ <el-table-column :prop="headerCols[index]" :label="item" sortable show-overflow-tooltip v-for="(item, index) in tblCols"
|
|
|
|
+ :key="index">
|
|
|
|
+ </el-table-column>
|
|
<!-- <el-table-column prop="monthCost" label="customCols.monthCost" width="150"></el-table-column>
|
|
<!-- <el-table-column prop="monthCost" label="customCols.monthCost" width="150"></el-table-column>
|
|
<el-table-column prop="bonus" :label="customCols.bonus" ></el-table-column>
|
|
<el-table-column prop="bonus" :label="customCols.bonus" ></el-table-column>
|
|
<el-table-column prop="allowance" :label="customCols.allowance" ></el-table-column>
|
|
<el-table-column prop="allowance" :label="customCols.allowance" ></el-table-column>
|
|
@@ -296,6 +297,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ headerCols:['monthCost','bonus', 'allowance', 'insuranceOld', 'insuranceMedical', 'insuranceLosejob', 'insuranceInjury', 'houseFund', 'customField1','customField2','customField3'],
|
|
tblCols:[],
|
|
tblCols:[],
|
|
costListRadio: 0,
|
|
costListRadio: 0,
|
|
costSettingLoading: false,
|
|
costSettingLoading: false,
|