fecca556 by zhangmeng

车辆

1 parent 2c5c2b59
......@@ -34,7 +34,7 @@
<label>{{ language === 0 ? '点击下载' : 'DownLoad' }}:</label>
<div v-if="fileList.length>0">
<div v-for="f in fileList" :key="f">
<a :href="fillImgUrl(f.url) " class="text-primary" target="_blank">
<a :href="fillImgUrl(f.fileUrl) " class="text-primary" target="_blank">
<el-icon style="position: relative;top: 2px">
<download />
</el-icon>
......@@ -108,11 +108,13 @@ onMounted(() => {
getKindList()
}
if (route.query.cptId) getMatch()
// if (route.query.cptId) getMatch()
})
const getKindList = () => {
changeTab(0)
}
const changeTab = (n) => {
n = Number(n)
if (language.value === 0) {
......@@ -123,16 +125,18 @@ const changeTab = (n) => {
activeName.value = n
if (n == 8) {
var obj = { sortId: 30000009, language: 1 }
if (language.value == 1) {
obj.language = 2
}
getZNList(obj).then(res => {
fileList.value = res.rows
for (const f of fileList.value) {
f.fileUrl = JSON.parse(f.picUrl)[0].url
}
})
getMatch()
// var obj = { sortId: 30000009, language: 1 }
// if (language.value == 1) {
// obj.language = 2
// }
// getZNList(obj).then(res => {
// fileList.value = res.rows
// for (const f of fileList.value) {
// f.fileUrl = JSON.parse(f.picUrl)[0].url
// }
// console.log(fileList.value)
// })
} else {
loading.value = true
getppInfo(list.value[n].code).then(res => {
......@@ -188,7 +192,6 @@ async function getMatch() {
} else {
fileList.value = []
}
console.log(res)
}
</script>
<style lang="scss" scoped>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!