Przeglądaj źródła

fix(客户详情):按钮权限问题修复

wanglj 2 lat temu
rodzic
commit
8eaeac9846

+ 4 - 3
src/views/customer/components/Merge.vue

@@ -2,7 +2,7 @@
  * @Author: wanglj 471442253@qq.com
  * @Date: 2022-12-27 09:33:48
  * @LastEditors: wanglj
- * @LastEditTime: 2023-01-11 15:37:38
+ * @LastEditTime: 2023-01-13 14:33:05
  * @Description: file content
  * @FilePath: \opms_frontend\src\views\customer\components\Merge.vue
 -->
@@ -162,8 +162,8 @@
   }
 
   .merge {
-    height: 401px;
-    overflow-y: auto;
+    height: 411px;
+    overflow: auto;
     display: flex;
 
     ul {
@@ -187,6 +187,7 @@
 
     .each {
       flex: 1;
+      min-width: 200px;
       overflow: hidden;
       li {
         padding-left: 10px;

+ 7 - 7
src/views/customer/detail.vue

@@ -2,7 +2,7 @@
  * @Author: wanglj 471442253@qq.com
  * @Date: 2022-12-26 09:30:47
  * @LastEditors: wanglj
- * @LastEditTime: 2023-01-13 10:32:49
+ * @LastEditTime: 2023-01-13 14:36:06
  * @Description: file content
  * @FilePath: \opms_frontend\src\views\customer\detail.vue
 -->
@@ -14,17 +14,17 @@
           <p>客户</p>
           <h3>
             {{ detail.custName }}
-            <span>
-              <template v-if="detail.salesId > 0">
+            <div>
+              <span v-show="detail.salesId > 0">
                 <el-button v-permissions="['cust:list:shift']" @click="handleShift">转移客户</el-button>
                 <el-button v-permissions="['cust:list:open']" @click="handleToOpen">移入公海</el-button>
                 <el-button v-permissions="['cust:list:business']" @click="handleBusiness">创建项目</el-button>
-              </template>
-              <template v-else>
+              </span>
+              <span v-show="detail.salesId == 0">
                 <el-button v-permissions="['cust:open:receive']" @click="handleReceive">领取客户</el-button>
                 <el-button v-permissions="['cust:open:allocate']" @click="handleAllocate">分配客户</el-button>
-              </template>
-            </span>
+              </span>
+            </div>
           </h3>
         </div>
         <header>

+ 3 - 3
src/views/customer/list.vue

@@ -2,7 +2,7 @@
  * @Author: wanglj 471442253@qq.com
  * @Date: 2022-12-26 16:34:37
  * @LastEditors: wanglj
- * @LastEditTime: 2023-01-13 11:13:29
+ * @LastEditTime: 2023-01-13 14:57:43
  * @Description: file content
  * @FilePath: \opms_frontend\src\views\customer\list.vue
 -->
@@ -79,7 +79,7 @@
         </el-button>
       </vab-query-form-left-panel>
       <vab-query-form-right-panel :span="12">
-        <el-button icon="el-icon-download" />
+        <el-button icon="el-icon-download" @click="exportData" />
         <table-tool :check-list.sync="checkList" :columns="columns" />
       </vab-query-form-right-panel>
     </vab-query-form>
@@ -87,7 +87,7 @@
       v-loading="listLoading"
       border
       :data="list"
-      height="calc(100vh - 394px)"
+      :height="$baseTableHeight(3)"
       @selection-change="setSelectRows">
       <el-table-column align="center" show-overflow-tooltip type="selection" />
       <el-table-column