Commit 29f07b66 by LJM

css

parent 78dcdd33
Showing with 18 additions and 10 deletions
......@@ -303,7 +303,7 @@
<el-table-column prop="cp_time" label="上架有效期" width="160" :show-overflow-tooltip="true"></el-table-column>
<el-table-column label="修改上架有效期" width="160">
<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>
</el-table-column>
</el-table>
......@@ -454,7 +454,10 @@ export default {
},
downOut() {
if (this.disabled) {
this.$message("正在导出中,请不要重复点击");
this.$message({
message: '正在导出中,请不要重复点击',
type: 'warning'
});
return
}
this.$http('get', "/api/sku/exportSku", {
......@@ -488,16 +491,21 @@ export default {
id: id_
}).then(res => {
if (res.code == 0) {
this.disabled = false
this.$message("导出成功")
this.downHref = res.data
setTimeout(() => {
this.$refs.downs.click()
}, 10)
this.disabled = false;
this.$message({
message: '导出成功',
type: 'success'
});
this.downHref = res.data;
const newsUrl = this.$router.resolve(res.data);
window.open(res.data);
} else if (res.code == -1) {
//导出失败
this.$message(res.data)
this.disabled = false
this.$message({
message: '导出失败',
type: 'warning'
});
this.disabled = false;
}
}, error => {
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