|
@@ -1,78 +1,38 @@
|
|
<template>
|
|
<template>
|
|
<div id="index">
|
|
<div id="index">
|
|
- <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="24" class="text_auto">{{ info.name }}</el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="24" class="text_left" v-for="(item, index) in info.question" :key="index">
|
|
|
|
- {{ item.type }}
|
|
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <el-col class="text_left" :span="24" v-for="(item, index) in questionnaireList" :key="index">
|
|
|
|
+ <van-cell is-link @click.native="$router.push({ path: '/question/question', query: { id: item.id } })">{{ item.name }} </van-cell>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="text_center">456</el-col>
|
|
|
|
- </el-row>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { createNamespacedHelpers, mapGetters } from 'vuex';
|
|
|
|
-const { mapActions: mapQuestion } = createNamespacedHelpers('questionnaire');
|
|
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
- props: {},
|
|
|
|
|
|
+ props: {
|
|
|
|
+ info: null,
|
|
|
|
+ questionnaireList: null,
|
|
|
|
+ },
|
|
components: {},
|
|
components: {},
|
|
data: () => ({
|
|
data: () => ({
|
|
- info: {
|
|
|
|
- name: '2020年疫情发展问卷调查',
|
|
|
|
- num: '1',
|
|
|
|
- question: [],
|
|
|
|
|
|
+ form: {
|
|
|
|
+ checkList: [],
|
|
},
|
|
},
|
|
}),
|
|
}),
|
|
- created() {
|
|
|
|
- this.searchInfo();
|
|
|
|
- },
|
|
|
|
|
|
+ created() {},
|
|
computed: {},
|
|
computed: {},
|
|
- methods: {
|
|
|
|
- ...mapQuestion(['query', 'fetch']),
|
|
|
|
- async searchInfo({ ...info } = {}) {
|
|
|
|
- const res = await this.query({ ...info });
|
|
|
|
- console.log(res.data);
|
|
|
|
- // this.$set(this, `leaveList`, res.data);
|
|
|
|
- },
|
|
|
|
- // let result;
|
|
|
|
- // for (const val of result.data) {
|
|
|
|
- // console.log(val);
|
|
|
|
- // for (const res of val.question) {
|
|
|
|
- // console.log(id);
|
|
|
|
- // this.$set(this, `question`, res.data);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- },
|
|
|
|
|
|
+ methods: {},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
-.text_auto {
|
|
|
|
- width: 100%;
|
|
|
|
- // height: 50px;
|
|
|
|
- line-height: 50px;
|
|
|
|
- position: relative;
|
|
|
|
- text-align: center;
|
|
|
|
- border-bottom: 1px dashed #333;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
.text_left {
|
|
.text_left {
|
|
width: 100%;
|
|
width: 100%;
|
|
- // height: 50px;
|
|
|
|
line-height: 50px;
|
|
line-height: 50px;
|
|
- position: relative;
|
|
|
|
- padding-left: 25px;
|
|
|
|
|
|
+ padding: 20px 20px;
|
|
color: blue;
|
|
color: blue;
|
|
}
|
|
}
|
|
-.text_center {
|
|
|
|
- width: 100%;
|
|
|
|
- line-height: 10px;
|
|
|
|
- position: relative;
|
|
|
|
- padding-left: 50px;
|
|
|
|
-}
|
|
|
|
</style>
|
|
</style>
|