|
|
@@ -12,7 +12,7 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="conent_right">
|
|
|
- <el-button class="button_background">创建问卷</el-button>
|
|
|
+ <el-button class="button_background" @click="GoToCreateQuestionnaire">创建问卷</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -89,7 +89,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import {onMounted, ref} from 'vue'
|
|
|
-
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
import Table from '@/baseComponents/Table.vue';
|
|
|
import TabSearch from '@/baseComponents/TabSearch.vue';
|
|
|
import TableRowStatus from '@/baseComponents/TableRowStatus.vue';
|
|
|
@@ -104,16 +104,20 @@ interface QuestionnaireItm {
|
|
|
createTime:String,
|
|
|
useStatus:Number, //0 已使用 1 未使用
|
|
|
}
|
|
|
+const router = useRouter()
|
|
|
|
|
|
-
|
|
|
-// 视图模式切换
|
|
|
+// 1. 视图模式切换
|
|
|
const defaultViewMode = ref('list')
|
|
|
const HandleTabChage = (val)=>{
|
|
|
defaultViewMode.value = val
|
|
|
}
|
|
|
|
|
|
+// 2. 跳转创建问卷
|
|
|
+const GoToCreateQuestionnaire = ()=>{
|
|
|
+ router.push('/main/createQuestionnaire')
|
|
|
+}
|
|
|
|
|
|
-//问卷列表
|
|
|
+//3. 问卷列表
|
|
|
const currentPage = ref(1)
|
|
|
const totalNum = ref(0)
|
|
|
const pageSize = ref(20)
|
|
|
@@ -154,6 +158,8 @@ const questionnaireList = ref<QuestionnaireItm[]>([
|
|
|
]);
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|