Browse Source

fix:[模板管理]毒理

luojie
15881625488@163.com 2 weeks ago
parent
commit
e22b686f44
2 changed files with 9 additions and 6 deletions
  1. +5
    -5
      src/components/Template/CustomTable.vue
  2. +4
    -1
      src/views/business/comps/template/comps/dl/DL006.vue

+ 5
- 5
src/components/Template/CustomTable.vue View File

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div class="custom-table-wrapper" :class="{ 'no-border': !isBorder }"> <div class="custom-table-wrapper" :class="{ 'no-border': !isBorder }">
<div class="custom-table-header" v-if="isBorder">
<div class="custom-table-header no-break" v-if="isBorder">
<div class="custom-table-row"> <div class="custom-table-row">
<div v-if="showSort" class="custom-table-cell header-cell sort-cell"> <div v-if="showSort" class="custom-table-cell header-cell sort-cell">
序号 序号
@ -12,13 +12,13 @@
@change="handleCheckAllChange"></el-checkbox> @change="handleCheckAllChange"></el-checkbox>
</div> </div>
</div> </div>
<div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell header-cell"
<div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell header-cell no-break"
:style="getCellWidth(col)"> :style="getCellWidth(col)">
<div class="header-cell-content" v-if="col.headerColumns && col.headerColumns.length > 0"> <div class="header-cell-content" v-if="col.headerColumns && col.headerColumns.length > 0">
<div class="header-columns-grid" <div class="header-columns-grid"
:style="{ 'grid-template-columns': `repeat(${col.span || 2}, 1fr)` }"> :style="{ 'grid-template-columns': `repeat(${col.span || 2}, 1fr)` }">
<div v-for="(headerCol, headerIndex) in col.headerColumns" :key="headerIndex" <div v-for="(headerCol, headerIndex) in col.headerColumns" :key="headerIndex"
class="header-column-item">
class="header-column-item" >
<template v-if="headerCol.type === 'span'"> <template v-if="headerCol.type === 'span'">
<div class="span-content">{{ $t(headerCol.label) }}</div> <div class="span-content">{{ $t(headerCol.label) }}</div>
</template> </template>
@ -74,7 +74,7 @@
</div> </div>
<div class="custom-table-body"> <div class="custom-table-body">
<div v-for="(row, rowIndex) in localDataSource" :key="rowIndex" class="custometable-row">
<div v-for="(row, rowIndex) in localDataSource" :key="rowIndex" class="custometable-row no-break">
<div v-if="showSort" class="custom-table-cell body-cell sort-cell"> <div v-if="showSort" class="custom-table-cell body-cell sort-cell">
{{ rowIndex + 1 }} {{ rowIndex + 1 }}
</div> </div>
@ -83,7 +83,7 @@
<el-checkbox v-model="row._checked" @change="handleCheckChange(row, $event)"></el-checkbox> <el-checkbox v-model="row._checked" @change="handleCheckChange(row, $event)"></el-checkbox>
</div> </div>
</div> </div>
<div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell body-cell"
<div v-for="(col, colIndex) in columns" :key="colIndex" class="custom-table-cell body-cell no-break"
:style="getCellWidth(col)"> :style="getCellWidth(col)">
<div class="inner-table-cell"> <div class="inner-table-cell">
<div class="flex1" :class="{ 'item-center': !isBorder && col.label }"> <div class="flex1" :class="{ 'item-center': !isBorder && col.label }">

+ 4
- 1
src/views/business/comps/template/comps/dl/DL006.vue View File

@ -672,6 +672,7 @@ export default {
columns.push({ columns.push({
prop: 'jlzb', prop: 'jlzb',
label: 'template.dl.dl006.jlzb', label: 'template.dl.dl006.jlzb',
width: 150,
bodyType: 'input', bodyType: 'input',
bodyFillType: 'preFill', // bodyTypeFillType bodyFillType: 'preFill', // bodyTypeFillType
}); });
@ -685,7 +686,7 @@ export default {
bodyType: 'checkbox', bodyType: 'checkbox',
isNeedCheck: true, isNeedCheck: true,
bodyFillType: 'actFill', // actFillpreFill bodyFillType: 'actFill', // actFillpreFill
width: 300,
width: 250,
checkboxLabel:'', checkboxLabel:'',
headerColumns: [ headerColumns: [
{ {
@ -732,6 +733,8 @@ export default {
prop: 'gspcdqk', prop: 'gspcdqk',
label: 'template.dl.dl006.gspcdqk', label: 'template.dl.dl006.gspcdqk',
bodyType: 'input', bodyType: 'input',
width: 150,
bodyFillType: 'actFill', // bodyTypeFillType bodyFillType: 'actFill', // bodyTypeFillType
}); });

Loading…
Cancel
Save