|
@@ -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({
|