lilei 4 éve
szülő
commit
71a860fa9f

+ 14 - 6
src/views/market/addlotterySetModal.vue

@@ -431,7 +431,7 @@
         </a-row>
 
         <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 style="margin-left: 10px;" @click="cansel">
@@ -471,7 +471,7 @@ export default {
       formLayout: 'vertical',
       labelCol: {},
       wrapperCol: {},
-	  state: 0, // 活动状态
+	    state: 0, // 活动状态
       participantsNum: 0, // 抽奖参与人数
       form: {
         activeName: '', // 活动名称
@@ -602,7 +602,7 @@ export default {
       getLuckyDrawDetail({ id: id }).then(res => {
         if (res.status == 200) {
           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.isPeopleLimit = this.form.isPeopleLimit == 1
           this.form.time = [moment(this.form.activeStartTime), moment(this.form.activeEndTime)]
@@ -629,9 +629,9 @@ export default {
     // 取消
     cansel () {
       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.luckyDrawTaskList = []
       this.form.luckyDrawWinPrizeLimitList = []
@@ -674,6 +674,14 @@ export default {
 
 <style lang="less">
   .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{
       border-bottom: 1px solid #eee;
       padding-bottom: 10px;

+ 2 - 2
src/views/market/lotterySettings.vue

@@ -50,9 +50,9 @@
       bordered>
       <span slot="action" slot-scope="text, record">
         <a-icon
-          type="edit"
+          :type="record.state==1?'eye':'edit'"
           id="lotterySet-handleEdit"
-          title="编辑"
+          :title="record.state==1?'查看':'编辑'"
           class="actionBtn icon-blues"
           @click="handleEdit(record)" />
         <a-icon