Commit 61f7c0c5 authored by yaya's avatar yaya

feat:bugfix

parent 32a32f46
......@@ -39,6 +39,7 @@
v-model="inviteInfo.remark"
:rows="6"
type="textarea"
maxlength="50"
placeholder="请输入备注"/>
</el-form-item>
</el-form>
......@@ -69,7 +70,7 @@ export default {
onClick(picker) {
const end = new Date()
const start = new Date()
end.setTime(start.getTime() + 3600 * 1000 * 24 * 7)
end.setTime(end.getTime() + 3600 * 1000 * 24 * 7)
picker.$emit('pick', [start, end])
}
}, {
......@@ -77,7 +78,7 @@ export default {
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
end.setTime(end.getTime() + 3600 * 1000 * 24 * 30)
picker.$emit('pick', [start, end])
}
}, {
......@@ -85,7 +86,7 @@ export default {
onClick(picker) {
const end = new Date()
const start = new Date()
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
end.setTime(end.getTime() + 3600 * 1000 * 24 * 90)
picker.$emit('pick', [start, end])
}
}]
......
......@@ -97,6 +97,11 @@ export default {
this.$router.push({ path: '/user/inviteInfo', query: { id: row.code }})
},
handleSetEnable(row) {
this.$confirm('你确定要把邀请码设置失效吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const params = {
code: row.code
}
......@@ -114,6 +119,7 @@ export default {
})
}).catch((e) => {
})
})
},
/**
* 复制
......
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