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
|
@@ -348,6 +348,13 @@ setToStringTag(Math, 'Math', true);
|
|
|
348
348
|
setToStringTag(global.JSON, 'JSON', true);
|
|
349
349
|
|
|
350
350
|
|
|
351
|
+
/***/ }),
|
|
352
|
+
|
|
353
|
+
/***/ "036e":
|
|
354
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
355
|
+
|
|
356
|
+
// extracted by mini-css-extract-plugin
|
|
357
|
+
|
|
351
358
|
/***/ }),
|
|
352
359
|
|
|
353
360
|
/***/ "0395":
|
|
@@ -376,10 +383,14 @@ module.exports.f = function getOwnPropertyNames(it) {
|
|
|
376
383
|
|
|
377
384
|
/***/ }),
|
|
378
385
|
|
|
379
|
-
/***/ "
|
|
380
|
-
/***/ (function(module,
|
|
386
|
+
/***/ "0521":
|
|
387
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
388
|
+
|
|
389
|
+
"use strict";
|
|
390
|
+
/* 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");
|
|
391
|
+
/* 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__);
|
|
392
|
+
/* unused harmony reexport * */
|
|
381
393
|
|
|
382
|
-
// extracted by mini-css-extract-plugin
|
|
383
394
|
|
|
384
395
|
/***/ }),
|
|
385
396
|
|
|
@@ -548,6 +559,13 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
548
559
|
module.exports = Axios;
|
|
549
560
|
|
|
550
561
|
|
|
562
|
+
/***/ }),
|
|
563
|
+
|
|
564
|
+
/***/ "0d55":
|
|
565
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
566
|
+
|
|
567
|
+
// extracted by mini-css-extract-plugin
|
|
568
|
+
|
|
551
569
|
/***/ }),
|
|
552
570
|
|
|
553
571
|
/***/ "0df6":
|
|
@@ -1195,17 +1213,6 @@ module.exports = function bind(fn, thisArg) {
|
|
|
1195
1213
|
};
|
|
1196
1214
|
|
|
1197
1215
|
|
|
1198
|
-
/***/ }),
|
|
1199
|
-
|
|
1200
|
-
/***/ "1e96":
|
|
1201
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1202
|
-
|
|
1203
|
-
"use strict";
|
|
1204
|
-
/* 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");
|
|
1205
|
-
/* 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__);
|
|
1206
|
-
/* unused harmony reexport * */
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
1216
|
/***/ }),
|
|
1210
1217
|
|
|
1211
1218
|
/***/ "1ec9":
|
|
@@ -1220,6 +1227,17 @@ module.exports = function (it) {
|
|
|
1220
1227
|
};
|
|
1221
1228
|
|
|
1222
1229
|
|
|
1230
|
+
/***/ }),
|
|
1231
|
+
|
|
1232
|
+
/***/ "1ff2":
|
|
1233
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1234
|
+
|
|
1235
|
+
"use strict";
|
|
1236
|
+
/* 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");
|
|
1237
|
+
/* 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__);
|
|
1238
|
+
/* unused harmony reexport * */
|
|
1239
|
+
|
|
1240
|
+
|
|
1223
1241
|
/***/ }),
|
|
1224
1242
|
|
|
1225
1243
|
/***/ "21a6":
|
|
@@ -1400,17 +1418,6 @@ module.exports = function (it) {
|
|
|
1400
1418
|
};
|
|
1401
1419
|
|
|
1402
1420
|
|
|
1403
|
-
/***/ }),
|
|
1404
|
-
|
|
1405
|
-
/***/ "28b0":
|
|
1406
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1407
|
-
|
|
1408
|
-
"use strict";
|
|
1409
|
-
/* 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");
|
|
1410
|
-
/* 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__);
|
|
1411
|
-
/* unused harmony reexport * */
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
1421
|
/***/ }),
|
|
1415
1422
|
|
|
1416
1423
|
/***/ "294c":
|
|
@@ -2002,13 +2009,6 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
2002
2009
|
};
|
|
2003
2010
|
|
|
2004
2011
|
|
|
2005
|
-
/***/ }),
|
|
2006
|
-
|
|
2007
|
-
/***/ "2df1":
|
|
2008
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2009
|
-
|
|
2010
|
-
// extracted by mini-css-extract-plugin
|
|
2011
|
-
|
|
2012
2012
|
/***/ }),
|
|
2013
2013
|
|
|
2014
2014
|
/***/ "2e67":
|
|
@@ -2229,17 +2229,6 @@ module.exports = __webpack_require__("8e60") ? function (object, key, value) {
|
|
|
2229
2229
|
};
|
|
2230
2230
|
|
|
2231
2231
|
|
|
2232
|
-
/***/ }),
|
|
2233
|
-
|
|
2234
|
-
/***/ "3675":
|
|
2235
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2236
|
-
|
|
2237
|
-
"use strict";
|
|
2238
|
-
/* 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");
|
|
2239
|
-
/* 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__);
|
|
2240
|
-
/* unused harmony reexport * */
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
2232
|
/***/ }),
|
|
2244
2233
|
|
|
2245
2234
|
/***/ "36c3":
|
|
@@ -2380,17 +2369,6 @@ module.exports = (
|
|
|
2380
2369
|
);
|
|
2381
2370
|
|
|
2382
2371
|
|
|
2383
|
-
/***/ }),
|
|
2384
|
-
|
|
2385
|
-
/***/ "3968":
|
|
2386
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2387
|
-
|
|
2388
|
-
"use strict";
|
|
2389
|
-
/* 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");
|
|
2390
|
-
/* 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__);
|
|
2391
|
-
/* unused harmony reexport * */
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
2372
|
/***/ }),
|
|
2395
2373
|
|
|
2396
2374
|
/***/ "3a38":
|
|
@@ -5058,13 +5036,6 @@ exports.default = PopupManager;
|
|
|
5058
5036
|
|
|
5059
5037
|
/***/ }),
|
|
5060
5038
|
|
|
5061
|
-
/***/ "4cd1":
|
|
5062
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5063
|
-
|
|
5064
|
-
// extracted by mini-css-extract-plugin
|
|
5065
|
-
|
|
5066
|
-
/***/ }),
|
|
5067
|
-
|
|
5068
5039
|
/***/ "4e4b":
|
|
5069
5040
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5070
5041
|
|
|
@@ -20965,6 +20936,17 @@ module.exports = function (key) {
|
|
|
20965
20936
|
};
|
|
20966
20937
|
|
|
20967
20938
|
|
|
20939
|
+
/***/ }),
|
|
20940
|
+
|
|
20941
|
+
/***/ "5803":
|
|
20942
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20943
|
+
|
|
20944
|
+
"use strict";
|
|
20945
|
+
/* 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");
|
|
20946
|
+
/* 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__);
|
|
20947
|
+
/* unused harmony reexport * */
|
|
20948
|
+
|
|
20949
|
+
|
|
20968
20950
|
/***/ }),
|
|
20969
20951
|
|
|
20970
20952
|
/***/ "584a":
|
|
@@ -66982,6 +66964,13 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
|
66982
66964
|
}
|
|
66983
66965
|
|
|
66984
66966
|
|
|
66967
|
+
/***/ }),
|
|
66968
|
+
|
|
66969
|
+
/***/ "6d84":
|
|
66970
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
66971
|
+
|
|
66972
|
+
// extracted by mini-css-extract-plugin
|
|
66973
|
+
|
|
66985
66974
|
/***/ }),
|
|
66986
66975
|
|
|
66987
66976
|
/***/ "6dd8":
|
|
@@ -67920,17 +67909,6 @@ var index = (function () {
|
|
|
67920
67909
|
|
|
67921
67910
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
67922
67911
|
|
|
67923
|
-
/***/ }),
|
|
67924
|
-
|
|
67925
|
-
/***/ "6e52":
|
|
67926
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
67927
|
-
|
|
67928
|
-
"use strict";
|
|
67929
|
-
/* 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");
|
|
67930
|
-
/* 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__);
|
|
67931
|
-
/* unused harmony reexport * */
|
|
67932
|
-
|
|
67933
|
-
|
|
67934
67912
|
/***/ }),
|
|
67935
67913
|
|
|
67936
67914
|
/***/ "71c1":
|
|
@@ -68068,6 +68046,13 @@ exports.default = aria.Dialog;
|
|
|
68068
68046
|
|
|
68069
68047
|
/***/ }),
|
|
68070
68048
|
|
|
68049
|
+
/***/ "759f":
|
|
68050
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
68051
|
+
|
|
68052
|
+
// extracted by mini-css-extract-plugin
|
|
68053
|
+
|
|
68054
|
+
/***/ }),
|
|
68055
|
+
|
|
68071
68056
|
/***/ "765d":
|
|
68072
68057
|
/***/ (function(module, exports, __webpack_require__) {
|
|
68073
68058
|
|
|
@@ -70228,6 +70213,17 @@ module.exports = Array.isArray || function isArray(arg) {
|
|
|
70228
70213
|
module.exports = __webpack_require__("35e8");
|
|
70229
70214
|
|
|
70230
70215
|
|
|
70216
|
+
/***/ }),
|
|
70217
|
+
|
|
70218
|
+
/***/ "9226":
|
|
70219
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
70220
|
+
|
|
70221
|
+
"use strict";
|
|
70222
|
+
/* 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");
|
|
70223
|
+
/* 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__);
|
|
70224
|
+
/* unused harmony reexport * */
|
|
70225
|
+
|
|
70226
|
+
|
|
70231
70227
|
/***/ }),
|
|
70232
70228
|
|
|
70233
70229
|
/***/ "92fa":
|
|
@@ -71871,13 +71867,6 @@ Schema.messages = messages_messages;
|
|
|
71871
71867
|
|
|
71872
71868
|
/***/ }),
|
|
71873
71869
|
|
|
71874
|
-
/***/ "a32c":
|
|
71875
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
71876
|
-
|
|
71877
|
-
// extracted by mini-css-extract-plugin
|
|
71878
|
-
|
|
71879
|
-
/***/ }),
|
|
71880
|
-
|
|
71881
71870
|
/***/ "a3c3":
|
|
71882
71871
|
/***/ (function(module, exports, __webpack_require__) {
|
|
71883
71872
|
|
|
@@ -72284,10 +72273,14 @@ module.exports = function xhrAdapter(config) {
|
|
|
72284
72273
|
|
|
72285
72274
|
/***/ }),
|
|
72286
72275
|
|
|
72287
|
-
/***/ "
|
|
72288
|
-
/***/ (function(module,
|
|
72276
|
+
/***/ "b811":
|
|
72277
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72278
|
+
|
|
72279
|
+
"use strict";
|
|
72280
|
+
/* 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");
|
|
72281
|
+
/* 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__);
|
|
72282
|
+
/* unused harmony reexport * */
|
|
72289
72283
|
|
|
72290
|
-
// extracted by mini-css-extract-plugin
|
|
72291
72284
|
|
|
72292
72285
|
/***/ }),
|
|
72293
72286
|
|
|
@@ -72297,6 +72290,13 @@ module.exports = function xhrAdapter(config) {
|
|
|
72297
72290
|
module.exports = true;
|
|
72298
72291
|
|
|
72299
72292
|
|
|
72293
|
+
/***/ }),
|
|
72294
|
+
|
|
72295
|
+
/***/ "bbee":
|
|
72296
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
72297
|
+
|
|
72298
|
+
// extracted by mini-css-extract-plugin
|
|
72299
|
+
|
|
72300
72300
|
/***/ }),
|
|
72301
72301
|
|
|
72302
72302
|
/***/ "bc3a":
|
|
@@ -72335,6 +72335,17 @@ exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescript
|
|
|
72335
72335
|
module.exports = __webpack_require__("d4af");
|
|
72336
72336
|
|
|
72337
72337
|
|
|
72338
|
+
/***/ }),
|
|
72339
|
+
|
|
72340
|
+
/***/ "c154":
|
|
72341
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72342
|
+
|
|
72343
|
+
"use strict";
|
|
72344
|
+
/* 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");
|
|
72345
|
+
/* 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__);
|
|
72346
|
+
/* unused harmony reexport * */
|
|
72347
|
+
|
|
72348
|
+
|
|
72338
72349
|
/***/ }),
|
|
72339
72350
|
|
|
72340
72351
|
/***/ "c207":
|
|
@@ -79552,6 +79563,13 @@ src_radio.install = function (Vue) {
|
|
|
79552
79563
|
|
|
79553
79564
|
/***/ }),
|
|
79554
79565
|
|
|
79566
|
+
/***/ "f578":
|
|
79567
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
79568
|
+
|
|
79569
|
+
// extracted by mini-css-extract-plugin
|
|
79570
|
+
|
|
79571
|
+
/***/ }),
|
|
79572
|
+
|
|
79555
79573
|
/***/ "f6b4":
|
|
79556
79574
|
/***/ (function(module, exports, __webpack_require__) {
|
|
79557
79575
|
|
|
@@ -79612,13 +79630,6 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
79612
79630
|
module.exports = InterceptorManager;
|
|
79613
79631
|
|
|
79614
79632
|
|
|
79615
|
-
/***/ }),
|
|
79616
|
-
|
|
79617
|
-
/***/ "f6f9":
|
|
79618
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
79619
|
-
|
|
79620
|
-
// extracted by mini-css-extract-plugin
|
|
79621
|
-
|
|
79622
79633
|
/***/ }),
|
|
79623
79634
|
|
|
79624
79635
|
/***/ "f772":
|
|
@@ -79687,23 +79698,23 @@ if (typeof window !== 'undefined') {
|
|
|
79687
79698
|
// Indicate to webpack that this file can be concatenated
|
|
79688
79699
|
/* harmony default export */ var setPublicPath = (null);
|
|
79689
79700
|
|
|
79690
|
-
// 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=
|
|
79691
|
-
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":"
|
|
79701
|
+
// 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
|
|
79702
|
+
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":""}})])])
|
|
79692
79703
|
}
|
|
79693
79704
|
var staticRenderFns = []
|
|
79694
79705
|
|
|
79695
79706
|
|
|
79696
|
-
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=template&id=
|
|
79707
|
+
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=template&id=05cb4ad5&scoped=true
|
|
79697
79708
|
|
|
79698
|
-
// 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=
|
|
79699
|
-
var
|
|
79709
|
+
// 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
|
|
79710
|
+
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()])])])])
|
|
79700
79711
|
}
|
|
79701
|
-
var
|
|
79712
|
+
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正在思考中...")])])])
|
|
79702
79713
|
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"dislike-header"},[_c('h3',{staticClass:"dislike-title"},[_vm._v("反馈")])])
|
|
79703
79714
|
}]
|
|
79704
79715
|
|
|
79705
79716
|
|
|
79706
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=template&id=
|
|
79717
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=template&id=4f9aac34&scoped=true
|
|
79707
79718
|
|
|
79708
79719
|
// CONCATENATED MODULE: ./src/utils/errorCode.js
|
|
79709
79720
|
/* harmony default export */ var errorCode = ({
|
|
@@ -79815,6 +79826,15 @@ var lib = __webpack_require__("4328");
|
|
|
79815
79826
|
|
|
79816
79827
|
// CONCATENATED MODULE: ./src/api/index.js
|
|
79817
79828
|
|
|
79829
|
+
//获取统计信息
|
|
79830
|
+
//获取教案模版
|
|
79831
|
+
const aiPanelTemplates = params => {
|
|
79832
|
+
return utils_request({
|
|
79833
|
+
url: '/aiPanel/templates',
|
|
79834
|
+
method: 'get',
|
|
79835
|
+
params: params,
|
|
79836
|
+
});
|
|
79837
|
+
};
|
|
79818
79838
|
|
|
79819
79839
|
//获取统计信息
|
|
79820
79840
|
const getStatistics = params => {
|
|
@@ -80131,6 +80151,21 @@ const needRetry = params => {
|
|
|
80131
80151
|
params,
|
|
80132
80152
|
});
|
|
80133
80153
|
};
|
|
80154
|
+
//获取oss上传凭证
|
|
80155
|
+
const ossPolicy = () => {
|
|
80156
|
+
return utils_request({
|
|
80157
|
+
url: `/oss/policy`,
|
|
80158
|
+
method: "get",
|
|
80159
|
+
});
|
|
80160
|
+
};
|
|
80161
|
+
//文件上传
|
|
80162
|
+
const uploadFile = data => {
|
|
80163
|
+
return utils_request({
|
|
80164
|
+
url: `/chat/file/upload`,
|
|
80165
|
+
method: "post",
|
|
80166
|
+
data,
|
|
80167
|
+
});
|
|
80168
|
+
};
|
|
80134
80169
|
|
|
80135
80170
|
// CONCATENATED MODULE: ./node_modules/@microsoft/fetch-event-source/lib/esm/parse.js
|
|
80136
80171
|
async function getBytes(stream, onChunk) {
|
|
@@ -80344,10 +80379,12 @@ var FileSaver_min = __webpack_require__("21a6");
|
|
|
80344
80379
|
|
|
80345
80380
|
|
|
80346
80381
|
|
|
80382
|
+
|
|
80347
80383
|
const chatvue_type_script_lang_js_controller = new AbortController();
|
|
80348
80384
|
const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controller.signal;
|
|
80349
80385
|
|
|
80350
80386
|
|
|
80387
|
+
|
|
80351
80388
|
/* harmony default export */ var chatvue_type_script_lang_js = ({
|
|
80352
80389
|
name: 'APP',
|
|
80353
80390
|
props: {
|
|
@@ -80377,6 +80414,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80377
80414
|
},
|
|
80378
80415
|
data() {
|
|
80379
80416
|
return {
|
|
80417
|
+
fileUrls: [],
|
|
80380
80418
|
gifPath: 'https://file.banwoxue.com/aiAgent/c3578c424c674dedaf01f3db9592aafb/zhayan.gif',
|
|
80381
80419
|
shareText: '',
|
|
80382
80420
|
userInput: '',
|
|
@@ -80528,6 +80566,12 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80528
80566
|
},
|
|
80529
80567
|
},
|
|
80530
80568
|
methods: {
|
|
80569
|
+
getFileName(file) {
|
|
80570
|
+
const fileName = file.split('/').pop();
|
|
80571
|
+
const ext = fileName.includes('.') ? fileName.split('.').pop() : '';
|
|
80572
|
+
return decodeURI(fileName.replace(`.${ext}`, '')) + '.' + ext;
|
|
80573
|
+
|
|
80574
|
+
},
|
|
80531
80575
|
// 获取卡片标题
|
|
80532
80576
|
getCardTitle(item) {
|
|
80533
80577
|
// const content = item.content.toLowerCase();
|
|
@@ -80608,7 +80652,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80608
80652
|
//判断是否为ppt
|
|
80609
80653
|
getPptShow(item) {
|
|
80610
80654
|
const str = item.content;
|
|
80611
|
-
const target = '
|
|
80655
|
+
const target = 'latestResult';
|
|
80612
80656
|
// 找到目标字符串的位置
|
|
80613
80657
|
const index = str.indexOf(target);
|
|
80614
80658
|
// 截取目标字符串之前的内容(若目标不存在则返回原字符串)
|
|
@@ -80625,12 +80669,13 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80625
80669
|
}
|
|
80626
80670
|
const obj = JSON.parse(item.content);
|
|
80627
80671
|
this.$parent.pptContentId = item.contentId;
|
|
80628
|
-
|
|
80629
|
-
|
|
80672
|
+
if (obj.structure) {
|
|
80673
|
+
this.$parent.PPTTitle = obj.structure.title;
|
|
80674
|
+
this.$parent.pptSections = obj.structure.catalogs;
|
|
80675
|
+
}
|
|
80630
80676
|
this.$parent.isSidebarCollapsed = true;
|
|
80631
80677
|
this.$parent.aiPptDrawer = true;
|
|
80632
80678
|
this.$parent.aiJaDrawer = false;
|
|
80633
|
-
this.$parent.pptSections = obj.structure.catalogs;
|
|
80634
80679
|
this.$parent.images_url = obj.latestResult.images_url;
|
|
80635
80680
|
},
|
|
80636
80681
|
//ppt下载
|
|
@@ -80667,7 +80712,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80667
80712
|
link.download = this.$parent.userType == 2 ? '教学设计方案.docx' : '学案.docx'; // 设置下载的文件名
|
|
80668
80713
|
link.click();
|
|
80669
80714
|
window.URL.revokeObjectURL(url); // 释放内存
|
|
80670
|
-
})
|
|
80715
|
+
});
|
|
80671
80716
|
// try {
|
|
80672
80717
|
// const target = '<!--AI_HTML-->';
|
|
80673
80718
|
// const index = item.content.indexOf(target);
|
|
@@ -80840,22 +80885,22 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80840
80885
|
stopChat({
|
|
80841
80886
|
msgId: item.contentId,
|
|
80842
80887
|
})
|
|
80843
|
-
|
|
80844
|
-
|
|
80845
|
-
|
|
80846
|
-
|
|
80847
|
-
|
|
80848
|
-
|
|
80849
|
-
|
|
80850
|
-
|
|
80851
|
-
|
|
80852
|
-
|
|
80853
|
-
|
|
80888
|
+
.then((res) => {
|
|
80889
|
+
if (res.code == 200) {
|
|
80890
|
+
item.status = 1;
|
|
80891
|
+
this.tempAnswerStatus = null;
|
|
80892
|
+
}
|
|
80893
|
+
})
|
|
80894
|
+
.catch((error) => {
|
|
80895
|
+
console.error('停止对话失败:', error);
|
|
80896
|
+
this.$message({
|
|
80897
|
+
message: '停止对话失败,请重试',
|
|
80898
|
+
type: 'error',
|
|
80899
|
+
});
|
|
80900
|
+
})
|
|
80901
|
+
.finally(() => {
|
|
80902
|
+
this.apiLoading = false;
|
|
80854
80903
|
});
|
|
80855
|
-
})
|
|
80856
|
-
.finally(() => {
|
|
80857
|
-
this.apiLoading = false;
|
|
80858
|
-
});
|
|
80859
80904
|
},
|
|
80860
80905
|
cycleNumbers(currentIndex, arr) {
|
|
80861
80906
|
// 确保currentIndex在有效范围内
|
|
@@ -80882,21 +80927,21 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80882
80927
|
getlistChatMsgTag() {
|
|
80883
80928
|
this.apiLoading = true;
|
|
80884
80929
|
getlistChatMsgTag()
|
|
80885
|
-
|
|
80886
|
-
|
|
80887
|
-
|
|
80888
|
-
|
|
80889
|
-
|
|
80890
|
-
|
|
80891
|
-
|
|
80892
|
-
|
|
80893
|
-
|
|
80894
|
-
|
|
80930
|
+
.then((res) => {
|
|
80931
|
+
if (res.success == true) {
|
|
80932
|
+
this.errorList = res.data;
|
|
80933
|
+
}
|
|
80934
|
+
})
|
|
80935
|
+
.catch((error) => {
|
|
80936
|
+
console.error('获取消息标签列表失败:', error);
|
|
80937
|
+
this.$message({
|
|
80938
|
+
message: '获取消息标签列表失败',
|
|
80939
|
+
type: 'error',
|
|
80940
|
+
});
|
|
80941
|
+
})
|
|
80942
|
+
.finally(() => {
|
|
80943
|
+
this.apiLoading = false;
|
|
80895
80944
|
});
|
|
80896
|
-
})
|
|
80897
|
-
.finally(() => {
|
|
80898
|
-
this.apiLoading = false;
|
|
80899
|
-
});
|
|
80900
80945
|
},
|
|
80901
80946
|
// 消息评价
|
|
80902
80947
|
async chatEvaluate(item, val) {
|
|
@@ -80934,7 +80979,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80934
80979
|
}
|
|
80935
80980
|
},
|
|
80936
80981
|
chooseLike(index) {
|
|
80937
|
-
const {
|
|
80982
|
+
const {contentId} = this.messageListData[index];
|
|
80938
80983
|
feedbackSubmit({
|
|
80939
80984
|
additionalComment: '',
|
|
80940
80985
|
feedbackType: this.messageListData[index].feedbackType == 1 ? null : 1,
|
|
@@ -80943,13 +80988,13 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80943
80988
|
}).then((res) => {
|
|
80944
80989
|
if (res.data.code == 200) {
|
|
80945
80990
|
this.messageListData[index].feedbackType = this.messageListData[index].feedbackType == 1 ? null : 1;
|
|
80946
|
-
this.$forceUpdate()
|
|
80991
|
+
this.$forceUpdate();
|
|
80947
80992
|
}
|
|
80948
80993
|
});
|
|
80949
80994
|
},
|
|
80950
80995
|
// 点击拉踩按钮
|
|
80951
80996
|
chooseCai(index) {
|
|
80952
|
-
const {
|
|
80997
|
+
const {contentId} = this.messageListData[index];
|
|
80953
80998
|
feedbackSubmit({
|
|
80954
80999
|
additionalComment: this.dislikeFeedback,
|
|
80955
81000
|
feedbackType: this.messageListData[index].feedbackType == 2 ? null : 2,
|
|
@@ -80958,7 +81003,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80958
81003
|
}).then((res) => {
|
|
80959
81004
|
if (res.data.code == 200) {
|
|
80960
81005
|
this.messageListData[index].feedbackType = this.messageListData[index].feedbackType == 2 ? null : 2;
|
|
80961
|
-
this.$forceUpdate()
|
|
81006
|
+
this.$forceUpdate();
|
|
80962
81007
|
}
|
|
80963
81008
|
});
|
|
80964
81009
|
},
|
|
@@ -81002,22 +81047,22 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81002
81047
|
chatId: this.chatId,
|
|
81003
81048
|
msgIds: flattenedShareList,
|
|
81004
81049
|
})
|
|
81005
|
-
|
|
81006
|
-
|
|
81007
|
-
|
|
81008
|
-
|
|
81009
|
-
|
|
81010
|
-
|
|
81011
|
-
|
|
81012
|
-
|
|
81013
|
-
|
|
81014
|
-
|
|
81015
|
-
|
|
81050
|
+
.then((res) => {
|
|
81051
|
+
this.shareMsgId = res.data.shareId;
|
|
81052
|
+
this.contents = res.data.contents;
|
|
81053
|
+
this.shareText = location.origin + '/#/share/' + res.data.shareId;
|
|
81054
|
+
this.shareDialog = true;
|
|
81055
|
+
})
|
|
81056
|
+
.catch((error) => {
|
|
81057
|
+
console.error('分享失败:', error);
|
|
81058
|
+
this.$message({
|
|
81059
|
+
message: '分享失败,请重试',
|
|
81060
|
+
type: 'error',
|
|
81061
|
+
});
|
|
81062
|
+
})
|
|
81063
|
+
.finally(() => {
|
|
81064
|
+
this.apiLoading = false;
|
|
81016
81065
|
});
|
|
81017
|
-
})
|
|
81018
|
-
.finally(() => {
|
|
81019
|
-
this.apiLoading = false;
|
|
81020
|
-
});
|
|
81021
81066
|
},
|
|
81022
81067
|
shareCopy() {
|
|
81023
81068
|
this.$message({
|
|
@@ -81083,6 +81128,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81083
81128
|
|
|
81084
81129
|
if (this.userInput.trim() !== '' || content) {
|
|
81085
81130
|
this.$parent.messageListData.push({
|
|
81131
|
+
files: this.fileUrls,
|
|
81086
81132
|
content: content || this.userInput,
|
|
81087
81133
|
role: 'user',
|
|
81088
81134
|
});
|
|
@@ -81132,6 +81178,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81132
81178
|
content: content || this.userInput,
|
|
81133
81179
|
role: 'user',
|
|
81134
81180
|
chatType: this.chatType,
|
|
81181
|
+
fileUrls: this.fileUrls,
|
|
81135
81182
|
// bodyId: this.$route.query.bodyId || localStorage.getItem('bodyId'),
|
|
81136
81183
|
bodyId: this.$parent.agentId || this.$route.query.bodyId,
|
|
81137
81184
|
// fileId: this.$parent.fileid,
|
|
@@ -81139,12 +81186,12 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81139
81186
|
templateId: this.templateId || '',
|
|
81140
81187
|
panelId: this.panelId || '',
|
|
81141
81188
|
structure:
|
|
81142
|
-
|
|
81143
|
-
|
|
81144
|
-
|
|
81145
|
-
|
|
81146
|
-
|
|
81147
|
-
|
|
81189
|
+
this.$parent.pptSections.length > 0
|
|
81190
|
+
? {
|
|
81191
|
+
title: this.$parent.PPTTitle || '',
|
|
81192
|
+
catalogs: this.$parent.pptSections,
|
|
81193
|
+
}
|
|
81194
|
+
: null,
|
|
81148
81195
|
coverId: this.$parent.coverId,
|
|
81149
81196
|
// model_name: modelName || 'chatglm3-6b'
|
|
81150
81197
|
},
|
|
@@ -81157,9 +81204,18 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81157
81204
|
if (msg.event === '') {
|
|
81158
81205
|
var result = JSON.parse(msg.data);
|
|
81159
81206
|
self.tempAnswerStatus = result.status;
|
|
81207
|
+
if (result.code != 0) {
|
|
81208
|
+
self.$parent.stop = true;
|
|
81209
|
+
self.chatSending = false;
|
|
81210
|
+
return self.$message({
|
|
81211
|
+
message: result.content,
|
|
81212
|
+
type: 'warning',
|
|
81213
|
+
});
|
|
81214
|
+
}
|
|
81160
81215
|
if (self.waitAnswer) {
|
|
81161
|
-
if (self.tempAnswerStatus == null) {
|
|
81216
|
+
if (self.tempAnswerStatus == null || result.code != 0) {
|
|
81162
81217
|
self.$parent.stop = true;
|
|
81218
|
+
self.chatSending = false;
|
|
81163
81219
|
return self.$message({
|
|
81164
81220
|
message: '您今日的次数已经用完',
|
|
81165
81221
|
type: 'warning',
|
|
@@ -81213,8 +81269,10 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81213
81269
|
self.$parent.isSidebarCollapsed = true;
|
|
81214
81270
|
self.$parent.aiPptDrawer = true;
|
|
81215
81271
|
self.$parent.aiJaDrawer = false;
|
|
81216
|
-
self
|
|
81217
|
-
|
|
81272
|
+
if (self.fileUrls.length == 0) {
|
|
81273
|
+
self.$parent.pptSections = obj.structure.catalogs;
|
|
81274
|
+
self.$parent.PPTTitle = obj.structure.title;
|
|
81275
|
+
}
|
|
81218
81276
|
if (obj.latestResult && obj.latestResult.images_url.length > 0) {
|
|
81219
81277
|
self.$parent.images_url = obj.latestResult.images_url;
|
|
81220
81278
|
}
|
|
@@ -81421,7 +81479,8 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81421
81479
|
this.dislikeFeedback = '';
|
|
81422
81480
|
},
|
|
81423
81481
|
},
|
|
81424
|
-
created() {
|
|
81482
|
+
created() {
|
|
81483
|
+
},
|
|
81425
81484
|
mounted() {
|
|
81426
81485
|
// 添加滚动事件监听
|
|
81427
81486
|
if (this.$refs.recordListRef) {
|
|
@@ -81476,11 +81535,11 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81476
81535
|
|
|
81477
81536
|
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=script&lang=js
|
|
81478
81537
|
/* harmony default export */ var agentComponent_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
|
|
81479
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=0&id=
|
|
81480
|
-
var
|
|
81538
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=0&id=4f9aac34&prod&lang=scss&scoped=true
|
|
81539
|
+
var chatvue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true = __webpack_require__("0521");
|
|
81481
81540
|
|
|
81482
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=1&id=
|
|
81483
|
-
var
|
|
81541
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=1&id=4f9aac34&prod&scoped=true&lang=css
|
|
81542
|
+
var chatvue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css = __webpack_require__("b811");
|
|
81484
81543
|
|
|
81485
81544
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
81486
81545
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -81592,11 +81651,11 @@ function normalizeComponent(
|
|
|
81592
81651
|
|
|
81593
81652
|
var component = normalizeComponent(
|
|
81594
81653
|
agentComponent_chatvue_type_script_lang_js,
|
|
81595
|
-
|
|
81596
|
-
|
|
81654
|
+
chatvue_type_template_id_4f9aac34_scoped_true_render,
|
|
81655
|
+
chatvue_type_template_id_4f9aac34_scoped_true_staticRenderFns,
|
|
81597
81656
|
false,
|
|
81598
81657
|
null,
|
|
81599
|
-
"
|
|
81658
|
+
"4f9aac34",
|
|
81600
81659
|
null
|
|
81601
81660
|
|
|
81602
81661
|
)
|
|
@@ -83883,13 +83942,13 @@ var jiaoAnContent_component = normalizeComponent(
|
|
|
83883
83942
|
)
|
|
83884
83943
|
|
|
83885
83944
|
/* harmony default export */ var jiaoAnContent = (jiaoAnContent_component.exports);
|
|
83886
|
-
// 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=
|
|
83887
|
-
var
|
|
83945
|
+
// 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
|
|
83946
|
+
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)])])])
|
|
83888
83947
|
}
|
|
83889
|
-
var
|
|
83948
|
+
var pptContentvue_type_template_id_29b6cc50_scoped_true_staticRenderFns = []
|
|
83890
83949
|
|
|
83891
83950
|
|
|
83892
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=template&id=
|
|
83951
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=template&id=29b6cc50&scoped=true
|
|
83893
83952
|
|
|
83894
83953
|
// 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
|
|
83895
83954
|
|
|
@@ -84244,8 +84303,8 @@ var pptContentvue_type_template_id_5aa33b0f_scoped_true_staticRenderFns = []
|
|
|
84244
84303
|
|
|
84245
84304
|
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=script&lang=js
|
|
84246
84305
|
/* harmony default export */ var agentComponent_pptContentvue_type_script_lang_js = (pptContentvue_type_script_lang_js);
|
|
84247
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=style&index=0&id=
|
|
84248
|
-
var
|
|
84306
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=style&index=0&id=29b6cc50&prod&lang=scss&scoped=true
|
|
84307
|
+
var pptContentvue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true = __webpack_require__("c154");
|
|
84249
84308
|
|
|
84250
84309
|
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue
|
|
84251
84310
|
|
|
@@ -84258,27 +84317,29 @@ var pptContentvue_type_style_index_0_id_5aa33b0f_prod_lang_scss_scoped_true = __
|
|
|
84258
84317
|
|
|
84259
84318
|
var pptContent_component = normalizeComponent(
|
|
84260
84319
|
agentComponent_pptContentvue_type_script_lang_js,
|
|
84261
|
-
|
|
84262
|
-
|
|
84320
|
+
pptContentvue_type_template_id_29b6cc50_scoped_true_render,
|
|
84321
|
+
pptContentvue_type_template_id_29b6cc50_scoped_true_staticRenderFns,
|
|
84263
84322
|
false,
|
|
84264
84323
|
null,
|
|
84265
|
-
"
|
|
84324
|
+
"29b6cc50",
|
|
84266
84325
|
null
|
|
84267
84326
|
|
|
84268
84327
|
)
|
|
84269
84328
|
|
|
84270
84329
|
/* harmony default export */ var pptContent = (pptContent_component.exports);
|
|
84271
|
-
// 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=
|
|
84272
|
-
var
|
|
84330
|
+
// 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
|
|
84331
|
+
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)
|
|
84273
84332
|
}
|
|
84274
|
-
var
|
|
84333
|
+
var lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_staticRenderFns = []
|
|
84275
84334
|
|
|
84276
84335
|
|
|
84277
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=template&id=
|
|
84336
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=template&id=3174601c&scoped=true
|
|
84278
84337
|
|
|
84279
84338
|
// 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
|
|
84280
84339
|
|
|
84281
84340
|
|
|
84341
|
+
|
|
84342
|
+
|
|
84282
84343
|
/* harmony default export */ var lessonPlanTemplateDialogvue_type_script_lang_js = ({
|
|
84283
84344
|
name: 'LessonPlanTemplateDialog',
|
|
84284
84345
|
props: {
|
|
@@ -84287,50 +84348,34 @@ var lessonPlanTemplateDialogvue_type_template_id_2bc35cad_scoped_true_staticRend
|
|
|
84287
84348
|
default: false,
|
|
84288
84349
|
},
|
|
84289
84350
|
},
|
|
84290
|
-
components: {
|
|
84351
|
+
components: {ElImageViewer: image_viewer},
|
|
84291
84352
|
data() {
|
|
84292
84353
|
return {
|
|
84293
84354
|
dialogVisible: this.visible,
|
|
84294
84355
|
selectedTemplate: 4,
|
|
84295
84356
|
previewVisible: false, // 控制预览对话框显示
|
|
84296
84357
|
previewImageUrl: [], // 预览图片的URL
|
|
84297
|
-
templateData: [
|
|
84298
|
-
{
|
|
84299
|
-
img: 'https://file.banwoxue.com/aiAgent/0c71847272364e8aa9e896d0c57165ab/ebfc82d2b1ca9d669f38ee9f9267a57a.png',
|
|
84300
|
-
id: 4
|
|
84301
|
-
},
|
|
84302
|
-
{
|
|
84303
|
-
img: 'https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/aiJa1.jpg',
|
|
84304
|
-
id: 1,
|
|
84305
|
-
},
|
|
84306
|
-
{
|
|
84307
|
-
img: 'https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/aiJa2.jpg',
|
|
84308
|
-
id: 2,
|
|
84309
|
-
},
|
|
84310
|
-
{
|
|
84311
|
-
img: 'https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/aiJa3.jpg',
|
|
84312
|
-
id: 3,
|
|
84313
|
-
},
|
|
84314
|
-
{
|
|
84315
|
-
img: 'https://file.banwoxue.com/aiAgent/fc9ac22c84bf4094898461a9ece5ddd7/微信图片_20260119141757_785_150.jpg',
|
|
84316
|
-
id: 6,
|
|
84317
|
-
},
|
|
84318
|
-
{
|
|
84319
|
-
img: 'https://file.banwoxue.com/aiAgent/77b0e6d94ff942f98127a6286e05baa5/9a3fd1919d2201ff07b015eb6a5cf9a2.jpg',
|
|
84320
|
-
id: 7,
|
|
84321
|
-
},
|
|
84322
|
-
],
|
|
84358
|
+
templateData: [],
|
|
84323
84359
|
};
|
|
84324
84360
|
},
|
|
84325
84361
|
watch: {
|
|
84326
84362
|
visible(newVal) {
|
|
84327
84363
|
this.dialogVisible = newVal;
|
|
84364
|
+
this.getTemplateList()
|
|
84328
84365
|
},
|
|
84329
84366
|
dialogVisible(newVal) {
|
|
84330
84367
|
this.$emit('update:visible', newVal);
|
|
84331
84368
|
},
|
|
84332
84369
|
},
|
|
84333
84370
|
methods: {
|
|
84371
|
+
//获取模版列表
|
|
84372
|
+
getTemplateList() {
|
|
84373
|
+
aiPanelTemplates({
|
|
84374
|
+
panelId: 1
|
|
84375
|
+
}).then((res) => {
|
|
84376
|
+
this.templateData = res.data.data
|
|
84377
|
+
});
|
|
84378
|
+
},
|
|
84334
84379
|
// 选择模版
|
|
84335
84380
|
selectTemplate(template) {
|
|
84336
84381
|
this.selectedTemplate = template.id;
|
|
@@ -84341,7 +84386,7 @@ var lessonPlanTemplateDialogvue_type_template_id_2bc35cad_scoped_true_staticRend
|
|
|
84341
84386
|
},
|
|
84342
84387
|
// 预览图片
|
|
84343
84388
|
previewImage(item) {
|
|
84344
|
-
this.previewImageUrl = [item.
|
|
84389
|
+
this.previewImageUrl = [item.icon];
|
|
84345
84390
|
this.previewVisible = true;
|
|
84346
84391
|
},
|
|
84347
84392
|
|
|
@@ -84363,8 +84408,8 @@ var lessonPlanTemplateDialogvue_type_template_id_2bc35cad_scoped_true_staticRend
|
|
|
84363
84408
|
|
|
84364
84409
|
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=script&lang=js
|
|
84365
84410
|
/* harmony default export */ var agentComponent_lessonPlanTemplateDialogvue_type_script_lang_js = (lessonPlanTemplateDialogvue_type_script_lang_js);
|
|
84366
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=style&index=0&id=
|
|
84367
|
-
var
|
|
84411
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue?vue&type=style&index=0&id=3174601c&prod&lang=scss&scoped=true
|
|
84412
|
+
var lessonPlanTemplateDialogvue_type_style_index_0_id_3174601c_prod_lang_scss_scoped_true = __webpack_require__("9226");
|
|
84368
84413
|
|
|
84369
84414
|
// CONCATENATED MODULE: ./src/components/agentComponent/lessonPlanTemplateDialog.vue
|
|
84370
84415
|
|
|
@@ -84377,11 +84422,11 @@ var lessonPlanTemplateDialogvue_type_style_index_0_id_2bc35cad_prod_lang_scss_sc
|
|
|
84377
84422
|
|
|
84378
84423
|
var lessonPlanTemplateDialog_component = normalizeComponent(
|
|
84379
84424
|
agentComponent_lessonPlanTemplateDialogvue_type_script_lang_js,
|
|
84380
|
-
|
|
84381
|
-
|
|
84425
|
+
lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_render,
|
|
84426
|
+
lessonPlanTemplateDialogvue_type_template_id_3174601c_scoped_true_staticRenderFns,
|
|
84382
84427
|
false,
|
|
84383
84428
|
null,
|
|
84384
|
-
"
|
|
84429
|
+
"3174601c",
|
|
84385
84430
|
null
|
|
84386
84431
|
|
|
84387
84432
|
)
|
|
@@ -84494,6 +84539,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84494
84539
|
|
|
84495
84540
|
|
|
84496
84541
|
|
|
84542
|
+
|
|
84497
84543
|
/* harmony default export */ var banwoxueAgentComponentvue_type_script_lang_js = ({
|
|
84498
84544
|
components: {
|
|
84499
84545
|
dialogueList: dialogueList,
|
|
@@ -84518,6 +84564,9 @@ function formatTimeDisplay(createTime) {
|
|
|
84518
84564
|
name: 'draw',
|
|
84519
84565
|
data() {
|
|
84520
84566
|
return {
|
|
84567
|
+
file_system_url: '',
|
|
84568
|
+
paramsData: {},
|
|
84569
|
+
fileList: [],
|
|
84521
84570
|
agentArr: '',
|
|
84522
84571
|
tableHtml: '',
|
|
84523
84572
|
content: {},
|
|
@@ -84559,17 +84608,17 @@ function formatTimeDisplay(createTime) {
|
|
|
84559
84608
|
planList: [
|
|
84560
84609
|
{
|
|
84561
84610
|
id: 1,
|
|
84562
|
-
title:
|
|
84611
|
+
title: 'AI教案'
|
|
84563
84612
|
},
|
|
84564
84613
|
{
|
|
84565
84614
|
id: 2,
|
|
84566
|
-
title:
|
|
84615
|
+
title: 'AI PPT'
|
|
84567
84616
|
}
|
|
84568
84617
|
],
|
|
84569
84618
|
modelList: [
|
|
84570
|
-
{
|
|
84571
|
-
{
|
|
84572
|
-
{
|
|
84619
|
+
{time: '今天', list: []},
|
|
84620
|
+
{time: '近7日', list: []},
|
|
84621
|
+
{time: '近30日', list: []},
|
|
84573
84622
|
],
|
|
84574
84623
|
searchValue: '',
|
|
84575
84624
|
pptSections: [],
|
|
@@ -84580,6 +84629,10 @@ function formatTimeDisplay(createTime) {
|
|
|
84580
84629
|
isGuest: false,
|
|
84581
84630
|
//用户类型
|
|
84582
84631
|
userType: '',
|
|
84632
|
+
// 当前模式:0=聊天, 1=教案, 2=PPT, 3=学案
|
|
84633
|
+
currentUploadMode: 0,
|
|
84634
|
+
// 文件上传中
|
|
84635
|
+
uploading: false,
|
|
84583
84636
|
};
|
|
84584
84637
|
},
|
|
84585
84638
|
watch: {
|
|
@@ -84603,6 +84656,20 @@ function formatTimeDisplay(createTime) {
|
|
|
84603
84656
|
},
|
|
84604
84657
|
},
|
|
84605
84658
|
methods: {
|
|
84659
|
+
getOssPolicy() {
|
|
84660
|
+
ossPolicy().then(res => {
|
|
84661
|
+
if (res.data.code === 200) {
|
|
84662
|
+
this.file_system_url = res.data.data.host;
|
|
84663
|
+
this.paramsData = {
|
|
84664
|
+
key: res.data.data.dir, //这里最好在后台处理好
|
|
84665
|
+
policy: res.data.data.policy,
|
|
84666
|
+
OSSAccessKeyId: res.data.data.ossAccessKeyId,
|
|
84667
|
+
signature: res.data.data.signature,
|
|
84668
|
+
success_action_status: '200'
|
|
84669
|
+
};
|
|
84670
|
+
}
|
|
84671
|
+
});
|
|
84672
|
+
},
|
|
84606
84673
|
//获取智能体logo
|
|
84607
84674
|
getAgentLogo() {
|
|
84608
84675
|
getLogo({
|
|
@@ -84637,7 +84704,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84637
84704
|
a.href = url;
|
|
84638
84705
|
const now = new Date();
|
|
84639
84706
|
const formattedDate = `${now.getFullYear()}${String(now.getMonth() + 1).padStart(2, '0')}${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}${String(
|
|
84640
|
-
|
|
84707
|
+
now.getMinutes()
|
|
84641
84708
|
).padStart(2, '0')}${String(now.getSeconds()).padStart(2, '0')}`;
|
|
84642
84709
|
a.download = `${formattedDate}.pptx`; // 设置下载文件名为当前时间
|
|
84643
84710
|
document.body.appendChild(a);
|
|
@@ -84660,11 +84727,11 @@ function formatTimeDisplay(createTime) {
|
|
|
84660
84727
|
// 获取外部某个字符串
|
|
84661
84728
|
getUrlCode(name) {
|
|
84662
84729
|
return (
|
|
84663
|
-
|
|
84664
|
-
|
|
84665
|
-
|
|
84666
|
-
|
|
84667
|
-
|
|
84730
|
+
decodeURIComponent(
|
|
84731
|
+
(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(
|
|
84732
|
+
location.href
|
|
84733
|
+
) || [, ''])[1].replace(/\+/g, '%20')
|
|
84734
|
+
) || null
|
|
84668
84735
|
);
|
|
84669
84736
|
},
|
|
84670
84737
|
showAenget() {
|
|
@@ -84711,7 +84778,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84711
84778
|
this.AiShow = true;
|
|
84712
84779
|
this.isGuest = true;
|
|
84713
84780
|
//游客身份没有AI生成功能
|
|
84714
|
-
this.planList = []
|
|
84781
|
+
this.planList = [];
|
|
84715
84782
|
this.$nextTick(() => {
|
|
84716
84783
|
// 改为通过类名 + CSS 变量的写法:
|
|
84717
84784
|
const element = this.$refs.banwoxueAgentComponent;
|
|
@@ -84723,9 +84790,9 @@ function formatTimeDisplay(createTime) {
|
|
|
84723
84790
|
}).catch(() => {
|
|
84724
84791
|
const environment = sessionStorage.getItem('environment');
|
|
84725
84792
|
let url =
|
|
84726
|
-
|
|
84727
|
-
|
|
84728
|
-
|
|
84793
|
+
environment == 'test'
|
|
84794
|
+
? 'https://testsso.icve.com.cn/sso/auth?mode=simple&redirect='
|
|
84795
|
+
: 'https://sso.icve.com.cn/sso/auth?mode=simple&redirect=';
|
|
84729
84796
|
let redirect = window.location.href;
|
|
84730
84797
|
window.location.href = url + redirect;
|
|
84731
84798
|
});
|
|
@@ -84742,7 +84809,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84742
84809
|
|
|
84743
84810
|
// 3. 重组URL(协议+域名+路径+过滤后的参数+锚点)
|
|
84744
84811
|
const newUrl = `${url.origin}${url.pathname}${searchParams.toString() ? '?' + searchParams.toString() : ''
|
|
84745
|
-
|
|
84812
|
+
}${hash}`;
|
|
84746
84813
|
|
|
84747
84814
|
// 4. 无刷新更新URL
|
|
84748
84815
|
window.history.replaceState({}, document.title, newUrl);
|
|
@@ -84777,6 +84844,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84777
84844
|
|
|
84778
84845
|
// 发送消息
|
|
84779
84846
|
handleChange(i) {
|
|
84847
|
+
this.fileList = [];
|
|
84780
84848
|
if (this.selectedButton == i.id) {
|
|
84781
84849
|
this.selectedButton = null;
|
|
84782
84850
|
} else {
|
|
@@ -84834,7 +84902,7 @@ 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.showTemplateDialog = true;
|
|
84840
84908
|
},
|
|
@@ -84843,14 +84911,17 @@ function formatTimeDisplay(createTime) {
|
|
|
84843
84911
|
this.lessonPlanData.subject = this.$refs.subject.innerText;
|
|
84844
84912
|
this.lessonPlanData.grade = this.$refs.course.innerText;
|
|
84845
84913
|
this.lessonPlanData.course = this.$refs.course.innerText;
|
|
84846
|
-
const {
|
|
84914
|
+
const {subject, grade, course} = this.lessonPlanData;
|
|
84847
84915
|
this.userInput = `帮我写一份关于${subject}的学案,教材名称为${grade},专业学科为${course}。`;
|
|
84848
84916
|
this.sendMessage(5, this.selectedButton);
|
|
84849
84917
|
},
|
|
84850
|
-
generateLessonPlanPPT() {
|
|
84918
|
+
generateLessonPlanPPT(file) {
|
|
84851
84919
|
this.pptSections = [];
|
|
84852
84920
|
this.PPTTitle = this.$refs.PPTTitle.innerText;
|
|
84853
|
-
this.userInput = `帮我生成PPT,主题为:${this.PPTTitle}。`;
|
|
84921
|
+
this.userInput = file ? '基于附件生成PPT' : `帮我生成PPT,主题为:${this.PPTTitle}。`;
|
|
84922
|
+
if (!file) {
|
|
84923
|
+
this.fileList = [];
|
|
84924
|
+
}
|
|
84854
84925
|
this.sendMessage('', 2);
|
|
84855
84926
|
},
|
|
84856
84927
|
|
|
@@ -84861,11 +84932,122 @@ function formatTimeDisplay(createTime) {
|
|
|
84861
84932
|
this.$refs.chat.userInput = this.userInput;
|
|
84862
84933
|
this.$refs.chat.templateId = templateId || '';
|
|
84863
84934
|
this.$refs.chat.panelId = selectedButton || '';
|
|
84935
|
+
if (this.fileList.length > 0) {
|
|
84936
|
+
this.$refs.chat.fileUrls = this.fileList.map((file) => file.url);
|
|
84937
|
+
} else {
|
|
84938
|
+
this.$refs.chat.fileUrls = [];
|
|
84939
|
+
}
|
|
84864
84940
|
this.$refs.chat.sendMessage();
|
|
84865
84941
|
this.userInput = '';
|
|
84942
|
+
this.fileList = [];
|
|
84866
84943
|
});
|
|
84867
84944
|
},
|
|
84868
84945
|
|
|
84946
|
+
// 触发文件上传选择(mode: 1=教案, 2=PPT, 3=学案)
|
|
84947
|
+
triggerUpload(mode) {
|
|
84948
|
+
this.currentUploadMode = mode;
|
|
84949
|
+
// PPT 模式只允许上传一个文件,其它模式允许多个
|
|
84950
|
+
this.$refs.fileInput.multiple = mode !== 2;
|
|
84951
|
+
if (mode === 2) {
|
|
84952
|
+
this.fileList = [];
|
|
84953
|
+
}
|
|
84954
|
+
this.$refs.fileInput.value = ''; // 清空以便重复选择同一文件
|
|
84955
|
+
this.$refs.fileInput.click();
|
|
84956
|
+
},
|
|
84957
|
+
|
|
84958
|
+
// 处理文件选择
|
|
84959
|
+
handleFileSelected(event) {
|
|
84960
|
+
const file = event.target.files[0];
|
|
84961
|
+
if (!file) return;
|
|
84962
|
+
|
|
84963
|
+
// 获取文件扩展名
|
|
84964
|
+
const fileName = file.name.toLowerCase();
|
|
84965
|
+
const ext = fileName.substring(fileName.lastIndexOf('.'));
|
|
84966
|
+
|
|
84967
|
+
// PPT模式允许的文件类型
|
|
84968
|
+
const pptAllowedExts = ['.md', '.doc', '.docx', '.pdf', '.xmind', '.mm', '.txt'];
|
|
84969
|
+
// 非PPT模式允许的文件类型
|
|
84970
|
+
const docAllowedExts = ['.doc', '.docx', '.wps', '.ppt', '.pptx', '.xls', '.xlsx', '.md', '.txt', '.pdf'];
|
|
84971
|
+
|
|
84972
|
+
// 根据模式校验文件类型
|
|
84973
|
+
const allowed = this.currentUploadMode === 2 ? pptAllowedExts : docAllowedExts;
|
|
84974
|
+
if (!allowed.includes(ext)) {
|
|
84975
|
+
const hint = this.currentUploadMode === 2
|
|
84976
|
+
? 'PPT生成仅支持:MarkDown、Word、PDF、XMind、FreeMind、TXT'
|
|
84977
|
+
: '支持文档:.doc、.docx、.wps、.ppt、.pptx、.xls、.xlsx、.md、.txt、.pdf';
|
|
84978
|
+
this.$message.warning(`不支持该文件格式!${hint}`);
|
|
84979
|
+
return;
|
|
84980
|
+
}
|
|
84981
|
+
|
|
84982
|
+
// 限制文件大小(50MB)
|
|
84983
|
+
const maxSize = 50 * 1024 * 1024;
|
|
84984
|
+
if (file.size > maxSize) {
|
|
84985
|
+
this.$message.warning('文件大小不能超过50MB');
|
|
84986
|
+
return;
|
|
84987
|
+
}
|
|
84988
|
+
|
|
84989
|
+
// 上传文件
|
|
84990
|
+
this.uploadFile(file, file.name);
|
|
84991
|
+
},
|
|
84992
|
+
|
|
84993
|
+
// 上传文件到服务器
|
|
84994
|
+
uploadFile(file, fileName) {
|
|
84995
|
+
if (this.uploading) return;
|
|
84996
|
+
this.uploading = true;
|
|
84997
|
+
const formData = new FormData();
|
|
84998
|
+
formData.append('files', file);
|
|
84999
|
+
uploadFile(formData).then(res => {
|
|
85000
|
+
if (res.data.code === 200) {
|
|
85001
|
+
const fileUrl = res.data.fileUrls[0];
|
|
85002
|
+
this.fileList.push({
|
|
85003
|
+
name: fileName,
|
|
85004
|
+
url: fileUrl,
|
|
85005
|
+
category: this.getFileCategory(fileName),
|
|
85006
|
+
});
|
|
85007
|
+
// PPT 模式:上传完成后询问是否基于附件生成
|
|
85008
|
+
if (this.currentUploadMode === 2) {
|
|
85009
|
+
this.$confirm('是否基于当前附件生成 PPT?', '提示', {
|
|
85010
|
+
confirmButtonText: '生成',
|
|
85011
|
+
cancelButtonText: '取消',
|
|
85012
|
+
type: 'info',
|
|
85013
|
+
}).then(() => {
|
|
85014
|
+
this.generateLessonPlanPPT('file');
|
|
85015
|
+
}).catch(() => {
|
|
85016
|
+
// 取消则删除刚上传的附件
|
|
85017
|
+
this.fileList.pop();
|
|
85018
|
+
});
|
|
85019
|
+
}
|
|
85020
|
+
} else {
|
|
85021
|
+
this.$message.error(res.data.msg || '文件上传失败');
|
|
85022
|
+
}
|
|
85023
|
+
}).catch(() => {
|
|
85024
|
+
this.$message.error('文件上传失败,请稍后重试');
|
|
85025
|
+
}).finally(() => {
|
|
85026
|
+
this.uploading = false;
|
|
85027
|
+
});
|
|
85028
|
+
},
|
|
85029
|
+
|
|
85030
|
+
// 获取文件类别
|
|
85031
|
+
getFileCategory(fileName) {
|
|
85032
|
+
const ext = fileName.substring(fileName.lastIndexOf('.')).toLowerCase();
|
|
85033
|
+
const categoryMap = {
|
|
85034
|
+
'.doc': 'Word', '.docx': 'Word', '.wps': 'Word',
|
|
85035
|
+
'.ppt': 'PPT', '.pptx': 'PPT',
|
|
85036
|
+
'.xls': 'Excel', '.xlsx': 'Excel',
|
|
85037
|
+
'.pdf': 'PDF',
|
|
85038
|
+
'.md': 'Markdown',
|
|
85039
|
+
'.txt': '文本',
|
|
85040
|
+
'.xmind': 'XMind',
|
|
85041
|
+
'.mm': 'MindMap',
|
|
85042
|
+
};
|
|
85043
|
+
return categoryMap[ext] || '其他';
|
|
85044
|
+
},
|
|
85045
|
+
|
|
85046
|
+
// 删除文件
|
|
85047
|
+
removeFile(index) {
|
|
85048
|
+
this.fileList.splice(index, 1);
|
|
85049
|
+
},
|
|
85050
|
+
|
|
84869
85051
|
// 处理打开教案侧边栏
|
|
84870
85052
|
handleOpenLessonSidebar(item) {
|
|
84871
85053
|
this.pptContentId = item.contentId;
|
|
@@ -84893,6 +85075,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84893
85075
|
},
|
|
84894
85076
|
},
|
|
84895
85077
|
created() {
|
|
85078
|
+
this.getOssPolicy();
|
|
84896
85079
|
this.getAgentLogo();
|
|
84897
85080
|
// this.showAenget();
|
|
84898
85081
|
const isSidebarCollapsed = sessionStorage.getItem('isSidebarCollapsed');
|
|
@@ -84925,11 +85108,11 @@ function formatTimeDisplay(createTime) {
|
|
|
84925
85108
|
|
|
84926
85109
|
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=script&lang=js
|
|
84927
85110
|
/* harmony default export */ var components_banwoxueAgentComponentvue_type_script_lang_js = (banwoxueAgentComponentvue_type_script_lang_js);
|
|
84928
|
-
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=0&id=
|
|
84929
|
-
var
|
|
85111
|
+
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=0&id=05cb4ad5&prod&lang=css
|
|
85112
|
+
var banwoxueAgentComponentvue_type_style_index_0_id_05cb4ad5_prod_lang_css = __webpack_require__("1ff2");
|
|
84930
85113
|
|
|
84931
|
-
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=1&id=
|
|
84932
|
-
var
|
|
85114
|
+
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=1&id=05cb4ad5&prod&lang=scss&scoped=true
|
|
85115
|
+
var banwoxueAgentComponentvue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true = __webpack_require__("5803");
|
|
84933
85116
|
|
|
84934
85117
|
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue
|
|
84935
85118
|
|
|
@@ -84947,7 +85130,7 @@ var banwoxueAgentComponent_component = normalizeComponent(
|
|
|
84947
85130
|
staticRenderFns,
|
|
84948
85131
|
false,
|
|
84949
85132
|
null,
|
|
84950
|
-
"
|
|
85133
|
+
"05cb4ad5",
|
|
84951
85134
|
null
|
|
84952
85135
|
|
|
84953
85136
|
)
|
|
@@ -84972,17 +85155,6 @@ var banwoxueAgentComponent_component = normalizeComponent(
|
|
|
84972
85155
|
|
|
84973
85156
|
|
|
84974
85157
|
|
|
84975
|
-
/***/ }),
|
|
84976
|
-
|
|
84977
|
-
/***/ "fc7f":
|
|
84978
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
84979
|
-
|
|
84980
|
-
"use strict";
|
|
84981
|
-
/* 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");
|
|
84982
|
-
/* 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__);
|
|
84983
|
-
/* unused harmony reexport * */
|
|
84984
|
-
|
|
84985
|
-
|
|
84986
85158
|
/***/ })
|
|
84987
85159
|
|
|
84988
85160
|
/******/ });
|