Browse Source

fix:修改投票原因

贾宇博 2 months ago
parent
commit
e260220902
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/views/equity/message/index.vue

+ 5 - 3
src/views/equity/message/index.vue

@@ -126,7 +126,7 @@
       <el-col :span="24">
         <el-form>
           <el-form-item label="投票原因" v-if="isVote == '0' && msgType == '4'">
-            <el-input v-model="form.voteReason" placeholder="请输入投票原因" />
+            <el-input v-model="voteReason" placeholder="请输入投票原因" />
           </el-form-item>
           <el-form-item label="内容">
             <editor v-model="noticeContent" :min-height="192" :toolbar="[]" />
@@ -165,6 +165,7 @@ const centerDialogVisible = ref(false); // 对话框
 const dialogTitle = ref(''); // 对话框标题
 const currentRowId = ref(''); // 存储 equityMessageId
 const noticeContent = ref('');
+const voteReason = ref('');//投票原因
 
 const isVote = ref(0); // 投票状态:0 未投票,1 已投票
 const msgType = ref(0); // 消息类型:4 表示投票公告通知
@@ -249,11 +250,11 @@ const handleReject = () => {
 };
 
 // 统一处理投票状态
-const setVoteStatus = (status,voteReason) => {
+const setVoteStatus = (status) => {
   SetVoteInfo({
     equityMessageId: currentRowId.value, // 当前消息的 ID
     status: status, // 投票状态
-    voteReason:voteReason//投票原因
+    voteReason: voteReason.value, // 传递投票原因
   })
     .then(response => {
       console.log(response);
@@ -412,6 +413,7 @@ const handleCellClick = (row, column) => {
     centerDialogVisible.value = true; // 显示弹框
     isVote.value = row.isVote;
     msgType.value = row.msgType;
+    voteReason.value = row.voteReason;
   }
 };