safecheck-client 4.0.1-6 → 4.0.1-8

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-6",
4
+ "version": "4.0.1-8",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -304,17 +304,21 @@ export default {
304
304
  },
305
305
  delOfCheckBook(){
306
306
  try {
307
- let upAddress = `update t_user_address set f_check_book_id = null where 1 = 2 `
307
+ let condata = {
308
+ condition :null,
309
+ bookAll:'false'
310
+ }
308
311
  if (this.bookAll){
309
- upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${this.row.id}'`
312
+ condata.bookAll = 'true'
313
+ condata.condition = this.row.id
310
314
  }else if (this.bookList.length > 0){
311
315
  let codes = this.bookList.map( item => { return `'${item}'` } ).join()
312
- upAddress = `update t_user_address set f_check_book_id = null where id in (${codes})`
316
+ condata.condition = `(${codes})`
313
317
  }
314
318
  this.$showMessage('确认移出安检册', ['confirm', 'cancel']).then((res) => {
315
319
  if (res === 'confirm') {
316
320
  let http = new HttpResetClass()
317
- http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: upAddress}},
321
+ http.load('POST', 'api/af-safecheck/logic/CheckBookUserRemove', {data:condata},
318
322
  {resolveMsg: null, rejectMsg: '移出安检册失败'}).then(resp=>{
319
323
  this.$showMessage('移出成功')
320
324
  this.$refs.paged.$refs.criteria.search()