Commit 3133ebf2 by liang ce

时间修改

parent a2701f09
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
<div> <div>
<label>截止日期</label> <label>截止日期</label>
<div>{{ allowanceDetails.endTime }} <span class="changeEndTime" @click="changeEndTimeModel">修改</span></div> <div>{{ allowanceDetails.endTime }} <span v-if="isshowChange" class="changeEndTime" @click="changeEndTimeModel">修改</span></div>
</div> </div>
<div> <div>
<label>单号</label> <label>单号</label>
...@@ -86,6 +86,7 @@ export default { ...@@ -86,6 +86,7 @@ export default {
spinning: false, spinning: false,
delayTime: 100, delayTime: 100,
form: this.$form.createForm(this), form: this.$form.createForm(this),
isshowChange: false,
config: { config: {
rules: [{ type: 'object', required: true, message: '请选择时间' }] rules: [{ type: 'object', required: true, message: '请选择时间' }]
}, },
...@@ -119,6 +120,7 @@ export default { ...@@ -119,6 +120,7 @@ export default {
} }
$http.get(`/mingpay/v1/isv/account/coupon_record_detail`, data).then((res) => { $http.get(`/mingpay/v1/isv/account/coupon_record_detail`, data).then((res) => {
console.log(res) console.log(res)
this.isshowChange = new Date(res.data.data.endTime).getTime() > new Date().getTime()
this.allowanceDetails = res.data.data this.allowanceDetails = res.data.data
}) })
}, },
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
pagination: { pagination: {
current: 1, current: 1,
defaultCurrent: 1, defaultCurrent: 1,
defaultPageSize: 10, defaultPageSize: 100,
hideOnSinglePage: true, hideOnSinglePage: true,
total: 0 total: 0
} }
......
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
pagination: { pagination: {
current: 1, current: 1,
defaultCurrent: 1, defaultCurrent: 1,
defaultPageSize: 10, defaultPageSize: 100,
hideOnSinglePage: true, hideOnSinglePage: true,
total: 0 total: 0
} }
......
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 to comment