liyongli 2 年之前
父節點
當前提交
a0b686b40b
共有 2 個文件被更改,包括 5 次插入15 次删除
  1. 1 1
      src/views/Channle/index.vue
  2. 4 14
      src/views/Version/index.vue

+ 1 - 1
src/views/Channle/index.vue

@@ -559,7 +559,7 @@ export default {
           this.channel = channel;
           this.form = {
             ...this.form,
-            channel: [-1],
+            channel: [(channel[0]||{}).value],
           };
         });
       });

+ 4 - 14
src/views/Version/index.vue

@@ -298,7 +298,7 @@ export default {
     };
     this.cycle = this.verifyList(appli, source, keys, false);
     this.channel = this.verifyList(appCLi, appC, keys, true);
-    this.version = this.verifyList(appVLi, appV, keys, true);
+    this.version = this.verifyList(appVLi, appV, keys, false);
     this.form = {
       //   app: (this.cycle[0] || { value: "" }).value,
       app: "起点新闻",
@@ -356,12 +356,7 @@ export default {
         version: this.form.version == -1 ? undefined : this.form.version,
       };
       getVersionPage(this.lastParams).then(r => (this.table = r || []));
-      getVersionChart({
-        app: this.lastParams.app,
-        start: this.lastParams.start,
-        end: this.lastParams.end,
-        version: this.form.version == -1 ? undefined : this.form.version,
-      }).then(resChart => {
+      getVersionChart(this.lastParams).then(resChart => {
         const c = resChart || {};
         let keyList = [],
           valueList = [],
@@ -556,12 +551,7 @@ export default {
           gcode: "APP_VERSION",
           source: this.form.app,
         }).then(r => {
-          let version = [
-            {
-              label: "不限",
-              value: -1,
-            },
-          ];
+          let version = [];
           r.map(v => {
             if ((appV.length && appV[v.mcode]) || appV.length === 0)
               version.push({
@@ -572,7 +562,7 @@ export default {
           this.version = version;
           this.form = {
             ...this.form,
-            version: [-1],
+            version: [(version[0]||{}).value],
           };
         });
         getSearchData({