Commit d4261a8b by 前端

BUG及样式问题修改

1 parent 8b1c8994
...@@ -247,22 +247,22 @@ export const Util = { ...@@ -247,22 +247,22 @@ export const Util = {
// throw new Error("Unable to clone obj! Its type isn't supported.") // throw new Error("Unable to clone obj! Its type isn't supported.")
// }, // },
/** // /**
* url下载文件 // * url下载文件
* // *
*/ // */
downLoadFile: function(url) { // downLoadFile: function(url) {
// console.log(row) // // console.log(row)
// return // // return
const Temp = document.createElement('a') // const Temp = document.createElement('a')
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id // // Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp.href = url + '?timestamp=' + new Date().getTime() // Temp.href = url + '?timestamp=' + new Date().getTime()
// console.log(url) // // console.log(url)
// console.log(Temp.href) // // console.log(Temp.href)
document.body.append(Temp) // document.body.append(Temp)
Temp.click() // Temp.click()
document.body.removeChild(Temp) // document.body.removeChild(Temp)
}, // },
/** /**
* @param {Object} json * @param {Object} json
...@@ -332,10 +332,27 @@ export const Util = { ...@@ -332,10 +332,27 @@ export const Util = {
} }
} }
/**
* url下载文件
*
*/
export function downLoadFile(url) {
// console.log(row)
// return
const Temp = document.createElement('a')
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp.href = url + '?timestamp=' + new Date().getTime()
// console.log(url)
// console.log(Temp.href)
document.body.append(Temp)
Temp.click()
document.body.removeChild(Temp)
}
export const showModal = Util.msg export const showModal = Util.msg
export const showToast = Util.Info export const showToast = Util.Info
export const showLoading = Util.loading export const showLoading = Util.loading
export const hideLoading = Util.closeLoading export const hideLoading = Util.closeLoading
export const deepClone = Util.deepClone export const deepClone = Util.deepClone
export const downLoadFile = Util.downLoadFile // export const downLoadFile = Util.downLoadFile
export const returnFloat = Util.returnFloat export const returnFloat = Util.returnFloat
...@@ -466,7 +466,7 @@ export default { ...@@ -466,7 +466,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style scoped lang="scss">
.tip-cla { .tip-cla {
margin: 16px 0 16px 0; margin: 16px 0 16px 0;
width: 1184px; width: 1184px;
......
<template> <template>
<div class="shop"> <div>
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" @tab-click="handleClick"></GLTabs> <GLTabs v-model="activeName"
:tabPaneList="tabPaneList"
@tab-click="handleClick"></GLTabs>
<components :is="tabName"></components> <components :is="tabName"></components>
<!-- v-if="tabName == 'ResidentPerformance'"
<ResidentPerformance></ResidentPerformance>
<TechnicianPerformance></TechnicianPerformance> -->
</div> </div>
</template> </template>
<script> <script>
import ResidentPerformance from './components/residentPerformance.vue' import ResidentPerformance from './components/residentPerformance.vue'
import TechnicianPerformance from './components/technicianPerformance.vue' import TechnicianPerformance from './components/technicianPerformance.vue'
// import serviceCenter from '../serviceCenter/index'
export default { export default {
components: { components: {
// serviceCenter
ResidentPerformance, ResidentPerformance,
TechnicianPerformance TechnicianPerformance
}, },
...@@ -48,4 +45,5 @@ export default { ...@@ -48,4 +45,5 @@ export default {
} }
} }
</script> </script>
<style scoped></style> <style scoped lang="scss">
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!