Browse Source

Merge branch 'dev4.6.3' of http://192.168.3.207:8080/qmx/jy into dev4.6.3

zhangyuhan 3 năm trước cách đây
mục cha
commit
5eb06ef3ff

+ 4 - 4
src/web/staticres/js/ent-search-index-pc.js

@@ -213,7 +213,7 @@ var vm = new Vue({
             endDate:'',
             endDate:'',
             thisStartTime:'',
             thisStartTime:'',
             thisEndTime:'',
             thisEndTime:'',
-            industryShow: false
+            indusShow: false
         }
         }
     },
     },
     watch: {
     watch: {
@@ -270,7 +270,6 @@ var vm = new Vue({
         },
         },
     },
     },
     created: function () {
     created: function () {
-        this.industryTab()
         this.getPower()
         this.getPower()
         this.initPageData()
         this.initPageData()
         this.initProvinceMapList()
         this.initProvinceMapList()
@@ -281,6 +280,7 @@ var vm = new Vue({
         this.$refs.searchType.setState(this.filterState.searchType)
         this.$refs.searchType.setState(this.filterState.searchType)
         // 全选按钮逻辑
         // 全选按钮逻辑
         // this.searchTypeChange([], true)
         // this.searchTypeChange([], true)
+        this.industryTab()
     },
     },
     methods: {
     methods: {
         industryTab() {
         industryTab() {
@@ -290,9 +290,9 @@ var vm = new Vue({
                 url:'/entnicheNew/buy/whetherbuy',
                 url:'/entnicheNew/buy/whetherbuy',
                 success:function (res) {
                 success:function (res) {
                   if (res.data.isNew) {
                   if (res.data.isNew) {
-                    _this.industryShow = true
+                    $('#tab-cgdw').css('display', 'inline-block')
                   } else {
                   } else {
-                    _this.industryShow = false
+                    $('#tab-cgdw').css('display', 'none')
                   }
                   }
                 }
                 }
             })
             })

+ 26 - 21
src/web/staticres/js/pur-search-index-pc.js

@@ -205,7 +205,7 @@ var vm = new Vue({
             this.entArea = {}
             this.entArea = {}
             this.indusList = []
             this.indusList = []
             this.indusList1 = []
             this.indusList1 = []
-            this.industryListMap = []
+            this.industryExp = []
             this.qyCheck = []
             this.qyCheck = []
             this.doSearch()
             this.doSearch()
         },
         },
@@ -420,7 +420,6 @@ var vm = new Vue({
             }
             }
             this.listState.loading = true
             this.listState.loading = true
             this.listState.loaded = false
             this.listState.loaded = false
-            this.listState.list = []
             const _this = this
             const _this = this
             let arrs = [], arr1 = []
             let arrs = [], arr1 = []
             $.ajax({
             $.ajax({
@@ -450,6 +449,7 @@ var vm = new Vue({
                         if (res.error_msg) {
                         if (res.error_msg) {
                             toastFn(res.error_msg, 2000)
                             toastFn(res.error_msg, 2000)
                         }
                         }
+                        this.listState.list = []
                     }
                     }
                 }.bind(this),
                 }.bind(this),
                 complete: function () {
                 complete: function () {
@@ -591,10 +591,7 @@ var vm = new Vue({
                 success: function (res) {
                 success: function (res) {
                     if (res.data == false) {
                     if (res.data == false) {
                         if (res.error_msg) {
                         if (res.error_msg) {
-                            _this.$message({
-                                message: res.error_msg,
-                                type: 'warning'
-                            })
+                            toastFn(res.error_msg, 2000)
                         }
                         }
                     } else {
                     } else {
                         _this.getList(_this.listState.pageNum)
                         _this.getList(_this.listState.pageNum)
@@ -658,19 +655,23 @@ var vm = new Vue({
             }
             }
         },
         },
         guanAndren(item, type, index) {
         guanAndren(item, type, index) {
-            if (!item.claim1) {
-                var top = 91 * (index + 1) + 'px'
-                this.datas = item.Buyer
-                $('.tags-box').slideToggle(function () {
-                    window.activeTags = []
-                    $('.tag-labels').empty()
-                    $('.clear-input').val('')
-                    $('.tags-list').find('.tags-item').removeClass('tags-active')
-                    $('.tag-placeholder').show()
-                }).css({
-                    top: top,
-                    right: 0
-                })
+            if (type == 1) {
+                if (!item.claim1) {
+                    var top = 91 * (index + 1) + 'px'
+                    this.datas = item.Buyer
+                    $('.tags-box').slideToggle(function () {
+                        window.activeTags = []
+                        $('.tag-labels').empty()
+                        $('.clear-input').val('')
+                        $('.tags-list').find('.tags-item').removeClass('tags-active')
+                        $('.tag-placeholder').show()
+                    }).css({
+                        top: top,
+                        right: 0
+                    })
+                } else {
+                    this.attention(item, type, '')
+                }
             } else {
             } else {
                 this.attention(item, type, '')
                 this.attention(item, type, '')
             }
             }
@@ -901,11 +902,11 @@ var vm = new Vue({
                 }
                 }
                 console.log(params)
                 console.log(params)
                 // 执行保存绑定标签操作
                 // 执行保存绑定标签操作
-                if (params.label !== '') {
+                // if (params.label !== '') {
                   saveChooseTags(params, function () {
                   saveChooseTags(params, function () {
                     $('.tags-footer .button-cancel').trigger('click')
                     $('.tags-footer .button-cancel').trigger('click')
                   })
                   })
-                }
+                // }
               }
               }
             })
             })
       
       
@@ -1011,6 +1012,10 @@ var vm = new Vue({
                     _this.$toast('认领成功!')
                     _this.$toast('认领成功!')
                     _this.$emit('updatelist', true)
                     _this.$emit('updatelist', true)
                     callback && callback()
                     callback && callback()
+                  } else {
+                    if (r.error_msg) {
+                        toastFn(r.error_msg, 2000)
+                    }
                   }
                   }
                 }
                 }
               })
               })

+ 4 - 1
src/web/templates/pc/entsearchindex.html

@@ -125,6 +125,9 @@
                 top: 5px;
                 top: 5px;
                 opacity: 0;
                 opacity: 0;
             }
             }
+            .tab-cgdw {
+                display: none;
+            }
         </style>
         </style>
 	</head>
 	</head>
 
 
@@ -181,7 +184,7 @@
                         <el-tabs v-model="tabActive">
                         <el-tabs v-model="tabActive">
                             <el-tab-pane label="招标搜索" name="zb"></el-tab-pane>
                             <el-tab-pane label="招标搜索" name="zb"></el-tab-pane>
                             <el-tab-pane label="企业搜索" name="qy"></el-tab-pane>
                             <el-tab-pane label="企业搜索" name="qy"></el-tab-pane>
-                            <el-tab-pane label="采购单位搜索" name="cgdw" v-show="industryShow"></el-tab-pane>
+                            <el-tab-pane label="采购单位搜索" name="cgdw"></el-tab-pane>
                         </el-tabs>
                         </el-tabs>
                     </div>
                     </div>
                 </div>
                 </div>