Browse Source

问题修改

wenmenghao321 2 năm trước cách đây
mục cha
commit
88c7a241c2

+ 1 - 1
src/web/staticres/js/superSearch.js

@@ -1622,7 +1622,7 @@ function distributeInit(){
         // 无地区
         person_Dialog.selectArea = []  
       }
-      person_Dialog.titleMsg = '选择分发人员' // 设置弹窗标题
+      person_Dialog.titleMsg = '选择接收人员' // 设置弹窗标题
       person_Dialog.searchVal = ''
       person_Dialog.centerDialogVisible = true // 打开弹窗
       person_Dialog.selectDataIds = checked_id // 传入标讯ID

+ 20 - 19
src/web/templates/common/personDialog.html

@@ -69,8 +69,8 @@
       vt:'',
       centerDialogVisible: false,
       searchVal: '',
-      personList: [{"id":4357,"name":"企业管理员","phone":"18738625921"}],
-      personSpareList:[{"id":4357,"name":"企业管理员","phone":"18738625921"}],
+      personList: [],
+      personSpareList:[],
       selectedList: [],
       checked: false,
       titleMsg: '',
@@ -197,6 +197,7 @@
         region: num ? '' : selectAreas.toString(),
         queryType: num || ''
       }
+      let this_ = this
       // eType 企业
       $.ajax({
               type: 'post',
@@ -205,37 +206,37 @@
               data: JSON.stringify(params),
               dataType: 'json',
               success: function (res) {
-                if (res.error_code === 0 && res.data && res) {
+                if (res.error_code == 0 && res.data) {
                   // this.personList = data
-                 this.personList = {}
-                 this.loading = false
+                  this_.personList = {}
+                  this_.loading = false
                  res.data.forEach(v => {
                    v.toggle = true
                    v.status = false
                  })
-                 this.personList = res.data
-                 this.personSpareList = res.data
+                 this_.personList = res.data
+                 this_.personSpareList = res.data
                  if (flag === 'yes') {
-                   if (this.searchVal) {
-                     this.allQuan = false
+                   if (this_.searchVal) {
+                    this_.allQuan = false
                    }
                    return
                  }
-                 this.maxLength = res.data.checked
-                 if (this.pagetype !== 'manage') {
-                   this.selectedList = res.data.checkedList
+                 this_.maxLength = res.data.checked
+                 if (this_.pagetype !== 'manage') {
+                  this_.selectedList = res.data.checkedList
                  }
-                  this.allChecked = true
+                 this_.allChecked = true
                  if (res.data.checked === 0) {
-                   this.quan = false
+                  this_.quan = false
                  }
                 } else {
-                  this.personList = {}
-                  this.loading = false
+                  this_.personList = {}
+                  this_.loading = false
                 }
 
-                if (this.searchVal === '') {
-                  this.allQuan = true
+                if (this_.searchVal === '') {
+                  this_.allQuan = true
                }
                 
               }
@@ -275,7 +276,7 @@
             $.ajax({
               type: 'post',
               contentType: "application/json",
-              url: '/jybx/subscribe/bidDistributor',
+              url: '/jyapi/jybx/subscribe/bidDistributor',
               data: JSON.stringify(params_Data),
               dataType: 'json',
               success: function (res) {

+ 2 - 2
src/web/templates/pc/biddetail_rec.html

@@ -220,7 +220,7 @@
                         <div class="tags-button button-cancel">暂不添加</div>
                     </div>
                 </div>
-                <span class="com-collect" id="bidCollect"><img class="icon-title-img" src='{{Msg "seo" "cdn"}}/images/collect.png' />标讯收藏</span>
+                <span class="com-collect" id="bidCollect"><img class="icon-title-img" src='{{Msg "seo" "cdn"}}/images/collect.png' />收藏</span>
                 <span class="com-collect" id="bidCollected" style="display: none;"><img class="icon-title-img" src='{{Msg "seo" "cdn"}}/images/collected.png' />标讯收藏</span>
                 <script>
                   // 列表页收藏点击事件 百度统计
@@ -1832,7 +1832,7 @@ var ucbs_source="pc_rec",ucbsId="{{.T.obj.ucbsId}}";
         // 无地区
            person_Dialog.selectArea = []  
          }
-         person_Dialog.titleMsg = '选择分发人员' // 设置弹窗标题
+         person_Dialog.titleMsg = '选择接收人员' // 设置弹窗标题
          person_Dialog.searchVal = ''
          person_Dialog.centerDialogVisible = true // 打开弹窗
          person_Dialog.selectDataIds = [pagedata._id]// 传入标讯ID