From b0757c70e64776e8a31cf552da1dc21c49a129cb Mon Sep 17 00:00:00 2001 From: zhangsir Date: Wed, 15 May 2024 14:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 1 + .../gratefulteacher/InstructorCertification.vue | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index 89316265..d83af77d 100644 --- a/src/main.js +++ b/src/main.js @@ -119,4 +119,5 @@ async function init() { initDict("course_pic"); //课程封面 initDict("job_type"); //岗位 initDict("band"); //band + initDict("examine_cover") } \ No newline at end of file diff --git a/src/views/gratefulteacher/InstructorCertification.vue b/src/views/gratefulteacher/InstructorCertification.vue index 3fa18aac..29b8a668 100644 --- a/src/views/gratefulteacher/InstructorCertification.vue +++ b/src/views/gratefulteacher/InstructorCertification.vue @@ -111,8 +111,8 @@ const createParam = ref({ }) const imgClick = (item) => { console.log(item,'url') - createParam.value.cover = item.url - createParam.value.index = item.id + createParam.value.cover = item.value + createParam.value.index = item.code } //创建认证确定 const handleOk = async () => { @@ -332,8 +332,13 @@ loading.value = false total.value = res.data.total data.value= res.data.records } - +const imageList = ref([]) onMounted(()=>{ + imageList.value = store.state.examine_cover?.map((e) => ({ + code: e.id, + value: e.value, + label: e.name, + })); getlist() }) @@ -522,8 +527,8 @@ function handleOper(record, type, status = "") { --> -
- +
+