marxjaw 4 сар өмнө
parent
commit
9ec5c79a5b

+ 0 - 10
src/views/main/userModule/relieveLogsList.vue

@@ -17,16 +17,6 @@
           </template>
         </el-table-column>
         <el-table-column prop="channelId" label="渠道商ID" width="90" />
-        <el-table-column prop="channelOrigin" label="渠道来源" width="90">
-          <template #default="scope">
-            {{ getDictionaryName('channel_origin',scope.row.channelOrigin) }}
-          </template>
-        </el-table-column>
-        <el-table-column prop="channelType" label="渠道类型" width="90">
-          <template #default="scope">
-            {{ getDictionaryName('channel_type',Number(scope.row.channelType)) }}
-          </template>
-        </el-table-column>
         <el-table-column prop="platformId" label="平台ID" width="150" />
         <el-table-column prop="deblockingReason" label="解禁原因" width="200" />
         <el-table-column prop="deblockingTime" label="解禁时间" width="160">

+ 10 - 10
src/views/main/userModule/riskLogsList.vue

@@ -29,16 +29,16 @@
           </template>
         </el-table-column>
         <el-table-column prop="channelId" label="渠道商ID" width="90" />
-        <el-table-column prop="channelOrigin" label="渠道来源" width="90">
-          <template #default="scope">
-            {{ getDictionaryName('channel_origin',scope.row.channelOrigin) }}
-          </template>
-        </el-table-column>
-        <el-table-column prop="channelType" label="渠道类型" width="90">
-          <template #default="scope">
-            {{ getDictionaryName('channel_type',Number(scope.row.channelType)) }}
-          </template>
-        </el-table-column>
+<!--        <el-table-column prop="channelOrigin" label="渠道来源" width="90">-->
+<!--          <template #default="scope">-->
+<!--            {{ getDictionaryName('channel_origin',scope.row.channelOrigin) }}-->
+<!--          </template>-->
+<!--        </el-table-column>-->
+<!--        <el-table-column prop="channelType" label="渠道类型" width="90">-->
+<!--          <template #default="scope">-->
+<!--            {{ getDictionaryName('channel_type',Number(scope.row.channelType)) }}-->
+<!--          </template>-->
+<!--        </el-table-column>-->
         <el-table-column prop="phoneModel" label="手机型号" width="90" />
         <el-table-column prop="platformId" label="平台ID" width="150" />
         <el-table-column prop="communicationOperator" label="IP运营商" width="100" />

+ 7 - 7
src/views/main/userModule/userList.vue

@@ -58,14 +58,14 @@
             <div class="button">
               <el-button class="button-item" type="primary" style="margin-bottom: 5px;"
                 @click="editUserType(scope.row)">
-                更改用户状态
+                风控解除
               </el-button>
-              <el-button class="button-item" type="danger" style="margin-bottom: 5px;" @click="edit(scope.row)">
+              <el-button  v-if="scope.row.userStatus < 3" class="button-item" type="danger" style="margin-bottom: 5px;" @click="edit(scope.row)">
                 封禁用户
               </el-button>
               <el-popconfirm title="确认锁定该用户?" @confirm="lockUser(scope.row)">
                 <template #reference>
-                  <el-button class="button-item" style="margin-bottom: 5px;" type="warning">锁定用户</el-button>
+                  <el-button v-if="scope.row.userStatus < 2" class="button-item" style="margin-bottom: 5px;" type="warning">锁定用户</el-button>
                 </template>
               </el-popconfirm>
             </div>
@@ -77,8 +77,8 @@
     <!-- 操作弹窗 -->
     <Layer :layer="layer" @confirm="submit(ruleForm)" @close="layer.show = false">
       <el-form :model="formEdit" :rules="rules" ref="ruleForm" label-width="120px" style="margin-right:30px;">
-        <el-form-item label="封禁期限:" required prop="formEditbannedLimit">
-          <el-input v-model="formEdit.formEditbannedLimit" type="number" placeholder="请输入封禁期限" clearable />
+        <el-form-item label="封禁期限:" required prop="bannedLimit">
+          <el-input v-model="formEdit.bannedLimit" type="number" placeholder="请输入封禁期限" clearable />
         </el-form-item>
         <el-form-item label="封禁原因:" required prop="bannedReason">
           <el-input v-model="formEdit.bannedReason" placeholder="请输入封禁原因" clearable />
@@ -346,7 +346,7 @@
     await formEl.validate(async (valid, fields) => {
       if (valid) {
         // 提交内容
-        riskBannedUser(formEdit.value).then((res) => {
+        riskChangeUserStatus(formEdit1.value).then((res) => {
           ElMessage.success('更改用户状态成功')
           layer1.value.show = false
           getList();
@@ -360,7 +360,7 @@
 
   // 锁定用户
   const lockUser = async (row) => {
-    riskChangeUserStatus({ userId: row.userId }).then((res) => {
+    riskLockUser({ userId: row.userId }).then((res) => {
       ElMessage.success('锁定用户成功')
       getList();
     })