12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!-- -->
- <template>
- <div class="Big-Book-prev-Textdes" v-if="curQue">
- <div>
- <span></span>
- <span v-for="(op, OPindex) in curQue.option" :key="OPindex">
- {{ op.con }}
- </span>
- </div>
- <div
- class="Big-Book-prev-list"
- v-for="(item, index) in curQue.con"
- :key="index"
- >
- <span>{{ item.con }}</span>
- <el-checkbox-group
- v-model="item.AnswerList"
- class="checkbox-group"
- >
- <span v-for="(op, OPindex) in curQue.option" :key="OPindex">
- <el-radio
- v-if="curQue.type == 'matrixSingle'"
- v-model="item.Answer"
- :label="OPindex"
- >{{ op.con }}</el-radio
- >
- <el-checkbox
- v-else-if="curQue.type == 'matrixChekbox'"
- :label="OPindex"
- >{{ op.con }}</el-checkbox
- >
- </span>
- </el-checkbox-group>
- </div>
- </div>
- </template>
- <script>
- export default {
- components: {},
- props: ["curQue"],
- data() {
- return {};
- },
- computed: {},
- watch: {},
- //方法集合
- methods: {},
- //生命周期 - 创建完成(可以访问当前this实例)dsa
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {},
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='scss' scoped>
- //@import url(); 引入公共css类
- .Big-Book-prev-Textdes {
- > div {
- min-height: 56px;
- display: flex;
- align-items: center;
- .checkbox-group {
- > span {
- display: inline-block;
- width: 100px;
- text-align: center;
- }
- }
- > span {
- display: inline-block;
- width: 100px;
- text-align: center;
- }
- }
- .Big-Book-prev-list {
- > :nth-child(1) {
- word-break: break-all;
- }
- }
- }
- </style>
|