Browse Source

日预算

Arc 5 years ago
parent
commit
244ce787ae

+ 5 - 0
module-common/src/main/java/cn/com/ctop/common/module/utils/KuaishouInterfaceConstant.java

@@ -85,6 +85,11 @@ public class KuaishouInterfaceConstant {
     public static final String APP_LIST = "/rest/openapi/v1/file/ad/app/list";
     public static final String APP_LIST = "/rest/openapi/v1/file/ad/app/list";
 
 
     /**
     /**
+     * 账户日预算查询
+     */
+    public static final String ACCOUNT_BUDGET = "/rest/openapi/v1/advertiser/budget/get";
+
+    /**
      * 获取账户余额
      * 获取账户余额
      */
      */
     public static final String FUND_GET = "/rest/openapi/v1/advertiser/fund/get";
     public static final String FUND_GET = "/rest/openapi/v1/advertiser/fund/get";

+ 254 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/KuaishouAccountBudgetController.java

@@ -0,0 +1,254 @@
+package cn.com.ctop.kuaishou.modules.batch.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouAccountBudget;
+import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouAccountBudgetService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.util.oConvertUtils;
+
+import java.util.Date;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+ /**
+ * 账户日预算
+ * @author jeecg-boot
+ * @date   2020-04-26
+ * @version V1.0
+ */
+@Slf4j
+@Api(tags="账户日预算")
+@RestController
+@RequestMapping("/batch/kuaishouAccountBudget")
+public class KuaishouAccountBudgetController {
+	@Autowired
+	private IKuaishouAccountBudgetService kuaishouAccountBudgetService;
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaishouAccountBudget
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "账户日预算-分页列表查询")
+	@ApiOperation(value="账户日预算-分页列表查询", notes="账户日预算-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaishouAccountBudget>> queryPageList(KuaishouAccountBudget kuaishouAccountBudget,
+															  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+															  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+															  HttpServletRequest req) {
+		Result<IPage<KuaishouAccountBudget>> result = new Result<IPage<KuaishouAccountBudget>>();
+		QueryWrapper<KuaishouAccountBudget> queryWrapper = QueryGenerator.initQueryWrapper(kuaishouAccountBudget, req.getParameterMap());
+		Page<KuaishouAccountBudget> page = new Page<KuaishouAccountBudget>(pageNo, pageSize);
+		IPage<KuaishouAccountBudget> pageList = kuaishouAccountBudgetService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaishouAccountBudget
+	 * @return
+	 */
+	@AutoLog(value = "账户日预算-添加")
+	@ApiOperation(value="账户日预算-添加", notes="账户日预算-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaishouAccountBudget> add(@RequestBody KuaishouAccountBudget kuaishouAccountBudget) {
+		Result<KuaishouAccountBudget> result = new Result<KuaishouAccountBudget>();
+		try {
+			kuaishouAccountBudgetService.save(kuaishouAccountBudget);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaishouAccountBudget
+	 * @return
+	 */
+	@AutoLog(value = "账户日预算-编辑")
+	@ApiOperation(value="账户日预算-编辑", notes="账户日预算-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaishouAccountBudget> edit(@RequestBody KuaishouAccountBudget kuaishouAccountBudget) {
+		Result<KuaishouAccountBudget> result = new Result<KuaishouAccountBudget>();
+		KuaishouAccountBudget kuaishouAccountBudgetEntity = kuaishouAccountBudgetService.getById(kuaishouAccountBudget.getId());
+		if(kuaishouAccountBudgetEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaishouAccountBudgetService.updateById(kuaishouAccountBudget);
+			if(ok) {
+				result.success("修改成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "账户日预算-通过id删除")
+	@ApiOperation(value="账户日预算-通过id删除", notes="账户日预算-通过id删除")
+	@DeleteMapping(value = "/delete")
+	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
+		try {
+			kuaishouAccountBudgetService.removeById(id);
+		} catch (Exception e) {
+			log.error("删除失败",e.getMessage());
+			return Result.error("删除失败!");
+		}
+		return Result.ok("删除成功!");
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "账户日预算-批量删除")
+	@ApiOperation(value="账户日预算-批量删除", notes="账户日预算-批量删除")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<KuaishouAccountBudget> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaishouAccountBudget> result = new Result<KuaishouAccountBudget>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaishouAccountBudgetService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "账户日预算-通过id查询")
+	@ApiOperation(value="账户日预算-通过id查询", notes="账户日预算-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<KuaishouAccountBudget> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaishouAccountBudget> result = new Result<KuaishouAccountBudget>();
+		KuaishouAccountBudget kuaishouAccountBudget = kuaishouAccountBudgetService.getById(id);
+		if(kuaishouAccountBudget==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaishouAccountBudget);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaishouAccountBudget> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaishouAccountBudget kuaishouAccountBudget = JSON.parseObject(deString, KuaishouAccountBudget.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaishouAccountBudget, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaishouAccountBudget> pageList = kuaishouAccountBudgetService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "账户日预算列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaishouAccountBudget.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("账户日预算列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<KuaishouAccountBudget> listKuaishouAccountBudgets = ExcelImportUtil.importExcel(file.getInputStream(), KuaishouAccountBudget.class, params);
+              kuaishouAccountBudgetService.saveBatch(listKuaishouAccountBudgets);
+              return Result.ok("文件导入成功!数据行数:" + listKuaishouAccountBudgets.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+
+	 @RequestMapping("/getAccountBudget")
+	 public void getAccountBudget() throws IOException {
+		 String accessToken = "f5254e5c3a230d9e690628e1f90763b7";
+		 Long advertiserId = 1022694L;
+		 kuaishouAccountBudgetService.getAccountBudget(advertiserId, accessToken);
+
+	 }
+
+}

+ 53 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/KuaishouAccountBudget.java

@@ -0,0 +1,53 @@
+package cn.com.ctop.kuaishou.modules.batch.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * 账户日预算
+ * @author jeecg-boot
+ * @date   2020-04-26
+ * @version V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_account_budget")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value="ctop_kuaishou_account_budget对象", description="账户日预算")
+public class KuaishouAccountBudget {
+    
+	@TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+	private Long id;
+	@Excel(name = "accountId", width = 15)
+    @ApiModelProperty(value = "accountId")
+	private Long accountId;
+	@Excel(name = "dayBudget", width = 15)
+    @ApiModelProperty(value = "dayBudget")
+	private String dayBudget;
+	@Excel(name = "dayBudgetSchedule", width = 15)
+    @ApiModelProperty(value = "dayBudgetSchedule")
+	private String dayBudgetSchedule;
+	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "createTime")
+	private Date createTime;
+	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "updateTime")
+	private Date updateTime;
+}

+ 17 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/KuaishouAccountBudgetMapper.java

@@ -0,0 +1,17 @@
+package cn.com.ctop.kuaishou.modules.batch.mapper;
+
+import java.util.List;
+
+import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouAccountBudget;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * 账户日预算
+ * @author: jeecg-boot
+ * @date:   2020-04-26
+ * @cersion: V1.0
+ */
+public interface KuaishouAccountBudgetMapper extends BaseMapper<KuaishouAccountBudget> {
+
+}

+ 5 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaishouAccountBudgetMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="cn.com.ctop.kuaishou.modules.batch.mapper.KuaishouAccountBudgetMapper">
+
+</mapper>

+ 23 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/IKuaishouAccountBudgetService.java

@@ -0,0 +1,23 @@
+package cn.com.ctop.kuaishou.modules.batch.service;
+
+import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouAccountBudget;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * 账户日预算
+ * @author jeecg-boot
+ * @date   2020-04-26
+ * @version V1.0
+ */
+public interface IKuaishouAccountBudgetService extends IService<KuaishouAccountBudget> {
+
+
+    /**
+     * 获取账户日预算
+     *
+     * @param advertiserId
+     * @param accessToken
+     */
+    void getAccountBudget(Long advertiserId, String accessToken);
+
+}

+ 85 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouAccountBudgetServiceImpl.java

@@ -0,0 +1,85 @@
+package cn.com.ctop.kuaishou.modules.batch.service.impl;
+
+
+import cn.com.ctop.common.module.utils.Check;
+import cn.com.ctop.common.module.utils.HttpUtils;
+import cn.com.ctop.common.module.utils.KuaishouInterfaceConstant;
+import cn.com.ctop.common.module.utils.PropertiesUtils;
+import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouAccountBudget;
+import cn.com.ctop.kuaishou.modules.batch.mapper.KuaishouAccountBudgetMapper;
+import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouAccountBudgetService;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * 账户日预算
+ * @author jeecg-boot
+ * @date   2020-04-26
+ * @version V1.0
+ */
+@Slf4j
+@Service
+public class KuaishouAccountBudgetServiceImpl extends ServiceImpl<KuaishouAccountBudgetMapper, KuaishouAccountBudget> implements IKuaishouAccountBudgetService {
+
+
+    @Autowired
+    KuaishouAccountBudgetMapper accountBudgetMapper;
+
+
+    /**
+     * 获取账户日预算结果
+     * @param advertiserId
+     * @param accessToken
+     * @return
+     */
+    @Override
+    public void getAccountBudget(Long advertiserId, String accessToken) {
+        try {
+            String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.ACCOUNT_BUDGET;
+            Map<String, String> headers = new HashMap<>();
+            headers.put("Access-Token", accessToken);
+            headers.put("Content-Type", "application/json");
+            JSONObject json = new JSONObject();
+            json.put("advertiser_id", advertiserId);
+            String result = HttpUtils.kuaiShouhttpPostRequest(url, json.toJSONString(), headers);
+            JSONObject resultJson = JSONObject.parseObject(result);
+            if (!Check.isNull(resultJson)) {
+                Integer code = resultJson.getInteger("code");
+                if (code == 0) {
+                    Map<String, Object> deleteMap = new HashMap<>();
+                    deleteMap.put("account_id", advertiserId);
+                    accountBudgetMapper.deleteByMap(deleteMap);
+                    JSONObject data = resultJson.getJSONObject("data");
+                    if (!Check.isNull(data)) {
+                        KuaishouAccountBudget budget = new KuaishouAccountBudget();
+                        budget.setAccountId(advertiserId);
+                        budget.setDayBudget(data.get("day_budget").toString());
+                        JSONArray jsonArr = data.getJSONArray("day_budget_schedule");
+                        if (!Check.isNull(jsonArr)) {
+                            budget.setDayBudgetSchedule(jsonArr.toString());
+                        }
+                        budget.setCreateTime(new Date());
+                        accountBudgetMapper.insert(budget);
+
+                    }
+                } else {
+                    log.error("获取账户日预算失败,返回信息:{}", resultJson);
+                }
+            } else {
+                log.error("获取账户日预算返回结果为空");
+            }
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+}

+ 168 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/vue/KuaishouAccountBudgetList.vue

@@ -0,0 +1,168 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline">
+        <a-row :gutter="24">
+
+          <a-col :md="6" :sm="8">
+            <a-form-item label="accountId">
+              <a-input placeholder="请输入accountId" v-model="queryParam.accountId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="dayBudget">
+              <a-input placeholder="请输入dayBudget" v-model="queryParam.dayBudget"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="dayBudgetSchedule">
+              <a-input placeholder="请输入dayBudgetSchedule" v-model="queryParam.dayBudgetSchedule"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :md="6" :sm="8" >
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('账户日预算')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table区域-end -->
+
+    <!-- 表单区域 -->
+    <kuaishouAccountBudget-modal ref="modalForm" @ok="modalFormOk"></kuaishouAccountBudget-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaishouAccountBudgetModal from './modules/KuaishouAccountBudgetModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaishouAccountBudgetList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaishouAccountBudgetModal
+    },
+    data () {
+      return {
+        description: '账户日预算管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: 'accountId',
+            align:"center",
+            dataIndex: 'accountId'
+           },
+		   {
+            title: 'dayBudget',
+            align:"center",
+            dataIndex: 'dayBudget'
+           },
+		   {
+            title: 'dayBudgetSchedule',
+            align:"center",
+            dataIndex: 'dayBudgetSchedule'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/batch/kuaishouAccountBudget/list",
+          delete: "/batch/kuaishouAccountBudget/delete",
+          deleteBatch: "/batch/kuaishouAccountBudget/deleteBatch",
+          exportXlsUrl: "batch/kuaishouAccountBudget/exportXls",
+          importExcelUrl: "batch/kuaishouAccountBudget/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>