洪海涛 4 роки тому
батько
коміт
cd23273b08
2 змінених файлів з 6 додано та 5 видалено
  1. 3 2
      src/components/Tag/TagSearch.vue
  2. 3 3
      src/components/Tag/index.vue

+ 3 - 2
src/components/Tag/TagSearch.vue

@@ -24,6 +24,7 @@
 </template>
 <script>
 import { taskGetTag } from '@/api/common'
+import { desDecryptId } from '@/utils/crypto-js'
 
 export default {
   name: 'TagSearch',
@@ -64,8 +65,8 @@ export default {
       this.$emit('change', this.tagSelectValue)
     },
     remoteMethod(searchTag = '') {
-      const bizId_id = window.localStorage.getItem('bizId')
-      // const bizId_id = desDecryptId(this.$route.query.bizId_id).replace(/_.*/, '')
+      // const bizId_id = window.localStorage.getItem('bizId')
+      const bizId_id = desDecryptId(this.$route.query.bizId_id).replace(/_.*/, '')
       taskGetTag({
         type: this.type,
         searchTag,

+ 3 - 3
src/components/Tag/index.vue

@@ -46,7 +46,7 @@
 </template>
 <script>
 import Clickoutside from 'element-ui/src/utils/clickoutside'
-// import { desDecryptId } from '@/utils/crypto-js'
+import { desDecryptId } from '@/utils/crypto-js'
 import { taskGetTag } from '@/api/common'
 import Modal from '@/components/modal'
 
@@ -106,8 +106,8 @@ export default {
       this.visible = true
     },
     remoteMethod(searchTag = '') {
-      const bizId_id = window.localStorage.getItem('bizId')
-      // const bizId_id = desDecryptId(this.$route.query.bizId_id).replace(/_.*/, '')
+      // const bizId_id = window.localStorage.getItem('bizId')
+      const bizId_id = desDecryptId(this.$route.query.bizId_id).replace(/_.*/, '')
       console.log(bizId_id)
       taskGetTag({
         type: this.type,