diff --git a/src/views/business/resource/gyzj/comps/ffjlList.vue b/src/views/business/resource/gyzj/comps/ffjlList.vue index ab72bfe..23c93b5 100644 --- a/src/views/business/resource/gyzj/comps/ffjlList.vue +++ b/src/views/business/resource/gyzj/comps/ffjlList.vue @@ -80,7 +80,7 @@ {{ $t('form.export') }} - + {{ $t('page.business.resource.gyzj.ckl') }}:{{ ckldw != '' ? ckl : '--' }}{{ ckldw }} ; {{ $t('page.business.resource.gyzj.rkl') }}:{{ rkldw != '' ? rkl : '--' }}{{ rkldw }} ; {{ $t('page.business.resource.gyzj.syl') }}:{{ syldw != '' ? syl : '--' }}{{ syldw }} ; @@ -236,6 +236,7 @@ export default { daterangeCk: [], daterangeRk: [], loading: true, + showtj: false, showDetail: false, single: true, multiple: true, @@ -328,16 +329,17 @@ export default { this.syl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.syl }), sylCalc) this.ckl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.ckl }), cklCalc) this.rkl =_.divide( _.sumBy(deepClone(response.data), function (item) { return item.rkl }), rklCalc) + this.showtj=true }) }, getCalc(toUnit) { let unit = ['pL', 'nL', 'uL', 'mL', 'L'] let result = 1 - for (var i = 1; i < unit.length; i++) { - result = result*1000 + for (var i = 0; i < unit.length; i++) { if (unit[i] == toUnit) { break } + result = result*1000 } return result }, @@ -547,7 +549,11 @@ export default { list(this.queryParams).then(response => { this.list = response.rows this.total = response.total - this.getyltj() + if (this.queryParams.mc && this.queryParams.mc != '') { + this.getyltj() + }else{ + this.showtj=false + } this.loading = false }) }, diff --git a/src/views/business/resource/mjy/comps/ffjlList.vue b/src/views/business/resource/mjy/comps/ffjlList.vue index 68bbfd9..a09dd13 100644 --- a/src/views/business/resource/mjy/comps/ffjlList.vue +++ b/src/views/business/resource/mjy/comps/ffjlList.vue @@ -80,9 +80,9 @@ {{ $t('form.export') }} - - {{$t('page.business.resource.mjy.jsl')}}:{{ jsldw!=''? jsl:'--' }}{{ jsldw }} ; - {{$t('page.business.resource.mjy.syl')}}:{{ syldw!=''? syl:'--' }}{{ syldw }} ; + + {{ $t('page.business.resource.mjy.jsl') }}:{{ jsldw != '' ? jsl : '--' }}{{ jsldw }} ; + {{ $t('page.business.resource.mjy.syl') }}:{{ syldw != '' ? syl : '--' }}{{ syldw }} ; @@ -116,7 +116,7 @@ {{ scope.row.rkmz }} {{ scope.row.rkmzdw }} -