Explorar o código

开发者对接

threethousanddream hai 1 mes
pai
achega
53cd774fc5
Modificáronse 2 ficheiros con 18 adicións e 9 borrados
  1. 6 0
      src/assets/myStyle.scss
  2. 12 9
      src/views/system/develop.vue

+ 6 - 0
src/assets/myStyle.scss

@@ -113,6 +113,12 @@
 }
 .el-textarea__inner {
   max-height: 120px;
+  &::-webkit-scrollbar {
+    cursor: default;
+  }
+  &::-webkit-scrollbar-thumb {
+    cursor: default;
+  }
 }
 .el-image__wrapper {
   img {

+ 12 - 9
src/views/system/develop.vue

@@ -23,7 +23,7 @@
       <el-button @click="getData" size="default" :loading="state.dataLoading">查询</el-button>
       <el-button @click="onReset" size="default" :loading="state.dataLoading">重置</el-button>
       <div style="flex: 1"></div>
-      <el-button type="primary" @click="onApplyBatch" size="default">
+      <el-button type="primary" @click="onApplyBatch" size="default" v-show="state.active===0||state.active===1">
         <SvgIcon icon="batch" style="margin-right: 3px;"></SvgIcon>
         批量审核
       </el-button>
@@ -32,18 +32,15 @@
       <el-table :data="state.list" size="default" :header-row-style="{color:'#161616'}" height="100%">
         <el-table-column label="" width="60px">
           <template v-slot="{row}">
-            <el-checkbox v-model="row.select" :disabled="row.status===1"></el-checkbox>
+            <el-checkbox v-model="row.select" :disabled="row.status!==1"></el-checkbox>
           </template>
         </el-table-column>
         <el-table-column label="所属用户" prop="tenantName"></el-table-column>
         <el-table-column label="申请人" prop="userNickName"></el-table-column>
-        <el-table-column label="申请人账号" prop="userId"></el-table-column>
+        <el-table-column label="申请人账号" prop="userAccount"></el-table-column>
         <el-table-column label="申请时间" prop="createTime"></el-table-column>
         <el-table-column label="认证信息">
-          <template v-slot="{row}">
-            <el-button type="text" @click="onShowAuth(row)">{{ row.instType === 1 ? '个人认证' : '企业认证' }}
-            </el-button>
-          </template>
+          <template v-slot="{row}">{{ row.instType === 1 ? '个人认证' : '企业认证' }}</template>
         </el-table-column>
         <el-table-column label="审核状态">
           <template v-slot="{row}">
@@ -83,7 +80,10 @@
           </el-radio-group>
         </el-form-item>
         <el-form-item label="备注" required v-if="!state.auditForm.pass">
-          <el-input type="textarea" :rows="3" placeholder="请输入备注" v-model="state.auditForm.reason"></el-input>
+          <el-input
+            type="textarea" :rows="3" placeholder="请输入备注" v-model="state.auditForm.reason" :maxlength="200"
+            show-word-limit
+          ></el-input>
         </el-form-item>
       </el-form>
       <div class="dialog-btns">
@@ -150,6 +150,9 @@ const onShowAuth = row => {
   console.log(row)
 }
 const onApplyBatch = () => {
+  if (!state.list.find(i => i.select)) {
+    return ElMessage({type: 'warning', message: '请勾选审核用户'})
+  }
   state.batchFlag = true
   state.auditForm = {id: '', pass: true, reason: '',}
   state.showAudit = true
@@ -222,5 +225,5 @@ const onSizeChange = size => {
 }
 </script>
 <style lang="scss">
-@import "develop";
+@import "develop.scss";
 </style>