Commit 5f8cf73a by 陈岩

feat: 优化商品类型展示问题

1 parent 7c2fef15
...@@ -896,6 +896,9 @@ export default { ...@@ -896,6 +896,9 @@ export default {
} }
} }
const formatProduct = function(val) { const formatProduct = function(val) {
if(val < 0){
return '无效'
}
return (productList.value.filter(v => v.value == val)[0] || {label:'--'}).label return (productList.value.filter(v => v.value == val)[0] || {label:'--'}).label
} }
const formatPosition = function(val) { const formatPosition = function(val) {
......
...@@ -660,6 +660,9 @@ export default { ...@@ -660,6 +660,9 @@ export default {
// return (personTypeList.value.filter(v => v.value == val)[0] || {label:'--'}).label // return (personTypeList.value.filter(v => v.value == val)[0] || {label:'--'}).label
} }
const formatProduct = function(val) { const formatProduct = function(val) {
if(val < 0){
return '无效'
}
return (productList.value.filter(v => v.value == val)[0] || {label:'--'}).label return (productList.value.filter(v => v.value == val)[0] || {label:'--'}).label
} }
const formatPosition = function(val) { const formatPosition = function(val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!