sunlupeng 1 year ago
parent
commit
468897404f
1 changed files with 19 additions and 6 deletions
  1. 19 6
      src/views/postManage/postApprovalList.vue

+ 19 - 6
src/views/postManage/postApprovalList.vue

@@ -58,25 +58,25 @@
           <div class="listItem" v-for="(item,index) in data" :key="index">
             <div v-if="item.type=='SCQ'">
               <div class="itemTitle">{{ index+1 }}. {{item.description}}(单选)</div>
-              <el-radio-group v-model="item.comment">
-                <el-radio v-for="(childItem,childIndex) in item.options" :key="childIndex" :label="childItem.id" disabled>{{ childItem.name }}</el-radio>
+              <el-radio-group v-model="item.comment" class="flex-column">
+                <el-radio class="myRadio" v-for="(childItem,childIndex) in item.options" :key="childIndex" :label="childItem.id" disabled>{{ childItem.name }}</el-radio>
               </el-radio-group>
             </div>
 
             <div v-if="item.type=='MCQ'">
               <div class="itemTitle">{{ index+1 }}. {{item.description}}(多选)</div>
-              <el-checkbox-group v-model="item.comment">
-                <el-checkbox v-for="(childItem,childIndex) in item.options" :key="childIndex" :label="childItem.id" disabled>{{ childItem.name }}</el-checkbox>
+              <el-checkbox-group v-model="item.comment" class="flex-column">
+                <el-checkbox class="myRadio" v-for="(childItem,childIndex) in item.options" :key="childIndex" :label="childItem.id" disabled>{{ childItem.name }}</el-checkbox>
               </el-checkbox-group>
             </div>
             <div v-if="item.type=='SAQ'">
               <div class="itemTitle">{{ index+1 }}. {{item.description}}(问答)</div>
-              <el-input disabled type="textarea" :rows="4" placeholder="请输入内容" v-model="item.comment"></el-input>
+              <el-input disabled type="textarea" :rows="6" maxlength="200" show-word-limit placeholder="请输入内容" v-model="item.comment"></el-input>
             </div>
           </div>
           <div v-if="dialogStatus=='complete'" class="listItem">
               <div class="itemTitle">审批意见</div>
-              <el-input type="textarea" :rows="4" placeholder="请输入审批意见" v-model="comment"></el-input>
+              <el-input type="textarea" :rows="6" maxlength="200" show-word-limit placeholder="请输入审批意见" v-model="comment"></el-input>
           </div>
         </div>
       </div>
@@ -259,6 +259,7 @@ export default {
             }
             const isChecked = this.checked(parms);
             if(isChecked){
+                this.dialogFormVisible = false;
                 complete(parms).then((response) => {
                     this.$notify({
                         title: "成功",
@@ -356,6 +357,18 @@ export default {
 }
 </script>
 <style>
+.myRadio{
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    white-space:normal !important;
+    margin: 10px !important;
+}
+.flex-column{
+    display: flex;
+    flex-flow: column nowrap;
+    align-items: flex-start;
+}
 .ad-avatar-uploader .el-upload {
   border: 1px dashed #d9d9d9;
   border-radius: 6px;