浏览代码

feat: 批量收录按钮改为配置项,创建情报弹窗刷新清空已输入的值

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 年之前
父节点
当前提交
873a1fb06c

+ 1 - 0
src/web/staticres/BI-module/js/crm-action.js

@@ -115,6 +115,7 @@ var crmNode = new Vue({
         case 'employ':
           // 收录
           if(this.property === 'BIProperty') {
+            this.IframeSrc = `${location.origin}/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_intelligence.spg`
             const bidamount_class=goTemplateData.params.obj.bidamount
             const budget_class=goTemplateData.params.obj.budget
             const amount = this.getacount(bidamount_class, budget_class)

+ 8 - 0
src/web/staticres/js/superSearch.js

@@ -14,6 +14,9 @@ var inBIPropertyiframe = getParam('property') === 'BIProperty'
 if (!(tParams.isEntniche || tParams.isVip || tParams.isMember)) {
   localStorage.setItem('login-clear-bidsearch-list-model', 'S')
 }
+if(searchInnerVue.inBIPropertyiframe){
+  localStorage.removeItem('login-clear-bidsearch-list-model')
+}
 var listModel = localStorage.getItem('login-clear-bidsearch-list-model') || 'S' // 列表精简or详细 S:精简 D:详细
 // 采购单位画像中转页
 var buyerLink = '/swordfish/page_big_pc/free/loading/buyer/'
@@ -1944,6 +1947,10 @@ function getEmployData () {
     data: JSON.stringify(params),
     success: function (res) {
       if (res.error_code === 0) {
+        if(res.batchEmploy) {
+          $('#right-employ').show()
+          $('.shoulu-line').show()
+        }
         if(res.data && res.data.length > 0) {
           employList = res.data
           res.data.forEach(function (item, index) {
@@ -1997,6 +2004,7 @@ $(document).on('click', '.icon-shoulu', function() {
         } else if (res.code === 1) {
           // 未创建情报信息,需要手动创建
           searchInnerVue.showPropertyDialog = true
+          searchInnerVue.IframeSrc = `${location.origin}/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_intelligence.spg`
         } else {
           toastFn(res.msg, 800)
         }

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

@@ -662,7 +662,7 @@
             </div>
           </div>
           <el-dialog custom-class="property-employ-dialog" :visible.sync="showPropertyDialog">
-            <iframe width="600" height="650" src="/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_intelligence.spg" frameborder="0"></iframe>
+            <iframe width="600" height="650" :src="IframeSrc" frameborder="0"></iframe>
           </el-dialog>
           <div class="Iframe-dialog">
             <el-dialog

+ 5 - 4
src/web/templates/pc/supsearch.html

@@ -1658,7 +1658,7 @@
       </el-collapse-transition>
     </div>
     <el-dialog custom-class="property-employ-dialog" :visible.sync="showPropertyDialog">
-      <iframe width="600" height="650" src="/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_intelligence.spg" frameborder="0"></iframe>
+      <iframe width="600" height="650" :src="IframeSrc" frameborder="0"></iframe>
     </el-dialog>
     <!-- 展开收起 -->
     <div class="w" style="text-align: center;" v-show="showFilter">
@@ -1799,8 +1799,8 @@
             <div class="split-line line-distribute" style="display: none;"></div>
             <button id="right-distribute" style="display: none;">分发</button>
             <template v-if="inResourceBIiframe">
-              <div class="split-line"></div>
-              <button id="right-employ">收录</button>
+              <div class="split-line shoulu-line" style="display: none;"></div>
+              <button id="right-employ" style="display: none;">收录</button>
             </template>
           </div>
         </div>
@@ -3378,7 +3378,8 @@ function checkTagDisabled () {
         propertyListData: [],
         showMoreAreaState: true,
         datePropertyValue: '',
-        showPropertyDialog: false
+        showPropertyDialog: false,
+        IframeSrc: '/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_intelligence.spg'
       }
     },
     computed: {