Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 282d903f
authored
Aug 24, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改异步接口method写法
1 parent
ce7e2c0a
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
38 additions
and
37 deletions
src/api/sys.base.js
src/components/d2-container/components/d2-header-switch.vue
src/views/customer/customerList.vue
src/views/financeManage/account/offlineAccountList.vue
src/views/financeManage/account/onlineAccountList.vue
src/views/financeManage/account/serviceAccount/serviceOfflineList.vue
src/views/financeManage/account/serviceAccount/serviceOnlineList.vue
src/views/financeManage/downloadAccountDialog.vue
src/views/financeManage/financeList.vue
src/views/financeManage/serviceFinanceList.vue
src/views/goods/commodity.vue
src/views/goods/coupons/index.vue
src/views/goods/product.vue
src/views/index/components/reportDownloads.vue
src/views/orderManage/orderList.vue
src/views/orderManage/orderSupplement.vue
src/api/sys.base.js
View file @
282d903
...
...
@@ -5,12 +5,12 @@
* @Last Modified time: 2021-06-07 16:30:53
*/
import
request
from
'./request'
import
RequestMethods
from
'./request.methods'
import
request
from
"./request"
import
RequestMethods
from
"./request.methods"
export
const
BASE_DATA_URL
=
'fims.configuration.from.conftype'
export
const
BASE_DATA_URL
=
"fims.configuration.from.conftype"
const
path
=
'dj.api.'
const
path
=
"dj.api."
// 获取商品分类列表
export
function
getProductType
(
data
)
{
...
...
@@ -27,7 +27,7 @@ export function getChannelType(data) {
// 图片上传
export
function
uploadImg
(
data
)
{
data
.
method
=
`
${
path
}
common.uploadImg`
return
request
(
data
,
RequestMethods
.
POST
,
[
'file'
])
return
request
(
data
,
RequestMethods
.
POST
,
[
"file"
])
}
// 图片识别
...
...
src/components/d2-container/components/d2-header-switch.vue
View file @
282d903
<
template
>
<div
v-if=
"show"
class=
"d2-header-switch"
:class=
"
{ 'd2-header-switch--active': isActive }"
@click="handleClick"
>
<div
v-if=
"show"
class=
"d2-header-switch"
:class=
"
{ 'd2-header-switch--active': isActive }"
@click="handleClick">
<d2-el-icon
:name=
"name"
/>
<li
:class=
"$store.state.d2admin.tsearch.active?'fa fa-compress':'fa fa-expand'"
/>
</div>
...
...
src/views/customer/customerList.vue
View file @
282d903
...
...
@@ -126,7 +126,7 @@
// exportFile
import
{
getList
,
orderCount
}
from
'@api/customerList'
import
{
getServiceStore
,
getParkStore
}
from
'@api/editCustomer'
import
{
asyncExportExcel
}
from
'@api/sys.base'
//
import { asyncExportExcel } from '@api/sys.base'
import
{
mapActions
,
mapState
}
from
'vuex'
export
default
{
name
:
'Index'
,
...
...
@@ -387,7 +387,7 @@ export default {
handleExport
()
{
var
params
=
this
.
getParams
()
params
.
pageNum
=
1
params
.
method
=
'dj.api.customer.exportExcel'
params
.
method
=
'dj.api.customer.exportExcel
.async
'
// exportFile(params).then(res => {
// this.$open(res)
// })
...
...
src/views/financeManage/account/offlineAccountList.vue
View file @
282d903
...
...
@@ -395,7 +395,7 @@ export default {
// exportApi(params).then(res => {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.orderDivision.export'
params
.
method
=
'dj.api.smartcarlife.orderDivision.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/financeManage/account/onlineAccountList.vue
View file @
282d903
...
...
@@ -456,7 +456,7 @@ export default {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.orderDivision.export'
params
.
method
=
'dj.api.smartcarlife.orderDivision.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/financeManage/account/serviceAccount/serviceOfflineList.vue
View file @
282d903
...
...
@@ -278,7 +278,7 @@ export default {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.sevicerOrderDivision.export'
params
.
method
=
'dj.api.smartcarlife.sevicerOrderDivision.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/financeManage/account/serviceAccount/serviceOnlineList.vue
View file @
282d903
...
...
@@ -399,7 +399,7 @@ export default {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.sevicerOrderDivision.export'
params
.
method
=
'dj.api.smartcarlife.sevicerOrderDivision.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/financeManage/downloadAccountDialog.vue
View file @
282d903
...
...
@@ -296,7 +296,8 @@ export default {
}
console
.
log
(
'params'
,
params
)
// return
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.exportAccountStatement'
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.exportAccountStatement.async'
// params.method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.exportAccountStatement'
console
.
log
(
params
)
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
...
src/views/financeManage/financeList.vue
View file @
282d903
...
...
@@ -865,7 +865,7 @@ export default {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.export'
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/financeManage/serviceFinanceList.vue
View file @
282d903
...
...
@@ -17,16 +17,16 @@
placeholder=
"累计"
:clear=
"false"
:picker-options=
"
{
disabledDate(time) {
return time.getTime() > Date.now();
},
shortcuts: [{
text: '累计',
onClick(picker) {
picker.$emit('pick', '');
}
}]
}" />
disabledDate(time) {
return time.getTime() > Date.now();
},
shortcuts: [{
text: '累计',
onClick(picker) {
picker.$emit('pick', '');
}
}]
}" />
</span></span>
</div>
<div
class=
"flex"
...
...
@@ -711,7 +711,7 @@ export default {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.export'
params
.
method
=
'dj.api.smartcarlife.goodsOrderProfitAllocation.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/goods/commodity.vue
View file @
282d903
...
...
@@ -418,7 +418,7 @@ export default {
// })
var
params
=
this
.
searchForm
params
.
method
=
'dj.api.basegoods.export'
params
.
method
=
'dj.api.basegoods.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/goods/coupons/index.vue
View file @
282d903
...
...
@@ -121,8 +121,10 @@ export default {
// this.$open(res)
// })
var
method
=
this
.
activeName
===
'storeList'
?
'dj.api.life.merchant.coupon.exportExcel'
:
'dj.api.life.customer.coupon.exportExcel'
?
'dj.api.life.merchant.coupon.exportExcel.async'
// ? 'dj.api.life.merchant.coupon.exportExcel'
// : 'dj.api.life.customer.coupon.exportExcel'
:
'dj.api.life.customer.coupon.exportExcel.async'
var
params
=
{
...
this
.
parentSearchForm
,
...
...
src/views/goods/product.vue
View file @
282d903
...
...
@@ -244,7 +244,7 @@ export default {
// this.$open(res)
// })
var
params
=
this
.
searchForm
params
.
method
=
'dj.api.goodsinfo.export'
params
.
method
=
'dj.api.goodsinfo.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/index/components/reportDownloads.vue
View file @
282d903
...
...
@@ -88,7 +88,7 @@ export default {
// console.log(downLoadFile)
// return
var
params
=
{}
params
.
method
=
'dj.api.smartcarlife.workbench.exportDailyReport'
params
.
method
=
'dj.api.smartcarlife.workbench.exportDailyReport
.async
'
params
.
endDateStr
=
this
.
dateValue
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/orderManage/orderList.vue
View file @
282d903
...
...
@@ -675,7 +675,7 @@ export default {
// exportFile(params).then(res =>
{
// this.$open(res)
//
}
)
params
.
method
=
'dj.api.smartcarlife.ordermanage.export'
params
.
method
=
'dj.api.smartcarlife.ordermanage.export
.async
'
// asyncExportExcel(
{
exportParam
:
JSON
.
stringify
(
params
)
}
).
then
(
res
=>
{
const
list
=
[
...
this
.
dowloadList
,
...
...
src/views/orderManage/orderSupplement.vue
View file @
282d903
...
...
@@ -355,7 +355,7 @@ export default {
// waitinputorderExport(params).then(res => {
// this.$open(res)
// })
params
.
method
=
'dj.api.smartcarlife.waitinputorder.export'
params
.
method
=
'dj.api.smartcarlife.waitinputorder.export
.async
'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const
list
=
[
...
this
.
dowloadList
,
...
...
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