Commit 282d903f by 张立顺

修改异步接口method写法

1 parent ce7e2c0a
......@@ -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"])
}
// 图片识别
......
<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>
......
......@@ -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)
// })
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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 = [
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!