Commit 3133ebf2 by liang ce

时间修改

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