Explorar o código

后台用户需要到超级管理员删除

zk %!s(int64=2) %!d(string=hai) anos
pai
achega
480edb3601

+ 1 - 1
server/api/v1/autocode/problem_info.go

@@ -161,7 +161,7 @@ func SendMsg(sendUser autocodeReq.SendUser, isUuid bool) {
 			MiniProgram: struct {
 				AppID    string `json:"appid"`
 				PagePath string `json:"pagepath"`
-			}{AppID: appid, PagePath: "/pages/public-details?id=" + strconv.Itoa(int(sendUser.ProblemID))},
+			}{AppID: appid, PagePath: "/pages/question?id=" + strconv.Itoa(int(sendUser.ProblemID))},
 		}
 		if _, err := global.GVA_WECHAT.GetTemplate().Send(msg); err != nil {
 			global.GVA_LOG.Error("微信模板通知失败!", zap.Any("err", err))

+ 5 - 5
web/src/view/superAdmin/user/userP.vue

@@ -48,8 +48,8 @@
       <el-table-column label="微信昵称" min-width="150" prop="nickName" />
       <el-table-column label="角色权限" min-width="80" prop="authorityId">
         <template #default="scope">
-          <el-tag v-show="scope.row.authorityId == 666" type="primary">管理员</el-tag>
-          <el-tag v-show="scope.row.authorityId == 777" type="success">一般用户</el-tag>
+          <el-tag v-show="scope.row.authorityId == 666" type="primary">处理人员</el-tag>
+          <el-tag v-show="scope.row.authorityId == 777" type="success">督导人员</el-tag>
           <el-tag v-show="scope.row.authorityId == 100" type="warning">待审核用户</el-tag>
         </template>
       </el-table-column>
@@ -65,9 +65,9 @@
           </el-button>
           <el-button v-show="scope.row.authorityId == 100" type="success" icon="el-icon-s-claim" size="mini" @click="updateUser(scope.row,false,'777')">审核通过
           </el-button>
-          <el-button v-show="scope.row.authorityId == 666" type="success" icon="el-icon-s-claim" size="mini" @click="updateUser(scope.row,false,'777')">一般用户
+          <el-button v-show="scope.row.authorityId == 666" type="success" icon="el-icon-s-claim" size="mini" @click="updateUser(scope.row,false,'777')">督导人员
           </el-button>
-          <el-button v-show="scope.row.authorityId == 777" type="success" icon="el-icon-s-claim" size="mini" @click="updateUser(scope.row,false,'666')">管理
+          <el-button v-show="scope.row.authorityId == 777" type="success" icon="el-icon-s-claim" size="mini" @click="updateUser(scope.row,false,'666')">处理人
           </el-button>
           <el-popover v-model:visible="scope.row.visible" placement="top" width="160">
             <p>确定要删除此用户吗</p>
@@ -76,7 +76,7 @@
               <el-button type="primary" size="mini" @click="deleteUser(scope.row)">确定</el-button>
             </div>
             <template #reference>
-              <el-button type="danger" icon="el-icon-delete" size="mini">删除</el-button>
+              <el-button v-show="scope.row.authorityId == 777||scope.row.authorityId == 666||scope.row.authorityId == 100" type="danger" icon="el-icon-delete" size="mini">删除</el-button>
             </template>
           </el-popover>
         </template>