ai-component-bwx 0.0.28 → 0.0.30
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/dist/ai-component-bwx.common.js +420 -248
- package/dist/ai-component-bwx.common.js.map +1 -1
- package/dist/ai-component-bwx.css +1 -1
- package/dist/ai-component-bwx.umd.js +420 -248
- package/dist/ai-component-bwx.umd.js.map +1 -1
- package/dist/ai-component-bwx.umd.min.js +3 -3
- package/dist/ai-component-bwx.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -339,6 +339,13 @@ setToStringTag(Math, 'Math', true);
|
|
|
339
339
|
setToStringTag(global.JSON, 'JSON', true);
|
|
340
340
|
|
|
341
341
|
|
|
342
|
+
/***/ }),
|
|
343
|
+
|
|
344
|
+
/***/ "036e":
|
|
345
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
346
|
+
|
|
347
|
+
// extracted by mini-css-extract-plugin
|
|
348
|
+
|
|
342
349
|
/***/ }),
|
|
343
350
|
|
|
344
351
|
/***/ "0395":
|
|
@@ -367,10 +374,14 @@ module.exports.f = function getOwnPropertyNames(it) {
|
|
|
367
374
|
|
|
368
375
|
/***/ }),
|
|
369
376
|
|
|
370
|
-
/***/ "
|
|
371
|
-
/***/ (function(module,
|
|
377
|
+
/***/ "0521":
|
|
378
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
379
|
+
|
|
380
|
+
"use strict";
|
|
381
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f578");
|
|
382
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
383
|
+
/* unused harmony reexport * */
|
|
372
384
|
|
|
373
|
-
// extracted by mini-css-extract-plugin
|
|
374
385
|
|
|
375
386
|
/***/ }),
|
|
376
387
|
|
|
@@ -539,6 +550,13 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
539
550
|
module.exports = Axios;
|
|
540
551
|
|
|
541
552
|
|
|
553
|
+
/***/ }),
|
|
554
|
+
|
|
555
|
+
/***/ "0d55":
|
|
556
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
557
|
+
|
|
558
|
+
// extracted by mini-css-extract-plugin
|
|
559
|
+
|
|
542
560
|
/***/ }),
|
|
543
561
|
|
|
544
562
|
/***/ "0df6":
|
|
@@ -1186,17 +1204,6 @@ module.exports = function bind(fn, thisArg) {
|
|
|
1186
1204
|
};
|
|
1187
1205
|
|
|
1188
1206
|
|
|
1189
|
-
/***/ }),
|
|
1190
|
-
|
|
1191
|
-
/***/ "1e96":
|
|
1192
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1193
|
-
|
|
1194
|
-
"use strict";
|
|
1195
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_76f1332e_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a32c");
|
|
1196
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_76f1332e_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_76f1332e_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
1197
|
-
/* unused harmony reexport * */
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
1207
|
/***/ }),
|
|
1201
1208
|
|
|
1202
1209
|
/***/ "1ec9":
|
|
@@ -1211,6 +1218,17 @@ module.exports = function (it) {
|
|
|
1211
1218
|
};
|
|
1212
1219
|
|
|
1213
1220
|
|
|
1221
|
+
/***/ }),
|
|
1222
|
+
|
|
1223
|
+
/***/ "1ff2":
|
|
1224
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1225
|
+
|
|
1226
|
+
"use strict";
|
|
1227
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_05cb4ad5_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bbee");
|
|
1228
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_05cb4ad5_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_05cb4ad5_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
1229
|
+
/* unused harmony reexport * */
|
|
1230
|
+
|
|
1231
|
+
|
|
1214
1232
|
/***/ }),
|
|
1215
1233
|
|
|
1216
1234
|
/***/ "21a6":
|
|
@@ -1391,17 +1409,6 @@ module.exports = function (it) {
|
|
|
1391
1409
|
};
|
|
1392
1410
|
|
|
1393
1411
|
|
|
1394
|
-
/***/ }),
|
|
1395
|
-
|
|
1396
|
-
/***/ "28b0":
|
|
1397
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1398
|
-
|
|
1399
|
-
"use strict";
|
|
1400
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_5aa33b0f_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f6f9");
|
|
1401
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_5aa33b0f_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_5aa33b0f_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
1402
|
-
/* unused harmony reexport * */
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
1412
|
/***/ }),
|
|
1406
1413
|
|
|
1407
1414
|
/***/ "294c":
|
|
@@ -1993,13 +2000,6 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
1993
2000
|
};
|
|
1994
2001
|
|
|
1995
2002
|
|
|
1996
|
-
/***/ }),
|
|
1997
|
-
|
|
1998
|
-
/***/ "2df1":
|
|
1999
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2000
|
-
|
|
2001
|
-
// extracted by mini-css-extract-plugin
|
|
2002
|
-
|
|
2003
2003
|
/***/ }),
|
|
2004
2004
|
|
|
2005
2005
|
/***/ "2e67":
|
|
@@ -2220,17 +2220,6 @@ module.exports = __webpack_require__("8e60") ? function (object, key, value) {
|
|
|
2220
2220
|
};
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
/***/ }),
|
|
2224
|
-
|
|
2225
|
-
/***/ "3675":
|
|
2226
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2227
|
-
|
|
2228
|
-
"use strict";
|
|
2229
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_76f1332e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2df1");
|
|
2230
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_76f1332e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_76f1332e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
2231
|
-
/* unused harmony reexport * */
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
2223
|
/***/ }),
|
|
2235
2224
|
|
|
2236
2225
|
/***/ "36c3":
|
|
@@ -2371,17 +2360,6 @@ module.exports = (
|
|
|
2371
2360
|
);
|
|
2372
2361
|
|
|
2373
2362
|
|
|
2374
|
-
/***/ }),
|
|
2375
|
-
|
|
2376
|
-
/***/ "3968":
|
|
2377
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2378
|
-
|
|
2379
|
-
"use strict";
|
|
2380
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_ba98e436_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0766");
|
|
2381
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_ba98e436_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_ba98e436_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
2382
|
-
/* unused harmony reexport * */
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
2363
|
/***/ }),
|
|
2386
2364
|
|
|
2387
2365
|
/***/ "3a38":
|
|
@@ -5049,13 +5027,6 @@ exports.default = PopupManager;
|
|
|
5049
5027
|
|
|
5050
5028
|
/***/ }),
|
|
5051
5029
|
|
|
5052
|
-
/***/ "4cd1":
|
|
5053
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5054
|
-
|
|
5055
|
-
// extracted by mini-css-extract-plugin
|
|
5056
|
-
|
|
5057
|
-
/***/ }),
|
|
5058
|
-
|
|
5059
5030
|
/***/ "4e4b":
|
|
5060
5031
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5061
5032
|
|
|
@@ -20956,6 +20927,17 @@ module.exports = function (key) {
|
|
|
20956
20927
|
};
|
|
20957
20928
|
|
|
20958
20929
|
|
|
20930
|
+
/***/ }),
|
|
20931
|
+
|
|
20932
|
+
/***/ "5803":
|
|
20933
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20934
|
+
|
|
20935
|
+
"use strict";
|
|
20936
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0d55");
|
|
20937
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
20938
|
+
/* unused harmony reexport * */
|
|
20939
|
+
|
|
20940
|
+
|
|
20959
20941
|
/***/ }),
|
|
20960
20942
|
|
|
20961
20943
|
/***/ "584a":
|
|
@@ -66973,6 +66955,13 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
|
66973
66955
|
}
|
|
66974
66956
|
|
|
66975
66957
|
|
|
66958
|
+
/***/ }),
|
|
66959
|
+
|
|
66960
|
+
/***/ "6d84":
|
|
66961
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
66962
|
+
|
|
66963
|
+
// extracted by mini-css-extract-plugin
|
|
66964
|
+
|
|
66976
66965
|
/***/ }),
|
|
66977
66966
|
|
|
66978
66967
|
/***/ "6dd8":
|
|
@@ -67911,17 +67900,6 @@ var index = (function () {
|
|
|
67911
67900
|
|
|
67912
67901
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
67913
67902
|
|
|
67914
|
-
/***/ }),
|
|
67915
|
-
|
|
67916
|
-
/***/ "6e52":
|
|
67917
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
67918
|
-
|
|
67919
|
-
"use strict";
|
|
67920
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_ba98e436_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b888");
|
|
67921
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_ba98e436_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_ba98e436_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
67922
|
-
/* unused harmony reexport * */
|
|
67923
|
-
|
|
67924
|
-
|
|
67925
67903
|
/***/ }),
|
|
67926
67904
|
|
|
67927
67905
|
/***/ "71c1":
|
|
@@ -68059,6 +68037,13 @@ exports.default = aria.Dialog;
|
|
|
68059
68037
|
|
|
68060
68038
|
/***/ }),
|
|
68061
68039
|
|
|
68040
|
+
/***/ "759f":
|
|
68041
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
68042
|
+
|
|
68043
|
+
// extracted by mini-css-extract-plugin
|
|
68044
|
+
|
|
68045
|
+
/***/ }),
|
|
68046
|
+
|
|
68062
68047
|
/***/ "765d":
|
|
68063
68048
|
/***/ (function(module, exports, __webpack_require__) {
|
|
68064
68049
|
|
|
@@ -70219,6 +70204,17 @@ module.exports = Array.isArray || function isArray(arg) {
|
|
|
70219
70204
|
module.exports = __webpack_require__("35e8");
|
|
70220
70205
|
|
|
70221
70206
|
|
|
70207
|
+
/***/ }),
|
|
70208
|
+
|
|
70209
|
+
/***/ "9226":
|
|
70210
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
70211
|
+
|
|
70212
|
+
"use strict";
|
|
70213
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_lessonPlanTemplateDialog_vue_vue_type_style_index_0_id_3174601c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("036e");
|
|
70214
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_lessonPlanTemplateDialog_vue_vue_type_style_index_0_id_3174601c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_lessonPlanTemplateDialog_vue_vue_type_style_index_0_id_3174601c_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
70215
|
+
/* unused harmony reexport * */
|
|
70216
|
+
|
|
70217
|
+
|
|
70222
70218
|
/***/ }),
|
|
70223
70219
|
|
|
70224
70220
|
/***/ "92fa":
|
|
@@ -71862,13 +71858,6 @@ Schema.messages = messages_messages;
|
|
|
71862
71858
|
|
|
71863
71859
|
/***/ }),
|
|
71864
71860
|
|
|
71865
|
-
/***/ "a32c":
|
|
71866
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
71867
|
-
|
|
71868
|
-
// extracted by mini-css-extract-plugin
|
|
71869
|
-
|
|
71870
|
-
/***/ }),
|
|
71871
|
-
|
|
71872
71861
|
/***/ "a3c3":
|
|
71873
71862
|
/***/ (function(module, exports, __webpack_require__) {
|
|
71874
71863
|
|
|
@@ -72275,10 +72264,14 @@ module.exports = function xhrAdapter(config) {
|
|
|
72275
72264
|
|
|
72276
72265
|
/***/ }),
|
|
72277
72266
|
|
|
72278
|
-
/***/ "
|
|
72279
|
-
/***/ (function(module,
|
|
72267
|
+
/***/ "b811":
|
|
72268
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72269
|
+
|
|
72270
|
+
"use strict";
|
|
72271
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6d84");
|
|
72272
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
72273
|
+
/* unused harmony reexport * */
|
|
72280
72274
|
|
|
72281
|
-
// extracted by mini-css-extract-plugin
|
|
72282
72275
|
|
|
72283
72276
|
/***/ }),
|
|
72284
72277
|
|
|
@@ -72288,6 +72281,13 @@ module.exports = function xhrAdapter(config) {
|
|
|
72288
72281
|
module.exports = true;
|
|
72289
72282
|
|
|
72290
72283
|
|
|
72284
|
+
/***/ }),
|
|
72285
|
+
|
|
72286
|
+
/***/ "bbee":
|
|
72287
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
72288
|
+
|
|
72289
|
+
// extracted by mini-css-extract-plugin
|
|
72290
|
+
|
|
72291
72291
|
/***/ }),
|
|
72292
72292
|
|
|
72293
72293
|
/***/ "bc3a":
|
|
@@ -72326,6 +72326,17 @@ exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescript
|
|
|
72326
72326
|
module.exports = __webpack_require__("d4af");
|
|
72327
72327
|
|
|
72328
72328
|
|
|
72329
|
+
/***/ }),
|
|
72330
|
+
|
|
72331
|
+
/***/ "c154":
|
|
72332
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72333
|
+
|
|
72334
|
+
"use strict";
|
|
72335
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("759f");
|
|
72336
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
72337
|
+
/* unused harmony reexport * */
|
|
72338
|
+
|
|
72339
|
+
|
|
72329
72340
|
/***/ }),
|
|
72330
72341
|
|
|
72331
72342
|
/***/ "c207":
|
|
@@ -79543,6 +79554,13 @@ src_radio.install = function (Vue) {
|
|
|
79543
79554
|
|
|
79544
79555
|
/***/ }),
|
|
79545
79556
|
|
|
79557
|
+
/***/ "f578":
|
|
79558
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
79559
|
+
|
|
79560
|
+
// extracted by mini-css-extract-plugin
|
|
79561
|
+
|
|
79562
|
+
/***/ }),
|
|
79563
|
+
|
|
79546
79564
|
/***/ "f6b4":
|
|
79547
79565
|
/***/ (function(module, exports, __webpack_require__) {
|
|
79548
79566
|
|
|
@@ -79603,13 +79621,6 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
79603
79621
|
module.exports = InterceptorManager;
|
|
79604
79622
|
|
|
79605
79623
|
|
|
79606
|
-
/***/ }),
|
|
79607
|
-
|
|
79608
|
-
/***/ "f6f9":
|
|
79609
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
79610
|
-
|
|
79611
|
-
// extracted by mini-css-extract-plugin
|
|
79612
|
-
|
|
79613
79624
|
/***/ }),
|
|
79614
79625
|
|
|
79615
79626
|
/***/ "f772":
|
|
@@ -79678,23 +79689,23 @@ if (typeof window !== 'undefined') {
|
|
|
79678
79689
|
// Indicate to webpack that this file can be concatenated
|
|
79679
79690
|
/* harmony default export */ var setPublicPath = (null);
|
|
79680
79691
|
|
|
79681
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/banwoxueAgentComponent.vue?vue&type=template&id=
|
|
79682
|
-
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"height":"400vh"}},[(_vm.AiShow)?_c('div',{ref:"banwoxueAgentComponent",staticClass:"banwoxueAgentComponent"},[_c('div',{staticClass:"close",on:{"click":function($event){_vm.AiShow = !_vm.AiShow}}},[_vm._v("✕")]),(!_vm.isGuest)?_c('div',{staticClass:"left_dialogueList",class:{ collapsed: _vm.isSidebarCollapsed }},[_c('div',{staticClass:"sidebar-toggle",on:{"click":_vm.toggleSidebar}},[_c('i',{class:_vm.isSidebarCollapsed ? 'el-icon-arrow-right' : 'el-icon-arrow-left'})]),_c('transition',{attrs:{"mode":"out-in","name":"slide-fade"}},[_c('dialogueList',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSidebarCollapsed),expression:"!isSidebarCollapsed"}],attrs:{"modelList":_vm.modelList}})],1)],1):_vm._e(),_c('div',{staticClass:"draw-content"},[(!_vm.chatShow)?_c('div',{staticClass:"moxing"},[_c('popularAndCommand')],1):_vm._e(),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[(_vm.chatShow)?_c('div',{staticClass:"chat"},[_c('chat',{ref:"chat",attrs:{"chatType":1,"messageListData":_vm.messageListData,"sideCurrentId":_vm.sideCurrentId,"sideCurrentName":_vm.sideCurrentName},on:{"openLessonSidebar":_vm.handleOpenLessonSidebar,"openPptSidebar":_vm.handleOpenPptSidebar}})],1):_vm._e()]),_c('div',{staticClass:"foot"},[_c('div',{staticClass:"inputField"},[_c('div',{staticClass:"function-buttons"},_vm._l((_vm.planList),function(i){return _c('div',{key:i.id,staticClass:"ai-btnja",class:{ active: _vm.selectedButton === i.id },on:{"click":function($event){return _vm.handleChange(i)}}},[_vm._v(" "+_vm._s(i.title)+" ")])}),0),(_vm.selectedButton == 1)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 1)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI教案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的教案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlan}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])]):(_vm.selectedButton == 2)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 2)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI PPT ")]),_c('span',[_vm._v("帮我生成PPT,主题为")]),_c('span',{ref:"PPTTitle",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[PPT主题]"}}),_c('span',[_vm._v("。")]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanPPT}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])]):(_vm.selectedButton == 3)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 3)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI学案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的学案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanAi}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])]):_c('div',{staticClass:"input-container",staticStyle:{"position":"relative","display":"inline-block"}},[_c('el-input',{ref:"input",style:({ resize: 'none' }),attrs:{"disabled":_vm.voice,"placeholder":_vm.placeholder,"rows":2,"type":"textarea"},nativeOn:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handleEnterKey.apply(null, arguments)}},model:{value:(_vm.userInput),callback:function ($$v) {_vm.userInput=$$v},expression:"userInput"}}),_c('div',{staticClass:"send",staticStyle:{"position":"absolute","right":"
|
|
79692
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/banwoxueAgentComponent.vue?vue&type=template&id=05cb4ad5&scoped=true
|
|
79693
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"height":"400vh"}},[(_vm.AiShow)?_c('div',{ref:"banwoxueAgentComponent",staticClass:"banwoxueAgentComponent"},[_c('div',{staticClass:"close",on:{"click":function($event){_vm.AiShow = !_vm.AiShow}}},[_vm._v("✕")]),(!_vm.isGuest)?_c('div',{staticClass:"left_dialogueList",class:{ collapsed: _vm.isSidebarCollapsed }},[_c('div',{staticClass:"sidebar-toggle",on:{"click":_vm.toggleSidebar}},[_c('i',{class:_vm.isSidebarCollapsed ? 'el-icon-arrow-right' : 'el-icon-arrow-left'})]),_c('transition',{attrs:{"mode":"out-in","name":"slide-fade"}},[_c('dialogueList',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSidebarCollapsed),expression:"!isSidebarCollapsed"}],attrs:{"modelList":_vm.modelList}})],1)],1):_vm._e(),_c('div',{staticClass:"draw-content"},[(!_vm.chatShow)?_c('div',{staticClass:"moxing"},[_c('popularAndCommand')],1):_vm._e(),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[(_vm.chatShow)?_c('div',{staticClass:"chat"},[_c('chat',{ref:"chat",attrs:{"chatType":1,"messageListData":_vm.messageListData,"sideCurrentId":_vm.sideCurrentId,"sideCurrentName":_vm.sideCurrentName},on:{"openLessonSidebar":_vm.handleOpenLessonSidebar,"openPptSidebar":_vm.handleOpenPptSidebar}})],1):_vm._e()]),_c('div',{staticClass:"foot"},[_c('div',{staticClass:"inputField"},[_c('div',{staticClass:"function-buttons"},_vm._l((_vm.planList),function(i){return _c('div',{key:i.id,staticClass:"ai-btnja",class:{ active: _vm.selectedButton === i.id },on:{"click":function($event){return _vm.handleChange(i)}}},[_vm._v(" "+_vm._s(i.title)+" ")])}),0),(_vm.selectedButton == 1)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 1)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI教案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的教案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),(_vm.fileList.length)?_c('div',{staticClass:"file-list"},_vm._l((_vm.fileList),function(file,index){return _c('div',{key:index,staticClass:"file-item"},[_c('span',{staticClass:"file-category"},[_vm._v(_vm._s(file.category))]),_c('span',{staticClass:"file-name",attrs:{"title":file.name}},[_vm._v(_vm._s(file.name))]),_c('span',{staticClass:"file-delete",on:{"click":function($event){$event.stopPropagation();return _vm.removeFile(index)}}},[_vm._v("×")])])}),0):_vm._e(),_c('div',{staticClass:"template-actions"},[_c('button',{staticClass:"upload-btn",attrs:{"title":"上传附件"},on:{"click":function($event){return _vm.triggerUpload(1)}}},[_c('svg',{attrs:{"fill":"none","stroke":"#5b58e3","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}})]),_c('span',{staticClass:"upload-label"},[_vm._v("附件")])]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlan}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])])]):(_vm.selectedButton == 2)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 2)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI PPT ")]),_c('span',[_vm._v("帮我生成PPT,主题为")]),_c('span',{ref:"PPTTitle",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[PPT主题]"}}),_c('span',[_vm._v("。")]),_c('div',{staticClass:"template-actions"},[_c('button',{staticClass:"upload-btn",attrs:{"title":"上传附件(支持 .md/.doc/.docx/.pdf/.xmind/.mm/.txt)"},on:{"click":function($event){return _vm.triggerUpload(2)}}},[_c('svg',{attrs:{"fill":"none","stroke":"#5b58e3","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}})]),_c('span',{staticClass:"upload-label"},[_vm._v("附件")])]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanPPT}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])])]):(_vm.selectedButton == 3)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 3)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI学案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的学案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),(_vm.fileList.length)?_c('div',{staticClass:"file-list"},_vm._l((_vm.fileList),function(file,index){return _c('div',{key:index,staticClass:"file-item"},[_c('span',{staticClass:"file-category"},[_vm._v(_vm._s(file.category))]),_c('span',{staticClass:"file-name",attrs:{"title":file.name}},[_vm._v(_vm._s(file.name))]),_c('span',{staticClass:"file-delete",on:{"click":function($event){$event.stopPropagation();return _vm.removeFile(index)}}},[_vm._v("×")])])}),0):_vm._e(),_c('div',{staticClass:"template-actions"},[_c('button',{staticClass:"upload-btn",attrs:{"title":"上传附件"},on:{"click":function($event){return _vm.triggerUpload(3)}}},[_c('svg',{attrs:{"fill":"none","stroke":"#5b58e3","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}})]),_c('span',{staticClass:"upload-label"},[_vm._v("附件")])]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanAi}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])])]):_c('div',{staticClass:"input-container",staticStyle:{"position":"relative","display":"inline-block"}},[_c('el-input',{ref:"input",style:({ resize: 'none' }),attrs:{"disabled":_vm.voice,"placeholder":_vm.placeholder,"rows":2,"type":"textarea"},nativeOn:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handleEnterKey.apply(null, arguments)}},model:{value:(_vm.userInput),callback:function ($$v) {_vm.userInput=$$v},expression:"userInput"}}),_c('div',{staticClass:"send",staticStyle:{"position":"absolute","right":"20px","bottom":"11px"},on:{"click":_vm.handleEnterKey}},[_c('img',{attrs:{"alt":"发送","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])],1),_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"type":"file"},on:{"change":_vm.handleFileSelected}})]),_c('foot')],1)],1),(_vm.aiJaDrawer)?_c('div',{staticClass:"right-sidebar",attrs:{"id":"rightSidebar"}},[_c('JiaoAnContent',{attrs:{"content":_vm.content,"tableHtml":_vm.tableHtml}})],1):_vm._e(),(_vm.aiPptDrawer)?_c('div',{staticClass:"right-sidebar",attrs:{"id":"pptSidebar"}},[_c('PptContent',{attrs:{"images_url":_vm.images_url,"pptSections":_vm.pptSections},on:{"regenerate":_vm.handleRegeneratePpt}})],1):_vm._e(),_c('LessonPlanTemplateDialog',{attrs:{"visible":_vm.showTemplateDialog},on:{"update:visible":function($event){_vm.showTemplateDialog=$event},"template-selected":_vm.handleTemplateSelected}}),(_vm.showPptTemplateDialog)?_c('PptTemplateDialog',{on:{"template-selected":_vm.handlePptTemplateSelected}}):_vm._e()],1):_c('div',{staticClass:"logoShow",on:{"click":_vm.showAenget}},[_c('img',{attrs:{"src":_vm.agentArr,"alt":""}})])])
|
|
79683
79694
|
}
|
|
79684
79695
|
var staticRenderFns = []
|
|
79685
79696
|
|
|
79686
79697
|
|
|
79687
|
-
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=template&id=
|
|
79698
|
+
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=template&id=05cb4ad5&scoped=true
|
|
79688
79699
|
|
|
79689
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/chat.vue?vue&type=template&id=
|
|
79690
|
-
var
|
|
79700
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/chat.vue?vue&type=template&id=4f9aac34&scoped=true
|
|
79701
|
+
var chatvue_type_template_id_4f9aac34_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"contents"},[_c('div',{staticClass:"addDia"},[_c('div',{staticClass:"chat_window"},[_c('div',{staticClass:"conWindow"},[_c('div',{ref:"recordListRef",staticClass:"messageBox"},[_c('ul',{staticClass:"messages"},[_c('el-checkbox-group',{staticClass:"label-none",model:{value:(_vm.shareList),callback:function ($$v) {_vm.shareList=$$v},expression:"shareList"}},_vm._l((_vm.messageListData),function(item,index){return _c('div',{key:index},[_c('li',{staticClass:"list",class:item.role == 'user' ? 'user_message' : 'replay_message'},[(_vm.shareStatus && item.contentId && item.role != 'user')?_c('el-checkbox',{key:index,attrs:{"label":item.contentId + ',' + item.parentMsgId}}):_vm._e(),_c('div',{staticClass:"chatFrame"},[_c('div',{staticClass:"img"},[(item.role == 'user')?_c('img',{attrs:{"id":"user","alt":"","src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/user.png"}}):_c('img',{attrs:{"id":"gif","src":_vm.gifPath,"alt":""}})]),_c('div',{staticClass:"text-content"},[(item.typeId == 1 || _vm.getJaShow(item))?_c('div',{staticClass:"ai-content-card"},[_c('div',{staticClass:"card-prompt"},[_vm._v(_vm._s(_vm.getPromptText(item)))]),_c('div',{staticClass:"main-card"},[_c('div',{staticClass:"card-left"},[_c('div',{staticClass:"card-icon"},[_c('span',{staticClass:"icon-text"},[_vm._v("T")])]),_c('div',{staticClass:"card-info"},[_c('div',{staticClass:"card-title"},[_vm._v(_vm._s(_vm.getCardTitle(item)))]),_c('div',{staticClass:"card-status"},[_vm._v(_vm._s(item.status == 1 ? '无法预览中途停止的文档' : _vm.getItemLoadingStatus(item) ? '生成中...' : '已完成')+" ")])])]),(!_vm.getItemLoadingStatus(item))?_c('div',{staticClass:"card-actions"},[_c('button',{staticClass:"action-btn view-btn",attrs:{"title":"预览"},on:{"click":function($event){return _vm.previewContent(item)}}},[_c('i',{staticClass:"el-icon-view"})]),_c('button',{staticClass:"action-btn download-btn",attrs:{"title":"下载"},on:{"click":function($event){return _vm.openLessonSidebar(item)}}},[_c('i',{staticClass:"el-icon-download"})])]):_vm._e()]),_c('div',{staticClass:"card-prompt"},[_vm._v(_vm._s(_vm.getPromptLastText(item)))])]):(item.typeId == 2 || _vm.getPptShow(item))?_c('div',{staticClass:"ai-content-card"},[(_vm.tempAnswerStatus == 0)?_c('div',{staticClass:"card-prompt"},[_vm._v("为您生成PPT中,生成过程大约需要1分钟,请耐心等待~")]):_c('div',{staticClass:"card-prompt"},[_vm._v("PPT 已生成完成!点击下方按钮即可查看、下载或编辑。")]),_c('div',{staticClass:"main-card"},[_c('div',{staticClass:"card-left"},[_c('div',{staticClass:"card-icon"},[_c('span',{staticClass:"icon-text"},[_vm._v("P")])]),_c('div',{staticClass:"card-info"},[_c('div',{staticClass:"card-status"},[_vm._v(_vm._s(item.status == 1 ? '无法预览中途停止的文档' : item.status == 2 ? '已完成' : '生成中...')+" ")])])]),(item.status == 2)?_c('div',{staticClass:"card-actions"},[_c('button',{staticClass:"action-btn view-btn",attrs:{"title":"预览"},on:{"click":function($event){return _vm.pptPreviewContent(item)}}},[_c('i',{staticClass:"el-icon-view"})]),_c('button',{staticClass:"action-btn download-btn",attrs:{"title":"下载"},on:{"click":function($event){return _vm.pptDownload(item)}}},[_c('i',{staticClass:"el-icon-download"})])]):_vm._e()]),_c('div',{staticClass:"card-prompt"},[_vm._v(_vm._s(_vm.getPromptLastText(item)))])]):_c('div',[_c('div',{staticClass:"text",domProps:{"innerHTML":_vm._s(item.content || '暂无内容')}}),(item.files && item.files.length != 0)?_c('div',{staticClass:"file"},[_c('div',{staticClass:"file-title"},[_vm._v("附件:")]),_c('div',{staticClass:"file-content"},_vm._l((item.files),function(file,j){return _c('div',{key:j,staticClass:"files"},[_c('span',[_vm._v(_vm._s(_vm.getFileName(file)))])])}),0)]):_vm._e(),( false)?undefined:_vm._e()]),(item.role == 'assistant' && item.status == 1)?_c('div',{staticClass:"stopped"},[_vm._v("已停止生成")]):_vm._e()]),_c('div',{staticClass:"reloadAnswer"},[(_vm.tempAnswerStatus != 0 && !item.panelId && item.role == 'assistant')?_c('img',{attrs:{"alt":"复制","src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/fuzhi1.png","title":"复制"},on:{"click":function($event){return _vm.clickCopy(item.content)}}}):_vm._e(),(item.role == 'assistant' && item.contentId)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/zhongxintijiao1.png","title":"重新生成"},on:{"click":function($event){return _vm.ReloadAnswer(index, true, item)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType != 1 && !_vm.$parent.isGuest)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/dianzan1.png","title":"好评"},on:{"click":function($event){return _vm.showLikeOptions(index, $event)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType == 1)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/dianzan2.png","title":"好评"},on:{"click":function($event){return _vm.showLikeOptions(index)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType != 2 && !_vm.$parent.isGuest)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/chaping1.png","title":"差评"},on:{"click":function($event){return _vm.showDislikeModal(index)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType == 2)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/chaping2.png","title":"差评"},on:{"click":function($event){return _vm.showDislikeModal(index)}}}):_vm._e(),(index == _vm.messageListData.length - 1 && _vm.tempAnswerStatus == 0)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/zanting1.png","title":"停止输出"},on:{"click":function($event){return _vm.stopMessage(item)}}}):_vm._e()])])],1)])}),0),(_vm.chatSending)?_c('div',{staticClass:"loading-message"},[_c('div',{staticClass:"list replay_message"},[_c('div',{staticClass:"chatFrame"},[_c('div',{staticClass:"img"},[_c('img',{attrs:{"id":"gif","src":_vm.gifPath,"alt":""}})]),_vm._m(0)])])]):_vm._e()],1)]),(_vm.shareStatus)?_c('div',{staticClass:"button-option"},[_c('el-button',{on:{"click":_vm.cancleShare}},[_vm._v("取消")]),_c('el-button',{attrs:{"disabled":!_vm.shareList.length || _vm.apiLoading,"loading":_vm.apiLoading},on:{"click":_vm.showDialog}},[_vm._v("确定 ")])],1):_vm._e(),(_vm.likeOptionsVisible)?_c('div',{staticClass:"like-options-popup",style:(_vm.likePopupStyle)},[_c('div',{staticClass:"like-options-header"},[_c('span',{staticClass:"like-title"},[_vm._v("请选择好评类别")]),_c('i',{staticClass:"el-icon-close",on:{"click":_vm.confirmLikeOptions}})]),_c('div',{staticClass:"like-options-content"},[_c('div',{staticClass:"like-options-row"},_vm._l((_vm.LikeOption),function(i,j){return _c('div',{key:i.id,staticClass:"like-option",class:{ selected: _vm.selectedLikeOptions.includes(i.id) },on:{"click":function($event){return _vm.toggleLikeOption(i.id)}}},[_vm._v(" "+_vm._s(i.name)+" ")])}),0)])]):_vm._e(),(_vm.dislikeModalVisible)?_c('div',{staticClass:"dislike-modal-overlay",on:{"click":_vm.closeDislikeModal}},[_c('div',{staticClass:"dislike-modal",on:{"click":function($event){$event.stopPropagation();}}},[_vm._m(1),_c('div',{staticClass:"dislike-content"},[_c('div',{staticClass:"dislike-options"},_vm._l((_vm.dislikeOption),function(i){return _c('div',{key:i.id,staticClass:"dislike-option",class:{ selected: _vm.selectedDislikeOptions.includes(i.id) },on:{"click":function($event){return _vm.toggleDislikeOption(i.id)}}},[_vm._v(" "+_vm._s(i.name)+" ")])}),0),_c('div',{staticClass:"dislike-textarea"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.dislikeFeedback),expression:"dislikeFeedback"}],attrs:{"placeholder":"我们想知道您对此回答不满意的原因,您认为更好的回答是什么?","rows":"4"},domProps:{"value":(_vm.dislikeFeedback)},on:{"input":function($event){if($event.target.composing)return;_vm.dislikeFeedback=$event.target.value}}})]),_c('div',{staticClass:"dislike-actions"},[_c('button',{staticClass:"cancel-btn",on:{"click":_vm.closeDislikeModal}},[_vm._v("取消")]),_c('button',{staticClass:"submit-btn",on:{"click":_vm.submitDislikeFeedback}},[_vm._v("提交")])])])])]):_vm._e()])])])])
|
|
79691
79702
|
}
|
|
79692
|
-
var
|
|
79703
|
+
var chatvue_type_template_id_4f9aac34_scoped_true_staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"text-content"},[_c('div',{staticClass:"loading-container"},[_c('div',{staticClass:"typing-indicator"},[_c('div',{staticClass:"typing-dot"}),_c('div',{staticClass:"typing-dot"}),_c('div',{staticClass:"typing-dot"})]),_c('span',{staticClass:"loading-text"},[_vm._v("AI正在思考中...")])])])
|
|
79693
79704
|
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"dislike-header"},[_c('h3',{staticClass:"dislike-title"},[_vm._v("反馈")])])
|
|
79694
79705
|
}]
|
|
79695
79706
|
|
|
79696
79707
|
|
|
79697
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=template&id=
|
|
79708
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=template&id=4f9aac34&scoped=true
|
|
79698
79709
|
|
|
79699
79710
|
// CONCATENATED MODULE: ./src/utils/errorCode.js
|
|
79700
79711
|
/* harmony default export */ var errorCode = ({
|
|
@@ -79806,6 +79817,15 @@ var lib = __webpack_require__("4328");
|
|
|
79806
79817
|
|
|
79807
79818
|
// CONCATENATED MODULE: ./src/api/index.js
|
|
79808
79819
|
|
|
79820
|
+
//获取统计信息
|
|
79821
|
+
//获取教案模版
|
|
79822
|
+
const aiPanelTemplates = params => {
|
|
79823
|
+
return utils_request({
|
|
79824
|
+
url: '/aiPanel/templates',
|
|
79825
|
+
method: 'get',
|
|
79826
|
+
params: params,
|
|
79827
|
+
});
|
|
79828
|
+
};
|
|
79809
79829
|
|
|
79810
79830
|
//获取统计信息
|
|
79811
79831
|
const getStatistics = params => {
|
|
@@ -80122,6 +80142,21 @@ const needRetry = params => {
|
|
|
80122
80142
|
params,
|
|
80123
80143
|
});
|
|
80124
80144
|
};
|
|
80145
|
+
//获取oss上传凭证
|
|
80146
|
+
const ossPolicy = () => {
|
|
80147
|
+
return utils_request({
|
|
80148
|
+
url: `/oss/policy`,
|
|
80149
|
+
method: "get",
|
|
80150
|
+
});
|
|
80151
|
+
};
|
|
80152
|
+
//文件上传
|
|
80153
|
+
const uploadFile = data => {
|
|
80154
|
+
return utils_request({
|
|
80155
|
+
url: `/chat/file/upload`,
|
|
80156
|
+
method: "post",
|
|
80157
|
+
data,
|
|
80158
|
+
});
|
|
80159
|
+
};
|
|
80125
80160
|
|
|
80126
80161
|
// CONCATENATED MODULE: ./node_modules/@microsoft/fetch-event-source/lib/esm/parse.js
|
|
80127
80162
|
async function getBytes(stream, onChunk) {
|
|
@@ -80335,10 +80370,12 @@ var FileSaver_min = __webpack_require__("21a6");
|
|
|
80335
80370
|
|
|
80336
80371
|
|
|
80337
80372
|
|
|
80373
|
+
|
|
80338
80374
|
const chatvue_type_script_lang_js_controller = new AbortController();
|
|
80339
80375
|
const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controller.signal;
|
|
80340
80376
|
|
|
80341
80377
|
|
|
80378
|
+
|
|
80342
80379
|
/* harmony default export */ var chatvue_type_script_lang_js = ({
|
|
80343
80380
|
name: 'APP',
|
|
80344
80381
|
props: {
|
|
@@ -80368,6 +80405,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80368
80405
|
},
|
|
80369
80406
|
data() {
|
|
80370
80407
|
return {
|
|
80408
|
+
fileUrls: [],
|
|
80371
80409
|
gifPath: 'https://file.banwoxue.com/aiAgent/c3578c424c674dedaf01f3db9592aafb/zhayan.gif',
|
|
80372
80410
|
shareText: '',
|
|
80373
80411
|
userInput: '',
|
|
@@ -80519,6 +80557,12 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80519
80557
|
},
|
|
80520
80558
|
},
|
|
80521
80559
|
methods: {
|
|
80560
|
+
getFileName(file) {
|
|
80561
|
+
const fileName = file.split('/').pop();
|
|
80562
|
+
const ext = fileName.includes('.') ? fileName.split('.').pop() : '';
|
|
80563
|
+
return decodeURI(fileName.replace(`.${ext}`, '')) + '.' + ext;
|
|
80564
|
+
|
|
80565
|
+
},
|
|
80522
80566
|
// 获取卡片标题
|
|
80523
80567
|
getCardTitle(item) {
|
|
80524
80568
|
// const content = item.content.toLowerCase();
|
|
@@ -80599,7 +80643,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80599
80643
|
//判断是否为ppt
|
|
80600
80644
|
getPptShow(item) {
|
|
80601
80645
|
const str = item.content;
|
|
80602
|
-
const target = '
|
|
80646
|
+
const target = 'latestResult';
|
|
80603
80647
|
// 找到目标字符串的位置
|
|
80604
80648
|
const index = str.indexOf(target);
|
|
80605
80649
|
// 截取目标字符串之前的内容(若目标不存在则返回原字符串)
|
|
@@ -80616,12 +80660,13 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80616
80660
|
}
|
|
80617
80661
|
const obj = JSON.parse(item.content);
|
|
80618
80662
|
this.$parent.pptContentId = item.contentId;
|
|
80619
|
-
|
|
80620
|
-
|
|
80663
|
+
if (obj.structure) {
|
|
80664
|
+
this.$parent.PPTTitle = obj.structure.title;
|
|
80665
|
+
this.$parent.pptSections = obj.structure.catalogs;
|
|
80666
|
+
}
|
|
80621
80667
|
this.$parent.isSidebarCollapsed = true;
|
|
80622
80668
|
this.$parent.aiPptDrawer = true;
|
|
80623
80669
|
this.$parent.aiJaDrawer = false;
|
|
80624
|
-
this.$parent.pptSections = obj.structure.catalogs;
|
|
80625
80670
|
this.$parent.images_url = obj.latestResult.images_url;
|
|
80626
80671
|
},
|
|
80627
80672
|
//ppt下载
|
|
@@ -80658,7 +80703,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80658
80703
|
link.download = this.$parent.userType == 2 ? '教学设计方案.docx' : '学案.docx'; // 设置下载的文件名
|
|
80659
80704
|
link.click();
|
|
80660
80705
|
window.URL.revokeObjectURL(url); // 释放内存
|
|
80661
|
-
})
|
|
80706
|
+
});
|
|
80662
80707
|
// try {
|
|
80663
80708
|
// const target = '<!--AI_HTML-->';
|
|
80664
80709
|
// const index = item.content.indexOf(target);
|
|
@@ -80831,22 +80876,22 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80831
80876
|
stopChat({
|
|
80832
80877
|
msgId: item.contentId,
|
|
80833
80878
|
})
|
|
80834
|
-
|
|
80835
|
-
|
|
80836
|
-
|
|
80837
|
-
|
|
80838
|
-
|
|
80839
|
-
|
|
80840
|
-
|
|
80841
|
-
|
|
80842
|
-
|
|
80843
|
-
|
|
80844
|
-
|
|
80879
|
+
.then((res) => {
|
|
80880
|
+
if (res.code == 200) {
|
|
80881
|
+
item.status = 1;
|
|
80882
|
+
this.tempAnswerStatus = null;
|
|
80883
|
+
}
|
|
80884
|
+
})
|
|
80885
|
+
.catch((error) => {
|
|
80886
|
+
console.error('停止对话失败:', error);
|
|
80887
|
+
this.$message({
|
|
80888
|
+
message: '停止对话失败,请重试',
|
|
80889
|
+
type: 'error',
|
|
80890
|
+
});
|
|
80891
|
+
})
|
|
80892
|
+
.finally(() => {
|
|
80893
|
+
this.apiLoading = false;
|
|
80845
80894
|
});
|
|
80846
|
-
})
|
|
80847
|
-
.finally(() => {
|
|
80848
|
-
this.apiLoading = false;
|
|
80849
|
-
});
|
|
80850
80895
|
},
|
|
80851
80896
|
cycleNumbers(currentIndex, arr) {
|
|
80852
80897
|
// 确保currentIndex在有效范围内
|
|
@@ -80873,21 +80918,21 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80873
80918
|
getlistChatMsgTag() {
|
|
80874
80919
|
this.apiLoading = true;
|
|
80875
80920
|
getlistChatMsgTag()
|
|
80876
|
-
|
|
80877
|
-
|
|
80878
|
-
|
|
80879
|
-
|
|
80880
|
-
|
|
80881
|
-
|
|
80882
|
-
|
|
80883
|
-
|
|
80884
|
-
|
|
80885
|
-
|
|
80921
|
+
.then((res) => {
|
|
80922
|
+
if (res.success == true) {
|
|
80923
|
+
this.errorList = res.data;
|
|
80924
|
+
}
|
|
80925
|
+
})
|
|
80926
|
+
.catch((error) => {
|
|
80927
|
+
console.error('获取消息标签列表失败:', error);
|
|
80928
|
+
this.$message({
|
|
80929
|
+
message: '获取消息标签列表失败',
|
|
80930
|
+
type: 'error',
|
|
80931
|
+
});
|
|
80932
|
+
})
|
|
80933
|
+
.finally(() => {
|
|
80934
|
+
this.apiLoading = false;
|
|
80886
80935
|
});
|
|
80887
|
-
})
|
|
80888
|
-
.finally(() => {
|
|
80889
|
-
this.apiLoading = false;
|
|
80890
|
-
});
|
|
80891
80936
|
},
|
|
80892
80937
|
// 消息评价
|
|
80893
80938
|
async chatEvaluate(item, val) {
|
|
@@ -80925,7 +80970,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80925
80970
|
}
|
|
80926
80971
|
},
|
|
80927
80972
|
chooseLike(index) {
|
|
80928
|
-
const {
|
|
80973
|
+
const {contentId} = this.messageListData[index];
|
|
80929
80974
|
feedbackSubmit({
|
|
80930
80975
|
additionalComment: '',
|
|
80931
80976
|
feedbackType: this.messageListData[index].feedbackType == 1 ? null : 1,
|
|
@@ -80934,13 +80979,13 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80934
80979
|
}).then((res) => {
|
|
80935
80980
|
if (res.data.code == 200) {
|
|
80936
80981
|
this.messageListData[index].feedbackType = this.messageListData[index].feedbackType == 1 ? null : 1;
|
|
80937
|
-
this.$forceUpdate()
|
|
80982
|
+
this.$forceUpdate();
|
|
80938
80983
|
}
|
|
80939
80984
|
});
|
|
80940
80985
|
},
|
|
80941
80986
|
// 点击拉踩按钮
|
|
80942
80987
|
chooseCai(index) {
|
|
80943
|
-
const {
|
|
80988
|
+
const {contentId} = this.messageListData[index];
|
|
80944
80989
|
feedbackSubmit({
|
|
80945
80990
|
additionalComment: this.dislikeFeedback,
|
|
80946
80991
|
feedbackType: this.messageListData[index].feedbackType == 2 ? null : 2,
|
|
@@ -80949,7 +80994,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80949
80994
|
}).then((res) => {
|
|
80950
80995
|
if (res.data.code == 200) {
|
|
80951
80996
|
this.messageListData[index].feedbackType = this.messageListData[index].feedbackType == 2 ? null : 2;
|
|
80952
|
-
this.$forceUpdate()
|
|
80997
|
+
this.$forceUpdate();
|
|
80953
80998
|
}
|
|
80954
80999
|
});
|
|
80955
81000
|
},
|
|
@@ -80993,22 +81038,22 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80993
81038
|
chatId: this.chatId,
|
|
80994
81039
|
msgIds: flattenedShareList,
|
|
80995
81040
|
})
|
|
80996
|
-
|
|
80997
|
-
|
|
80998
|
-
|
|
80999
|
-
|
|
81000
|
-
|
|
81001
|
-
|
|
81002
|
-
|
|
81003
|
-
|
|
81004
|
-
|
|
81005
|
-
|
|
81006
|
-
|
|
81041
|
+
.then((res) => {
|
|
81042
|
+
this.shareMsgId = res.data.shareId;
|
|
81043
|
+
this.contents = res.data.contents;
|
|
81044
|
+
this.shareText = location.origin + '/#/share/' + res.data.shareId;
|
|
81045
|
+
this.shareDialog = true;
|
|
81046
|
+
})
|
|
81047
|
+
.catch((error) => {
|
|
81048
|
+
console.error('分享失败:', error);
|
|
81049
|
+
this.$message({
|
|
81050
|
+
message: '分享失败,请重试',
|
|
81051
|
+
type: 'error',
|
|
81052
|
+
});
|
|
81053
|
+
})
|
|
81054
|
+
.finally(() => {
|
|
81055
|
+
this.apiLoading = false;
|
|
81007
81056
|
});
|
|
81008
|
-
})
|
|
81009
|
-
.finally(() => {
|
|
81010
|
-
this.apiLoading = false;
|
|
81011
|
-
});
|
|
81012
81057
|
},
|
|
81013
81058
|
shareCopy() {
|
|
81014
81059
|
this.$message({
|
|
@@ -81074,6 +81119,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81074
81119
|
|
|
81075
81120
|
if (this.userInput.trim() !== '' || content) {
|
|
81076
81121
|
this.$parent.messageListData.push({
|
|
81122
|
+
files: this.fileUrls,
|
|
81077
81123
|
content: content || this.userInput,
|
|
81078
81124
|
role: 'user',
|
|
81079
81125
|
});
|
|
@@ -81123,6 +81169,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81123
81169
|
content: content || this.userInput,
|
|
81124
81170
|
role: 'user',
|
|
81125
81171
|
chatType: this.chatType,
|
|
81172
|
+
fileUrls: this.fileUrls,
|
|
81126
81173
|
// bodyId: this.$route.query.bodyId || localStorage.getItem('bodyId'),
|
|
81127
81174
|
bodyId: this.$parent.agentId || this.$route.query.bodyId,
|
|
81128
81175
|
// fileId: this.$parent.fileid,
|
|
@@ -81130,12 +81177,12 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81130
81177
|
templateId: this.templateId || '',
|
|
81131
81178
|
panelId: this.panelId || '',
|
|
81132
81179
|
structure:
|
|
81133
|
-
|
|
81134
|
-
|
|
81135
|
-
|
|
81136
|
-
|
|
81137
|
-
|
|
81138
|
-
|
|
81180
|
+
this.$parent.pptSections.length > 0
|
|
81181
|
+
? {
|
|
81182
|
+
title: this.$parent.PPTTitle || '',
|
|
81183
|
+
catalogs: this.$parent.pptSections,
|
|
81184
|
+
}
|
|
81185
|
+
: null,
|
|
81139
81186
|
coverId: this.$parent.coverId,
|
|
81140
81187
|
// model_name: modelName || 'chatglm3-6b'
|
|
81141
81188
|
},
|
|
@@ -81148,9 +81195,18 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81148
81195
|
if (msg.event === '') {
|
|
81149
81196
|
var result = JSON.parse(msg.data);
|
|
81150
81197
|
self.tempAnswerStatus = result.status;
|
|
81198
|
+
if (result.code != 0) {
|
|
81199
|
+
self.$parent.stop = true;
|
|
81200
|
+
self.chatSending = false;
|
|
81201
|
+
return self.$message({
|
|
81202
|
+
message: result.content,
|
|
81203
|
+
type: 'warning',
|
|
81204
|
+
});
|
|
81205
|
+
}
|
|
81151
81206
|
if (self.waitAnswer) {
|
|
81152
|
-
if (self.tempAnswerStatus == null) {
|
|
81207
|
+
if (self.tempAnswerStatus == null || result.code != 0) {
|
|
81153
81208
|
self.$parent.stop = true;
|
|
81209
|
+
self.chatSending = false;
|
|
81154
81210
|
return self.$message({
|
|
81155
81211
|
message: '您今日的次数已经用完',
|
|
81156
81212
|
type: 'warning',
|
|
@@ -81204,8 +81260,10 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81204
81260
|
self.$parent.isSidebarCollapsed = true;
|
|
81205
81261
|
self.$parent.aiPptDrawer = true;
|
|
81206
81262
|
self.$parent.aiJaDrawer = false;
|
|
81207
|
-
self
|
|
81208
|
-
|
|
81263
|
+
if (self.fileUrls.length == 0) {
|
|
81264
|
+
self.$parent.pptSections = obj.structure.catalogs;
|
|
81265
|
+
self.$parent.PPTTitle = obj.structure.title;
|
|
81266
|
+
}
|
|
81209
81267
|
if (obj.latestResult && obj.latestResult.images_url.length > 0) {
|
|
81210
81268
|
self.$parent.images_url = obj.latestResult.images_url;
|
|
81211
81269
|
}
|
|
@@ -81412,7 +81470,8 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81412
81470
|
this.dislikeFeedback = '';
|
|
81413
81471
|
},
|
|
81414
81472
|
},
|
|
81415
|
-
created() {
|
|
81473
|
+
created() {
|
|
81474
|
+
},
|
|
81416
81475
|
mounted() {
|
|
81417
81476
|
// 添加滚动事件监听
|
|
81418
81477
|
if (this.$refs.recordListRef) {
|
|
@@ -81467,11 +81526,11 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81467
81526
|
|
|
81468
81527
|
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=script&lang=js
|
|
81469
81528
|
/* harmony default export */ var agentComponent_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
|
|
81470
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=0&id=
|
|
81471
|
-
var
|
|
81529
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=0&id=4f9aac34&prod&lang=scss&scoped=true
|
|
81530
|
+
var chatvue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true = __webpack_require__("0521");
|
|
81472
81531
|
|
|
81473
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=1&id=
|
|
81474
|
-
var
|
|
81532
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=1&id=4f9aac34&prod&scoped=true&lang=css
|
|
81533
|
+
var chatvue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css = __webpack_require__("b811");
|
|
81475
81534
|
|
|
81476
81535
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
81477
81536
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -81583,11 +81642,11 @@ function normalizeComponent(
|
|
|
81583
81642
|
|
|
81584
81643
|
var component = normalizeComponent(
|
|
81585
81644
|
agentComponent_chatvue_type_script_lang_js,
|
|
81586
|
-
|
|
81587
|
-
|
|
81645
|
+
chatvue_type_template_id_4f9aac34_scoped_true_render,
|
|
81646
|
+
chatvue_type_template_id_4f9aac34_scoped_true_staticRenderFns,
|
|
81588
81647
|
false,
|
|
81589
81648
|
null,
|
|
81590
|
-
"
|
|
81649
|
+
"4f9aac34",
|
|
81591
81650
|
null
|
|
81592
81651
|
|
|
81593
81652
|
)
|
|
@@ -83874,13 +83933,13 @@ var jiaoAnContent_component = normalizeComponent(
|
|
|
83874
83933
|
)
|
|
83875
83934
|
|
|
83876
83935
|
/* harmony default export */ var jiaoAnContent = (jiaoAnContent_component.exports);
|
|
83877
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/pptContent.vue?vue&type=template&id=
|
|
83878
|
-
var
|
|
83936
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/pptContent.vue?vue&type=template&id=29b6cc50&scoped=true
|
|
83937
|
+
var pptContentvue_type_template_id_29b6cc50_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"ppt-content-sidebar"},[_c('div',{staticClass:"sidebar-header"},[_c('h3',[_vm._v("AI PPT")]),_c('div',{staticClass:"header-actions"},[(_vm.$parent.stop)?_c('button',{staticClass:"btn-primary",on:{"click":_vm.handleRegenerate}},[_vm._v("重新生成")]):_vm._e(),(_vm.$parent.stop)?_c('button',{staticClass:"btn-primary",on:{"click":_vm.handleSelectRegenerate}},[_vm._v("选择PPT模版")]):_vm._e(),(_vm.$parent.stop)?_c('button',{staticClass:"btn-primary",on:{"click":_vm.handleDownload}},[_vm._v("下载PPT")]):_vm._e(),_c('button',{staticClass:"close-btn",on:{"click":_vm.closeContent}},[_vm._v("✕")])])]),_c('div',{staticClass:"ppt-content-area"},[(_vm.pptSections.length > 0)?_c('div',{staticClass:"ppt-outline"},[_c('div',{staticClass:"outline-list"},_vm._l((_vm.pptSections),function(section,sectionIdx){return _c('div',{key:sectionIdx,staticClass:"outline-section"},[_c('div',{staticClass:"section-title"},[_c('span',{staticClass:"title-text",attrs:{"data-section-idx":sectionIdx}},[_vm._v(" 第"+_vm._s(_vm.getChineseNumber(sectionIdx + 1))+"章: "),_c('span',{attrs:{"contenteditable":_vm.$parent.stop},on:{"input":function($event){return _vm.editZj($event, sectionIdx)},"blur":function($event){return _vm.saveChapterEdit($event, sectionIdx)}}},[_vm._v(_vm._s(section.catalog))])]),(_vm.$parent.stop)?_c('div',{staticClass:"section-actions"},[_c('button',{staticClass:"text-btn demote-btn",on:{"click":function($event){return _vm.demoteSection(sectionIdx)}}},[_vm._v("降为字节")]),_c('button',{staticClass:"text-btn add-btn",on:{"click":function($event){return _vm.addSubSection(sectionIdx)}}},[_vm._v("新增子节")]),_c('button',{staticClass:"text-btn delete-btn",on:{"click":function($event){return _vm.deleteSection(sectionIdx)}}},[_vm._v("删除")])]):_vm._e()]),_c('div',{staticClass:"section-items"},_vm._l((section.sub_catalog),function(item,index){return _c('div',{key:index,staticClass:"outline-item"},[_c('span',{staticClass:"item-text"},[_vm._v(_vm._s(sectionIdx + 1)+"."+_vm._s(index + 1)+" "),_c('span',{attrs:{"contenteditable":_vm.$parent.stop,"data-section-idx":sectionIdx,"data-item-idx":index},on:{"input":function($event){return _vm.editCatalog($event, sectionIdx, index)},"blur":function($event){return _vm.saveCatalogEdit($event, sectionIdx, index)}}},[_vm._v(_vm._s(item))])]),(_vm.$parent.stop)?_c('div',{staticClass:"item-actions"},[_c('button',{staticClass:"text-btn promote-btn",on:{"click":function($event){return _vm.promoteItem(sectionIdx, index)}}},[_vm._v("升为章节")]),_c('button',{staticClass:"text-btn add-btn",on:{"click":function($event){return _vm.addSubItem(sectionIdx, index)}}},[_vm._v("新增子节")]),_c('button',{staticClass:"text-btn delete-btn",on:{"click":function($event){return _vm.deleteItem(sectionIdx, index)}}},[_vm._v("删除")])]):_vm._e()])}),0)])}),0)]):_vm._e(),_c('div',{staticClass:"ppt-preview"},[_c('div',{staticClass:"ppt-slide cover-slide"},[_vm._l((_vm.list),function(i,j){return (_vm.images_url.length == 0)?_c('div',{key:j,staticClass:"img"},[_c('img',{attrs:{"src":i.url,"alt":""}})]):_vm._e()}),_vm._l((_vm.images_url),function(i,j){return _c('div',{key:`image-${j}`,staticClass:"img"},[_c('img',{attrs:{"src":i.url,"alt":""}})])})],2)])])])
|
|
83879
83938
|
}
|
|
83880
|
-
var
|
|
83939
|
+
var pptContentvue_type_template_id_29b6cc50_scoped_true_staticRenderFns = []
|
|
83881
83940
|
|
|
83882
83941
|
|
|
83883
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=template&id=
|
|
83942
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=template&id=29b6cc50&scoped=true
|
|
83884
83943
|
|
|
83885
83944
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/pptContent.vue?vue&type=script&lang=js
|
|
83886
83945
|
|
|
@@ -84235,8 +84294,8 @@ var pptContentvue_type_template_id_5aa33b0f_scoped_true_staticRenderFns = []
|
|
|
84235
84294
|
|
|
84236
84295
|
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=script&lang=js
|
|
84237
84296
|
/* harmony default export */ var agentComponent_pptContentvue_type_script_lang_js = (pptContentvue_type_script_lang_js);
|
|
84238
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=style&index=0&id=
|
|
84239
|
-
var
|
|
84297
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=style&index=0&id=29b6cc50&prod&lang=scss&scoped=true
|
|
84298
|
+
var pptContentvue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true = __webpack_require__("c154");
|
|
84240
84299
|
|
|
84241
84300
|
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue
|
|
84242
84301
|
|
|
@@ -84249,27 +84308,29 @@ var pptContentvue_type_style_index_0_id_5aa33b0f_prod_lang_scss_scoped_true = __
|
|
|
84249
84308
|
|
|
84250
84309
|
var pptContent_component = normalizeComponent(
|
|
84251
84310
|
agentComponent_pptContentvue_type_script_lang_js,
|
|
84252
|
-
|
|
84253
|
-
|
|
84311
|
+
pptContentvue_type_template_id_29b6cc50_scoped_true_render,
|
|
84312
|
+
pptContentvue_type_template_id_29b6cc50_scoped_true_staticRenderFns,
|
|
84254
84313
|
false,
|
|
84255
84314
|
null,
|
|
84256
|
-
"
|
|
84315
|
+
"29b6cc50",
|
|
84257
84316
|
null
|
|
84258
84317
|
|
|
84259
84318
|
)
|
|
84260
84319
|
|
|
84261
84320
|
/* harmony default export */ var pptContent = (pptContent_component.exports);
|
|
84262
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=template&id=
|
|
84263
|
-
var
|
|
84321
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=template&id=3174601c&scoped=true
|
|
84322
|
+
var lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-dialog',{attrs:{"before-close":_vm.handleClose,"modal":false,"visible":_vm.dialogVisible,"custom-class":"lesson-template-dialog","title":"选择教案模版"},on:{"update:visible":function($event){_vm.dialogVisible=$event}}},[_c('div',{staticClass:"template-container"},[_c('div',{staticClass:"template-grid"},_vm._l((_vm.templateData),function(item){return _c('div',{key:item.id,staticClass:"template-card",class:{ active: _vm.selectedTemplate === item.id },on:{"click":function($event){return _vm.selectTemplate(item)}}},[_c('div',{staticClass:"template-image-container"},[_c('el-image',{staticClass:"template-image",attrs:{"src":item.icon,"fit":"contain"}},[_c('div',{staticClass:"image-slot",attrs:{"slot":"error"},slot:"error"},[_c('i',{staticClass:"el-icon-picture-outline"})])]),_c('div',{staticClass:"template-actions"},[_c('el-button',{staticClass:"preview-btn",attrs:{"icon":"el-icon-view","size":"mini","type":"primary"},on:{"click":function($event){$event.stopPropagation();return _vm.previewImage(item)}}},[_vm._v(" 预览 ")])],1)],1)])}),0)]),_c('span',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":_vm.handleClose}},[_vm._v("取消")]),_c('el-button',{attrs:{"disabled":!_vm.selectedTemplate,"type":"primary"},on:{"click":_vm.confirmSelection}},[_vm._v(" 确认选择 ")])],1),(_vm.previewVisible)?_c('el-image-viewer',{ref:"ElImageViewer",attrs:{"on-close":_vm.closePriview,"url-list":_vm.previewImageUrl,"z-index":9999}}):_vm._e()],1)
|
|
84264
84323
|
}
|
|
84265
|
-
var
|
|
84324
|
+
var lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_staticRenderFns = []
|
|
84266
84325
|
|
|
84267
84326
|
|
|
84268
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=template&id=
|
|
84327
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=template&id=3174601c&scoped=true
|
|
84269
84328
|
|
|
84270
84329
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=script&lang=js
|
|
84271
84330
|
|
|
84272
84331
|
|
|
84332
|
+
|
|
84333
|
+
|
|
84273
84334
|
/* harmony default export */ var lessonPlanTemplateDialogvue_type_script_lang_js = ({
|
|
84274
84335
|
name: 'LessonPlanTemplateDialog',
|
|
84275
84336
|
props: {
|
|
@@ -84278,50 +84339,34 @@ var lessonPlanTemplateDialogvue_type_template_id_2bc35cad_scoped_true_staticRend
|
|
|
84278
84339
|
default: false,
|
|
84279
84340
|
},
|
|
84280
84341
|
},
|
|
84281
|
-
components: {
|
|
84342
|
+
components: {ElImageViewer: image_viewer},
|
|
84282
84343
|
data() {
|
|
84283
84344
|
return {
|
|
84284
84345
|
dialogVisible: this.visible,
|
|
84285
84346
|
selectedTemplate: 4,
|
|
84286
84347
|
previewVisible: false, // 控制预览对话框显示
|
|
84287
84348
|
previewImageUrl: [], // 预览图片的URL
|
|
84288
|
-
templateData: [
|
|
84289
|
-
{
|
|
84290
|
-
img: 'https://file.banwoxue.com/aiAgent/0c71847272364e8aa9e896d0c57165ab/ebfc82d2b1ca9d669f38ee9f9267a57a.png',
|
|
84291
|
-
id: 4
|
|
84292
|
-
},
|
|
84293
|
-
{
|
|
84294
|
-
img: 'https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/aiJa1.jpg',
|
|
84295
|
-
id: 1,
|
|
84296
|
-
},
|
|
84297
|
-
{
|
|
84298
|
-
img: 'https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/aiJa2.jpg',
|
|
84299
|
-
id: 2,
|
|
84300
|
-
},
|
|
84301
|
-
{
|
|
84302
|
-
img: 'https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/aiJa3.jpg',
|
|
84303
|
-
id: 3,
|
|
84304
|
-
},
|
|
84305
|
-
{
|
|
84306
|
-
img: 'https://file.banwoxue.com/aiAgent/fc9ac22c84bf4094898461a9ece5ddd7/微信图片_20260119141757_785_150.jpg',
|
|
84307
|
-
id: 6,
|
|
84308
|
-
},
|
|
84309
|
-
{
|
|
84310
|
-
img: 'https://file.banwoxue.com/aiAgent/77b0e6d94ff942f98127a6286e05baa5/9a3fd1919d2201ff07b015eb6a5cf9a2.jpg',
|
|
84311
|
-
id: 7,
|
|
84312
|
-
},
|
|
84313
|
-
],
|
|
84349
|
+
templateData: [],
|
|
84314
84350
|
};
|
|
84315
84351
|
},
|
|
84316
84352
|
watch: {
|
|
84317
84353
|
visible(newVal) {
|
|
84318
84354
|
this.dialogVisible = newVal;
|
|
84355
|
+
this.getTemplateList()
|
|
84319
84356
|
},
|
|
84320
84357
|
dialogVisible(newVal) {
|
|
84321
84358
|
this.$emit('update:visible', newVal);
|
|
84322
84359
|
},
|
|
84323
84360
|
},
|
|
84324
84361
|
methods: {
|
|
84362
|
+
//获取模版列表
|
|
84363
|
+
getTemplateList() {
|
|
84364
|
+
aiPanelTemplates({
|
|
84365
|
+
panelId: 1
|
|
84366
|
+
}).then((res) => {
|
|
84367
|
+
this.templateData = res.data.data
|
|
84368
|
+
});
|
|
84369
|
+
},
|
|
84325
84370
|
// 选择模版
|
|
84326
84371
|
selectTemplate(template) {
|
|
84327
84372
|
this.selectedTemplate = template.id;
|
|
@@ -84332,7 +84377,7 @@ var lessonPlanTemplateDialogvue_type_template_id_2bc35cad_scoped_true_staticRend
|
|
|
84332
84377
|
},
|
|
84333
84378
|
// 预览图片
|
|
84334
84379
|
previewImage(item) {
|
|
84335
|
-
this.previewImageUrl = [item.
|
|
84380
|
+
this.previewImageUrl = [item.icon];
|
|
84336
84381
|
this.previewVisible = true;
|
|
84337
84382
|
},
|
|
84338
84383
|
|
|
@@ -84354,8 +84399,8 @@ var lessonPlanTemplateDialogvue_type_template_id_2bc35cad_scoped_true_staticRend
|
|
|
84354
84399
|
|
|
84355
84400
|
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=script&lang=js
|
|
84356
84401
|
/* harmony default export */ var agentComponent_lessonPlanTemplateDialogvue_type_script_lang_js = (lessonPlanTemplateDialogvue_type_script_lang_js);
|
|
84357
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=style&index=0&id=
|
|
84358
|
-
var
|
|
84402
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=style&index=0&id=3174601c&prod&lang=scss&scoped=true
|
|
84403
|
+
var lessonPlanTemplateDialogvue_type_style_index_0_id_3174601c_prod_lang_scss_scoped_true = __webpack_require__("9226");
|
|
84359
84404
|
|
|
84360
84405
|
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue
|
|
84361
84406
|
|
|
@@ -84368,11 +84413,11 @@ var lessonPlanTemplateDialogvue_type_style_index_0_id_2bc35cad_prod_lang_scss_sc
|
|
|
84368
84413
|
|
|
84369
84414
|
var lessonPlanTemplateDialog_component = normalizeComponent(
|
|
84370
84415
|
agentComponent_lessonPlanTemplateDialogvue_type_script_lang_js,
|
|
84371
|
-
|
|
84372
|
-
|
|
84416
|
+
lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_render,
|
|
84417
|
+
lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_staticRenderFns,
|
|
84373
84418
|
false,
|
|
84374
84419
|
null,
|
|
84375
|
-
"
|
|
84420
|
+
"3174601c",
|
|
84376
84421
|
null
|
|
84377
84422
|
|
|
84378
84423
|
)
|
|
@@ -84485,6 +84530,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84485
84530
|
|
|
84486
84531
|
|
|
84487
84532
|
|
|
84533
|
+
|
|
84488
84534
|
/* harmony default export */ var banwoxueAgentComponentvue_type_script_lang_js = ({
|
|
84489
84535
|
components: {
|
|
84490
84536
|
dialogueList: dialogueList,
|
|
@@ -84509,6 +84555,9 @@ function formatTimeDisplay(createTime) {
|
|
|
84509
84555
|
name: 'draw',
|
|
84510
84556
|
data() {
|
|
84511
84557
|
return {
|
|
84558
|
+
file_system_url: '',
|
|
84559
|
+
paramsData: {},
|
|
84560
|
+
fileList: [],
|
|
84512
84561
|
agentArr: '',
|
|
84513
84562
|
tableHtml: '',
|
|
84514
84563
|
content: {},
|
|
@@ -84550,17 +84599,17 @@ function formatTimeDisplay(createTime) {
|
|
|
84550
84599
|
planList: [
|
|
84551
84600
|
{
|
|
84552
84601
|
id: 1,
|
|
84553
|
-
title:
|
|
84602
|
+
title: 'AI教案'
|
|
84554
84603
|
},
|
|
84555
84604
|
{
|
|
84556
84605
|
id: 2,
|
|
84557
|
-
title:
|
|
84606
|
+
title: 'AI PPT'
|
|
84558
84607
|
}
|
|
84559
84608
|
],
|
|
84560
84609
|
modelList: [
|
|
84561
|
-
{
|
|
84562
|
-
{
|
|
84563
|
-
{
|
|
84610
|
+
{time: '今天', list: []},
|
|
84611
|
+
{time: '近7日', list: []},
|
|
84612
|
+
{time: '近30日', list: []},
|
|
84564
84613
|
],
|
|
84565
84614
|
searchValue: '',
|
|
84566
84615
|
pptSections: [],
|
|
@@ -84571,6 +84620,10 @@ function formatTimeDisplay(createTime) {
|
|
|
84571
84620
|
isGuest: false,
|
|
84572
84621
|
//用户类型
|
|
84573
84622
|
userType: '',
|
|
84623
|
+
// 当前模式:0=聊天, 1=教案, 2=PPT, 3=学案
|
|
84624
|
+
currentUploadMode: 0,
|
|
84625
|
+
// 文件上传中
|
|
84626
|
+
uploading: false,
|
|
84574
84627
|
};
|
|
84575
84628
|
},
|
|
84576
84629
|
watch: {
|
|
@@ -84594,6 +84647,20 @@ function formatTimeDisplay(createTime) {
|
|
|
84594
84647
|
},
|
|
84595
84648
|
},
|
|
84596
84649
|
methods: {
|
|
84650
|
+
getOssPolicy() {
|
|
84651
|
+
ossPolicy().then(res => {
|
|
84652
|
+
if (res.data.code === 200) {
|
|
84653
|
+
this.file_system_url = res.data.data.host;
|
|
84654
|
+
this.paramsData = {
|
|
84655
|
+
key: res.data.data.dir, //这里最好在后台处理好
|
|
84656
|
+
policy: res.data.data.policy,
|
|
84657
|
+
OSSAccessKeyId: res.data.data.ossAccessKeyId,
|
|
84658
|
+
signature: res.data.data.signature,
|
|
84659
|
+
success_action_status: '200'
|
|
84660
|
+
};
|
|
84661
|
+
}
|
|
84662
|
+
});
|
|
84663
|
+
},
|
|
84597
84664
|
//获取智能体logo
|
|
84598
84665
|
getAgentLogo() {
|
|
84599
84666
|
getLogo({
|
|
@@ -84628,7 +84695,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84628
84695
|
a.href = url;
|
|
84629
84696
|
const now = new Date();
|
|
84630
84697
|
const formattedDate = `${now.getFullYear()}${String(now.getMonth() + 1).padStart(2, '0')}${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}${String(
|
|
84631
|
-
|
|
84698
|
+
now.getMinutes()
|
|
84632
84699
|
).padStart(2, '0')}${String(now.getSeconds()).padStart(2, '0')}`;
|
|
84633
84700
|
a.download = `${formattedDate}.pptx`; // 设置下载文件名为当前时间
|
|
84634
84701
|
document.body.appendChild(a);
|
|
@@ -84651,11 +84718,11 @@ function formatTimeDisplay(createTime) {
|
|
|
84651
84718
|
// 获取外部某个字符串
|
|
84652
84719
|
getUrlCode(name) {
|
|
84653
84720
|
return (
|
|
84654
|
-
|
|
84655
|
-
|
|
84656
|
-
|
|
84657
|
-
|
|
84658
|
-
|
|
84721
|
+
decodeURIComponent(
|
|
84722
|
+
(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(
|
|
84723
|
+
location.href
|
|
84724
|
+
) || [, ''])[1].replace(/\+/g, '%20')
|
|
84725
|
+
) || null
|
|
84659
84726
|
);
|
|
84660
84727
|
},
|
|
84661
84728
|
showAenget() {
|
|
@@ -84702,7 +84769,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84702
84769
|
this.AiShow = true;
|
|
84703
84770
|
this.isGuest = true;
|
|
84704
84771
|
//游客身份没有AI生成功能
|
|
84705
|
-
this.planList = []
|
|
84772
|
+
this.planList = [];
|
|
84706
84773
|
this.$nextTick(() => {
|
|
84707
84774
|
// 改为通过类名 + CSS 变量的写法:
|
|
84708
84775
|
const element = this.$refs.banwoxueAgentComponent;
|
|
@@ -84714,9 +84781,9 @@ function formatTimeDisplay(createTime) {
|
|
|
84714
84781
|
}).catch(() => {
|
|
84715
84782
|
const environment = sessionStorage.getItem('environment');
|
|
84716
84783
|
let url =
|
|
84717
|
-
|
|
84718
|
-
|
|
84719
|
-
|
|
84784
|
+
environment == 'test'
|
|
84785
|
+
? 'https://testsso.icve.com.cn/sso/auth?mode=simple&redirect='
|
|
84786
|
+
: 'https://sso.icve.com.cn/sso/auth?mode=simple&redirect=';
|
|
84720
84787
|
let redirect = window.location.href;
|
|
84721
84788
|
window.location.href = url + redirect;
|
|
84722
84789
|
});
|
|
@@ -84733,7 +84800,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84733
84800
|
|
|
84734
84801
|
// 3. 重组URL(协议+域名+路径+过滤后的参数+锚点)
|
|
84735
84802
|
const newUrl = `${url.origin}${url.pathname}${searchParams.toString() ? '?' + searchParams.toString() : ''
|
|
84736
|
-
|
|
84803
|
+
}${hash}`;
|
|
84737
84804
|
|
|
84738
84805
|
// 4. 无刷新更新URL
|
|
84739
84806
|
window.history.replaceState({}, document.title, newUrl);
|
|
@@ -84768,6 +84835,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84768
84835
|
|
|
84769
84836
|
// 发送消息
|
|
84770
84837
|
handleChange(i) {
|
|
84838
|
+
this.fileList = [];
|
|
84771
84839
|
if (this.selectedButton == i.id) {
|
|
84772
84840
|
this.selectedButton = null;
|
|
84773
84841
|
} else {
|
|
@@ -84825,7 +84893,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84825
84893
|
this.lessonPlanData.subject = this.$refs.subject.innerText;
|
|
84826
84894
|
this.lessonPlanData.grade = this.$refs.course.innerText;
|
|
84827
84895
|
this.lessonPlanData.course = this.$refs.course.innerText;
|
|
84828
|
-
const {
|
|
84896
|
+
const {subject, grade, course} = this.lessonPlanData;
|
|
84829
84897
|
this.userInput = `帮我写一份关于${subject}的教案,教材名称为${grade},专业学科为${course}。`;
|
|
84830
84898
|
this.showTemplateDialog = true;
|
|
84831
84899
|
},
|
|
@@ -84834,14 +84902,17 @@ function formatTimeDisplay(createTime) {
|
|
|
84834
84902
|
this.lessonPlanData.subject = this.$refs.subject.innerText;
|
|
84835
84903
|
this.lessonPlanData.grade = this.$refs.course.innerText;
|
|
84836
84904
|
this.lessonPlanData.course = this.$refs.course.innerText;
|
|
84837
|
-
const {
|
|
84905
|
+
const {subject, grade, course} = this.lessonPlanData;
|
|
84838
84906
|
this.userInput = `帮我写一份关于${subject}的学案,教材名称为${grade},专业学科为${course}。`;
|
|
84839
84907
|
this.sendMessage(5, this.selectedButton);
|
|
84840
84908
|
},
|
|
84841
|
-
generateLessonPlanPPT() {
|
|
84909
|
+
generateLessonPlanPPT(file) {
|
|
84842
84910
|
this.pptSections = [];
|
|
84843
84911
|
this.PPTTitle = this.$refs.PPTTitle.innerText;
|
|
84844
|
-
this.userInput = `帮我生成PPT,主题为:${this.PPTTitle}。`;
|
|
84912
|
+
this.userInput = file ? '基于附件生成PPT' : `帮我生成PPT,主题为:${this.PPTTitle}。`;
|
|
84913
|
+
if (!file) {
|
|
84914
|
+
this.fileList = [];
|
|
84915
|
+
}
|
|
84845
84916
|
this.sendMessage('', 2);
|
|
84846
84917
|
},
|
|
84847
84918
|
|
|
@@ -84852,11 +84923,122 @@ function formatTimeDisplay(createTime) {
|
|
|
84852
84923
|
this.$refs.chat.userInput = this.userInput;
|
|
84853
84924
|
this.$refs.chat.templateId = templateId || '';
|
|
84854
84925
|
this.$refs.chat.panelId = selectedButton || '';
|
|
84926
|
+
if (this.fileList.length > 0) {
|
|
84927
|
+
this.$refs.chat.fileUrls = this.fileList.map((file) => file.url);
|
|
84928
|
+
} else {
|
|
84929
|
+
this.$refs.chat.fileUrls = [];
|
|
84930
|
+
}
|
|
84855
84931
|
this.$refs.chat.sendMessage();
|
|
84856
84932
|
this.userInput = '';
|
|
84933
|
+
this.fileList = [];
|
|
84857
84934
|
});
|
|
84858
84935
|
},
|
|
84859
84936
|
|
|
84937
|
+
// 触发文件上传选择(mode: 1=教案, 2=PPT, 3=学案)
|
|
84938
|
+
triggerUpload(mode) {
|
|
84939
|
+
this.currentUploadMode = mode;
|
|
84940
|
+
// PPT 模式只允许上传一个文件,其它模式允许多个
|
|
84941
|
+
this.$refs.fileInput.multiple = mode !== 2;
|
|
84942
|
+
if (mode === 2) {
|
|
84943
|
+
this.fileList = [];
|
|
84944
|
+
}
|
|
84945
|
+
this.$refs.fileInput.value = ''; // 清空以便重复选择同一文件
|
|
84946
|
+
this.$refs.fileInput.click();
|
|
84947
|
+
},
|
|
84948
|
+
|
|
84949
|
+
// 处理文件选择
|
|
84950
|
+
handleFileSelected(event) {
|
|
84951
|
+
const file = event.target.files[0];
|
|
84952
|
+
if (!file) return;
|
|
84953
|
+
|
|
84954
|
+
// 获取文件扩展名
|
|
84955
|
+
const fileName = file.name.toLowerCase();
|
|
84956
|
+
const ext = fileName.substring(fileName.lastIndexOf('.'));
|
|
84957
|
+
|
|
84958
|
+
// PPT模式允许的文件类型
|
|
84959
|
+
const pptAllowedExts = ['.md', '.doc', '.docx', '.pdf', '.xmind', '.mm', '.txt'];
|
|
84960
|
+
// 非PPT模式允许的文件类型
|
|
84961
|
+
const docAllowedExts = ['.doc', '.docx', '.wps', '.ppt', '.pptx', '.xls', '.xlsx', '.md', '.txt', '.pdf'];
|
|
84962
|
+
|
|
84963
|
+
// 根据模式校验文件类型
|
|
84964
|
+
const allowed = this.currentUploadMode === 2 ? pptAllowedExts : docAllowedExts;
|
|
84965
|
+
if (!allowed.includes(ext)) {
|
|
84966
|
+
const hint = this.currentUploadMode === 2
|
|
84967
|
+
? 'PPT生成仅支持:MarkDown、Word、PDF、XMind、FreeMind、TXT'
|
|
84968
|
+
: '支持文档:.doc、.docx、.wps、.ppt、.pptx、.xls、.xlsx、.md、.txt、.pdf';
|
|
84969
|
+
this.$message.warning(`不支持该文件格式!${hint}`);
|
|
84970
|
+
return;
|
|
84971
|
+
}
|
|
84972
|
+
|
|
84973
|
+
// 限制文件大小(50MB)
|
|
84974
|
+
const maxSize = 50 * 1024 * 1024;
|
|
84975
|
+
if (file.size > maxSize) {
|
|
84976
|
+
this.$message.warning('文件大小不能超过50MB');
|
|
84977
|
+
return;
|
|
84978
|
+
}
|
|
84979
|
+
|
|
84980
|
+
// 上传文件
|
|
84981
|
+
this.uploadFile(file, file.name);
|
|
84982
|
+
},
|
|
84983
|
+
|
|
84984
|
+
// 上传文件到服务器
|
|
84985
|
+
uploadFile(file, fileName) {
|
|
84986
|
+
if (this.uploading) return;
|
|
84987
|
+
this.uploading = true;
|
|
84988
|
+
const formData = new FormData();
|
|
84989
|
+
formData.append('files', file);
|
|
84990
|
+
uploadFile(formData).then(res => {
|
|
84991
|
+
if (res.data.code === 200) {
|
|
84992
|
+
const fileUrl = res.data.fileUrls[0];
|
|
84993
|
+
this.fileList.push({
|
|
84994
|
+
name: fileName,
|
|
84995
|
+
url: fileUrl,
|
|
84996
|
+
category: this.getFileCategory(fileName),
|
|
84997
|
+
});
|
|
84998
|
+
// PPT 模式:上传完成后询问是否基于附件生成
|
|
84999
|
+
if (this.currentUploadMode === 2) {
|
|
85000
|
+
this.$confirm('是否基于当前附件生成 PPT?', '提示', {
|
|
85001
|
+
confirmButtonText: '生成',
|
|
85002
|
+
cancelButtonText: '取消',
|
|
85003
|
+
type: 'info',
|
|
85004
|
+
}).then(() => {
|
|
85005
|
+
this.generateLessonPlanPPT('file');
|
|
85006
|
+
}).catch(() => {
|
|
85007
|
+
// 取消则删除刚上传的附件
|
|
85008
|
+
this.fileList.pop();
|
|
85009
|
+
});
|
|
85010
|
+
}
|
|
85011
|
+
} else {
|
|
85012
|
+
this.$message.error(res.data.msg || '文件上传失败');
|
|
85013
|
+
}
|
|
85014
|
+
}).catch(() => {
|
|
85015
|
+
this.$message.error('文件上传失败,请稍后重试');
|
|
85016
|
+
}).finally(() => {
|
|
85017
|
+
this.uploading = false;
|
|
85018
|
+
});
|
|
85019
|
+
},
|
|
85020
|
+
|
|
85021
|
+
// 获取文件类别
|
|
85022
|
+
getFileCategory(fileName) {
|
|
85023
|
+
const ext = fileName.substring(fileName.lastIndexOf('.')).toLowerCase();
|
|
85024
|
+
const categoryMap = {
|
|
85025
|
+
'.doc': 'Word', '.docx': 'Word', '.wps': 'Word',
|
|
85026
|
+
'.ppt': 'PPT', '.pptx': 'PPT',
|
|
85027
|
+
'.xls': 'Excel', '.xlsx': 'Excel',
|
|
85028
|
+
'.pdf': 'PDF',
|
|
85029
|
+
'.md': 'Markdown',
|
|
85030
|
+
'.txt': '文本',
|
|
85031
|
+
'.xmind': 'XMind',
|
|
85032
|
+
'.mm': 'MindMap',
|
|
85033
|
+
};
|
|
85034
|
+
return categoryMap[ext] || '其他';
|
|
85035
|
+
},
|
|
85036
|
+
|
|
85037
|
+
// 删除文件
|
|
85038
|
+
removeFile(index) {
|
|
85039
|
+
this.fileList.splice(index, 1);
|
|
85040
|
+
},
|
|
85041
|
+
|
|
84860
85042
|
// 处理打开教案侧边栏
|
|
84861
85043
|
handleOpenLessonSidebar(item) {
|
|
84862
85044
|
this.pptContentId = item.contentId;
|
|
@@ -84884,6 +85066,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84884
85066
|
},
|
|
84885
85067
|
},
|
|
84886
85068
|
created() {
|
|
85069
|
+
this.getOssPolicy();
|
|
84887
85070
|
this.getAgentLogo();
|
|
84888
85071
|
// this.showAenget();
|
|
84889
85072
|
const isSidebarCollapsed = sessionStorage.getItem('isSidebarCollapsed');
|
|
@@ -84916,11 +85099,11 @@ function formatTimeDisplay(createTime) {
|
|
|
84916
85099
|
|
|
84917
85100
|
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=script&lang=js
|
|
84918
85101
|
/* harmony default export */ var components_banwoxueAgentComponentvue_type_script_lang_js = (banwoxueAgentComponentvue_type_script_lang_js);
|
|
84919
|
-
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=0&id=
|
|
84920
|
-
var
|
|
85102
|
+
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=0&id=05cb4ad5&prod&lang=css
|
|
85103
|
+
var banwoxueAgentComponentvue_type_style_index_0_id_05cb4ad5_prod_lang_css = __webpack_require__("1ff2");
|
|
84921
85104
|
|
|
84922
|
-
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=1&id=
|
|
84923
|
-
var
|
|
85105
|
+
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=1&id=05cb4ad5&prod&lang=scss&scoped=true
|
|
85106
|
+
var banwoxueAgentComponentvue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true = __webpack_require__("5803");
|
|
84924
85107
|
|
|
84925
85108
|
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue
|
|
84926
85109
|
|
|
@@ -84938,7 +85121,7 @@ var banwoxueAgentComponent_component = normalizeComponent(
|
|
|
84938
85121
|
staticRenderFns,
|
|
84939
85122
|
false,
|
|
84940
85123
|
null,
|
|
84941
|
-
"
|
|
85124
|
+
"05cb4ad5",
|
|
84942
85125
|
null
|
|
84943
85126
|
|
|
84944
85127
|
)
|
|
@@ -84963,17 +85146,6 @@ var banwoxueAgentComponent_component = normalizeComponent(
|
|
|
84963
85146
|
|
|
84964
85147
|
|
|
84965
85148
|
|
|
84966
|
-
/***/ }),
|
|
84967
|
-
|
|
84968
|
-
/***/ "fc7f":
|
|
84969
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
84970
|
-
|
|
84971
|
-
"use strict";
|
|
84972
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_lessonPlanTemplateDialog_vue_vue_type_style_index_0_id_2bc35cad_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4cd1");
|
|
84973
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_lessonPlanTemplateDialog_vue_vue_type_style_index_0_id_2bc35cad_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_lessonPlanTemplateDialog_vue_vue_type_style_index_0_id_2bc35cad_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
84974
|
-
/* unused harmony reexport * */
|
|
84975
|
-
|
|
84976
|
-
|
|
84977
85149
|
/***/ })
|
|
84978
85150
|
|
|
84979
85151
|
/******/ });
|