Browse Source

详情+utable转义数字同时判断number类型处理(解决+“”转义后数字0不显示的问题)

dev_web_online
安虹睿 2 years ago
parent
commit
1bea9f0159
  1. 4
      fe/PC/src/components/currenDescriptions/index.vue
  2. 2
      fe/PC/src/components/umyTable/index.vue

4
fe/PC/src/components/currenDescriptions/index.vue

@ -52,7 +52,9 @@
></el-input>
</template>
</span>
<span v-else>{{ propsData[item.prop] ? propsData[item.prop] + "" : "" }}</span>
<span v-else>
{{ propsData[item.prop] && typeof(propsData[item.prop]) != 'number' ? propsData[item.prop] + "" : propsData[item.prop] }}
</span>
</el-descriptions-item>
</template>
<el-descriptions-item

2
fe/PC/src/components/umyTable/index.vue

@ -310,7 +310,7 @@
v-if="item.type == 'name' || !item.type"
@click="item.type == 'name' && inlineDialog(scope.row)"
:class="{ spamHover: item.type == 'name' }"
>{{ scope.row[item.prop] ? scope.row[item.prop] + "" : "" }}</span
>{{ scope.row[item.prop] && typeof(scope.row[item.prop]) != 'number' ? scope.row[item.prop] + "" : scope.row[item.prop] }}</span
>
</el-form>
</template>

Loading…
Cancel
Save