@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.
- package/es/appCenter/script/routeMap.js +0 -1
- package/es/baseFilter/component.js +0 -3
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +13 -12
- package/es/messageBox/component.js +0 -1
- package/es/messageBox/list.js +0 -1
- package/es/selectThumb/component.js +0 -1
- package/es/uploadBefore/component.js +0 -1
- package/es/uploadBefore/components/UploadBefore.js +0 -1
- package/es/utils/request.js +0 -2
- package/es/utils/tusUpload.js +0 -2
- package/lib/appCenter/script/routeMap.js +0 -1
- package/lib/baseFilter/component.js +0 -3
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +13 -12
- package/lib/messageBox/component.js +0 -1
- package/lib/messageBox/list.js +0 -1
- package/lib/selectThumb/component.js +0 -1
- package/lib/uploadBefore/component.js +0 -1
- package/lib/uploadBefore/components/UploadBefore.js +0 -1
- package/lib/utils/request.js +0 -2
- package/lib/utils/tusUpload.js +0 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
49
|
+
const _payload = payload.value;
|
|
50
|
+
if (!_payload)
|
|
44
51
|
return "";
|
|
45
52
|
if (props.item.series === "category_list")
|
|
46
|
-
return
|
|
53
|
+
return _payload.rootAlias;
|
|
47
54
|
if (props.item.series === "service")
|
|
48
|
-
return
|
|
55
|
+
return _payload.label;
|
|
49
56
|
if (props.item.series === "document")
|
|
50
|
-
return
|
|
57
|
+
return _payload.title;
|
|
51
58
|
if (props.item.series === "url")
|
|
52
|
-
return
|
|
59
|
+
return _payload.relation_url;
|
|
53
60
|
if (props.item.series === "app")
|
|
54
|
-
return
|
|
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
|
};
|
package/es/messageBox/list.js
CHANGED
|
@@ -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();
|
package/es/utils/request.js
CHANGED
|
@@ -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
|
);
|
package/es/utils/tusUpload.js
CHANGED
|
@@ -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
|
-
|
|
50
|
+
const _payload = payload.value;
|
|
51
|
+
if (!_payload)
|
|
45
52
|
return "";
|
|
46
53
|
if (props.item.series === "category_list")
|
|
47
|
-
return
|
|
54
|
+
return _payload.rootAlias;
|
|
48
55
|
if (props.item.series === "service")
|
|
49
|
-
return
|
|
56
|
+
return _payload.label;
|
|
50
57
|
if (props.item.series === "document")
|
|
51
|
-
return
|
|
58
|
+
return _payload.title;
|
|
52
59
|
if (props.item.series === "url")
|
|
53
|
-
return
|
|
60
|
+
return _payload.relation_url;
|
|
54
61
|
if (props.item.series === "app")
|
|
55
|
-
return
|
|
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
|
};
|
package/lib/messageBox/list.js
CHANGED
|
@@ -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();
|
package/lib/utils/request.js
CHANGED
|
@@ -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
|
);
|
package/lib/utils/tusUpload.js
CHANGED
|
@@ -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,
|