Bläddra i källkod

权限提示&机构选择提示修改

chenlei 1 dag sedan
förälder
incheckning
9f971d507e

+ 3 - 2
src/views/customer/CompanyEdit.vue

@@ -40,7 +40,7 @@ const formState = reactive({
 
 
 const checkedIds = ref([])
-
+const AuthStatus = ref(1)
 function getUserInfo() {
   if (!CompanyId.value) return
   apiCustomerUser.companyInfo({
@@ -50,6 +50,7 @@ function getUserInfo() {
       const Detail = res.Data
       formState.CompanyName = Detail.CompanyName
       formState.CreditCode = Detail.CreditCode
+      AuthStatus.value = Detail.AuthStatus
       formState.Industry = Detail.Industry
       formState.sellerId = Detail.SellerId
       formState.province = Detail.Province
@@ -191,7 +192,7 @@ function handleChangeList() {
           </div>
           <div class="flex form-tr-box">
             <el-form-item label="权限" prop="CompanyId">
-              可查看所有报告
+              {{ AuthStatus === 1 ? '可查看所有报告' : '无报告查看权限' }}
             </el-form-item>
           </div>
           <div class="flex form-tr-box color" v-if="route.path !== '/customer/companyDetail'">

+ 0 - 1
src/views/customer/PotentialUserList.vue

@@ -149,7 +149,6 @@ function handleGoReadTimes(e){
         <el-table
           :data="userList"
           border
-          highlight-current-row
           element-loading-text="数据加载中..."
           v-loading="tableLoading"
           :header-cell-style="{ background: '#EBEEF5' }"

+ 2 - 1
src/views/customer/UserList.vue

@@ -193,7 +193,8 @@ async function handleChangecompany(row) {
     CompanyId: row.CompanyId,
   })
   if (res.Ret !== 200) return
-  ElMessage.success('禁用成功')
+  console.log(row);
+  row.AuthStatus === 1 ? ElMessage.success('禁用成功') : ElMessage.success('启用成功')
   getUserList()
 }
 

+ 1 - 0
src/views/customer/components/MoveUser.vue

@@ -72,6 +72,7 @@ async function handleSubmitForm() {
             size="large"
             style="width: 100%"
             filterable
+            no-match-text="暂无该机构,请前往客户列表添加投资者机构!"
           >
             <el-option
               v-for="item in departArr"

+ 1 - 0
src/views/customer/components/ToFormalize.vue

@@ -111,6 +111,7 @@ async function handleSubmitForm() {
             placeholder="请选择客户类型"
             size="large"
             filterable
+            no-match-text="暂无该机构,请前往客户列表添加投资者机构!"
             style="width: 100%"
           >
             <el-option