6.28(添加平台选择
This commit is contained in:
@@ -125,10 +125,10 @@ export function carGetImportRate(data) {
|
||||
}
|
||||
|
||||
/**导入司机编号列表*/
|
||||
export function excelUserSn(data) {
|
||||
export function excelUserSn(data,platformId) {
|
||||
return request({
|
||||
baseURL: process.env.VUE_APP_BASE_API,
|
||||
url: '/excel/admin/platform/return/commission/platform/import/join/user',
|
||||
url: `/excel/admin/platform/return/commission/platform/import/join/user/${platformId}`,
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
|
||||
@@ -63,6 +63,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="参与时间" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="操作" min-width="110" fixed="right" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" @click="onInfo(scope.row.id)" class="mr10">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block">
|
||||
<el-pagination ref="pagination" :page-sizes="[10, 20, 40, 60, 80]" :page-size="tableFrom.limit"
|
||||
@@ -104,6 +109,39 @@
|
||||
<el-button type="primary" @click="closeCarExp">关 闭</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 详情 -->
|
||||
<el-drawer :visible.sync="loadingFrom" size="100%">
|
||||
<div class="descriBOX">
|
||||
<el-descriptions title="汽车参数模板详情" :column="2" border>
|
||||
<el-descriptions-item label="id">{{ formData.id }}</el-descriptions-item>
|
||||
<el-descriptions-item label="用户id">{{ formData.uid }}</el-descriptions-item>
|
||||
<el-descriptions-item label="返佣平台id">{{ formData.platformId }}</el-descriptions-item>
|
||||
<el-descriptions-item label="返佣平台sn">{{ formData.platformSn }}</el-descriptions-item>
|
||||
<!-- <el-descriptions-item label="车牌号">{{ carData.carNo }}</el-descriptions-item> -->
|
||||
<el-descriptions-item label="返佣平台名称">{{ formData.platformName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="参与编码">{{ formData.joinSn }}</el-descriptions-item>
|
||||
<el-descriptions-item label="滴友id">{{ formData.driverKey }}</el-descriptions-item>
|
||||
<el-descriptions-item label="司机编码">{{ formData.driverSn }}</el-descriptions-item>
|
||||
<el-descriptions-item label="logo">
|
||||
<imagePreview :src="formData.image" style="width: 40px; height: 40px" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="审核状态">
|
||||
<span v-if="formData.status == 0"> 未参与</span>
|
||||
<span v-if="formData.status == 1"> 待审核</span>
|
||||
<span v-if="formData.status == 2"> 审核失败</span>
|
||||
<span v-if="formData.status == 3"> 审核成功</span>
|
||||
</el-descriptions-item>
|
||||
<!-- <el-descriptions-item label="动力类型">{{
|
||||
carData.powerType == 0 ? '纯电' : carData.powerType == 1 ? '油电' : '纯油'
|
||||
}}</el-descriptions-item> -->
|
||||
<el-descriptions-item label="参与时间">{{ formData.participationTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="绑定时间">{{ formData.bindingTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="创建时间">{{ formData.createTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="修改时间">{{ formData.updateTime }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -113,6 +151,8 @@ export default {
|
||||
components: { },
|
||||
data() {
|
||||
return {
|
||||
formData:{},
|
||||
loadingFrom:false,
|
||||
//参与时间
|
||||
time1:[],
|
||||
//导入类型
|
||||
@@ -221,10 +261,6 @@ export default {
|
||||
onInfo(id) {
|
||||
this.loadingFrom = true;
|
||||
platformDetail(id).then((res) => {
|
||||
console.log(res);
|
||||
res.way = String(res.way)
|
||||
res.time1 = [res.startTime, res.settlementTime]
|
||||
res.selectedOptions = [res.province, res.city, res.district]
|
||||
this.formData = res;
|
||||
});
|
||||
},
|
||||
|
||||
@@ -83,12 +83,12 @@
|
||||
<!-- 导入汽车列表 -->
|
||||
<el-dialog title="导入" :visible.sync="carExpListOpen" width="25%" :before-close="handleClose">
|
||||
<div>
|
||||
<el-select v-if="expType == 2" v-model="tableFrom.platformId" filterable remote reserve-keyword
|
||||
<el-select v-model="tableFrom.platformId" filterable remote reserve-keyword
|
||||
placeholder="请输入关键词" :remote-method="remoteMethod" :loading="loading">
|
||||
<el-option v-for="item in options" :key="item.id" :label="item.name" :value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
<div v-if="expType == 2" style="height: 20px;"></div>
|
||||
<div style="height: 20px;"></div>
|
||||
<div v-if="!impDataFlag">
|
||||
<el-upload width="100%" class="upload-demo" action="https://jsonplaceholder.typicode.com/posts/"
|
||||
:http-request="handleUploadForm" multiple :limit="1" :file-list="fileList">
|
||||
@@ -272,7 +272,7 @@ export default {
|
||||
if (this.file) {
|
||||
this.buttFlag = true;
|
||||
if (this.expType == 1) {
|
||||
excelUserSn(this.file)
|
||||
excelUserSn(this.file, this.tableFrom.platformId)
|
||||
.then((res) => {
|
||||
// console.log(res);
|
||||
this.importData = res;
|
||||
|
||||
Reference in New Issue
Block a user