Selaa lähdekoodia

付费规则调整

qymljy 2 vuotta sitten
vanhempi
commit
38493fd661
1 muutettua tiedostoa jossa 18 lisäystä ja 7 poistoa
  1. 18 7
      src/SManagement/user/pay-orders/modules/add.vue

+ 18 - 7
src/SManagement/user/pay-orders/modules/add.vue

@@ -16,9 +16,17 @@
         <el-col :span="24" class="div_top">
           <span style="color: red">*</span>
           <span>选择版本:</span>
+          <el-select style="margin-left: 10px" size="small" v-model="version" placeholder="请选择" @change="onCheck">
+            <el-option
+                v-for="item in versionList"
+                :key="item.sys_site_systempartitionid"
+                :label="item.partitionname"
+                :value="item.sys_site_systempartitionid">
+            </el-option>
+          </el-select>
         </el-col>
-        <el-col :span="24" class="div_top">
-<!--          <el-table
+<!--        <el-col :span="24" class="div_top">
+&lt;!&ndash;          <el-table
               :data="versionList"
               height="300px"
               :cell-style="{height:'40px',color:'#666666',fontWeight:'400'}"
@@ -38,17 +46,17 @@
                 <input type="radio" :checked="scope.row.checkRow" @click="onCheck(scope.row)"></input>
               </template>
             </el-table-column>
-          </el-table>-->
+          </el-table>&ndash;&gt;
           <tableLayout ref="version" :layout="tablecolsVersion" :data="versionList"  :opwidth="200" :custom="true"   fixedName="operation" @rowClick="rowClick">
             <template v-slot:customcol="scope">
               <span v-if="scope.column.columnname === 'operation'" ></span>
-              <p v-else>{{scope.column.data[scope.column.columnname] || '--'}}</p>
+              <p v-else>{{scope.column.data[scope.column.columnname] || '&#45;&#45;'}}</p>
             </template>
             <template v-slot:opreation="scope">
               <input type="radio" :checked="scope.data.checkRow" @click="onCheck(scope.data)"></input>
             </template>
           </tableLayout>
-        </el-col>
+        </el-col>-->
 <!--        <el-col :span="14" class="div_top">
           <el-table
               :data="modulesList"
@@ -187,7 +195,8 @@ export default {
       amount:0,
       createNow:false,
       sys_payswitch:'1',
-      userLeader:''
+      userLeader:'',
+      version:""
     }
   },
   components:{tableLayout},
@@ -248,6 +257,7 @@ export default {
       if (this.$route.query.isPay == 2){
         this.versionList.forEach(item=>{
           if (item.sys_site_systempartitionid == this.$route.query.id){
+            this.version = item.sys_site_systempartitionid
             item.checkRow = true
             this.modulesList = item.systemapp
             this.form.sys_site_systempartitionid = item.sys_site_systempartitionid
@@ -256,6 +266,7 @@ export default {
           }
         })
       }else {
+        this.version = this.versionList[0].sys_site_systempartitionid
         this.versionList[0].checkRow = true
         this.modulesList = this.versionList[0].systemapp
         this.form.sys_site_systempartitionid = this.versionList[0].sys_site_systempartitionid
@@ -355,7 +366,7 @@ export default {
     },
     /*选择版本*/
     onCheck(val){
-
+      console.log(val,'选择版本')
       this.userLeader = ''
       this.userids = []
       this.versionList.forEach(item=>{