Commit 282d903f by 张立顺

修改异步接口method写法

1 parent ce7e2c0a
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
* @Last Modified time: 2021-06-07 16:30:53 * @Last Modified time: 2021-06-07 16:30:53
*/ */
import request from './request' import request from "./request"
import RequestMethods from './request.methods' 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) { export function getProductType(data) {
...@@ -27,7 +27,7 @@ export function getChannelType(data) { ...@@ -27,7 +27,7 @@ export function getChannelType(data) {
// 图片上传 // 图片上传
export function uploadImg(data) { export function uploadImg(data) {
data.method = `${path}common.uploadImg` data.method = `${path}common.uploadImg`
return request(data, RequestMethods.POST, ['file']) return request(data, RequestMethods.POST, ["file"])
} }
// 图片识别 // 图片识别
......
<template> <template>
<div <div v-if="show"
v-if="show"
class="d2-header-switch" class="d2-header-switch"
:class="{ 'd2-header-switch--active': isActive }" :class="{ 'd2-header-switch--active': isActive }"
@click="handleClick" @click="handleClick">
>
<d2-el-icon :name="name" /> <d2-el-icon :name="name" />
<li :class="$store.state.d2admin.tsearch.active?'fa fa-compress':'fa fa-expand'" /> <li :class="$store.state.d2admin.tsearch.active?'fa fa-compress':'fa fa-expand'" />
</div> </div>
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
// exportFile // exportFile
import { getList, orderCount } from '@api/customerList' import { getList, orderCount } from '@api/customerList'
import { getServiceStore, getParkStore } from '@api/editCustomer' import { getServiceStore, getParkStore } from '@api/editCustomer'
import { asyncExportExcel } from '@api/sys.base' // import { asyncExportExcel } from '@api/sys.base'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
export default { export default {
name: 'Index', name: 'Index',
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
params.pageNum = 1 params.pageNum = 1
params.method = 'dj.api.customer.exportExcel' params.method = 'dj.api.customer.exportExcel.async'
// exportFile(params).then(res => { // exportFile(params).then(res => {
// this.$open(res) // this.$open(res)
// }) // })
......
...@@ -395,7 +395,7 @@ export default { ...@@ -395,7 +395,7 @@ export default {
// exportApi(params).then(res => { // exportApi(params).then(res => {
// this.$open(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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -456,7 +456,7 @@ export default { ...@@ -456,7 +456,7 @@ export default {
// this.$open(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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -278,7 +278,7 @@ export default { ...@@ -278,7 +278,7 @@ export default {
// this.$open(res) // 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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -399,7 +399,7 @@ export default { ...@@ -399,7 +399,7 @@ export default {
// this.$open(res) // 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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -296,7 +296,8 @@ export default { ...@@ -296,7 +296,8 @@ export default {
} }
console.log('params', params) console.log('params', params)
// return // 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) console.log(params)
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
......
...@@ -865,7 +865,7 @@ export default { ...@@ -865,7 +865,7 @@ export default {
// this.$open(res) // 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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -711,7 +711,7 @@ export default { ...@@ -711,7 +711,7 @@ export default {
// this.$open(res) // 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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -418,7 +418,7 @@ export default { ...@@ -418,7 +418,7 @@ export default {
// }) // })
var params = this.searchForm var params = this.searchForm
params.method = 'dj.api.basegoods.export' params.method = 'dj.api.basegoods.export.async'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -121,8 +121,10 @@ export default { ...@@ -121,8 +121,10 @@ export default {
// this.$open(res) // this.$open(res)
// }) // })
var method = this.activeName === 'storeList' var method = this.activeName === 'storeList'
? 'dj.api.life.merchant.coupon.exportExcel' ? 'dj.api.life.merchant.coupon.exportExcel.async'
: 'dj.api.life.customer.coupon.exportExcel' // ? 'dj.api.life.merchant.coupon.exportExcel'
// : 'dj.api.life.customer.coupon.exportExcel'
: 'dj.api.life.customer.coupon.exportExcel.async'
var params = { var params = {
...this.parentSearchForm, ...this.parentSearchForm,
......
...@@ -244,7 +244,7 @@ export default { ...@@ -244,7 +244,7 @@ export default {
// this.$open(res) // this.$open(res)
// }) // })
var params = this.searchForm var params = this.searchForm
params.method = 'dj.api.goodsinfo.export' params.method = 'dj.api.goodsinfo.export.async'
// asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
// console.log(downLoadFile) // console.log(downLoadFile)
// return // return
var params = {} var params = {}
params.method = 'dj.api.smartcarlife.workbench.exportDailyReport' params.method = 'dj.api.smartcarlife.workbench.exportDailyReport.async'
params.endDateStr = this.dateValue params.endDateStr = this.dateValue
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -675,7 +675,7 @@ export default { ...@@ -675,7 +675,7 @@ export default {
// exportFile(params).then(res => { // exportFile(params).then(res => {
// this.$open(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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
// waitinputorderExport(params).then(res => { // waitinputorderExport(params).then(res => {
// this.$open(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 => { // asyncExportExcel({ exportParam: JSON.stringify(params) }).then(res => {
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!