@cmstops/pro-compo 0.1.25 → 0.1.26

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.
@@ -103,7 +103,6 @@ async function routeMap(BASE_API, rid = getRID(), listType, app = null) {
103
103
  window.open(`${origin}/#/popManagement/${rid}`, "_blank");
104
104
  return;
105
105
  }
106
- console.log(`/media/enterprisepublish/${rid}`);
107
106
  window.open(`${origin}/#/media/enterprisepublish/${rid}`, "_blank");
108
107
  }
109
108
  export { routeMap as default };
@@ -72,8 +72,6 @@ const _sfc_main = defineComponent({
72
72
  });
73
73
  render.value = true;
74
74
  form.value = _form;
75
- console.log("_form", _form);
76
- console.log("columnsMap", columnsMap);
77
75
  };
78
76
  const formMatte = (_form) => {
79
77
  Object.keys(_form).forEach((key) => {
@@ -118,7 +116,6 @@ const _sfc_main = defineComponent({
118
116
  watch(
119
117
  () => form.value,
120
118
  () => {
121
- console.log("watch form", form.value);
122
119
  emit("search", formMatte(toRaw({ ...form.value })));
123
120
  },
124
121
  { deep: true }
@@ -39,27 +39,28 @@ const _sfc_main = defineComponent({
39
39
  return null;
40
40
  return res.data[0].thumb;
41
41
  });
42
+ const payload = computed(() => {
43
+ if (!props.item)
44
+ return null;
45
+ const _item = typeof props.item === "string" ? JSON.parse(props.item) : props.item;
46
+ return _item.payload;
47
+ });
42
48
  const showValue = computed(() => {
43
- if (!props.item.payload)
49
+ const _payload = payload.value;
50
+ if (!_payload)
44
51
  return "";
45
52
  if (props.item.series === "category_list")
46
- return props.payload.rootAlias;
53
+ return _payload.rootAlias;
47
54
  if (props.item.series === "service")
48
- return props.payload.label;
55
+ return _payload.label;
49
56
  if (props.item.series === "document")
50
- return props.payload.title;
57
+ return _payload.title;
51
58
  if (props.item.series === "url")
52
- return props.payload.relation_url;
59
+ return _payload.relation_url;
53
60
  if (props.item.series === "app")
54
- return props.payload.label;
61
+ return _payload.label;
55
62
  return "";
56
63
  });
57
- computed(() => {
58
- if (!props.item.payload)
59
- return null;
60
- const _payload = typeof props.item.payload === "string" ? JSON.parse(props.item.payload) : props.item.payload;
61
- return _payload;
62
- });
63
64
  const clickTitle = () => {
64
65
  emit("clickTitle", props.item);
65
66
  };
@@ -38,7 +38,6 @@ const _sfc_main = defineComponent({
38
38
  setData();
39
39
  }
40
40
  } catch (error) {
41
- console.log(error);
42
41
  }
43
42
  };
44
43
  const setData = async () => {
@@ -50,7 +50,6 @@ const _sfc_main = defineComponent({
50
50
  approval_retrial: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5BA1\u6838\u88AB\u9A73\u56DE\u91CD\u5BA1" }
51
51
  });
52
52
  const openApprovalDetail = (msg) => {
53
- console.log(msg);
54
53
  };
55
54
  const handleScroll = (e) => {
56
55
  e && e.stopPropagation();
@@ -106,7 +106,6 @@ const _sfc_main = defineComponent({
106
106
  });
107
107
  }
108
108
  if (props.mode === "smiple") {
109
- console.log(temp);
110
109
  emit("update:dataValue", ((_a = temp.data[0]) == null ? void 0 : _a.url) || "");
111
110
  } else {
112
111
  if (!temp.data) {
@@ -54,7 +54,6 @@ const _sfc_main = defineComponent({
54
54
  { rid: 4, dirId: 0, url: uploadRet.url },
55
55
  baseApi.value,
56
56
  (data) => {
57
- console.log(data);
58
57
  }
59
58
  );
60
59
  return true;
@@ -87,7 +87,6 @@ const _sfc_main = defineComponent({
87
87
  templateDict.set(item.id, item);
88
88
  });
89
89
  } catch (e) {
90
- console.log(e);
91
90
  }
92
91
  };
93
92
  const handleClose = () => {
@@ -14,7 +14,6 @@ function request(BASE_API, options) {
14
14
  return config;
15
15
  },
16
16
  (error) => {
17
- console.log(error);
18
17
  return Promise.reject(error);
19
18
  }
20
19
  );
@@ -27,7 +26,6 @@ function request(BASE_API, options) {
27
26
  return res;
28
27
  },
29
28
  (error) => {
30
- console.log(`err${error}`);
31
29
  return Promise.reject(error);
32
30
  }
33
31
  );
@@ -9,7 +9,6 @@ function uploadByTUS(file, progressCallback) {
9
9
  xhr.withCredentials = true;
10
10
  },
11
11
  onError: (error) => {
12
- console.log(error);
13
12
  reject(error);
14
13
  },
15
14
  onProgress: (bytesSent, bytesTotal) => {
@@ -24,7 +23,6 @@ function uploadByTUS(file, progressCallback) {
24
23
  }
25
24
  function uploadConfig(file) {
26
25
  const fType = getFileType(file);
27
- console.log(DEFAULT_UPLOAD_URL);
28
26
  return {
29
27
  endpoint: DEFAULT_UPLOAD_URL,
30
28
  chunkSize: DEFAULT_UPLOAD_CHUNK_SIZE,
@@ -104,7 +104,6 @@ async function routeMap(BASE_API, rid = auth.getRID(), listType, app = null) {
104
104
  window.open(`${origin}/#/popManagement/${rid}`, "_blank");
105
105
  return;
106
106
  }
107
- console.log(`/media/enterprisepublish/${rid}`);
108
107
  window.open(`${origin}/#/media/enterprisepublish/${rid}`, "_blank");
109
108
  }
110
109
  module.exports = routeMap;
@@ -73,8 +73,6 @@ const _sfc_main = vue.defineComponent({
73
73
  });
74
74
  render.value = true;
75
75
  form.value = _form;
76
- console.log("_form", _form);
77
- console.log("columnsMap", columnsMap);
78
76
  };
79
77
  const formMatte = (_form) => {
80
78
  Object.keys(_form).forEach((key) => {
@@ -119,7 +117,6 @@ const _sfc_main = vue.defineComponent({
119
117
  vue.watch(
120
118
  () => form.value,
121
119
  () => {
122
- console.log("watch form", form.value);
123
120
  emit("search", formMatte(vue.toRaw({ ...form.value })));
124
121
  },
125
122
  { deep: true }
@@ -40,27 +40,28 @@ const _sfc_main = vue.defineComponent({
40
40
  return null;
41
41
  return res.data[0].thumb;
42
42
  });
43
+ const payload = vue.computed(() => {
44
+ if (!props.item)
45
+ return null;
46
+ const _item = typeof props.item === "string" ? JSON.parse(props.item) : props.item;
47
+ return _item.payload;
48
+ });
43
49
  const showValue = vue.computed(() => {
44
- if (!props.item.payload)
50
+ const _payload = payload.value;
51
+ if (!_payload)
45
52
  return "";
46
53
  if (props.item.series === "category_list")
47
- return props.payload.rootAlias;
54
+ return _payload.rootAlias;
48
55
  if (props.item.series === "service")
49
- return props.payload.label;
56
+ return _payload.label;
50
57
  if (props.item.series === "document")
51
- return props.payload.title;
58
+ return _payload.title;
52
59
  if (props.item.series === "url")
53
- return props.payload.relation_url;
60
+ return _payload.relation_url;
54
61
  if (props.item.series === "app")
55
- return props.payload.label;
62
+ return _payload.label;
56
63
  return "";
57
64
  });
58
- vue.computed(() => {
59
- if (!props.item.payload)
60
- return null;
61
- const _payload = typeof props.item.payload === "string" ? JSON.parse(props.item.payload) : props.item.payload;
62
- return _payload;
63
- });
64
65
  const clickTitle = () => {
65
66
  emit("clickTitle", props.item);
66
67
  };
@@ -39,7 +39,6 @@ const _sfc_main = vue.defineComponent({
39
39
  setData();
40
40
  }
41
41
  } catch (error) {
42
- console.log(error);
43
42
  }
44
43
  };
45
44
  const setData = async () => {
@@ -51,7 +51,6 @@ const _sfc_main = vue.defineComponent({
51
51
  approval_retrial: { label: "\u60A8\u63D0\u4EA4\u4E86\u4E00\u9879\u5185\u5BB9\u5BA1\u6838\u88AB\u9A73\u56DE\u91CD\u5BA1" }
52
52
  });
53
53
  const openApprovalDetail = (msg) => {
54
- console.log(msg);
55
54
  };
56
55
  const handleScroll = (e) => {
57
56
  e && e.stopPropagation();
@@ -107,7 +107,6 @@ const _sfc_main = vue.defineComponent({
107
107
  });
108
108
  }
109
109
  if (props.mode === "smiple") {
110
- console.log(temp);
111
110
  emit("update:dataValue", ((_a = temp.data[0]) == null ? void 0 : _a.url) || "");
112
111
  } else {
113
112
  if (!temp.data) {
@@ -55,7 +55,6 @@ const _sfc_main = vue.defineComponent({
55
55
  { rid: 4, dirId: 0, url: uploadRet.url },
56
56
  baseApi.value,
57
57
  (data) => {
58
- console.log(data);
59
58
  }
60
59
  );
61
60
  return true;
@@ -88,7 +88,6 @@ const _sfc_main = vue.defineComponent({
88
88
  templateDict.set(item.id, item);
89
89
  });
90
90
  } catch (e) {
91
- console.log(e);
92
91
  }
93
92
  };
94
93
  const handleClose = () => {
@@ -19,7 +19,6 @@ function request(BASE_API, options) {
19
19
  return config;
20
20
  },
21
21
  (error) => {
22
- console.log(error);
23
22
  return Promise.reject(error);
24
23
  }
25
24
  );
@@ -32,7 +31,6 @@ function request(BASE_API, options) {
32
31
  return res;
33
32
  },
34
33
  (error) => {
35
- console.log(`err${error}`);
36
34
  return Promise.reject(error);
37
35
  }
38
36
  );
@@ -32,7 +32,6 @@ function uploadByTUS(file, progressCallback) {
32
32
  xhr.withCredentials = true;
33
33
  },
34
34
  onError: (error) => {
35
- console.log(error);
36
35
  reject(error);
37
36
  },
38
37
  onProgress: (bytesSent, bytesTotal) => {
@@ -47,7 +46,6 @@ function uploadByTUS(file, progressCallback) {
47
46
  }
48
47
  function uploadConfig(file) {
49
48
  const fType = getFileType(file);
50
- console.log(config.DEFAULT_UPLOAD_URL);
51
49
  return {
52
50
  endpoint: config.DEFAULT_UPLOAD_URL,
53
51
  chunkSize: config.DEFAULT_UPLOAD_CHUNK_SIZE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",