guanqb
2024-01-31 ddbaeba90e85377323efc009ef1b5915c7535ddd
公司管理页面答题区域修改
2 files modified
61 ■■■■■ changed files
src/views/property/companyManage.vue 36 ●●●● patch | view | raw | blame | history
src/views/property/components/propertyEdit.vue 25 ●●●●● patch | view | raw | blame | history
src/views/property/companyManage.vue
@@ -14,20 +14,20 @@
                <el-tab-pane label="项目良好行为" name="info6"></el-tab-pane>
                <el-tab-pane label="违法违规行为惩戒" name="info7"></el-tab-pane>
            </el-tabs>
            <div v-if="activeName != 'first'">
                <div v-for="(item, index) in questionBankData" :key="index">
                    <div>
            <div class="answer">
                <div class="topic-item" v-for="(item, index) in questionBankData" :key="index">
                    <div class="topic-title">
                        {{ index + 1 }} .{{ item.subjectName }}
                    </div>
                    <div v-if="item.choicesType == 0">
                        <div v-for="(item1, index1) in item.subjectOptionList" :key="index1">
                            <el-radio v-model="item1.ids" :label="item1.id">{{ item1.optionName }}</el-radio>
                        </div>
                    <div class="topic-options" v-if="item.choicesType == 0">
                        <el-radio-group v-model="item.chooseId">
                            <el-radio :label="item1.optionName" v-for="(item1, index1) in item.subjectOptionList"
                                :key="index1"></el-radio>
                        </el-radio-group>
                    </div>
                    <div v-if="item.choicesType == 3">
                    <div class="topic-options" v-if="item.choicesType == 3">
                        <div v-for="(item1, index1) in item.subjectOptionList" :key="index1" style="display: flex;">
                            <div>{{ item1.optionName }}:</div>
                            <el-input-number v-model="item1.numbers" @change="handleChange" :min="0" :max="25"
@@ -222,4 +222,20 @@
}
</script>
<style></style>
<style lang="scss" scoped>
:deep(.answer) {
    .topic-item {
        margin-bottom: 20px;
        .topic-title {
            margin-bottom: 10px;
        }
        .topic-options {
            .el-radio {
                margin-bottom: 10px;
            }
        }
    }
}
</style>
src/views/property/components/propertyEdit.vue
@@ -1,5 +1,4 @@
<template>
  <el-dialog title="" append-to-body :visible.sync="infoVisible" top="10vh" width="70%" :before-close="handleClose">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <!-- <el-tab-pane label="物业信息" name="first"></el-tab-pane> -->
@@ -31,7 +30,7 @@
        <div v-if="item.choicesType == 0">
          <div v-for="(item1, index1) in item.subjectOptionList" :key="index1">
            <el-radio v-model="item1.ids" :label="item1.id">{{item1.optionName}}</el-radio>
                        <el-radio v-model="item.chooseId" :label="item1.id">{{ item1.optionName }}</el-radio>
          </div>
        </div>
@@ -60,17 +59,16 @@
  </el-dialog>
</template>
<script>
  import {
    getList,
    remove
  } from "@/api/subjectChoices/subjectChoices";
} from "@/api/subjectChoices/subjectChoices"
  import {
    save
  } from "@/api/answerRecord/answerRecord";
} from "@/api/answerRecord/answerRecord"
  import {
    add
  } from "@/api/property/propertyCompany"
@@ -206,7 +204,7 @@
            },
          ],
        },
      };
        }
    },
    computed: {
      ...mapGetters(["permission", "userInfo"]),
@@ -236,7 +234,7 @@
        )
      },
      handleChange(value) {
        console.log(value);
            console.log(value)
      },
      rowSave(form, done) {
@@ -266,13 +264,13 @@
          page.pageSize,
          Object.assign(params, this.query)
        ).then(res => {
          const data = res.data.data;
          this.page.total = data.total;
          this.questionBankData = data.records;
                const data = res.data.data
                this.page.total = data.total
                this.questionBankData = data.records
          this.questionBankData.forEach(item => {
            item.propertyId = this.property.id
          })
        });
            })
      },
      init(row) {
@@ -308,8 +306,7 @@
        this.questionBankOnLoad(this.page, param)
      }
    }
  };
}
</script>
<style>
</style>
<style></style>