Browse Source

2023-12-20

master
guoxing 1 year ago
parent
commit
443b561cfc
  1. 3
      .env.production
  2. BIN
      public/云菜窖.xls
  3. 55
      src/views/marketingCard/pickupCardSet.vue

3
.env.production

@ -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

Binary file not shown.

55
src/views/marketingCard/pickupCardSet.vue

@ -158,8 +158,9 @@
<!-- <span <!-- <span
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,13 +177,13 @@
<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>
<div class="item"> <div class="item">
<span class="item_text">起始日期</span> <span class="item_text">起始日期</span>
<el-date-picker v-model="batchInfo.startDate" @change="selectbatchInfo1" type="date" <el-date-picker v-model="batchInfo.startDate" @change="selectbatchInfo1" type="date"
@ -216,10 +217,10 @@
</div> </div>
</div> </div>
<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";
//ahref .
a.download = "云菜窖.xls";
//.xlsxpdf.fpd
a.style.display = "none"; // a
document.body.appendChild(a);
// a
a.click(); //aahref
a.remove(); // a
},
handleClick(tab, event) { handleClick(tab, event) {
this.viewState = 1 this.viewState = 1
@ -597,8 +612,8 @@
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({
showClose: true, showClose: true,
@ -613,7 +628,7 @@
message: resp.msg message: resp.msg
}) })
} }
this.result = resp.msg this.result = resp.msg
// console.log('handleSuccess----', resp) // console.log('handleSuccess----', resp)
@ -639,7 +654,7 @@
} }
_this.reportFileList.splice(delete_index, 1) _this.reportFileList.splice(delete_index, 1)
}, },
submitUpload() { submitUpload() {
this.$refs.upload.submit() this.$refs.upload.submit()
@ -668,7 +683,7 @@
flex: 0.8; flex: 0.8;
font-size: 18px; font-size: 18px;
text-align: right; text-align: right;
.item_text2 { .item_text2 {
margin-right: 10px; margin-right: 10px;
padding: 10px 15px; padding: 10px 15px;
@ -679,9 +694,9 @@
color: #fff; color: #fff;
} }
} }
.item_input { .item_input {
flex: 4; flex: 4;

Loading…
Cancel
Save