lex-xin 3 年 前
コミット
64248f92b9
1 ファイル変更15 行追加3 行削除
  1. 15 3
      src/views/categroyManager/generalSettings/groupMarkPrice.vue

+ 15 - 3
src/views/categroyManager/generalSettings/groupMarkPrice.vue

@@ -170,11 +170,18 @@
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>
+// {"maxDayFee": 680,"maxMonthFee": 680,"maxHalfYearFee": 4080,"maxYearFee": 8160,"maxQuarterlyFee": 2040,"minDayFee": 680,"minMonthFee": 680,"minQuarterlyFee": 1880,"minHalfYearFee": 3580,"minYearFee": 6880}
 import { sysConfigList, sysConfigUpdate } from "@/api/generalSettings"; // 平台的修改和查
 import { sysConfigList, sysConfigUpdate } from "@/api/generalSettings"; // 平台的修改和查
 export default {
 export default {
   data() {
   data() {
     return {
     return {
-      form: {},
+      form: {
+        maxDayFee: null,
+        maxMonthFee: null,
+        maxHalfYearFee: null,
+        maxYearFee: null,
+        maxQuarterlyFee: null,
+      },
       questionList: [],
       questionList: [],
       rulesVisiable: false,
       rulesVisiable: false,
     };
     };
@@ -185,10 +192,15 @@ export default {
   methods: {
   methods: {
     async getRules() {
     async getRules() {
       try {
       try {
-        const res = await sysConfigList({ group: "LOGIN" });
+        const res = await sysConfigList({ group: "DEFAULT" });
+        const paramName = 'cloud_price_range'
         res.data.forEach((item) => {
         res.data.forEach((item) => {
+          if(item.paramName == paramName) {
+            const itemValue = item.paranValue
+            // this.$set(this.form, item.id, item.paranValue);
+          }
           // this.form[item.paramName] = item.paranValue
           // this.form[item.paramName] = item.paranValue
-          this.$set(this.form, item.id, item.paranValue);
+          // this.$set(this.form, item.id, item.paranValue);
         });
         });
         // this.$forceUpdate()
         // this.$forceUpdate()
         console.log(this.form);
         console.log(this.form);