|
@ -124,6 +124,9 @@ |
|
|
<template v-if="col.name === '_sortNo_'"> |
|
|
<template v-if="col.name === '_sortNo_'"> |
|
|
{{ scope.rowIndex + 1 }} |
|
|
{{ scope.rowIndex + 1 }} |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentType && col.value.bindModelValue"> |
|
|
|
|
|
<component :is="col.value.componentType" v-bind="col.value.attrs" v-model="scope.row[col.name]"></component> |
|
|
|
|
|
</template> |
|
|
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentType"> |
|
|
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentType"> |
|
|
<component :is="col.value.componentType" v-bind="col.value.attrs"></component> |
|
|
<component :is="col.value.componentType" v-bind="col.value.attrs"></component> |
|
|
</template> |
|
|
</template> |
|
@ -142,6 +145,9 @@ |
|
|
<template v-if="col.name === '_sortNo_'"> |
|
|
<template v-if="col.name === '_sortNo_'"> |
|
|
{{ scope.rowIndex + 1 }} |
|
|
{{ scope.rowIndex + 1 }} |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentType && col.value.bindModelValue"> |
|
|
|
|
|
<component :is="col.value.componentType" v-bind="col.value.attrs" v-model="scope.row[col.name]"></component> |
|
|
|
|
|
</template> |
|
|
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentType"> |
|
|
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentType"> |
|
|
<component :is="col.value.componentType" v-bind="col.value.attrs"></component> |
|
|
<component :is="col.value.componentType" v-bind="col.value.attrs"></component> |
|
|
</template> |
|
|
</template> |
|
@ -1395,7 +1401,7 @@ const view = () => { |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error('format error!'); |
|
|
console.error('format error!'); |
|
|
} |
|
|
} |
|
|
viewInfo.infoArray.push({ label: item.label, value: value }); |
|
|
viewInfo.infoArray.push({ label: item.label, value: value, originalValue: getSelectedRowsComputed.value[0][item.name] }); |
|
|
} else { |
|
|
} else { |
|
|
let value = null; |
|
|
let value = null; |
|
|
if (tableColumnsMap.get(item.name) && tableColumnsMap.get(item.name).format) { |
|
|
if (tableColumnsMap.get(item.name) && tableColumnsMap.get(item.name).format) { |
|
@ -1408,7 +1414,7 @@ const view = () => { |
|
|
} else { |
|
|
} else { |
|
|
value = getSelectedRowsComputed.value[0][item.name]; |
|
|
value = getSelectedRowsComputed.value[0][item.name]; |
|
|
} |
|
|
} |
|
|
viewInfo.infoArray.push({ label: item.label, value: value }); |
|
|
viewInfo.infoArray.push({ label: item.label, value: value, originalValue: getSelectedRowsComputed.value[0][item.name] }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
@ -1420,9 +1426,13 @@ const view = () => { |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error('format error!'); |
|
|
console.error('format error!'); |
|
|
} |
|
|
} |
|
|
viewInfo.infoArray.push({ label: item[1].label, value: value }); |
|
|
viewInfo.infoArray.push({ label: item[1].label, value: value, originalValue: getSelectedRowsComputed.value[0][item.name] }); |
|
|
} else { |
|
|
} else { |
|
|
viewInfo.infoArray.push({ label: item[1].label, value: getSelectedRowsComputed.value[0][item[0]] }); |
|
|
viewInfo.infoArray.push({ |
|
|
|
|
|
label: item[1].label, |
|
|
|
|
|
value: getSelectedRowsComputed.value[0][item[0]], |
|
|
|
|
|
originalValue: getSelectedRowsComputed.value[0][item.name], |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|