This commit is contained in:
zhangsir
2024-05-15 14:15:43 +08:00
2 changed files with 11 additions and 5 deletions

View File

@@ -119,4 +119,5 @@ async function init() {
initDict("course_pic"); //课程封面
initDict("job_type"); //岗位
initDict("band"); //band
initDict("examine_cover")
}

View File

@@ -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 = "") {
<img style="width: 127px; height: 70px;margin-bottom: 13px;" src="../../assets/33.png" alt="">
<img style="width: 127px; height: 70px;margin-bottom: 13px;margin-left: 15px" src="../../assets/47.png" alt="">
<img style="width: 127px; height: 70px;margin-bottom: 13px;margin-left: 15px" src="../../assets/49.png" alt=""> -->
<div class="img_box_item" @click="imgClick(item)" v-for="(item,index) in imgData" :key="index">
<img :style="createParam?.index==item.id?{border:'3px solid rgba(78, 166, 255, 1)'}:{border:'1px solid #ccc'}" style="width: 127px; height: 70px;" :src="require(`../../assets/${item.img}`)" alt="">
<div class="img_box_item" @click="imgClick(item)" v-for="(item,index) in imageList" :key="index">
<img :style="createParam?.cover==item.value?{border:'3px solid rgba(78, 166, 255, 1)'}:{border:'1px solid #ccc'}" style="width: 127px; height: 70px;" :src="item.value" alt="">
</div>
</a-form-item>
<a-form-item style="margin-left: 32px;margin-top: 24px" label="具体说明">