st-comp 0.0.130 → 0.0.131

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.130",
4
+ "version": "0.0.131",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -151,8 +151,7 @@ watch(
151
151
  defineExpose({
152
152
  // 生成接口传参结构的数据
153
153
  formatData: (data) => {
154
- console.log("%c[品种池搜索聚合组件]: 正在校验并生成接口传参...", "color: tomato");
155
- let validateFlag = true;
154
+ console.log("%c[品种池搜索聚合组件]: 正在生成接口传参...", "color: tomato");
156
155
  const params = {};
157
156
  // 1.品种市场
158
157
  if (data.varietyMarket) {
@@ -176,13 +175,8 @@ defineExpose({
176
175
  const { type, jcList } = jcTranslate;
177
176
  switch (type) {
178
177
  case 1: {
179
- if (!jcList || jcList.length === 0) {
180
- ElMessage.warning("启用品种转价差功能时, 请至少选择一项价差品种");
181
- validateFlag = false;
182
- } else {
183
- params.translateType = 1;
184
- params.jcType = jcList.join(",");
185
- }
178
+ params.translateType = 1;
179
+ params.jcType = jcList.join(",");
186
180
  break;
187
181
  }
188
182
  case 2: {
@@ -411,7 +405,7 @@ defineExpose({
411
405
  }
412
406
  }
413
407
  console.log("%c[品种池搜索聚合组件]: 接口传参数据生成完毕", "color: green", params);
414
- return { validateFlag, params };
408
+ return params;
415
409
  },
416
410
  // 重置函数
417
411
  reset: () => {