Commit 29f07b66 by LJM

css

parent 78dcdd33
Showing with 18 additions and 10 deletions
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
<el-table-column prop="cp_time" label="上架有效期" width="160" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="cp_time" label="上架有效期" width="160" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="修改上架有效期" width="160"> <el-table-column label="修改上架有效期" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker v-model="scope.row.cp_time" type="date" placeholder="选择日期" style="width: 128px" value-format="yyyy-MM-dd"></el-date-picker> <el-date-picker v-model="scope.row.cp_times" type="date" placeholder="选择日期" style="width: 128px" value-format="yyyy-MM-dd"></el-date-picker>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -454,7 +454,10 @@ export default { ...@@ -454,7 +454,10 @@ export default {
}, },
downOut() { downOut() {
if (this.disabled) { if (this.disabled) {
this.$message("正在导出中,请不要重复点击"); this.$message({
message: '正在导出中,请不要重复点击',
type: 'warning'
});
return return
} }
this.$http('get', "/api/sku/exportSku", { this.$http('get', "/api/sku/exportSku", {
...@@ -488,16 +491,21 @@ export default { ...@@ -488,16 +491,21 @@ export default {
id: id_ id: id_
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.disabled = false this.disabled = false;
this.$message("导出成功") this.$message({
this.downHref = res.data message: '导出成功',
setTimeout(() => { type: 'success'
this.$refs.downs.click() });
}, 10) this.downHref = res.data;
const newsUrl = this.$router.resolve(res.data);
window.open(res.data);
} else if (res.code == -1) { } else if (res.code == -1) {
//导出失败 //导出失败
this.$message(res.data) this.$message({
this.disabled = false message: '导出失败',
type: 'warning'
});
this.disabled = false;
} }
}, error => { }, error => {
this.$message('网络出现问题,请检查网络'); this.$message('网络出现问题,请检查网络');
......
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 sign in to comment