lilei 4 gadi atpakaļ
vecāks
revīzija
c9b57985a5

+ 4 - 1
src/views/businessManage/leduQuery/leduQuery.vue

@@ -38,6 +38,9 @@
       :columns="columns"
       :data="loadData"
       bordered>
+      <template slot="changeNum" slot-scope="text, record">
+        {{ text||'0' }}
+      </template>
     </s-table>
   </a-card>
 
@@ -77,7 +80,7 @@ export default {
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
         { title: '商户名称', dataIndex: 'officialPartnerName', align: 'center' },
-        { title: '收取乐豆个数', dataIndex: 'changeNum', width: 200, align: 'center' }
+        { title: '收取乐豆个数', scopedSlots: { customRender: 'changeNum' }, dataIndex: 'changeNum', width: 200, align: 'center' }
         // { title: '交易时间', dataIndex: 'createDate', width: 200, align: 'center' }
       ],
       // 加载数据方法 必须为 Promise 对象

+ 5 - 4
src/views/market/addlotterySetModal.vue

@@ -27,7 +27,7 @@
             <a-form-model-item ref="time" label="活动时间" prop="time">
               <a-range-picker
                 id="addLottery-time"
-                v-model="time"
+                v-model="form.time"
                 format="YYYY-MM-DD"
                 :placeholder="['开始时间','结束时间']"
               />
@@ -38,12 +38,13 @@
               <a-input-number
                 id="addLottery-cjRc"
                 style="width: 50%;margin-right: 20px;"
+                v-model="form.nums"
                 :min="0"
                 :max="999999"
                 :precision="0"
                 placeholder="请输入抽奖人次(0~999999)"
                 allowClear />
-              <a-checkbox>
+              <a-checkbox v-model="form.bxNums">
                 不限
               </a-checkbox>
             </a-form-model-item>
@@ -181,14 +182,14 @@
           </a-col>
         </a-row>
 
-        <a-form-model-item :wrapper-col="{ span: 14, offset: 4 }">
+        <div class="form-item" style="justify-content:center;padding: 50px 20px 20px;">
           <a-button type="primary" @click="onSubmit">
             保存
           </a-button>
           <a-button style="margin-left: 10px;" @click="resetForm">
             重置
           </a-button>
-        </a-form-model-item>
+        </div>
       </a-form-model>
     </a-modal>
   </div>

+ 2 - 2
vue.config.js

@@ -108,8 +108,8 @@ const vueConfig = {
     // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
     proxy: {
       '/api': {
-        target: 'http://192.168.16.105:8301/gc-admin/',
-        // target: 'https://lese.test.sxzxyj.net/gc-admin/',
+        // target: 'http://192.168.16.105:8301/gc-admin/',
+        target: 'https://lese.test.sxzxyj.net/gc-admin/',
         ws: false,
         changeOrigin: true,
         pathRewrite: {