Răsfoiți Sursa

Error 1064: SQL语法错误,问题解决

yuedefeng 5 ani în urmă
părinte
comite
5ad07d8857

+ 4 - 0
src/dashoo.cn/frontend_web/src/components/workflow/wfmultihistory.vue

@@ -85,6 +85,10 @@ export default {
   methods: {
     getHistoryTask () {
       let _this = this
+      if (!this.entryinfo.business) {
+        // 主键不存在时不调用
+        return false
+      }
       this.$axios.get('/audithistory/list?id=' + this.entryinfo.business)
         .then(res => {
           let instanceIds = ''

+ 0 - 33
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/basisedit.vue

@@ -477,7 +477,6 @@
         this.formData.Id = 0
       }
       this.getDictOptions()
-      this.getorgtreelist()
       this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
       if (this.IsCompanyUser && this.serviceId === 'add') {
         apiCert.getEntityByCreatorAndType('02', this.$axios).then(res => {
@@ -799,38 +798,6 @@
           console.error(err)
         })
       },
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-            if (_this.authUser.Profile.IsCompanyUser === 0) {
-              this.secOrganize = _this.authUser.Profile.Superior.split(',').map((val) => {
-                return parseInt(val)
-              })
-              this.auditOrgChang(this.secOrganize)
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      auditOrgChang (val) {
-        let deptid = val[val.length - 1]
-        this.auditerOption = []
-        this.auditer = ''
-        let auditstepcode = 'FIRST_TRIAL'
-        api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.auditerOption = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
       /* getCityList(val) {
        let resultData = JSON.parse(val)
        let countstr = JSON.stringify(resultData.districts[0].districts)

+ 0 - 34
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/goodsedit.vue

@@ -478,7 +478,6 @@
         this.formData.Id = 0
       }
       this.getDictOptions()
-      this.getorgtreelist()
       this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
 
       if (this.IsCompanyUser && this.serviceId === 'add') {
@@ -809,39 +808,6 @@
           console.error(err)
         })
       },
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-            if (_this.authUser.Profile.IsCompanyUser === 0) {
-              this.secOrganize = _this.authUser.Profile.Superior.split(',').map((val) => {
-                return parseInt(val)
-              })
-              this.auditOrgChang(this.secOrganize)
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-
-      auditOrgChang (val) {
-        let deptid = val[val.length - 1]
-        this.auditerOption = []
-        this.auditer = ''
-        let auditstepcode = 'FIRST_TRIAL'
-        api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.auditerOption = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
       /* getCityList(val) {
        let resultData = JSON.parse(val)
        let countstr = JSON.stringify(resultData.districts[0].districts)

+ 0 - 33
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierstore/_opera/techedit.vue

@@ -480,7 +480,6 @@
         this.formData.Id = 0
       }
       this.getDictOptions()
-      this.getorgtreelist()
 
       this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
       if (this.IsCompanyUser && this.serviceId === 'add') {
@@ -786,38 +785,6 @@
           console.error(err)
         })
       },
-      getorgtreelist () {
-        let _this = this
-        let params = {
-          IsInnerOrganize: 1
-        }
-        _this.$axios.get('organizes/orgalllist', {
-          params
-        })
-          .then(res => {
-            _this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
-            if (_this.authUser.Profile.IsCompanyUser === 0) {
-              this.secOrganize = _this.authUser.Profile.Superior.split(',').map((val) => {
-                return parseInt(val)
-              })
-              this.auditOrgChang(this.secOrganize)
-            }
-          })
-          .catch(err => {
-            console.error(err)
-          })
-      },
-      auditOrgChang (val) {
-        let deptid = val[val.length - 1]
-        this.auditerOption = []
-        this.auditer = ''
-        let auditstepcode = 'FIRST_TRIAL'
-        api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
-          this.auditerOption = res.data.item
-        }).catch(err => {
-          console.error(err)
-        })
-      },
       nextTab () {
         let activeIdx = parseInt(this.activeName)
         if (activeIdx < 5) {