|
|
@ -439,7 +439,7 @@ function tableDatas() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
const cellDBLClickEvent: VxeTableEvents.CellDblclick<TableVo> = ({ row, column }) => { |
|
|
|
const cellDBLClickEvent: VxeTableEvents.CellDblclick<any> = ({ row, column }) => { |
|
|
|
//双击单元格 |
|
|
|
//edit ty zhousq 2023-10-12 修改控制方式为接口方式,修改formdata提交的属性值 |
|
|
|
// ctrlPro.centeruuid 设备UUID cellField.ctrlPro.paramcode 设备参数编码 cellField.val 设备值 |
|
|
@ -487,7 +487,7 @@ const formatRole: VxeColumnPropTypes.Formatter<HeaderVo> = ({ cellValue }) => { |
|
|
|
}; |
|
|
|
|
|
|
|
// 通用行合并函数(将相同多列数据合并为一行) |
|
|
|
const mergeRowMethod: VxeTablePropTypes.SpanMethod<TableVo> = ({ row, _rowIndex, column, visibleData }) => { |
|
|
|
const mergeRowMethod: VxeTablePropTypes.SpanMethod<any> = ({ row, _rowIndex, column, visibleData }) => { |
|
|
|
// console.log('通用行合并渲染开始:', useDateFormat(new Date(), 'YYYY-MM-DD HH:mm:ss').value); |
|
|
|
const fields = ['gTitle']; |
|
|
|
const cellValue = row[column.field]; |
|
|
@ -525,12 +525,12 @@ const submitEvent: VxeFormEvents.Submit = () => { |
|
|
|
formLoading.value = false; |
|
|
|
editModal.value = false; |
|
|
|
|
|
|
|
if ($table) { |
|
|
|
const row = cellRow.value; |
|
|
|
const field = cellColumn.value.field; |
|
|
|
row[field].val = formData.value.value; |
|
|
|
$table.reloadRow(row, null, field); |
|
|
|
} |
|
|
|
// if ($table) { |
|
|
|
// const row = cellRow.value; |
|
|
|
// const field = cellColumn.value.field; |
|
|
|
// row[field].val = formData.value.value; |
|
|
|
// $table.reloadRow(row, null, field); |
|
|
|
// } |
|
|
|
|
|
|
|
// VXETable.modal.message({ content: '保存成功', status: 'success' }); |
|
|
|
}; |
|
|
|