safecheck-client 4.0.1-97 → 4.0.1-98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "4.0.1-97",
4
+ "version": "4.0.1-98",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -690,25 +690,24 @@ export default {
690
690
  window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
691
691
  },
692
692
  methods: {
693
- planNameChange(val){
693
+ async planNameChange(val){
694
694
  if (val.length > 0 && val[0]){
695
695
  this.checkBooks=[]
696
696
  let condition = '1=1'
697
697
  condition = `tcp.f_plan_name = '${val[0]}' `
698
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
698
+ let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
699
699
  data: {
700
700
  items: 'tcb.id,tcb.f_check_book_name,tcb.f_check_book_type',
701
701
  tablename: 't_check_book tcb left join t_check_plan_item tcpi on tcb.id = tcpi.f_check_book_id left join t_check_plan tcp on tcp.id = tcpi.f_plan_id',
702
702
  condition: ` ${condition}`,
703
703
  orderitem: 'tcb.id desc'
704
704
  }
705
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
706
- this.checkBooks.push({label: '全部', value: ''})
707
- res.data.forEach(ress => {
708
- this.checkBooks.push({
709
- label: ress.f_check_book_name,
710
- value: ress.id
711
- })
705
+ }, {resolveMsg: null, rejectMsg: null})
706
+ this.checkBooks.push({label: '全部', value: ''})
707
+ res.data.forEach(ress => {
708
+ this.checkBooks.push({
709
+ label: ress.f_check_book_name,
710
+ value: ress.id
712
711
  })
713
712
  })
714
713
  }else {