Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-shop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d4261a8b
authored
Aug 31, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
BUG及样式问题修改
1 parent
8b1c8994
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
26 deletions
src/common/util.js
src/views/performanceManage/components/residentPerformance.vue
src/views/performanceManage/index.vue
src/common/util.js
View file @
d4261a8
...
@@ -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
src/views/performanceManage/components/residentPerformance.vue
View file @
d4261a8
...
@@ -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
;
...
...
src/views/performanceManage/index.vue
View file @
d4261a8
<
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
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment