Commit 9f4e6d35 by LJM

bug

parent 14eab3de
Showing with 1 additions and 10 deletions
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
<el-table-column prop="cp_time_temp" label="上架有效期" width="160" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="cp_time_temp" 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" :picker-options="pickerOptions(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_time" 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>
...@@ -329,7 +329,6 @@ export default { ...@@ -329,7 +329,6 @@ export default {
name: "list", name: "list",
data() { data() {
return { return {
pickerOptions: {},
total: 0, total: 0,
limit: 10, limit: 10,
page: 1, page: 1,
...@@ -365,14 +364,6 @@ export default { ...@@ -365,14 +364,6 @@ export default {
} }
this.getData(); this.getData();
this.getSkuRankList(); this.getSkuRankList();
this.pickerOptions = function (val) {
return {
disabledDate(time) {
let limit_date = new Date(val);
return time.getTime() > limit_date.getTime() + 3600 * 1000 * 24 * 30;
}
}
}
}, },
methods: { methods: {
/** /**
......
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