|
|
@@ -274,11 +274,13 @@
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- this.globalSql = `select * from t_lhjcbgb where zhuang_tai_ in ('已完成', '待发放') and bao_gao_lei_bie_ = '${this.info.type}'`
|
|
|
+ // 全部检测档案type为空
|
|
|
+ const args = this.info.type ? ` and bao_gao_lei_bie_ = '${this.info.type}'` : ''
|
|
|
+ this.globalSql = `select * from t_lhjcbgb where zhuang_tai_ in ('已完成', '待发放')${args}`
|
|
|
// this.globalSql = `select * from t_lhjcbgb where bao_gao_lei_bie_ = '${this.info.type}'`
|
|
|
const sql = `${this.globalSql} order by create_time_ desc limit 0,20`
|
|
|
this.loadData(sql)
|
|
|
- const sumsql = `select count(*) as total from t_lhjcbgb where zhuang_tai_ in ('已完成', '待发放') and bao_gao_lei_bie_ = '${this.info.type}'`
|
|
|
+ const sumsql = `select count(*) as total from t_lhjcbgb where zhuang_tai_ in ('已完成', '待发放')${args}`
|
|
|
curdPost('sql', sumsql).then((response) => {
|
|
|
this.total = response.variables.data[0].total
|
|
|
})
|