@cmstops/pro-compo 3.9.2-alpha.20 → 3.9.2-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/selectAddTo/components/ViewAllColumn/index.js +6 -0
- package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +4 -4
- package/lib/selectAddTo/components/ViewAllColumn/index.js +6 -0
- package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch } from "vue";
|
|
2
2
|
import { Message } from "@arco-design/web-vue";
|
|
3
|
+
import { DEFAULT_BASE_API } from "../../../../config.js";
|
|
3
4
|
import { getCategoryMediaNew, getPoliticals, getMlists } from "../../../script/api.js";
|
|
4
5
|
import useTableBatch from "../../../../hooks/batch.js";
|
|
5
6
|
const useViewAllColumnState = (props, emit) => {
|
|
@@ -109,7 +110,6 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
109
110
|
where: ["state:15|19"]
|
|
110
111
|
};
|
|
111
112
|
params.where.push(props.typeKey);
|
|
112
|
-
console.log(filter.value, "888888");
|
|
113
113
|
if (filter.value) {
|
|
114
114
|
const _filter = filter.value;
|
|
115
115
|
params.order = _filter.order;
|
|
@@ -123,11 +123,11 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
123
123
|
try {
|
|
124
124
|
let response;
|
|
125
125
|
if (props.typeKey && props.typeKey !== "ZQ") {
|
|
126
|
-
response = await getCategoryMediaNew(
|
|
126
|
+
response = await getCategoryMediaNew(DEFAULT_BASE_API, params);
|
|
127
127
|
} else {
|
|
128
128
|
params.keyword = ((_a = filter.value) == null ? void 0 : _a.precise_kw) || ((_b = filter.value) == null ? void 0 : _b.keywords) || "";
|
|
129
129
|
params.state = 2;
|
|
130
|
-
response = await getPoliticals(
|
|
130
|
+
response = await getPoliticals(DEFAULT_BASE_API, params);
|
|
131
131
|
}
|
|
132
132
|
const { code, message } = response;
|
|
133
133
|
if (code === 0) {
|
|
@@ -152,7 +152,7 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
152
152
|
};
|
|
153
153
|
const loadMore = async (record, done) => {
|
|
154
154
|
try {
|
|
155
|
-
const res = await getMlists(
|
|
155
|
+
const res = await getMlists(DEFAULT_BASE_API, {
|
|
156
156
|
rid: props.rid,
|
|
157
157
|
gid: record.special_id
|
|
158
158
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
var vue = require("vue");
|
|
4
4
|
var webVue = require("@arco-design/web-vue");
|
|
5
|
+
var config = require("../../../../config.js");
|
|
5
6
|
var api = require("../../../script/api.js");
|
|
6
7
|
var batch = require("../../../../hooks/batch.js");
|
|
7
8
|
const useViewAllColumnState = (props, emit) => {
|
|
@@ -111,7 +112,6 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
111
112
|
where: ["state:15|19"]
|
|
112
113
|
};
|
|
113
114
|
params.where.push(props.typeKey);
|
|
114
|
-
console.log(filter.value, "888888");
|
|
115
115
|
if (filter.value) {
|
|
116
116
|
const _filter = filter.value;
|
|
117
117
|
params.order = _filter.order;
|
|
@@ -125,11 +125,11 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
125
125
|
try {
|
|
126
126
|
let response;
|
|
127
127
|
if (props.typeKey && props.typeKey !== "ZQ") {
|
|
128
|
-
response = await api.getCategoryMediaNew(
|
|
128
|
+
response = await api.getCategoryMediaNew(config.DEFAULT_BASE_API, params);
|
|
129
129
|
} else {
|
|
130
130
|
params.keyword = ((_a = filter.value) == null ? void 0 : _a.precise_kw) || ((_b = filter.value) == null ? void 0 : _b.keywords) || "";
|
|
131
131
|
params.state = 2;
|
|
132
|
-
response = await api.getPoliticals(
|
|
132
|
+
response = await api.getPoliticals(config.DEFAULT_BASE_API, params);
|
|
133
133
|
}
|
|
134
134
|
const { code, message } = response;
|
|
135
135
|
if (code === 0) {
|
|
@@ -154,7 +154,7 @@ const useViewAllColumnState = (props, emit) => {
|
|
|
154
154
|
};
|
|
155
155
|
const loadMore = async (record, done) => {
|
|
156
156
|
try {
|
|
157
|
-
const res = await api.getMlists(
|
|
157
|
+
const res = await api.getMlists(config.DEFAULT_BASE_API, {
|
|
158
158
|
rid: props.rid,
|
|
159
159
|
gid: record.special_id
|
|
160
160
|
});
|