jinhui.wang

表格状态修正

......@@ -79,7 +79,7 @@ let ductLabels = {
"4_1": "处理失败(数据异常)",
"4_2": "处理失败(数据异常)",
"4_3": "处理失败(其他系统异常)",
"5": "处理失败(系统异常)",
// "5": "处理失败(系统异常)",
"9": "处理中",
},
"weatherGenerateWater": {
......
......@@ -984,7 +984,7 @@ let tableHeaders = {
columnName: "flightFltNo",
columnWidth: "130",
status: 1,
slot: true
ext1: 'slot',
},
{
columnChineseName: "当前配载航班日期",
......@@ -1187,7 +1187,7 @@ let tableHeaders = {
columnChineseName: " ",
columnName: "serviceCodeMapperList",
columnWidth: "",
expand: true,
ext1: 'expand',
status: 1
},
{
......
......@@ -4,7 +4,7 @@
:show-header="showHeader" :height="height" :highlight-current-row="highlightCurrentRow" :lazy="lazy"
:downShiftKey="shiftKey" :limitStart="limitStart" :row-key="rowKey" :default-expand-all="defaultExpandAll"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" v-loading="loading" @sort-change="sortChange"
@select="tableSelect" @select-all="tableSelectAll" @select-change="SelectChange">
@select="tableSelect" @select-all="tableSelectAll" @select-change="SelectChange" @row-click="rowClick">
<!-- 多选框 -->
<el-table-column v-if="selection" type="selection" width="50" :align="tableAlign" :fixed="selectFixed"
:header-align="headerAlign">
......@@ -29,7 +29,7 @@
</template>
</el-table-column>
<!-- 隐藏行 -->
<el-table-column v-else-if="tableColumnHidden(item.ext1) == 'expand'" :prop="item.columnName"
<el-table-column v-else-if="tableColumnHidden(item.ext1, 'expand')" type="expand" :prop="item.columnName"
:label="item.columnChineseName" :index="item.index" :width="item.columnWidth"
:align="item.align ? item.align : 'center'" :fixed="item.fixed ? item.fixed : false"
:column-key="index.toString()" :show-overflow-tooltip="showOverflowTooltip" :header-align="headerAlign"
......@@ -343,6 +343,10 @@ export default {
SelectChange(selection) {
this.$emit("SelectChange", selection);
},
//行被点击
rowClick(val) {
this.$emit('rowClick', val)
},
//表格选择清空
clearTable() {
this.selectTable = [];
......@@ -389,6 +393,11 @@ export default {
return cellValue ? cellValue.split(" ")[0] : ''
}
}
if (this.ductName === 'cargoLog') {
if (column.property == 'flightDate' || column.property == 'accsFlightDate') {
return cellValue ? cellValue.split(" ")[0] : ''
}
}
return cellValue;
},
//列显示状态
......