diff --git a/src/views/mes/zjschema/index.vue b/src/views/mes/zjschema/index.vue index 6097a1f3..be4c06dd 100644 --- a/src/views/mes/zjschema/index.vue +++ b/src/views/mes/zjschema/index.vue @@ -70,7 +70,7 @@ v-loading="scope.row._itemLoading" :data="scope.row._items || []" size="small" - + @@ -88,7 +88,11 @@ v-loading="scope.row._itemLoading" :data="scope.row._items || []" size="small" - + + + @@ -145,6 +149,19 @@ const queryParams = reactive({ const queryFormRef = ref() // 搜索的表单 const exportLoading = ref(false) // 导出的加载中 +const formatValDisplay = (val: any) => { + if (val === undefined || val === null || val === '') return '' + const str = String(val) + if (str.includes(',')) { + const [interval, take] = str.split(',') + const i = interval?.trim() + const t = take?.trim() + if (i && t) return `每间隔${i}抽取${t}` + return str + } + return `${str}%` +} + /** 查询列表 */ const getList = async () => { loading.value = true