Commit 5cb30ea8 authored by 王飞龙's avatar 王飞龙

开课页面添加

parent d1720904
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询试用申请列表
export function listApplicationTrial(query) {
return request({
url: '/applicationtrial/queryApplicationTrialByPagination',
method: 'get',
params: query
})
}
// 2. 查询试用申请详细信息
export function getApplicationTrial(businessId) {
return request({
url: '/applicationtrial/detail/' + businessId,
method: 'get'
})
}
// 3. 新增试用申请
export function addApplicationTrial(data) {
data = Qs.stringify(data)
return request({
url: '/applicationtrial/add',
method: 'post',
data: data
})
}
// 4. 修改试用申请
export function updateApplicationTrial(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/applicationtrial/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除试用申请
export function delApplicationTrial(businessId) {
return request({
url: '/applicationtrial/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出试用申请
export function exportApplicationTrial(query) {
return request({
url: '/applicationtrial/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
...@@ -135,28 +135,6 @@ ...@@ -135,28 +135,6 @@
<span>{{ scope.row.nickName }}</span> <span>{{ scope.row.nickName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column align="left" label="权重" prop="weight" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ scope.row.weight }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column align="left" label="板块" prop="plate">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ changPlate (scope.row.plate) }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column align="left" label="状态" prop="flag">-->
<!-- <template slot-scope="scope">-->
<!-- <el-switch-->
<!-- v-model="scope.row.flag"-->
<!-- class="switchDisabledStyle"-->
<!-- inactive-value="0"-->
<!-- active-value="1"-->
<!-- @click.native="handleStatusChange(scope.row)"-->
<!-- />-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column align="center" label="操作" width="150"> <el-table-column align="center" label="操作" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
......
...@@ -85,22 +85,22 @@ ...@@ -85,22 +85,22 @@
@click="handleAdd" @click="handleAdd"
>{{ commonField.addName }}</el-button> >{{ commonField.addName }}</el-button>
<!-- //下载模板按钮--> <!-- //下载模板按钮-->
<el-button <!-- <el-button-->
:class="commonField.importClass" <!-- :class="commonField.importClass"-->
:type="commonField.typeWarning" <!-- :type="commonField.typeWarning"-->
:icon="commonField.importIcon" <!-- :icon="commonField.importIcon"-->
:size="commonField.smallSize" <!-- :size="commonField.smallSize"-->
@click="exportmould" <!-- @click="exportmould"-->
>下载模板</el-button> <!-- >下载模板</el-button>-->
<!-- //导入按钮--> <!-- &lt;!&ndash; //导入按钮&ndash;&gt;-->
<el-button <!-- <el-button-->
:class="commonField.importClass" <!-- :class="commonField.importClass"-->
:type="commonField.typeWarning" <!-- :type="commonField.typeWarning"-->
:icon="commonField.importIcon" <!-- :icon="commonField.importIcon"-->
:size="commonField.smallSize" <!-- :size="commonField.smallSize"-->
@click="importmould" <!-- @click="importmould"-->
>{{ commonField.importName }}</el-button> <!-- >{{ commonField.importName }}</el-button>-->
<input id="btn_file" type="file" style="display:none" @change="fileupload"> <!-- <input id="btn_file" type="file" style="display:none" @change="fileupload">-->
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment