refactor(产品信息展示): 统一产品及原料信息展示格式并清理冗余代码
- 将产品信息和原料信息的默认展示格式统一为"名称[规格] - (材质:材质)" - 移除DrillDownTable中重复的模板代码,直接使用组件默认插槽 - 删除base.vue中注释掉的冗余表单代码 - 增强删除确认提示信息,明确告知会清理相关记录
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<span class="product-name" @click.stop="clickHandle">
|
||||
<slot name="default" :product="productFull">
|
||||
{{ productFull.productName || '--' }}
|
||||
{{ productFull.productName || '未知' }}[{{ productFull.specification || '无规格' }}] - (材质:{{ productFull.material || '无材质' }})
|
||||
</slot>
|
||||
</span>
|
||||
<el-dialog
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<!-- 作用域插槽 -->
|
||||
<span class="material-name" @click.stop="showDetail = true">
|
||||
<slot name="default" :material="materialFull">
|
||||
{{ materialFull.rawMaterialName || '-' }}
|
||||
{{ materialFull.rawMaterialName || '未知' }}[{{ materialFull.specification || '无规格' }}] - (材质:{{ materialFull.material || '无材质' }})
|
||||
</slot>
|
||||
</span>
|
||||
<el-dialog :visible="showDetail" @close="showDetail = false" :title="materialFull.rawMaterialName || '--'" width="600px"
|
||||
|
||||
Reference in New Issue
Block a user