fecca556 by zhangmeng

车辆

1 parent 2c5c2b59
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
34 <label>{{ language === 0 ? '点击下载' : 'DownLoad' }}:</label> 34 <label>{{ language === 0 ? '点击下载' : 'DownLoad' }}:</label>
35 <div v-if="fileList.length>0"> 35 <div v-if="fileList.length>0">
36 <div v-for="f in fileList" :key="f"> 36 <div v-for="f in fileList" :key="f">
37 <a :href="fillImgUrl(f.url) " class="text-primary" target="_blank"> 37 <a :href="fillImgUrl(f.fileUrl) " class="text-primary" target="_blank">
38 <el-icon style="position: relative;top: 2px"> 38 <el-icon style="position: relative;top: 2px">
39 <download /> 39 <download />
40 </el-icon> 40 </el-icon>
...@@ -108,11 +108,13 @@ onMounted(() => { ...@@ -108,11 +108,13 @@ onMounted(() => {
108 getKindList() 108 getKindList()
109 } 109 }
110 110
111 if (route.query.cptId) getMatch() 111 // if (route.query.cptId) getMatch()
112 }) 112 })
113
113 const getKindList = () => { 114 const getKindList = () => {
114 changeTab(0) 115 changeTab(0)
115 } 116 }
117
116 const changeTab = (n) => { 118 const changeTab = (n) => {
117 n = Number(n) 119 n = Number(n)
118 if (language.value === 0) { 120 if (language.value === 0) {
...@@ -123,16 +125,18 @@ const changeTab = (n) => { ...@@ -123,16 +125,18 @@ const changeTab = (n) => {
123 activeName.value = n 125 activeName.value = n
124 126
125 if (n == 8) { 127 if (n == 8) {
126 var obj = { sortId: 30000009, language: 1 } 128 getMatch()
127 if (language.value == 1) { 129 // var obj = { sortId: 30000009, language: 1 }
128 obj.language = 2 130 // if (language.value == 1) {
129 } 131 // obj.language = 2
130 getZNList(obj).then(res => { 132 // }
131 fileList.value = res.rows 133 // getZNList(obj).then(res => {
132 for (const f of fileList.value) { 134 // fileList.value = res.rows
133 f.fileUrl = JSON.parse(f.picUrl)[0].url 135 // for (const f of fileList.value) {
134 } 136 // f.fileUrl = JSON.parse(f.picUrl)[0].url
135 }) 137 // }
138 // console.log(fileList.value)
139 // })
136 } else { 140 } else {
137 loading.value = true 141 loading.value = true
138 getppInfo(list.value[n].code).then(res => { 142 getppInfo(list.value[n].code).then(res => {
...@@ -188,7 +192,6 @@ async function getMatch() { ...@@ -188,7 +192,6 @@ async function getMatch() {
188 } else { 192 } else {
189 fileList.value = [] 193 fileList.value = []
190 } 194 }
191 console.log(res)
192 } 195 }
193 </script> 196 </script>
194 <style lang="scss" scoped> 197 <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!