zhangyujun 2 жил өмнө
parent
commit
fd60e0bb94

+ 3 - 2
src/views/system/user/index.vue

@@ -240,6 +240,7 @@
                 >重置</el-button
               >
               <el-button
+                v-if="scope.row.userId !== 1"
                 size="mini"
                 type="text"
                 icon="el-icon-key"
@@ -641,8 +642,8 @@ export default {
       this.$prompt("对" + row.userName + "账户进行充值", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        inputPattern:/^-?[1-9]+[0-9]*$/,
-        inputErrorMessage:"必需是整数"
+        inputPattern: /^-?[1-9]+[0-9]*$/,
+        inputErrorMessage: "必需是整数",
       })
         .then(({ value }) => {
           recharge({ userId: row.userId, rechargeNumber: value }).then(