update:首页模板修改
This commit is contained in:
3
components.d.ts
vendored
3
components.d.ts
vendored
@@ -32,6 +32,7 @@ declare module 'vue' {
|
|||||||
VanGrid: typeof import('vant/es')['Grid']
|
VanGrid: typeof import('vant/es')['Grid']
|
||||||
VanGridItem: typeof import('vant/es')['GridItem']
|
VanGridItem: typeof import('vant/es')['GridItem']
|
||||||
VanIcon: typeof import('vant/es')['Icon']
|
VanIcon: typeof import('vant/es')['Icon']
|
||||||
|
VanList: typeof import('vant/es')['List']
|
||||||
VanNavBar: typeof import('vant/es')['NavBar']
|
VanNavBar: typeof import('vant/es')['NavBar']
|
||||||
VanPicker: typeof import('vant/es')['Picker']
|
VanPicker: typeof import('vant/es')['Picker']
|
||||||
VanPopup: typeof import('vant/es')['Popup']
|
VanPopup: typeof import('vant/es')['Popup']
|
||||||
@@ -40,6 +41,8 @@ declare module 'vue' {
|
|||||||
VanRow: typeof import('vant/es')['Row']
|
VanRow: typeof import('vant/es')['Row']
|
||||||
VanStepper: typeof import('vant/es')['Stepper']
|
VanStepper: typeof import('vant/es')['Stepper']
|
||||||
VanSwitch: typeof import('vant/es')['Switch']
|
VanSwitch: typeof import('vant/es')['Switch']
|
||||||
|
VanTab: typeof import('vant/es')['Tab']
|
||||||
|
VanTabs: typeof import('vant/es')['Tabs']
|
||||||
YLCascader: typeof import('./src/components/YLCascader.vue')['default']
|
YLCascader: typeof import('./src/components/YLCascader.vue')['default']
|
||||||
YLInput: typeof import('./src/components/YLInput.vue')['default']
|
YLInput: typeof import('./src/components/YLInput.vue')['default']
|
||||||
YLPicker: typeof import('./src/components/YLPicker.vue')['default']
|
YLPicker: typeof import('./src/components/YLPicker.vue')['default']
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ const question = defineModel<question>('element', { default: () => ({}), require
|
|||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
const activeComponent = computed<Component>(() => {
|
const activeComponent = computed<Component>(() => {
|
||||||
switch (question.value.question_type) {
|
switch (question.value.question_type) {
|
||||||
case 8:
|
case 8:
|
||||||
return MatrixText;
|
return MatrixText;
|
||||||
case 9:
|
case 9:
|
||||||
return MatrixRadio;
|
return MatrixRadio;
|
||||||
case 10:
|
case 10:
|
||||||
return MatrixCheckbox;
|
return MatrixCheckbox;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div class="">
|
<div class="">
|
||||||
<div class="mark_container">
|
<div class="mark_container">
|
||||||
<!-- <van-row gutter="20">-->
|
<!-- <van-row gutter="20">-->
|
||||||
<div v-for="(item, index) in info" :key="index" class="market-item">
|
<div v-for="(item, index) in info" @click="toDetail(item)" :key="index" class="market-item">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title fw-bold fs-14">
|
<div class="title fw-bold fs-14">
|
||||||
<div class="flex align-center">
|
<div class="flex align-center">
|
||||||
@@ -46,8 +46,8 @@
|
|||||||
import { ref, defineProps, onMounted } from 'vue';
|
import { ref, defineProps, onMounted } from 'vue';
|
||||||
import { deleteTemplate } from '@/api/home/index.js';
|
import { deleteTemplate } from '@/api/home/index.js';
|
||||||
import { showDialog, showSuccessToast, showFailToast } from 'vant';
|
import { showDialog, showSuccessToast, showFailToast } from 'vant';
|
||||||
// import contentSvg from './svgs/contentSvg.svg';
|
import { useRouter } from 'vue-router';
|
||||||
// import MarketItemSvg from './svgs/MarketItemSvg.svg';
|
const router = useRouter();
|
||||||
const { info } = defineProps({
|
const { info } = defineProps({
|
||||||
info: {
|
info: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -56,6 +56,14 @@ const { info } = defineProps({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const userInfo = ref({ userName: '' });
|
const userInfo = ref({ userName: '' });
|
||||||
|
const toDetail = (item) => {
|
||||||
|
router.push({
|
||||||
|
path: '/create',
|
||||||
|
query: {
|
||||||
|
sn: item.sn
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
const deleteItem = (item) => {
|
const deleteItem = (item) => {
|
||||||
showDialog({
|
showDialog({
|
||||||
title: '是否确认删除此模板?',
|
title: '是否确认删除此模板?',
|
||||||
|
|||||||
Reference in New Issue
Block a user