Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
data-view
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 93bc2f0a
authored
Jun 28, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
售后档案客户
1 parent
fd1aaba1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
23 deletions
src/api/afterSales.js → src/api/modules/afterSales.js
src/api/request.js
src/views/afterSales/file.vue
vue.config.js
src/api/afterSales.js
→
src/api/
modules/
afterSales.js
View file @
93bc2f0
import
Request
from
'./request'
import
Request
from
'.
.
/request'
var
request
=
new
Request
()
const
afterApi
=
{
// 售后档案客户
getFile
:
params
=>
{
// 售后档案客户
const
getFile
=
params
=>
{
return
request
.
get
(
'brand/aftersale'
,
params
)
}
}
export
default
afterApi
export
default
{
getFile
}
src/api/request.js
View file @
93bc2f0
...
...
@@ -39,9 +39,9 @@ class Request {
.
then
(
res
=>
{
return
res
.
json
()
})
.
catch
(
error
=>
{
alert
(
error
)
})
//
.catch(error => {
//
alert(error)
//
})
}
}
...
...
src/views/afterSales/file.vue
View file @
93bc2f0
...
...
@@ -14,7 +14,6 @@
<
script
>
import
{
changeMixin
}
from
'@/mixins'
import
afterApi
from
'@/api/afterSales'
export
default
{
name
:
'File'
,
mixins
:
[
changeMixin
],
...
...
@@ -64,7 +63,7 @@ export default {
queryType
:
0
}
}
afterApi
.
getFile
(
params
).
then
(
res
=>
{
this
.
api
.
afterSales
.
getFile
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
})
},
...
...
vue.config.js
View file @
93bc2f0
...
...
@@ -38,21 +38,10 @@ module.exports = {
onProxyReq
:
(
proxyReq
,
req
,
res
)
=>
{
// console.log(`原路径:${req.originalUrl}`)
// console.log(`代理路径:${req.url}`)
console
.
log
(
proxyReq
)
//
console.log(proxyReq)
}
}
}
// proxy: {
// //配置跨域
// '/api': {
// target: "https://test.xxx.com",
// // ws:true,
// changOrigin:true,
// pathRewrite:{
// '^/api':'/'
// }
// }
// }
},
css
:
{
extract
:
IS_PROD
,
// 是否将组件中的 CSS 提取至一个独立的 CSS 文件中 (而不是动态注入到 JavaScript 中的 inline 代码)。
...
...
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