Procházet zdrojové kódy

Merge branch 'all-v4-lkh' into 'all-v4'

fix: 之前枚举值与后端不一致,重置枚举值;设置文本框为不可拉伸;-改为括号;

See merge request skyeye/skyeye_frontend/skyeye-admin!382
Fei Liu před 1 rokem
rodič
revize
9e2486d71a

+ 3 - 3
src/types/comments/constant.ts

@@ -5,8 +5,8 @@ export enum REPLY_STATUS {
 }
 
 export enum COMMENT_STATUS {
-  UN_AUTHED = 0,
-  REJECTED = 1,
+  UN_AUTHED = 1,
+  REJECTED = 3,
   PASSED = 2,
-  ALL = 3,
+  ALL = 0,
 }

+ 5 - 2
src/views/system/comments/component/SingleComment.vue

@@ -7,7 +7,9 @@
       <div v-show="props.problemData.isUserDeleted === 1" class="delete-label"></div>
       <div :style="{ opacity: props.problemData.isUserDeleted === 1 ? 0.6 : 1 }">
         <div style="display: flex; font-size: 12px">
-          <div style="color: #00000073">评论人:{{ props.problemData.realname }}-{{ props.problemData.userName }} </div>
+          <div style="color: #00000073">
+            评论人:{{ props.problemData.realname }}({{ props.problemData.userName }} )
+          </div>
           <div style="margin-left: 20px; color: #00000073">日期:{{ props.problemData.createdAt }}</div>
           <!-- <img src="@/assets/icons/phone.png" alt="" /> -->
           <div class="single-contact">联系方式:{{ props.problemData.mobile }}</div>
@@ -24,7 +26,7 @@
             隐藏
           </el-button>
           <el-button
-            v-show="props.problemData.status === COMMENT_STATUS.REJECTED"
+            v-show="props.problemData.status !== COMMENT_STATUS.PASSED"
             type="primary"
             class="label-button"
             style="margin-left: auto; margin-right: 0"
@@ -76,6 +78,7 @@
             type="textarea"
             v-model="replyContent"
             rows="4"
+            resize="none"
             maxlength="200"
           >
           </el-input>