2023-12-20
This commit is contained in:
@@ -5,5 +5,6 @@ ENV = 'production'
|
|||||||
VUE_APP_BASE_API = '/lpkapi'
|
VUE_APP_BASE_API = '/lpkapi'
|
||||||
|
|
||||||
## 配置 正式接口地址
|
## 配置 正式接口地址
|
||||||
VUE_APP_URL = "http://120.46.131.15:8111"
|
VUE_APP_URL = "https://lpk.yyundong.com"
|
||||||
VUE_APP_REPORT_URL = "https://lpk.yyundong.com"
|
VUE_APP_REPORT_URL = "https://lpk.yyundong.com"
|
||||||
|
|
||||||
BIN
public/云菜窖.xls
Normal file
BIN
public/云菜窖.xls
Normal file
Binary file not shown.
@@ -159,7 +159,8 @@
|
|||||||
style="background: #018AD2; color: #fff;padding: 5px 15px;border-radius: 5px;font-size: 16px;"
|
style="background: #018AD2; color: #fff;padding: 5px 15px;border-radius: 5px;font-size: 16px;"
|
||||||
@click="saveOrUpdate">发行</span> -->
|
@click="saveOrUpdate">发行</span> -->
|
||||||
|
|
||||||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">发行</el-button>
|
<el-button type="primary" size="small" :disabled="submitdisabled"
|
||||||
|
@click="saveOrUpdate">发行</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -176,10 +177,10 @@
|
|||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="item_text">
|
<div class="item_text">
|
||||||
<span class="item_text2">下载模版</span>
|
<span class="item_text2" @click="handleDownload">下载模版</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="item_input" ></span>
|
<span class="item_input"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -219,7 +220,7 @@
|
|||||||
|
|
||||||
<div class="item" v-show="result!=''">
|
<div class="item" v-show="result!=''">
|
||||||
<span class="item_text"></span>
|
<span class="item_text"></span>
|
||||||
<span class="item_input" >{{result}}</span>
|
<span class="item_input">{{result}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div
|
<!-- <div
|
||||||
@@ -281,7 +282,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
viewState: 1,
|
viewState: 1,
|
||||||
submitdisabled:false,
|
submitdisabled: false,
|
||||||
page: {
|
page: {
|
||||||
total: 0, // 默认数据总数
|
total: 0, // 默认数据总数
|
||||||
current: 1, // 默认开始页面
|
current: 1, // 默认开始页面
|
||||||
@@ -345,7 +346,7 @@
|
|||||||
},
|
},
|
||||||
updateAction: process.env.VUE_APP_BASE_API + '/lpkgiftcard/getExcelInfo2',
|
updateAction: process.env.VUE_APP_BASE_API + '/lpkgiftcard/getExcelInfo2',
|
||||||
uploadFileList: [],
|
uploadFileList: [],
|
||||||
result:"",
|
result: "",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -353,7 +354,21 @@
|
|||||||
this.getBankList()
|
this.getBankList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//下载模版
|
||||||
|
handleDownload() {
|
||||||
|
|
||||||
|
var a = document.createElement("a"); //创建一个<a></a>标签
|
||||||
|
a.href = "./云菜窖.xls";
|
||||||
|
//给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
|
||||||
|
a.download = "云菜窖.xls";
|
||||||
|
//设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可
|
||||||
|
a.style.display = "none"; // 障眼法藏起来a标签
|
||||||
|
document.body.appendChild(a);
|
||||||
|
// 将a标签追加到文档对象中
|
||||||
|
a.click(); //模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
||||||
|
a.remove(); // 一次性的,用完就删除a标签
|
||||||
|
|
||||||
|
},
|
||||||
handleClick(tab, event) {
|
handleClick(tab, event) {
|
||||||
this.viewState = 1
|
this.viewState = 1
|
||||||
|
|
||||||
@@ -597,7 +612,7 @@
|
|||||||
|
|
||||||
handleSuccess(resp, file, fileList) {
|
handleSuccess(resp, file, fileList) {
|
||||||
|
|
||||||
console.log("resp",resp);
|
console.log("resp", resp);
|
||||||
|
|
||||||
if (resp.success) {
|
if (resp.success) {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|||||||
Reference in New Issue
Block a user