|
- <template>
- <div class="app-container">
- <div style="margin-bottom:10px">
- <el-button type="success" @click="addBtn">新增</el-button>
- <el-button type="success" @click="importBtn">导入</el-button>
- <el-button type="success" @click="exportTempBtn">模版下载</el-button>
- </div>
- <!--搜索-->
- <el-form class="mt_15" ref="form" inline size="small">
- <el-form-item label="关键词">
- <el-input v-model.trim="searchParm.keyWord" clearable placeholder='关键词'></el-input>
- </el-form-item>
- <el-form-item label="Item">
- <el-input v-model.trim="searchParm.item" clearable></el-input>
- </el-form-item>
- <el-form-item label="店铺名称">
- <el-input v-model.trim="searchParm.shopName" clearable></el-input>
- </el-form-item>
- <el-form-item label="支付订单ID">
- <el-input v-model.trim="searchParm.payOrderId" clearable></el-input>
- </el-form-item>
- <el-form-item label="刷单类型">
- <el-select v-model.trim="searchParm.type" placeholder="请选择">
- <el-option
- v-for="item in searchTypeList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="商品参数">
- <el-select v-model.trim="searchParm.paramsType" placeholder="请选择">
- <el-option
- v-for="item in searchParamsTypeList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="国家">
- <el-input v-model.trim="searchParm.country" clearable></el-input>
- </el-form-item>
- <el-form-item label="账号">
- <el-input v-model.trim="searchParm.account" clearable></el-input>
- </el-form-item>
- <el-form-item label="状态">
- <el-select v-model.trim="searchParm.status" placeholder="请选择">
- <el-option
- v-for="item in statusList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="goSearch">搜索</el-button>
- <el-button type="warning" @click="resetForm">重置</el-button>
- </el-form-item>
- </el-form>
- <!--表格渲染-->
- <el-table ref="table" border size="small" :data="list" :header-cell-style="{textAlign:'center'}">
- <el-table-column label="类型" prop="type" align="center">
- <template slot-scope="scope">
- {{ scope.row.type | getTypeList}}
- </template>
- </el-table-column>
- <el-table-column label="商品属性" prop="paramsType" align="center">
- <template slot-scope="scope">
- {{ scope.row.paramsType | getparamsType}}
- </template>
- </el-table-column>
- <el-table-column label="国家" prop="country" align="center"/>
- <el-table-column label="账号" prop="account" align="center"/>
- <el-table-column label="店铺名称" prop="shopName" align="center"/>
- <el-table-column label="关键词" prop="keyWord" align="center"/>
- <el-table-column label="数量" prop="number" align="center"/>
- <el-table-column label="规格" prop="specification" align="center"/>
- <el-table-column label="颜色" prop="color" align="center"/>
- <el-table-column label="优惠卷" prop="exchange" align="center"/>
- <el-table-column label="Item" prop="item" align="center"/>
- <el-table-column label="状态" prop="status" align="center">
- <template slot-scope="scope">
- {{ scope.row.status | getStatus}}
- </template>
- </el-table-column>
- <el-table-column label="创建时间" prop="createdAt" align="center"/>
- <el-table-column label="修改时间" prop="updatedAt" align="center"/>
- <el-table-column label="操作" width="270" align="left" >
- <template slot-scope="scope">
- <el-button type="info" @click="getBtnById(scope.row.id)">查看</el-button>
- <el-button type="warning" @click="editById(scope.row)" style="margin-left: 0px">修改</el-button>
- <span v-if="scope.row.status != 3" slot="footer">
- <el-button type="danger" @click="delById(scope.row.id)">删除</el-button>
- </span>
- <span v-if="scope.row.status == 3" slot="footer">
- <el-button type="danger" @click="getOrderBtnById(scope.row.ctClickOrderId)">订单</el-button>
- </span>
- <span v-if="scope.row.status == 6" slot="footer">
- <el-button type="danger" @click="supplement(scope.row.id)">补录</el-button>
- </span>
- </template>
- </el-table-column>
- </el-table>
- <!--分页-->
- <div class="mt_15">
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="searchParm.page"
- :page-sizes="[10, 20, 30, 40, 50]"
- :page-size="searchParm.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total">
- </el-pagination>
- </div>
-
- <!--新增弹窗-->
- <el-dialog :visible.sync="dialogAddVisible" :title="dialogAddTitle" center width="45%">
- <div class="dialog-content">
- <el-form ref="addParm" size="small" :model="addParm" :rules="rules" label-width="100px">
- <el-form-item label="买家账号" prop="buyerName">
- <el-input v-model.trim="addParm.buyerName" clearable style="width:270px"/>
- <el-button
- type="primary"
- icon="el-icon-search"
- @click="goSearchBuyer"
- style="width:130px"
- >请选择买家</el-button>
- </el-form-item>
- <el-form-item label="操作类型" prop="type">
- <el-select v-model.trim="addParm.type" placeholder="请选择">
- <el-option
- v-for="item in opterTypeList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <!-- 先选择应用 后才能选择这个 根据应用调用不同的对应的 请求参数 分页查询 -->
- <el-form-item label="商品参数" prop="paramsType">
- <el-radio-group v-model.trim="addParm.paramsType" @change="changeCheckRange">
- <el-radio :label="1">关键词</el-radio>
- <el-radio :label="2">链接</el-radio>
- </el-radio-group>
- </el-form-item>
-
- <el-form-item v-if="labelVal === 1">
- <el-form-item label="店铺名称" prop="shopName">
- <el-input v-model.trim="addParm.shopName" clearable></el-input>
- </el-form-item>
- <el-form-item label="关键词" prop="keyWord">
- <el-input v-model.trim="addParm.keyWord" clearable></el-input>
- </el-form-item>
- <el-form-item label="标题" prop="title">
- <el-input v-model.trim="addParm.title" clearable></el-input>
- </el-form-item>
- <el-form-item label="最小价格区间" prop="sectionMin">
- <el-input v-model.trim="addParm.sectionMin" clearable></el-input>
- </el-form-item>
- <el-form-item label="最大价格区间" prop="sectionMax">
- <el-input v-model.trim="addParm.sectionMax" clearable></el-input>
- </el-form-item>
- <el-form-item label="Item" prop="item">
- <el-input v-model.trim="addParm.item" clearable></el-input>
- </el-form-item>
- </el-form-item>
-
- <el-form-item label="链接" v-if="labelVal === 2" prop="link">
- <el-input v-model.trim="addParm.link" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="优惠卷" prop="exchange">
- <el-input v-model.trim="addParm.exchange" clearable></el-input>
- </el-form-item>
- <el-form-item label="数量" prop="number">
- <el-input v-model.trim="addParm.number" clearable></el-input>
- </el-form-item>
- <el-form-item label="规格" prop="specification">
- <el-input v-model.trim="addParm.specification" clearable></el-input>
- </el-form-item>
- <el-form-item label="颜色" prop="color">
- <el-input v-model.trim="addParm.color" clearable></el-input>
- </el-form-item>
- <el-form-item label="留言" prop="amessage">
- <el-input v-model.trim="addParm.amessage" clearable></el-input>
- </el-form-item>
- </el-form>
- </div>
- <span slot="footer">
- <el-button type="info" @click="sureAddCancle('addParm')">取消</el-button>
- <el-button type="primary" @click="sureAdd('addParm')">确认</el-button>
- </span>
- </el-dialog>
-
-
- <!-- 买家弹窗 -->
- <el-dialog :visible.sync="dialogBuyerVisible" :title="dialogBuyerTitle" center width="75%">
- <div class="dialog-content">
- <!--搜索-->
- <el-form class="mt_15" ref="form" inline size="small">
- <el-form-item label="账号">
- <el-input v-model.trim="searchBuyerParm.account" clearable placeholder="账号"></el-input>
- </el-form-item>
- <el-form-item label="昵称">
- <el-input v-model.trim="searchBuyerParm.nickName" clearable></el-input>
- </el-form-item>
- <el-form-item label="密码">
- <el-input v-model.trim="searchBuyerParm.pwd" clearable></el-input>
- </el-form-item>
- <el-form-item label="公司">
- <el-select v-model.trim="searchBuyerParm.companyId" placeholder="请选择">
- <el-option
- v-for="item in companys"
- :key="item.name"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="平台">
- <el-select v-model.trim="searchBuyerParm.platformId" placeholder="请选择">
- <el-option
- v-for="item in platformList"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item>
- <el-button type="primary" @click="goSearchBuyer">搜索</el-button>
- <el-button type="warning" @click="resetBuyerForm">重置</el-button>
- </el-form-item>
- </el-form>
- <!--表格渲染-->
- <el-table
- ref="table"
- border
- size="small"
- :data="buyerList"
- :header-cell-style="{textAlign:'center'}"
- :cell-style="{textAlign:'center'}"
- >
- <el-table-column label="序号" type="index" width="50" />
- <el-table-column label="账号" prop="account" />
- <el-table-column label="所属国家" prop="contntryShort" />
- <el-table-column label="昵称" prop="nickName" />
- <el-table-column label="密码" prop="pwd" />
- <el-table-column label="公司" prop="companyName" />
- <el-table-column label="平台" prop="platformName" />
- <el-table-column label="VPNIP" prop="ipAddress" />
- <el-table-column label="信用卡卡号" prop="number" />
- <el-table-column label="州" prop="state" />
- <el-table-column label="国家" prop="country" />
- <el-table-column label="地址1" prop="addressline1" />
- <el-table-column label="占用状态" prop="status">
- <template slot-scope="scope">{{ scope.row.status | getBuyerStatus}}</template>
- </el-table-column>
- <el-table-column label="创建时间" prop="createdAt" />
- <el-table-column label="修改时间" prop="updatedAt" />
- <el-table-column label="操作" width="220">
- <template slot-scope="scope">
- <el-button type="info" @click="getBuyerBtnById(scope.row.id)">查看</el-button>
- <el-button type="success" @click="getBuyerById(scope.row)" v-if="buyerId !== scope.row.id">选中</el-button>
- <div v-if="buyerId === scope.row.id">已选中</div>
- </template>
- </el-table-column>
- </el-table>
- <!--分页-->
- <div class="mt_15">
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="searchBuyerParm.page"
- :page-sizes="[10, 20, 30, 40, 50]"
- :page-size="searchBuyerParm.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- ></el-pagination>
- </div>
- </div>
- </el-dialog>
-
- <!--导入 importBtn-->
- <el-dialog :visible.sync="dialogImportVisible" :title="dialogImportTitle" center width="22%">
- <div class="dialog-content">
- <el-upload
- class="upload-demo"
- drag
- ref="upload"
- :action="uploadFileUrl"
- :headers="uploadHeaders"
- :show-file-list = "false"
- :on-success="uploadSuccess"
- :before-upload="beforeAvatarUpload"
- multiple>
- <i class="el-icon-upload"></i>
- <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
- <div class="el-upload__tip" slot="tip">只能上传xlsl文件,且不超过10M</div>
- </el-upload>
- </div>
- </el-dialog>
-
- <!--修改弹窗-->
- <el-dialog :visible.sync="dialogEditVisible" :title="dialogEditTitle" center width="45%">
- <div class="dialog-content">
- <el-form ref="editParm" size="small" :model="editParm" :rules="rules" label-width="100px">
- <el-form-item label="买家账号" prop="buyerName">
- <el-input v-model.trim="editParm.buyerName" :disabled="true" style="width:200px" />
- <el-button
- type="primary"
- icon="el-icon-search"
- @click="goSearchBuyer"
- style="width:130px"
- >请选择设</el-button>
- </el-form-item>
-
- <el-form-item label="操作类型" prop="type">
- <el-select v-model.trim="editParm.type" placeholder="请选择">
- <el-option
- v-for="item in opterTypeList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
-
- <!-- 先选择应用 后才能选择这个 根据应用调用不同的对应的 请求参数 分页查询 -->
- <el-form-item label="商品参数" prop="paramsType">
- <el-radio-group v-model.trim="editParm.paramsType" @change="changeCheckRange">
- <el-radio :label="1">关键词</el-radio>
- <el-radio :label="2">链接</el-radio>
- </el-radio-group>
- </el-form-item>
-
- <el-form-item v-if="editParm.paramsType === 1">
- <el-form-item label="店铺名称" prop="shopName">
- <el-input v-model.trim="editParm.shopName" clearable></el-input>
- </el-form-item>
- <el-form-item label="关键词" prop="keyWord">
- <el-input v-model.trim="editParm.keyWord" clearable></el-input>
- </el-form-item>
- <el-form-item label="标题" prop="title">
- <el-input v-model.trim="editParm.title" clearable></el-input>
- </el-form-item>
- <el-form-item label="最小价格区间" prop="sectionMin">
- <el-input v-model.trim="editParm.sectionMin" clearable></el-input>
- </el-form-item>
- <el-form-item label="最大价格区间" prop="sectionMax">
- <el-input v-model.trim="editParm.sectionMax" clearable></el-input>
- </el-form-item>
- <el-form-item label="Item" prop="item">
- <el-input v-model.trim="editParm.item" clearable></el-input>
- </el-form-item>
- </el-form-item>
-
- <el-form-item label="链接" v-if="editParm.paramsType === 2" prop="link">
- <el-input v-model.trim="editParm.link" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="优惠卷" prop="exchange">
- <el-input v-model.trim="editParm.exchange" clearable></el-input>
- </el-form-item>
- <el-form-item label="数量" prop="number">
- <el-input v-model.trim="editParm.number" clearable></el-input>
- </el-form-item>
- <el-form-item label="规格" prop="specification">
- <el-input v-model.trim="editParm.specification" clearable></el-input>
- </el-form-item>
- <el-form-item label="颜色" prop="color">
- <el-input v-model.trim="editParm.color" clearable></el-input>
- </el-form-item>
- <el-form-item label="留言" prop="amessage">
- <el-input v-model.trim="editParm.amessage" clearable></el-input>
- </el-form-item>
- </el-form>
- </div>
- <span slot="footer">
- <el-button type="info" @click="sureEditCancle('editParm')">取消</el-button>
- <el-button type="primary" @click="sureEdit('editParm')">确认</el-button>
- </span>
- </el-dialog>
-
- <!--详情弹窗-->
- <el-dialog :visible.sync="dialogDetailVisible" :title="dialogDetailTitle" center width="45%">
- <div class="dialog-content">
- <el-form ref="form" size="small" label-width="100px">
- <el-form-item label="买家账号" prop="buyerName">
- <el-input v-model.trim="detailParm.buyerName" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="操作类型" prop="type">
- <el-select v-model.trim="detailParm.type" :disabled="true" placeholder="请选择">
- <el-option
- v-for="item in opterTypeList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
-
- <!-- 先选择应用 后才能选择这个 根据应用调用不同的对应的 请求参数 分页查询 -->
- <el-form-item label="商品参数" prop="paramsType">
- <el-radio-group v-model.trim="detailParm.paramsType" @change="changeCheckRange">
- <el-radio :label="1" :disabled="true">关键词</el-radio>
- <el-radio :label="2" :disabled="true">链接</el-radio>
- </el-radio-group>
- </el-form-item>
-
- <el-form-item v-if="detailParm.paramsType === 1">
- <el-form-item label="店铺名称" prop="shopName">
- <el-input v-model.trim="detailParm.shopName" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="关键词" prop="keyWord">
- <el-input v-model.trim="detailParm.keyWord" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="标题" prop="title">
- <el-input v-model.trim="detailParm.title" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="Item" prop="item">
- <el-input v-model.trim="detailParm.item" :disabled="true" clearable></el-input>
- </el-form-item>
- </el-form-item>
-
- <el-form-item v-if="detailParm.paramsType === 2" label="链接" prop="link">
- <el-input v-model.trim="detailParm.link" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="数量" prop="number">
- <el-input v-model.trim="detailParm.number" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="规格" prop="specification">
- <el-input v-model.trim="detailParm.specification" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="颜色" prop="color">
- <el-input v-model.trim="detailParm.color" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="优惠卷" prop="exchange">
- <el-input v-model.trim="detailParm.exchange" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="留言" prod="amessage">
- <el-input v-model.trim="detailParm.amessage" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="执行结果" prod="response">
- <el-input v-model.trim="detailParm.response" :disabled="true" clearable></el-input>
- </el-form-item>
- <el-form-item label="状态" prod="status">
- <el-select v-model.trim="detailParm.status" :disabled="true" placeholder="请选择">
- <el-option
- v-for="item in detailStatusList"
- :key="item.name"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- </el-form>
- </div>
- </el-dialog>
-
-
-
- <!--Order详情弹窗-->
- <el-dialog :visible.sync="dialogOrderDetailVisible" :title="dialogOrderDetailTitle" center width="45%">
- <div class="dialog-content">
- <el-form ref="form" size="small" label-width="100px">
- <el-form-item label="创建时间" prop="createdAt">
- <el-input v-model.trim="orderDetailParm.createdAt" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="修改时间" prop="updatedAt">
- <el-input v-model.trim="orderDetailParm.updatedAt" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="总金额" prop="amount">
- <el-input v-model.trim="orderDetailParm.amount" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="状态描述" prop="paymentResults">
- <el-input v-model.trim="orderDetailParm.paymentResults" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="店铺名称" prop="shop">
- <el-input v-model.trim="orderDetailParm.shop" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="购买数量" prop="pricesNumber">
- <el-input v-model.trim="orderDetailParm.pricesNumber" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="订单id" prop="orderId">
- <el-input v-model.trim="orderDetailParm.orderId" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="商品名称" prop="shopName">
- <el-input v-model.trim="orderDetailParm.shopName" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="时间" prop="orderDate">
- <el-input v-model.trim="orderDetailParm.orderDate" :disabled="true" clearable></el-input>
- </el-form-item>
- </el-form>
- </div>
- </el-dialog>
-
-
- <!--Order补录弹窗-->
- <el-dialog :visible.sync="dialogSupplementVisible" :title="dialogSupplementTitle" center width="45%">
- <div class="dialog-content">
- <el-form ref="supplementParm" size="small" :model="supplementParm" :rules="orderRules" label-width="100px">
- <el-form-item label="刷单ID" prop="clickFarmingId">
- <el-input v-model.trim="supplementParm.clickFarmingId" :disabled="true" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="总金额" prop="amount">
- <el-input v-model.trim="supplementParm.amount" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="状态描述" prop="paymentResults">
- <el-input v-model.trim="supplementParm.paymentResults" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="店铺名称" prop="shop">
- <el-input v-model.trim="supplementParm.shop" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="购买数量" prop="pricesNumber">
- <el-input v-model.trim="supplementParm.pricesNumber" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="订单id" prop="orderId">
- <el-input v-model.trim="supplementParm.orderId" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="商品名称" prop="shopName">
- <el-input v-model.trim="supplementParm.shopName" clearable></el-input>
- </el-form-item>
-
- <el-form-item label="时间" prop="orderDate">
- <el-input v-model.trim="supplementParm.orderDate" clearable></el-input>
- </el-form-item>
- </el-form>
- </div>
- <span slot="footer">
- <el-button type="info" @click="dialogSupplementVisible=flase">取消</el-button>
- <el-button type="primary" @click="sureSuppment">确认</el-button>
- </span>
- </el-dialog>
-
- <!--详情弹窗-->
- <el-dialog :visible.sync="dialogBuyerDetailVisible" :title="dialogBuyerDetailTitle" center width="45%">
- <div class="dialog-content">
- <el-form ref="form" size="small" label-width="120px">
- <el-form-item label="账号" prop="account">
- <el-input v-model.trim="detailBuyerParm.account" :disabled="true"></el-input>
- </el-form-item>
- <el-form-item label="昵称" prop="nickName">
- <el-input v-model.trim="detailBuyerParm.nickName" :disabled="true"></el-input>
- </el-form-item>
- <el-form-item label="密码" prop="pwd">
- <el-input v-model.trim="detailBuyerParm.pwd" :disabled="true"></el-input>
- </el-form-item>
- <el-form-item label="公司" prop="companyId">
- <el-select v-model.trim="detailBuyerParm.companyId" disabled placeholder="请选择">
- <el-option
- v-for="item in companys"
- :key="item.name"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="平台" prop="platformId">
- <el-select v-model.trim="detailBuyerParm.platformId" disabled placeholder="请选择">
- <el-option
- v-for="item in platformList"
- :key="item.name"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
-
- <!--国家-->
- <el-form-item label="国家" prop="contntryShort">
- <el-input v-model.trim="detailBuyerParm.contntryShort" disabled clearable></el-input>
- </el-form-item>
- <!--VPN vpnId -->
- <el-form-item label="VPNIP" prop="vpnIp">
- <el-input v-model.trim="detailBuyerParm.vpnIp" disabled clearable></el-input>
- </el-form-item>
- <!--信用卡ID cardId -->
- <el-form-item label="信用卡卡号" prop="cardNumber">
- <el-input v-model.trim="detailBuyerParm.cardNumber" disabled clearable></el-input>
- </el-form-item>
- <!--用户等级 level -->
- <el-form-item label="用户等级" prop="level">
- <el-select v-model.trim="detailBuyerParm.level" disabled placeholder="请选择">
- <el-option
- v-for="item in levelList"
- :key="item.name"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <!--占用状态 occupyStatus -->
- <el-form-item label="占用状态" prop="occupyStatus">
- <el-select v-model.trim="detailBuyerParm.occupyStatus" disabled placeholder="请选择">
- <el-option
- v-for="item in occupyStatusList"
- :key="item.name"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <!--状态 status -->
- <el-form-item label="状态" prop="status">
- <el-select v-model.trim="detailBuyerParm.status" disabled placeholder="请选择">
- <el-option
- v-for="item in buyerStatusList"
- :key="item.name"
- :label="item.name"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <!--占用账户-->
- <el-form-item label="占用账户" prop="occupyAccount">
- <el-input v-model.trim="detailBuyerParm.occupyAccount" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--账户余额-->
- <el-form-item label="账户余额" prop="balance">
- <el-input v-model.trim="detailBuyerParm.balance" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--购买总金额-->
- <el-form-item label="账户购买总金额" prop="buyTotalMoney">
- <el-input v-model.trim="detailBuyerParm.buyTotalMoney" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--地址1-->
- <el-form-item label="地址1" prop="addressline1">
- <el-input v-model.trim="detailBuyerParm.addressline1" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--国家-->
- <el-form-item label="国家" prop="country">
- <el-input v-model.trim="detailBuyerParm.country" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--州-->
- <el-form-item label="州" prop="state">
- <el-input v-model.trim="detailBuyerParm.state" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--电话-->
- <el-form-item label="电话" prop="tel">
- <el-input v-model.trim="detailBuyerParm.tel" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--lastname-->
- <el-form-item label="lastname" prop="lastname">
- <el-input v-model.trim="detailBuyerParm.lastname" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--税号-->
- <el-form-item label="税号" prop="vatNumber">
- <el-input v-model.trim="detailBuyerParm.vatNumber" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--城市-->
- <el-form-item label="城市" prop="city">
- <el-input v-model.trim="detailBuyerParm.city" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--地址2-->
- <el-form-item label="地址2" prop="addressline2">
- <el-input v-model.trim="detailBuyerParm.addressline2" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--firstname-->
- <el-form-item label="firstname" prop="firstname">
- <el-input v-model.trim="detailBuyerParm.firstname" :disabled="true" clearable></el-input>
- </el-form-item>
- <!--邮政编码-->
- <el-form-item label="邮政编码" prop="postalcode">
- <el-input v-model.trim="detailBuyerParm.postalcode" :disabled="true" clearable></el-input>
- </el-form-item>
- </el-form>
- </div>
- </el-dialog>
-
- </div>
- </template>
- <script>
- import { add, editById, delById, getList, getById, getEditDetailById } from '@/api/group/clickfarming'
- import { getDetailById, supplement } from '@/api/group/clickOrder'
- import { getBuyerList, getBuyerById } from "@/api/group/dhPay";
- import { getAll } from "@/api/group/company";
- export default {
- filters: {
- getStatus: function (value) {
- if(value == 1) {
- return '待执行';
- } else if (value == 2) {
- return '执行中';
- } else if (value == 3) {
- return '执行成功';
- } else if(value == 4) {
- return '执行失败';
- } else if(value == 5) {
- return '待支付异常';
- } else if(value == 6) {
- return '支付成功异常';
- } else {
- return '执行失败';
- }
- },
- getType: function (value) {
- if(value == 1) {
- return 'Payoneer';
- } else if (value == 2) {
- return '万事达虚拟卡';
- } else {
- return 'Visa信用卡';
- }
- },
- getCardDealer: function (value) {
- if(value == 1) {
- return 'AmzKeys';
- } else{
- return 'Airwallex';
- }
- },
- getBuyerStatus:function (value) {
- if(value == 1) {
- return '已占用';
- } else{
- return '未占用';
- }
- },
- getTypeList: function (value) {
- if(value == 1) {
- return '刷单';
- } else if (value == 2) {
- return '加入购物车';
- }
- },
- getparamsType: function (value) {
- if(value == 1) {
- return 'Payoneer';
- } else if (value == 2) {
- return '链接';
- }
- }
- },
- // 数据
- data() {
- return {
- searchParm: {
- page: 1,
- pageSize: 10,
- sort:'created_at',
- order:'desc',
- keyWord:null,
- status:null,
- item:null,
- shopName:'',
- payOrderId:null,
- type:null,
- paramsType:null,
- country:null,
- account:null
- },
- total:0,
- labelVal:"1",
- list: [],
- buyerList: [],
- companys:[],
- buyerId: null,
- uploadHeaders:{ Authorization: this.$store.getters.token },
- dialogAddVisible: false,
- dialogAddTitle: '新增',
- dialogDetailVisible: false,
- dialogDetailTitle: '详情',
- dialogOrderDetailVisible: false,
- dialogOrderDetailTitle: '订单详情',
- dialogEditVisible: false,
- dialogEditTitle: '修改',
- dialogSupplementVisible: false,
- dialogSupplementTitle: '补录',
- dialogImportVisible: false,
- dialogImportTitle:'导入',
- dialogBuyerVisible: false,
- dialogBuyerTitle: "买家列表",
- dialogBuyerVisible: false,
- dialogBuyerTitle: "买家列表",
- dialogBuyerDetailVisible: false,
- dialogBuyerDetailTitle: "买家详情",
- uploadFileUrl: process.env.VUE_APP_BASE_API + '/api/clickFarming/import',
- updateBoolean: false,
- tempUrl: process.env.VUE_APP_BASE_API + '/api/clickFarming/exportTemp',
-
- detailStatusList:[
- {
- id: 1,
- name: '待执行'
- },
- {
- id: 2,
- name: '执行中',
- },
- {
- id: 3,
- name: '执行成功'
- },
- {
- id: 4,
- name: '执行失败'
- },{
- id:5,
- name:"待支付异常"
- },{
- id:6,
- name:"支付成功异常"
- }],
- statusList:[
- {
- id: null,
- name: '全部'
- },
- {
- id: 1,
- name: '待执行'
- },
- {
- id: 2,
- name: '执行中',
- },
- {
- id: 3,
- name: '执行成功'
- },
- {
- id: 4,
- name: '执行失败'
- },{
- id:5,
- name:"待支付异常"
- },{
- id:6,
- name:"支付成功异常"
- }],
- searchTypeList:[
- {
- id: null,
- name: '全部'
- },
- {
- id: 1,
- name: '刷单'
- },
- {
- id: 2,
- name: '加入购物车',
- }
- ],
- searchParamsTypeList:[
- {
- id: null,
- name: '全部'
- },
- {
- id: 1,
- name: '关键词'
- },
- {
- id: 2,
- name: '链接',
- },
- ],
- addMonthList:[
- {
- name: 'January (01)'
- },
- {
- name: 'February (02)'
- },{
- name: 'March (03)'
- },{
- name: 'April (04)'
- },{
- name: 'May (05)'
- },{
- name: 'June (06)'
- },{
- name: 'July (07)'
- },{
- name: 'August (08)'
- },{
- name: 'September (09)'
- },{
- name: 'October (10)'
- },{
- name: 'November (11)'
- },{
- name: 'December (12)'
- }
- ],
- occupyStatusList: [
- {
- id: 1,
- name: "已占用"
- },
- {
- id: 2,
- name: "未占用"
- }
- ],
- buyerStatusList: [
- {
- id: 1,
- name: "待注册"
- },
- {
- id: 2,
- name: "待验证"
- },
- {
- id: 3,
- name: "待完善"
- },
- {
- id: 4,
- name: "正常"
- },
- {
- id: 5,
- name: "异常"
- },
- {
- id: 6,
- name: "可用但已用"
- },
- {
- id: 7,
- name: "删除"
- }
- ],
- levelList: [
- {
- id: 1,
- name: "普通"
- },
- {
- id: 2,
- name: "精品"
- },
- {
- id: 3,
- name: "压力"
- },
- {
- id: 4,
- name: "内部账号"
- }
- ],
- platformList: [
- {
- id: 1,
- name: "敦煌"
- },
- {
- id: 2,
- name: "速卖通"
- },
- {
- id: 3,
- name: "马帮"
- }
- ],
- opterTypeList:[
- {
- id: 1,
- name: '刷单'
- },
- {
- id: 2,
- name: '加入购物车'
- }
- ],
- addParm: {
- buyerId:null,
- buyerName:null,
- type: null,
- paramsType: 1,
- shopName: null,
- keyWord:null,
- title:null,
- link:null,
- number:null,
- specification:null,
- color:null,
- sectionMin:null,
- sectionMax:null,
- item:null,
- exchange:null,
- amessage:null
- },
- searchBuyerParm: {
- page: 1,
- pageSize: 10,
- account: null,
- sort: "created_at",
- order: "desc",
- nickName: null,
- pwd: null,
- companyId: null,
- platformId: null
- },
- supplementParm: {
- clickFarmingId: null,
- amount: null,
- paymentResults: null,
- shop: null,
- pricesNumber: null,
- orderId: null,
- shopName: null,
- orderDate: null
- },
- editParm: {
- id: null,
- buyerId:null,
- buyerName:null,
- type: null,
- paramsType: null,
- shopName:null,
- keyWord:null,
- title:null,
- link:null,
- number:null,
- specification:null,
- color:null,
- sectionMin:null,
- sectionMax:null,
- item:null,
- exchange:null,
- amessage:null
- },
- detailParm: {
- id: null,
- buyerId:null,
- buyerName:null,
- type: null,
- paramsType: null,
- shopName: null,
- keyWord:null,
- title:null,
- link:null,
- number:null,
- specification:null,
- color:null,
- item:null,
- exchange:null,
- amessage:null,
- response:null,
- status:null
- },
- orderDetailParm: {
- id: null,
- createdAt:null,
- updatedAt:null,
- amount:null,
- paymentResults:null,
- shop:null,
- pricesNumber:null,
- orderId:null,
- shopName:null,
- orderDate:null
- },
- detailBuyerParm: {
- id: null,
- nickName:null,
- pwd:null,
- account: null,
- companyId:null,
- platformId:null,
- contntryShort:null,
- vpnId:null,
- vpnIp:null,
- cardId:null,
- cardNumber:null,
- level:null,
- occupyStatus:null,
- addressline1:null,
- country:null,
- state:null,
- tel:null,
- lastname:null,
- vatNumber:null,
- city:null,
- addressline2:null,
- firstname:null,
- postalcode:null,
- status:null
- },
- rules: {
- type: [
- {required: true, message:"请选择操作类型", trigger: 'blur'}
- ],
- paramsType: [
- {required: true, message:"请选择商品参数", trigger: 'blur'}
- ],
- shopName: [
- { required: true, message: '请输入店铺名称', trigger: 'blur' }
- ],
- keyWord: [
- { required: true, message: '请输入关键词', trigger: 'blur' }
- ],
- title: [
- { required: true, message: '请输入标题', trigger: 'blur' }
- ],
- link: [
- { required: true, message: '请输入链接', trigger: 'blur' }
- ],
- number: [
- { required: true, message: '请输入数量', trigger: 'blur' }
- ],
- item: [
- { required: true, message: '请输入Item', trigger: 'blur' }
- ],
- amessage: [
- { required: true, message: '请输入留言', trigger: 'blur' }
- ]
- },
- orderRules:{
- amount: [
- { required: true, message: '请输入总金额', trigger: 'blur' }
- ],
- paymentResults: [
- { required: true, message: '请输入状态描述', trigger: 'blur' }
- ],
- shop: [
- { required: true, message: '请输入店铺名称', trigger: 'blur' }
- ],
- pricesNumber: [
- { required: true, message: '请输入购买数量', trigger: 'blur' }
- ],
- orderId: [
- { required: true, message: '请输入订单id', trigger: 'blur' }
- ],
- shopName: [
- { required: true, message: '请输入商品名称', trigger: 'blur' }
- ],
- orderDate: [
- { required: true, message: '请输入时间', trigger: 'blur' }
- ]
- }
- }
- },
- // 调用
- created() {
- this.goSearch();
- },
- //方法
- methods: {
- //重置
- resetForm() {
- this.searchParm.keyWord = null;
- this.searchParm.item=null;
- this.searchParm.status=null;
- this.searchParm.shopName='';
- this.searchParm.payOrderId=null;
- this.searchParm.type=null;
- this.searchParm.paramsType=null;
- this.searchParm.country=null;
- this.searchParm.account=null;
- this.goSearch();
- },
- changeCheckRange(val) {
- console.log("val:" + val)
- this.labelVal = val;
- },
- // 获取所有公司信息
- getCompanyAll() {
- getAll()
- .then(res => {
- this.companys = res.data;
- if (res.code == 200) {
- console.log(this.companys);
- }
- })
- .catch(() => {});
- },
- resetBuyerForm() {
- this.searchBuyerParm.account = null;
- this.searchBuyerParm.pwd = null;
- this.searchBuyerParm.nickName = null;
- this.searchBuyerParm.companyId = null;
- this.searchBuyerParm.platformId = null;
- this.goSearchBuyer();
- },
- // 查询
- goSearch() {
- this.searchParm.page=1;
- this.getCompanyAll();
- this.getDataList();
- },
- goSearchBuyer() {
- this.dialogBuyerVisible = true;
- this.searchBuyerParm.page = 1;
- this.getBuyerDataList();
- },
- getBuyerDataList() {
- getBuyerList(this.searchBuyerParm)
- .then(res => {
- console.log(res);
- if (res.code == 200) {
- this.buyerList = res.data.list;
- this.buyerTotal = res.data.total;
- }
- })
- .catch(err => {
- console.log(err);
- });
- },
- getBuyerById(data){
- this.buyerName = data.account;
- this.buyerId = data.id;
- if(this.dialogAddVisible == true) {
- this.addParm.buyerId = data.id;
- this.addParm.buyerName = data.account;
- }
-
- if(this.dialogEditVisible == true) {
- this.editParm.buyerId = data.id;
- this.editParm.buyerName = data.account;
- }
-
- this.dialogBuyerVisible = false;
- console.log(data);
- this.$message.success("选择成功");
- },
- // 查看买家信息根据id
- getBuyerBtnById(id) {
- getBuyerById({ id })
- .then(res => {
- if (res.code == 200) {
- this.detailBuyerParm.id = res.data.id;
- this.detailBuyerParm.nickName = res.data.nickName;
- this.detailBuyerParm.pwd = res.data.pwd;
- this.detailBuyerParm.account = res.data.account;
- this.detailBuyerParm.companyId = res.data.companyId;
- this.detailBuyerParm.platformId = res.data.platformId;
- this.detailBuyerParm.contntryShort = res.data.contntryShort;
- this.detailBuyerParm.vpnId = res.data.vpnId;
- this.detailBuyerParm.vpnIp = res.data.ipAddress;
- this.detailBuyerParm.cardNumber = res.data.number;
- this.detailBuyerParm.cardId = res.data.cardId;
- this.detailBuyerParm.level = res.data.level;
- this.detailBuyerParm.occupyStatus = res.data.occupyStatus;
- this.detailBuyerParm.occupyAccount = res.data.occupyAccount;
- this.detailBuyerParm.balance = res.data.balance;
- this.detailBuyerParm.buyTotalMoney = res.data.buyTotalMoney;
- this.detailBuyerParm.addressline1 = res.data.addressline1;
- this.detailBuyerParm.country = res.data.country;
- this.detailBuyerParm.state = res.data.state;
- this.detailBuyerParm.tel = res.data.tel;
- this.detailBuyerParm.lastname = res.data.lastname;
- this.detailBuyerParm.vatNumber = res.data.vatNumber;
- this.detailBuyerParm.city = res.data.city;
- this.detailBuyerParm.addressline2 = res.data.addressline2;
- this.detailBuyerParm.firstname = res.data.firstname;
- this.detailBuyerParm.postalcode = res.data.postalcode;
- this.detailBuyerParm.status = res.data.status;
-
- this.dialogBuyerDetailVisible = true;
- }
- })
- .catch(err => {
- console.log(err);
- });
- },
- beforeAvatarUpload(file) {
- console.log(file);
- // const isXlsl = file.type === 'xlsl';
- const isLt10M = file.size / 1024 / 1024 <10;
-
- // if (!isXlsl) {
- // this.$message.error('上传头像图片只能是 xlsl 格式!');
- // }
- if (!isLt10M) {
- this.$message.error('上传头像图片大小不能超过 10MB!');
- }
- // return isXlsl && isLt10M;
- return isLt10M;
- },
- uploadSuccess(res, file) {
- this.dialogImportVisible = false;
- if(res.code==200) {
- console.log(res.data);
- this.$message.success('导入成功!');
-
- if(res.data != null) {
- window.location.href = res.data;
- }
- }
- this.getDataList();
- },
- // 新增
- addBtn(){
- this.addParm = {
- country:null,
- account:null,
- pwd: null,
- shopName: null,
- keyWord:null,
- title:null,
- link:null,
- number:null,
- specification:null,
- color:null,
- item:null,
- sectionMin: null,
- sectionMax: null,
- exchange:null,
- vpnShare:null,
- amessage:null,
- month:null,
- year:null,
- cardName:null,
- cardNumber:null,
- cardPwd:null
- }
- this.dialogAddVisible = true;
- },
- // 导入
- importBtn() {
- this.dialogImportVisible = true
- },
- exportTempBtn() {
- console.log(this.tempUrl)
- window.location.href = this.tempUrl;
- },
- // 根据id删除
- delById(id){
- this.$confirm('确认删除?','提示',{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- delById({id}).then(res => {
- if(res.code==200) {
- this.$message.success('删除成功!')
- this.getDataList()
- }
- }).catch(err => {
- this.$message.error(err);
- console.log(err)
- })
- }).catch(() => {
- this.$message.info('取消删除')
- })
- },
- // 根据id 设置状态异常
- abNormalById(id){
- this.$confirm('确认状态修改为异常?','提示',{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- abMormal({id}).then(res => {
- if(res.code==200) {
- this.$message.success('修改异常状态成功!')
- this.getDataList()
- }
- }).catch(err => {
- this.$message.error(err);
- console.log(err)
- })
- }).catch(() => {
- this.$message.info('取消修改')
- })
- },
- // 补录
- supplement(clickFarmingId) {
- this.supplementParm.clickFarmingId=clickFarmingId;
- this.supplementParm.amount=null;
- this.supplementParm.paymentResults=null;
- this.supplementParm.shop=null;
- this.supplementParm.pricesNumber=null;
- this.supplementParm.orderId=null;
- this.supplementParm.shopName=null;
- this.supplementParm.orderDate=null;
- this.dialogSupplementVisible = true
- },
- // 修改
- editById(data){
- getEditDetailById({id: data.id}).then(res => {
- if(res.code==200) {
- console.log("res.data.type:" + res.data.type);
- this.editParm.id = res.data.id;
- this.editParm.type = res.data.type;
- this.editParm.paramsType = res.data.paramsType;
- this.editParm.shopName = res.data.shopName;
- this.editParm.keyWord = res.data.keyWord;
- this.editParm.title = res.data.title;
- this.editParm.link = res.data.link;
- this.editParm.number = res.data.number;
- this.editParm.specification = res.data.specification;
- this.editParm.color = res.data.color;
- this.editParm.item = res.data.item;
- this.editParm.sectionMin = res.data.sectionMin;
- this.editParm.sectionMax = res.data.sectionMax;
- this.editParm.exchange = res.data.exchange;
- this.editParm.amessage = res.data.amessage;
- this.editParm.buyerId= res.data.buyerId;
- this.editParm.buyerName= res.data.buyerName;
- this.buyerId = res.data.buyerId;
-
- this.dialogEditVisible = true;
- // this.$refs.editParm.clearValidate();
- }
- }).catch(err => {
- this.$message.error(err);
- console.log(err)
- })
- },
- // 确认修改
- sureEdit(editParm){
- this.$refs[editParm].validate((valid) => {
- if (valid) {
- this.$refs.editParm.clearValidate();
- editById(this.editParm).then(res => {
- if(res.code==200) {
- this.editParm.buyerId = this.buyerId;
- this.dialogEditVisible = false
- this.$message.success('修改成功!')
- this.getDataList()
- }
- }).catch(err => {
- this.$message.error(err);
- console.log(err)
- })
- } else {
- console.log('error submit!!');
- return false;
- }
- });
- },
- sureEditCancle(editParm) {
- dialogEditVisible=flase
- this.$refs.editParm.clearValidate();
- },
- // 确认新增
- sureAdd(addParm){
- this.$refs[addParm].validate((valid) => {
- if (valid) {
- this.$refs.addParm.clearValidate();
- add(this.addParm).then(res => {
- if(res.code==200) {
- this.addParm.buyerId = this.buyerId;
- this.dialogAddVisible = false
- this.$message.success('新增成功!')
- this.getDataList()
- }
- }).catch(err => {
- this.$message.error(err);
- console.log(err)
- })
- } else {
- console.log('error submit!!');
- return false;
- }
- });
- },
- sureAddCancle(addParm) {
- dialogAddVisible=false;
- this.$refs.addParm.clearValidate();
- },
- // 确认补录
- sureSuppment() {
- supplement(this.supplementParm).then(res => {
- if(res.code==200) {
- this.dialogSupplementVisible = false
- this.$message.success('补录成功!');
-
- this.searchParm.status = null;
- this.getDataList()
- }
- }).catch(err => {
- console.log(err)
- this.$message.success(err);
- })
- },
- // 查看根据id
- getBtnById(id){
- getById({id}).then(res => {
- if(res.code==200) {
- this.detailParm.id = res.data.id;
- this.detailParm.type = res.data.type;
- this.detailParm.paramsType = res.data.paramsType;
- this.detailParm.country = res.data.country;
- this.detailParm.account = res.data.account;
- this.detailParm.pwd = res.data.pwd;
- this.detailParm.shopName = res.data.shopName;
- this.detailParm.keyWord = res.data.keyWord;
- this.detailParm.title = res.data.title;
- this.detailParm.link = res.data.link;
- this.detailParm.number = res.data.number;
- this.detailParm.specification = res.data.specification;
- this.detailParm.color = res.data.color;
- this.detailParm.item = res.data.item;
- this.detailParm.sectionMin = res.data.sectionMin;
- this.detailParm.sectionMax = res.data.sectionMax;
- this.detailParm.exchange = res.data.exchange;
- this.detailParm.vpnShare = res.data.vpnShare;
- this.detailParm.status = res.data.status;
- this.detailParm.amessage = res.data.amessage;
- this.detailParm.month = res.data.month;
- this.detailParm.year = res.data.year;
- this.detailParm.cardName = res.data.cardName;
- this.detailParm.cardNumber = res.data.cardNumber;
- this.detailParm.cardPwd= res.data.cardPwd;
- this.detailParm.response = res.data.response;
- this.detailParm.buyerName = res.data.buyerName;
-
- this.dialogDetailVisible = true
-
- }
- }).catch(err => {
- console.log(err)
- })
- },
- // 获取订单详情
- getOrderBtnById(id){
- getDetailById({id}).then(res => {
- if(res.code==200) {
- this.orderDetailParm.id = res.data.id;
- this.orderDetailParm.createdAt = res.data.createdAt;
- this.orderDetailParm.updatedAt = res.data.updatedAt;
- this.orderDetailParm.amount = res.data.amount;
- this.orderDetailParm.paymentResults = res.data.paymentResults;
- this.orderDetailParm.shop = res.data.shop;
- this.orderDetailParm.pricesNumber = res.data.pricesNumber;
- this.orderDetailParm.orderId = res.data.orderId;
- this.orderDetailParm.shopName = res.data.shopName;
- this.orderDetailParm.orderDate = res.data.orderDate;
-
- this.dialogOrderDetailVisible = true
-
- }
- }).catch(err => {
- console.log(err)
- })
- },
- // 分页获取表格数据
- getDataList(){
- getList(this.searchParm).then(res => {
- if(res.code==200) {
- this.list = res.data.list;
- this.total = res.data.total;
- }
- }).catch(err => {
- console.log(err)
- })
- },
-
- // 分页
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`);
- this.searchParm.pageSize = val;
- this.getDataList();
- },
- handleCurrentChange(val) {
- console.log(`当前页: ${val}`);
- this.searchParm.page = val;
- this.getDataList();
- }
- }
- }
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- </style>
|