From a610ca9e97f456a7e87cb407bf6e353672472ec5 Mon Sep 17 00:00:00 2001 From: xxyy <cathay_xy@163.com> Date: 星期五, 07 三月 2025 13:49:44 +0800 Subject: [PATCH] 修复组件属性并更新路由配置 --- Code Management/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue b/Code Management/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue index 3279d39..ec01ee7 100644 --- a/Code Management/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue +++ b/Code Management/WMS/WIDESEA_WMSClient/src/components/basic/VolTable.vue @@ -22,8 +22,7 @@ <!-- 2020.10.10绉婚櫎table绗竴琛屽己鍒舵帓搴� --> <el-table-column v-for="(column, cindex) in filterColumns" :prop="column.field" :label="column.title" :min-width="column.width" :formatter="formatter" :fixed="column.fixed" :key="column.field + cindex" - :align="column.align" :sortable="column.sort ? 'custom' : false" - :show-overflow-tooltip="column.showOverflowTooltip"> + :align="column.align" :sortable="column.sort ? 'custom' : false" :show-overflow-tooltip=true> <template #header> <span v-if="(column.require || column.required) && column.edit" class="column-required">*</span>{{ column.title }} @@ -103,7 +102,7 @@ column.onChange && column.onChange(scope.row, column, val); } - " :type="column.edit.type" :placeholder="column.placeholder || column.title" + " :type="column.edit.type" :placeholder="column.placeholder || column.title" :disabledDate="(val) => getDateOptions(val, column)" :value-format="getDateFormat(column)" :disabled="initColumnDisabled(scope.row, column)"> </el-date-picker> @@ -112,7 +111,7 @@ column.onChange && column.onChange(scope.row, column, val); } - " :placeholder="column.placeholder || column.title" :value-format="column.format || 'HH:mm:ss'" + " :placeholder="column.placeholder || column.title" :value-format="column.format || 'HH:mm:ss'" :disabled="initColumnDisabled(scope.row, column)"> </el-time-picker> <el-switch v-else-if="column.edit.type == 'switch'" v-model="scope.row[column.field]" @@ -120,17 +119,17 @@ inline-prompt @change="(val) => { switchChange(val, scope.row, column); } - " :active-value="typeof scope.row[column.field] == 'boolean' + " :active-value="typeof scope.row[column.field] == 'boolean' ? true : typeof scope.row[column.field] == 'string' ? '1' : 1 " :inactive-value="typeof scope.row[column.field] == 'boolean' - ? false - : typeof scope.row[column.field] == 'string' - ? '0' - : 0 - " :disabled="initColumnDisabled(scope.row, column)"> + ? false + : typeof scope.row[column.field] == 'string' + ? '0' + : 0 + " :disabled="initColumnDisabled(scope.row, column)"> </el-switch> <template v-else-if=" ['select', 'selectList'].indexOf(column.edit.type) != -1 @@ -234,7 +233,7 @@ <div @click="() => { column.click && formatterClick(scope.row, column); } - " v-else-if="column.bind"> + " v-else-if="column.bind"> <el-tag v-if="useTag" class="cell-tag" :class="[isEmptyTag(scope.row, column)]" :type="getColor(scope.row, column)" :effect="column.effect">{{ formatter(scope.row, column, true) }}</el-tag> -- Gitblit v1.9.3