|
@@ -431,7 +431,7 @@
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
<div class="form-item" style="justify-content:center;padding: 50px 20px 20px;">
|
|
<div class="form-item" style="justify-content:center;padding: 50px 20px 20px;">
|
|
- <a-button type="primary" :loading="loading" @click="onSubmit">
|
|
|
|
|
|
+ <a-button type="primary" :loading="loading" @click="onSubmit" v-if="state==0">
|
|
保存
|
|
保存
|
|
</a-button>
|
|
</a-button>
|
|
<a-button style="margin-left: 10px;" @click="cansel">
|
|
<a-button style="margin-left: 10px;" @click="cansel">
|
|
@@ -471,7 +471,7 @@ export default {
|
|
formLayout: 'vertical',
|
|
formLayout: 'vertical',
|
|
labelCol: {},
|
|
labelCol: {},
|
|
wrapperCol: {},
|
|
wrapperCol: {},
|
|
- state: 0, // 活动状态
|
|
|
|
|
|
+ state: 0, // 活动状态
|
|
participantsNum: 0, // 抽奖参与人数
|
|
participantsNum: 0, // 抽奖参与人数
|
|
form: {
|
|
form: {
|
|
activeName: '', // 活动名称
|
|
activeName: '', // 活动名称
|
|
@@ -602,7 +602,7 @@ export default {
|
|
getLuckyDrawDetail({ id: id }).then(res => {
|
|
getLuckyDrawDetail({ id: id }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.participantsNum = res.data.participantsNum
|
|
this.participantsNum = res.data.participantsNum
|
|
- this.state = res.data.state
|
|
|
|
|
|
+ this.state = res.data.state
|
|
this.form = Object.assign({}, this.form, res.data)
|
|
this.form = Object.assign({}, this.form, res.data)
|
|
this.form.isPeopleLimit = this.form.isPeopleLimit == 1
|
|
this.form.isPeopleLimit = this.form.isPeopleLimit == 1
|
|
this.form.time = [moment(this.form.activeStartTime), moment(this.form.activeEndTime)]
|
|
this.form.time = [moment(this.form.activeStartTime), moment(this.form.activeEndTime)]
|
|
@@ -629,9 +629,9 @@ export default {
|
|
// 取消
|
|
// 取消
|
|
cansel () {
|
|
cansel () {
|
|
this.isShow = false
|
|
this.isShow = false
|
|
- this.participantsNum = 0
|
|
|
|
- this.state = 0
|
|
|
|
- this.form.isPeopleLimit = false
|
|
|
|
|
|
+ this.participantsNum = 0
|
|
|
|
+ this.state = 0
|
|
|
|
+ this.form.isPeopleLimit = false
|
|
this.form.luckyDrawPrizeList = []
|
|
this.form.luckyDrawPrizeList = []
|
|
this.form.luckyDrawTaskList = []
|
|
this.form.luckyDrawTaskList = []
|
|
this.form.luckyDrawWinPrizeLimitList = []
|
|
this.form.luckyDrawWinPrizeLimitList = []
|
|
@@ -674,6 +674,14 @@ export default {
|
|
|
|
|
|
<style lang="less">
|
|
<style lang="less">
|
|
.addLottery-modal{
|
|
.addLottery-modal{
|
|
|
|
+ .ant-input[disabled]{
|
|
|
|
+ background: #fff;
|
|
|
|
+ color: #666;
|
|
|
|
+ }
|
|
|
|
+ .ant-input-disabled,.ant-select-disabled .ant-select-selection,.ant-input-number-disabled{
|
|
|
|
+ background: #fff;
|
|
|
|
+ color: #666;
|
|
|
|
+ }
|
|
.form-titles{
|
|
.form-titles{
|
|
border-bottom: 1px solid #eee;
|
|
border-bottom: 1px solid #eee;
|
|
padding-bottom: 10px;
|
|
padding-bottom: 10px;
|