ai-component-bwx 0.0.29 → 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 +370 -193
- 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 +370 -193
- 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
|
@@ -374,10 +374,14 @@ module.exports.f = function getOwnPropertyNames(it) {
|
|
|
374
374
|
|
|
375
375
|
/***/ }),
|
|
376
376
|
|
|
377
|
-
/***/ "
|
|
378
|
-
/***/ (function(module,
|
|
377
|
+
/***/ "0521":
|
|
378
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
379
|
+
|
|
380
|
+
"use strict";
|
|
381
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f578");
|
|
382
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
383
|
+
/* unused harmony reexport * */
|
|
379
384
|
|
|
380
|
-
// extracted by mini-css-extract-plugin
|
|
381
385
|
|
|
382
386
|
/***/ }),
|
|
383
387
|
|
|
@@ -546,6 +550,13 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
546
550
|
module.exports = Axios;
|
|
547
551
|
|
|
548
552
|
|
|
553
|
+
/***/ }),
|
|
554
|
+
|
|
555
|
+
/***/ "0d55":
|
|
556
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
557
|
+
|
|
558
|
+
// extracted by mini-css-extract-plugin
|
|
559
|
+
|
|
549
560
|
/***/ }),
|
|
550
561
|
|
|
551
562
|
/***/ "0df6":
|
|
@@ -1193,17 +1204,6 @@ module.exports = function bind(fn, thisArg) {
|
|
|
1193
1204
|
};
|
|
1194
1205
|
|
|
1195
1206
|
|
|
1196
|
-
/***/ }),
|
|
1197
|
-
|
|
1198
|
-
/***/ "1e96":
|
|
1199
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1200
|
-
|
|
1201
|
-
"use strict";
|
|
1202
|
-
/* 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");
|
|
1203
|
-
/* 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__);
|
|
1204
|
-
/* unused harmony reexport * */
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
1207
|
/***/ }),
|
|
1208
1208
|
|
|
1209
1209
|
/***/ "1ec9":
|
|
@@ -1218,6 +1218,17 @@ module.exports = function (it) {
|
|
|
1218
1218
|
};
|
|
1219
1219
|
|
|
1220
1220
|
|
|
1221
|
+
/***/ }),
|
|
1222
|
+
|
|
1223
|
+
/***/ "1ff2":
|
|
1224
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1225
|
+
|
|
1226
|
+
"use strict";
|
|
1227
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_05cb4ad5_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("bbee");
|
|
1228
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_05cb4ad5_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_05cb4ad5_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
1229
|
+
/* unused harmony reexport * */
|
|
1230
|
+
|
|
1231
|
+
|
|
1221
1232
|
/***/ }),
|
|
1222
1233
|
|
|
1223
1234
|
/***/ "21a6":
|
|
@@ -1398,17 +1409,6 @@ module.exports = function (it) {
|
|
|
1398
1409
|
};
|
|
1399
1410
|
|
|
1400
1411
|
|
|
1401
|
-
/***/ }),
|
|
1402
|
-
|
|
1403
|
-
/***/ "28b0":
|
|
1404
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1405
|
-
|
|
1406
|
-
"use strict";
|
|
1407
|
-
/* 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");
|
|
1408
|
-
/* 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__);
|
|
1409
|
-
/* unused harmony reexport * */
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
1412
|
/***/ }),
|
|
1413
1413
|
|
|
1414
1414
|
/***/ "294c":
|
|
@@ -2000,13 +2000,6 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
2000
2000
|
};
|
|
2001
2001
|
|
|
2002
2002
|
|
|
2003
|
-
/***/ }),
|
|
2004
|
-
|
|
2005
|
-
/***/ "2df1":
|
|
2006
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2007
|
-
|
|
2008
|
-
// extracted by mini-css-extract-plugin
|
|
2009
|
-
|
|
2010
2003
|
/***/ }),
|
|
2011
2004
|
|
|
2012
2005
|
/***/ "2e67":
|
|
@@ -2227,17 +2220,6 @@ module.exports = __webpack_require__("8e60") ? function (object, key, value) {
|
|
|
2227
2220
|
};
|
|
2228
2221
|
|
|
2229
2222
|
|
|
2230
|
-
/***/ }),
|
|
2231
|
-
|
|
2232
|
-
/***/ "3675":
|
|
2233
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2234
|
-
|
|
2235
|
-
"use strict";
|
|
2236
|
-
/* 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");
|
|
2237
|
-
/* 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__);
|
|
2238
|
-
/* unused harmony reexport * */
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
2223
|
/***/ }),
|
|
2242
2224
|
|
|
2243
2225
|
/***/ "36c3":
|
|
@@ -2378,17 +2360,6 @@ module.exports = (
|
|
|
2378
2360
|
);
|
|
2379
2361
|
|
|
2380
2362
|
|
|
2381
|
-
/***/ }),
|
|
2382
|
-
|
|
2383
|
-
/***/ "3968":
|
|
2384
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2385
|
-
|
|
2386
|
-
"use strict";
|
|
2387
|
-
/* 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");
|
|
2388
|
-
/* 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__);
|
|
2389
|
-
/* unused harmony reexport * */
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
2363
|
/***/ }),
|
|
2393
2364
|
|
|
2394
2365
|
/***/ "3a38":
|
|
@@ -20956,6 +20927,17 @@ module.exports = function (key) {
|
|
|
20956
20927
|
};
|
|
20957
20928
|
|
|
20958
20929
|
|
|
20930
|
+
/***/ }),
|
|
20931
|
+
|
|
20932
|
+
/***/ "5803":
|
|
20933
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20934
|
+
|
|
20935
|
+
"use strict";
|
|
20936
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0d55");
|
|
20937
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
20938
|
+
/* unused harmony reexport * */
|
|
20939
|
+
|
|
20940
|
+
|
|
20959
20941
|
/***/ }),
|
|
20960
20942
|
|
|
20961
20943
|
/***/ "584a":
|
|
@@ -66973,6 +66955,13 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
|
66973
66955
|
}
|
|
66974
66956
|
|
|
66975
66957
|
|
|
66958
|
+
/***/ }),
|
|
66959
|
+
|
|
66960
|
+
/***/ "6d84":
|
|
66961
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
66962
|
+
|
|
66963
|
+
// extracted by mini-css-extract-plugin
|
|
66964
|
+
|
|
66976
66965
|
/***/ }),
|
|
66977
66966
|
|
|
66978
66967
|
/***/ "6dd8":
|
|
@@ -67911,17 +67900,6 @@ var index = (function () {
|
|
|
67911
67900
|
|
|
67912
67901
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
67913
67902
|
|
|
67914
|
-
/***/ }),
|
|
67915
|
-
|
|
67916
|
-
/***/ "6e52":
|
|
67917
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
67918
|
-
|
|
67919
|
-
"use strict";
|
|
67920
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_ba98e436_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b888");
|
|
67921
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_ba98e436_prod_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_banwoxueAgentComponent_vue_vue_type_style_index_0_id_ba98e436_prod_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
67922
|
-
/* unused harmony reexport * */
|
|
67923
|
-
|
|
67924
|
-
|
|
67925
67903
|
/***/ }),
|
|
67926
67904
|
|
|
67927
67905
|
/***/ "71c1":
|
|
@@ -68059,6 +68037,13 @@ exports.default = aria.Dialog;
|
|
|
68059
68037
|
|
|
68060
68038
|
/***/ }),
|
|
68061
68039
|
|
|
68040
|
+
/***/ "759f":
|
|
68041
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
68042
|
+
|
|
68043
|
+
// extracted by mini-css-extract-plugin
|
|
68044
|
+
|
|
68045
|
+
/***/ }),
|
|
68046
|
+
|
|
68062
68047
|
/***/ "765d":
|
|
68063
68048
|
/***/ (function(module, exports, __webpack_require__) {
|
|
68064
68049
|
|
|
@@ -71873,13 +71858,6 @@ Schema.messages = messages_messages;
|
|
|
71873
71858
|
|
|
71874
71859
|
/***/ }),
|
|
71875
71860
|
|
|
71876
|
-
/***/ "a32c":
|
|
71877
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
71878
|
-
|
|
71879
|
-
// extracted by mini-css-extract-plugin
|
|
71880
|
-
|
|
71881
|
-
/***/ }),
|
|
71882
|
-
|
|
71883
71861
|
/***/ "a3c3":
|
|
71884
71862
|
/***/ (function(module, exports, __webpack_require__) {
|
|
71885
71863
|
|
|
@@ -72286,10 +72264,14 @@ module.exports = function xhrAdapter(config) {
|
|
|
72286
72264
|
|
|
72287
72265
|
/***/ }),
|
|
72288
72266
|
|
|
72289
|
-
/***/ "
|
|
72290
|
-
/***/ (function(module,
|
|
72267
|
+
/***/ "b811":
|
|
72268
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72269
|
+
|
|
72270
|
+
"use strict";
|
|
72271
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6d84");
|
|
72272
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_chat_vue_vue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
72273
|
+
/* unused harmony reexport * */
|
|
72291
72274
|
|
|
72292
|
-
// extracted by mini-css-extract-plugin
|
|
72293
72275
|
|
|
72294
72276
|
/***/ }),
|
|
72295
72277
|
|
|
@@ -72299,6 +72281,13 @@ module.exports = function xhrAdapter(config) {
|
|
|
72299
72281
|
module.exports = true;
|
|
72300
72282
|
|
|
72301
72283
|
|
|
72284
|
+
/***/ }),
|
|
72285
|
+
|
|
72286
|
+
/***/ "bbee":
|
|
72287
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
72288
|
+
|
|
72289
|
+
// extracted by mini-css-extract-plugin
|
|
72290
|
+
|
|
72302
72291
|
/***/ }),
|
|
72303
72292
|
|
|
72304
72293
|
/***/ "bc3a":
|
|
@@ -72337,6 +72326,17 @@ exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescript
|
|
|
72337
72326
|
module.exports = __webpack_require__("d4af");
|
|
72338
72327
|
|
|
72339
72328
|
|
|
72329
|
+
/***/ }),
|
|
72330
|
+
|
|
72331
|
+
/***/ "c154":
|
|
72332
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
72333
|
+
|
|
72334
|
+
"use strict";
|
|
72335
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("759f");
|
|
72336
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_pptContent_vue_vue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
72337
|
+
/* unused harmony reexport * */
|
|
72338
|
+
|
|
72339
|
+
|
|
72340
72340
|
/***/ }),
|
|
72341
72341
|
|
|
72342
72342
|
/***/ "c207":
|
|
@@ -79554,6 +79554,13 @@ src_radio.install = function (Vue) {
|
|
|
79554
79554
|
|
|
79555
79555
|
/***/ }),
|
|
79556
79556
|
|
|
79557
|
+
/***/ "f578":
|
|
79558
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
79559
|
+
|
|
79560
|
+
// extracted by mini-css-extract-plugin
|
|
79561
|
+
|
|
79562
|
+
/***/ }),
|
|
79563
|
+
|
|
79557
79564
|
/***/ "f6b4":
|
|
79558
79565
|
/***/ (function(module, exports, __webpack_require__) {
|
|
79559
79566
|
|
|
@@ -79614,13 +79621,6 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
79614
79621
|
module.exports = InterceptorManager;
|
|
79615
79622
|
|
|
79616
79623
|
|
|
79617
|
-
/***/ }),
|
|
79618
|
-
|
|
79619
|
-
/***/ "f6f9":
|
|
79620
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
79621
|
-
|
|
79622
|
-
// extracted by mini-css-extract-plugin
|
|
79623
|
-
|
|
79624
79624
|
/***/ }),
|
|
79625
79625
|
|
|
79626
79626
|
/***/ "f772":
|
|
@@ -79689,23 +79689,23 @@ if (typeof window !== 'undefined') {
|
|
|
79689
79689
|
// Indicate to webpack that this file can be concatenated
|
|
79690
79690
|
/* harmony default export */ var setPublicPath = (null);
|
|
79691
79691
|
|
|
79692
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/banwoxueAgentComponent.vue?vue&type=template&id=
|
|
79693
|
-
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"height":"400vh"}},[(_vm.AiShow)?_c('div',{ref:"banwoxueAgentComponent",staticClass:"banwoxueAgentComponent"},[_c('div',{staticClass:"close",on:{"click":function($event){_vm.AiShow = !_vm.AiShow}}},[_vm._v("✕")]),(!_vm.isGuest)?_c('div',{staticClass:"left_dialogueList",class:{ collapsed: _vm.isSidebarCollapsed }},[_c('div',{staticClass:"sidebar-toggle",on:{"click":_vm.toggleSidebar}},[_c('i',{class:_vm.isSidebarCollapsed ? 'el-icon-arrow-right' : 'el-icon-arrow-left'})]),_c('transition',{attrs:{"mode":"out-in","name":"slide-fade"}},[_c('dialogueList',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSidebarCollapsed),expression:"!isSidebarCollapsed"}],attrs:{"modelList":_vm.modelList}})],1)],1):_vm._e(),_c('div',{staticClass:"draw-content"},[(!_vm.chatShow)?_c('div',{staticClass:"moxing"},[_c('popularAndCommand')],1):_vm._e(),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[(_vm.chatShow)?_c('div',{staticClass:"chat"},[_c('chat',{ref:"chat",attrs:{"chatType":1,"messageListData":_vm.messageListData,"sideCurrentId":_vm.sideCurrentId,"sideCurrentName":_vm.sideCurrentName},on:{"openLessonSidebar":_vm.handleOpenLessonSidebar,"openPptSidebar":_vm.handleOpenPptSidebar}})],1):_vm._e()]),_c('div',{staticClass:"foot"},[_c('div',{staticClass:"inputField"},[_c('div',{staticClass:"function-buttons"},_vm._l((_vm.planList),function(i){return _c('div',{key:i.id,staticClass:"ai-btnja",class:{ active: _vm.selectedButton === i.id },on:{"click":function($event){return _vm.handleChange(i)}}},[_vm._v(" "+_vm._s(i.title)+" ")])}),0),(_vm.selectedButton == 1)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 1)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI教案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的教案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlan}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])]):(_vm.selectedButton == 2)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 2)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI PPT ")]),_c('span',[_vm._v("帮我生成PPT,主题为")]),_c('span',{ref:"PPTTitle",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[PPT主题]"}}),_c('span',[_vm._v("。")]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanPPT}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])]):(_vm.selectedButton == 3)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 3)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI学案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的学案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanAi}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])]):_c('div',{staticClass:"input-container",staticStyle:{"position":"relative","display":"inline-block"}},[_c('el-input',{ref:"input",style:({ resize: 'none' }),attrs:{"disabled":_vm.voice,"placeholder":_vm.placeholder,"rows":2,"type":"textarea"},nativeOn:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handleEnterKey.apply(null, arguments)}},model:{value:(_vm.userInput),callback:function ($$v) {_vm.userInput=$$v},expression:"userInput"}}),_c('div',{staticClass:"send",staticStyle:{"position":"absolute","right":"
|
|
79692
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/banwoxueAgentComponent.vue?vue&type=template&id=05cb4ad5&scoped=true
|
|
79693
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"height":"400vh"}},[(_vm.AiShow)?_c('div',{ref:"banwoxueAgentComponent",staticClass:"banwoxueAgentComponent"},[_c('div',{staticClass:"close",on:{"click":function($event){_vm.AiShow = !_vm.AiShow}}},[_vm._v("✕")]),(!_vm.isGuest)?_c('div',{staticClass:"left_dialogueList",class:{ collapsed: _vm.isSidebarCollapsed }},[_c('div',{staticClass:"sidebar-toggle",on:{"click":_vm.toggleSidebar}},[_c('i',{class:_vm.isSidebarCollapsed ? 'el-icon-arrow-right' : 'el-icon-arrow-left'})]),_c('transition',{attrs:{"mode":"out-in","name":"slide-fade"}},[_c('dialogueList',{directives:[{name:"show",rawName:"v-show",value:(!_vm.isSidebarCollapsed),expression:"!isSidebarCollapsed"}],attrs:{"modelList":_vm.modelList}})],1)],1):_vm._e(),_c('div',{staticClass:"draw-content"},[(!_vm.chatShow)?_c('div',{staticClass:"moxing"},[_c('popularAndCommand')],1):_vm._e(),_c('transition',{attrs:{"name":"el-zoom-in-top"}},[(_vm.chatShow)?_c('div',{staticClass:"chat"},[_c('chat',{ref:"chat",attrs:{"chatType":1,"messageListData":_vm.messageListData,"sideCurrentId":_vm.sideCurrentId,"sideCurrentName":_vm.sideCurrentName},on:{"openLessonSidebar":_vm.handleOpenLessonSidebar,"openPptSidebar":_vm.handleOpenPptSidebar}})],1):_vm._e()]),_c('div',{staticClass:"foot"},[_c('div',{staticClass:"inputField"},[_c('div',{staticClass:"function-buttons"},_vm._l((_vm.planList),function(i){return _c('div',{key:i.id,staticClass:"ai-btnja",class:{ active: _vm.selectedButton === i.id },on:{"click":function($event){return _vm.handleChange(i)}}},[_vm._v(" "+_vm._s(i.title)+" ")])}),0),(_vm.selectedButton == 1)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 1)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI教案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的教案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),(_vm.fileList.length)?_c('div',{staticClass:"file-list"},_vm._l((_vm.fileList),function(file,index){return _c('div',{key:index,staticClass:"file-item"},[_c('span',{staticClass:"file-category"},[_vm._v(_vm._s(file.category))]),_c('span',{staticClass:"file-name",attrs:{"title":file.name}},[_vm._v(_vm._s(file.name))]),_c('span',{staticClass:"file-delete",on:{"click":function($event){$event.stopPropagation();return _vm.removeFile(index)}}},[_vm._v("×")])])}),0):_vm._e(),_c('div',{staticClass:"template-actions"},[_c('button',{staticClass:"upload-btn",attrs:{"title":"上传附件"},on:{"click":function($event){return _vm.triggerUpload(1)}}},[_c('svg',{attrs:{"fill":"none","stroke":"#5b58e3","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}})]),_c('span',{staticClass:"upload-label"},[_vm._v("附件")])]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlan}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])])]):(_vm.selectedButton == 2)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 2)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI PPT ")]),_c('span',[_vm._v("帮我生成PPT,主题为")]),_c('span',{ref:"PPTTitle",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[PPT主题]"}}),_c('span',[_vm._v("。")]),_c('div',{staticClass:"template-actions"},[_c('button',{staticClass:"upload-btn",attrs:{"title":"上传附件(支持 .md/.doc/.docx/.pdf/.xmind/.mm/.txt)"},on:{"click":function($event){return _vm.triggerUpload(2)}}},[_c('svg',{attrs:{"fill":"none","stroke":"#5b58e3","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}})]),_c('span',{staticClass:"upload-label"},[_vm._v("附件")])]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanPPT}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])])]):(_vm.selectedButton == 3)?_c('div',{staticClass:"lesson-plan-template",on:{"keydown":function($event){return _vm.handleKeydown($event, 3)}}},[_c('span',{staticStyle:{"color":"#5b58e3"}},[_vm._v("AI学案 ")]),_c('span',[_vm._v("帮我写一份关于")]),_c('span',{ref:"subject",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[课程名称]"}}),_c('span',[_vm._v("的学案,教材名称为")]),_c('span',{ref:"grade",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:新闻采访与写作]"}}),_c('span',[_vm._v(",专业学科为")]),_c('span',{ref:"course",staticClass:"editable-part",attrs:{"contenteditable":"true","data-placeholder":"[如:数学]"}}),_c('span',[_vm._v("。")]),(_vm.fileList.length)?_c('div',{staticClass:"file-list"},_vm._l((_vm.fileList),function(file,index){return _c('div',{key:index,staticClass:"file-item"},[_c('span',{staticClass:"file-category"},[_vm._v(_vm._s(file.category))]),_c('span',{staticClass:"file-name",attrs:{"title":file.name}},[_vm._v(_vm._s(file.name))]),_c('span',{staticClass:"file-delete",on:{"click":function($event){$event.stopPropagation();return _vm.removeFile(index)}}},[_vm._v("×")])])}),0):_vm._e(),_c('div',{staticClass:"template-actions"},[_c('button',{staticClass:"upload-btn",attrs:{"title":"上传附件"},on:{"click":function($event){return _vm.triggerUpload(3)}}},[_c('svg',{attrs:{"fill":"none","stroke":"#5b58e3","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}})]),_c('span',{staticClass:"upload-label"},[_vm._v("附件")])]),_c('button',{staticClass:"generate-btn",on:{"click":_vm.generateLessonPlanAi}},[_c('img',{attrs:{"alt":"生成","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])])]):_c('div',{staticClass:"input-container",staticStyle:{"position":"relative","display":"inline-block"}},[_c('el-input',{ref:"input",style:({ resize: 'none' }),attrs:{"disabled":_vm.voice,"placeholder":_vm.placeholder,"rows":2,"type":"textarea"},nativeOn:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handleEnterKey.apply(null, arguments)}},model:{value:(_vm.userInput),callback:function ($$v) {_vm.userInput=$$v},expression:"userInput"}}),_c('div',{staticClass:"send",staticStyle:{"position":"absolute","right":"20px","bottom":"11px"},on:{"click":_vm.handleEnterKey}},[_c('img',{attrs:{"alt":"发送","src":"https://file.banwoxue.com/aiAgent/66223df144904d83a5aa97edfcbbb256/send.png"}})])],1),_c('input',{ref:"fileInput",staticStyle:{"display":"none"},attrs:{"type":"file"},on:{"change":_vm.handleFileSelected}})]),_c('foot')],1)],1),(_vm.aiJaDrawer)?_c('div',{staticClass:"right-sidebar",attrs:{"id":"rightSidebar"}},[_c('JiaoAnContent',{attrs:{"content":_vm.content,"tableHtml":_vm.tableHtml}})],1):_vm._e(),(_vm.aiPptDrawer)?_c('div',{staticClass:"right-sidebar",attrs:{"id":"pptSidebar"}},[_c('PptContent',{attrs:{"images_url":_vm.images_url,"pptSections":_vm.pptSections},on:{"regenerate":_vm.handleRegeneratePpt}})],1):_vm._e(),_c('LessonPlanTemplateDialog',{attrs:{"visible":_vm.showTemplateDialog},on:{"update:visible":function($event){_vm.showTemplateDialog=$event},"template-selected":_vm.handleTemplateSelected}}),(_vm.showPptTemplateDialog)?_c('PptTemplateDialog',{on:{"template-selected":_vm.handlePptTemplateSelected}}):_vm._e()],1):_c('div',{staticClass:"logoShow",on:{"click":_vm.showAenget}},[_c('img',{attrs:{"src":_vm.agentArr,"alt":""}})])])
|
|
79694
79694
|
}
|
|
79695
79695
|
var staticRenderFns = []
|
|
79696
79696
|
|
|
79697
79697
|
|
|
79698
|
-
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=template&id=
|
|
79698
|
+
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=template&id=05cb4ad5&scoped=true
|
|
79699
79699
|
|
|
79700
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/chat.vue?vue&type=template&id=
|
|
79701
|
-
var
|
|
79700
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/chat.vue?vue&type=template&id=4f9aac34&scoped=true
|
|
79701
|
+
var chatvue_type_template_id_4f9aac34_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"contents"},[_c('div',{staticClass:"addDia"},[_c('div',{staticClass:"chat_window"},[_c('div',{staticClass:"conWindow"},[_c('div',{ref:"recordListRef",staticClass:"messageBox"},[_c('ul',{staticClass:"messages"},[_c('el-checkbox-group',{staticClass:"label-none",model:{value:(_vm.shareList),callback:function ($$v) {_vm.shareList=$$v},expression:"shareList"}},_vm._l((_vm.messageListData),function(item,index){return _c('div',{key:index},[_c('li',{staticClass:"list",class:item.role == 'user' ? 'user_message' : 'replay_message'},[(_vm.shareStatus && item.contentId && item.role != 'user')?_c('el-checkbox',{key:index,attrs:{"label":item.contentId + ',' + item.parentMsgId}}):_vm._e(),_c('div',{staticClass:"chatFrame"},[_c('div',{staticClass:"img"},[(item.role == 'user')?_c('img',{attrs:{"id":"user","alt":"","src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/user.png"}}):_c('img',{attrs:{"id":"gif","src":_vm.gifPath,"alt":""}})]),_c('div',{staticClass:"text-content"},[(item.typeId == 1 || _vm.getJaShow(item))?_c('div',{staticClass:"ai-content-card"},[_c('div',{staticClass:"card-prompt"},[_vm._v(_vm._s(_vm.getPromptText(item)))]),_c('div',{staticClass:"main-card"},[_c('div',{staticClass:"card-left"},[_c('div',{staticClass:"card-icon"},[_c('span',{staticClass:"icon-text"},[_vm._v("T")])]),_c('div',{staticClass:"card-info"},[_c('div',{staticClass:"card-title"},[_vm._v(_vm._s(_vm.getCardTitle(item)))]),_c('div',{staticClass:"card-status"},[_vm._v(_vm._s(item.status == 1 ? '无法预览中途停止的文档' : _vm.getItemLoadingStatus(item) ? '生成中...' : '已完成')+" ")])])]),(!_vm.getItemLoadingStatus(item))?_c('div',{staticClass:"card-actions"},[_c('button',{staticClass:"action-btn view-btn",attrs:{"title":"预览"},on:{"click":function($event){return _vm.previewContent(item)}}},[_c('i',{staticClass:"el-icon-view"})]),_c('button',{staticClass:"action-btn download-btn",attrs:{"title":"下载"},on:{"click":function($event){return _vm.openLessonSidebar(item)}}},[_c('i',{staticClass:"el-icon-download"})])]):_vm._e()]),_c('div',{staticClass:"card-prompt"},[_vm._v(_vm._s(_vm.getPromptLastText(item)))])]):(item.typeId == 2 || _vm.getPptShow(item))?_c('div',{staticClass:"ai-content-card"},[(_vm.tempAnswerStatus == 0)?_c('div',{staticClass:"card-prompt"},[_vm._v("为您生成PPT中,生成过程大约需要1分钟,请耐心等待~")]):_c('div',{staticClass:"card-prompt"},[_vm._v("PPT 已生成完成!点击下方按钮即可查看、下载或编辑。")]),_c('div',{staticClass:"main-card"},[_c('div',{staticClass:"card-left"},[_c('div',{staticClass:"card-icon"},[_c('span',{staticClass:"icon-text"},[_vm._v("P")])]),_c('div',{staticClass:"card-info"},[_c('div',{staticClass:"card-status"},[_vm._v(_vm._s(item.status == 1 ? '无法预览中途停止的文档' : item.status == 2 ? '已完成' : '生成中...')+" ")])])]),(item.status == 2)?_c('div',{staticClass:"card-actions"},[_c('button',{staticClass:"action-btn view-btn",attrs:{"title":"预览"},on:{"click":function($event){return _vm.pptPreviewContent(item)}}},[_c('i',{staticClass:"el-icon-view"})]),_c('button',{staticClass:"action-btn download-btn",attrs:{"title":"下载"},on:{"click":function($event){return _vm.pptDownload(item)}}},[_c('i',{staticClass:"el-icon-download"})])]):_vm._e()]),_c('div',{staticClass:"card-prompt"},[_vm._v(_vm._s(_vm.getPromptLastText(item)))])]):_c('div',[_c('div',{staticClass:"text",domProps:{"innerHTML":_vm._s(item.content || '暂无内容')}}),(item.files && item.files.length != 0)?_c('div',{staticClass:"file"},[_c('div',{staticClass:"file-title"},[_vm._v("附件:")]),_c('div',{staticClass:"file-content"},_vm._l((item.files),function(file,j){return _c('div',{key:j,staticClass:"files"},[_c('span',[_vm._v(_vm._s(_vm.getFileName(file)))])])}),0)]):_vm._e(),( false)?undefined:_vm._e()]),(item.role == 'assistant' && item.status == 1)?_c('div',{staticClass:"stopped"},[_vm._v("已停止生成")]):_vm._e()]),_c('div',{staticClass:"reloadAnswer"},[(_vm.tempAnswerStatus != 0 && !item.panelId && item.role == 'assistant')?_c('img',{attrs:{"alt":"复制","src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/fuzhi1.png","title":"复制"},on:{"click":function($event){return _vm.clickCopy(item.content)}}}):_vm._e(),(item.role == 'assistant' && item.contentId)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/zhongxintijiao1.png","title":"重新生成"},on:{"click":function($event){return _vm.ReloadAnswer(index, true, item)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType != 1 && !_vm.$parent.isGuest)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/dianzan1.png","title":"好评"},on:{"click":function($event){return _vm.showLikeOptions(index, $event)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType == 1)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/dianzan2.png","title":"好评"},on:{"click":function($event){return _vm.showLikeOptions(index)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType != 2 && !_vm.$parent.isGuest)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/chaping1.png","title":"差评"},on:{"click":function($event){return _vm.showDislikeModal(index)}}}):_vm._e(),((index != _vm.messageListData.length - 1 || _vm.tempAnswerStatus != 0) && item.role == 'assistant' && item.feedbackType == 2)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/chaping2.png","title":"差评"},on:{"click":function($event){return _vm.showDislikeModal(index)}}}):_vm._e(),(index == _vm.messageListData.length - 1 && _vm.tempAnswerStatus == 0)?_c('img',{attrs:{"src":"https://file.banwoxue.com/aiAgent/d8295edcd4494319951597ff954e3a63/zanting1.png","title":"停止输出"},on:{"click":function($event){return _vm.stopMessage(item)}}}):_vm._e()])])],1)])}),0),(_vm.chatSending)?_c('div',{staticClass:"loading-message"},[_c('div',{staticClass:"list replay_message"},[_c('div',{staticClass:"chatFrame"},[_c('div',{staticClass:"img"},[_c('img',{attrs:{"id":"gif","src":_vm.gifPath,"alt":""}})]),_vm._m(0)])])]):_vm._e()],1)]),(_vm.shareStatus)?_c('div',{staticClass:"button-option"},[_c('el-button',{on:{"click":_vm.cancleShare}},[_vm._v("取消")]),_c('el-button',{attrs:{"disabled":!_vm.shareList.length || _vm.apiLoading,"loading":_vm.apiLoading},on:{"click":_vm.showDialog}},[_vm._v("确定 ")])],1):_vm._e(),(_vm.likeOptionsVisible)?_c('div',{staticClass:"like-options-popup",style:(_vm.likePopupStyle)},[_c('div',{staticClass:"like-options-header"},[_c('span',{staticClass:"like-title"},[_vm._v("请选择好评类别")]),_c('i',{staticClass:"el-icon-close",on:{"click":_vm.confirmLikeOptions}})]),_c('div',{staticClass:"like-options-content"},[_c('div',{staticClass:"like-options-row"},_vm._l((_vm.LikeOption),function(i,j){return _c('div',{key:i.id,staticClass:"like-option",class:{ selected: _vm.selectedLikeOptions.includes(i.id) },on:{"click":function($event){return _vm.toggleLikeOption(i.id)}}},[_vm._v(" "+_vm._s(i.name)+" ")])}),0)])]):_vm._e(),(_vm.dislikeModalVisible)?_c('div',{staticClass:"dislike-modal-overlay",on:{"click":_vm.closeDislikeModal}},[_c('div',{staticClass:"dislike-modal",on:{"click":function($event){$event.stopPropagation();}}},[_vm._m(1),_c('div',{staticClass:"dislike-content"},[_c('div',{staticClass:"dislike-options"},_vm._l((_vm.dislikeOption),function(i){return _c('div',{key:i.id,staticClass:"dislike-option",class:{ selected: _vm.selectedDislikeOptions.includes(i.id) },on:{"click":function($event){return _vm.toggleDislikeOption(i.id)}}},[_vm._v(" "+_vm._s(i.name)+" ")])}),0),_c('div',{staticClass:"dislike-textarea"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.dislikeFeedback),expression:"dislikeFeedback"}],attrs:{"placeholder":"我们想知道您对此回答不满意的原因,您认为更好的回答是什么?","rows":"4"},domProps:{"value":(_vm.dislikeFeedback)},on:{"input":function($event){if($event.target.composing)return;_vm.dislikeFeedback=$event.target.value}}})]),_c('div',{staticClass:"dislike-actions"},[_c('button',{staticClass:"cancel-btn",on:{"click":_vm.closeDislikeModal}},[_vm._v("取消")]),_c('button',{staticClass:"submit-btn",on:{"click":_vm.submitDislikeFeedback}},[_vm._v("提交")])])])])]):_vm._e()])])])])
|
|
79702
79702
|
}
|
|
79703
|
-
var
|
|
79703
|
+
var chatvue_type_template_id_4f9aac34_scoped_true_staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"text-content"},[_c('div',{staticClass:"loading-container"},[_c('div',{staticClass:"typing-indicator"},[_c('div',{staticClass:"typing-dot"}),_c('div',{staticClass:"typing-dot"}),_c('div',{staticClass:"typing-dot"})]),_c('span',{staticClass:"loading-text"},[_vm._v("AI正在思考中...")])])])
|
|
79704
79704
|
},function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"dislike-header"},[_c('h3',{staticClass:"dislike-title"},[_vm._v("反馈")])])
|
|
79705
79705
|
}]
|
|
79706
79706
|
|
|
79707
79707
|
|
|
79708
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=template&id=
|
|
79708
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=template&id=4f9aac34&scoped=true
|
|
79709
79709
|
|
|
79710
79710
|
// CONCATENATED MODULE: ./src/utils/errorCode.js
|
|
79711
79711
|
/* harmony default export */ var errorCode = ({
|
|
@@ -80142,6 +80142,21 @@ const needRetry = params => {
|
|
|
80142
80142
|
params,
|
|
80143
80143
|
});
|
|
80144
80144
|
};
|
|
80145
|
+
//获取oss上传凭证
|
|
80146
|
+
const ossPolicy = () => {
|
|
80147
|
+
return utils_request({
|
|
80148
|
+
url: `/oss/policy`,
|
|
80149
|
+
method: "get",
|
|
80150
|
+
});
|
|
80151
|
+
};
|
|
80152
|
+
//文件上传
|
|
80153
|
+
const uploadFile = data => {
|
|
80154
|
+
return utils_request({
|
|
80155
|
+
url: `/chat/file/upload`,
|
|
80156
|
+
method: "post",
|
|
80157
|
+
data,
|
|
80158
|
+
});
|
|
80159
|
+
};
|
|
80145
80160
|
|
|
80146
80161
|
// CONCATENATED MODULE: ./node_modules/@microsoft/fetch-event-source/lib/esm/parse.js
|
|
80147
80162
|
async function getBytes(stream, onChunk) {
|
|
@@ -80355,10 +80370,12 @@ var FileSaver_min = __webpack_require__("21a6");
|
|
|
80355
80370
|
|
|
80356
80371
|
|
|
80357
80372
|
|
|
80373
|
+
|
|
80358
80374
|
const chatvue_type_script_lang_js_controller = new AbortController();
|
|
80359
80375
|
const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controller.signal;
|
|
80360
80376
|
|
|
80361
80377
|
|
|
80378
|
+
|
|
80362
80379
|
/* harmony default export */ var chatvue_type_script_lang_js = ({
|
|
80363
80380
|
name: 'APP',
|
|
80364
80381
|
props: {
|
|
@@ -80388,6 +80405,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80388
80405
|
},
|
|
80389
80406
|
data() {
|
|
80390
80407
|
return {
|
|
80408
|
+
fileUrls: [],
|
|
80391
80409
|
gifPath: 'https://file.banwoxue.com/aiAgent/c3578c424c674dedaf01f3db9592aafb/zhayan.gif',
|
|
80392
80410
|
shareText: '',
|
|
80393
80411
|
userInput: '',
|
|
@@ -80539,6 +80557,12 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80539
80557
|
},
|
|
80540
80558
|
},
|
|
80541
80559
|
methods: {
|
|
80560
|
+
getFileName(file) {
|
|
80561
|
+
const fileName = file.split('/').pop();
|
|
80562
|
+
const ext = fileName.includes('.') ? fileName.split('.').pop() : '';
|
|
80563
|
+
return decodeURI(fileName.replace(`.${ext}`, '')) + '.' + ext;
|
|
80564
|
+
|
|
80565
|
+
},
|
|
80542
80566
|
// 获取卡片标题
|
|
80543
80567
|
getCardTitle(item) {
|
|
80544
80568
|
// const content = item.content.toLowerCase();
|
|
@@ -80619,7 +80643,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80619
80643
|
//判断是否为ppt
|
|
80620
80644
|
getPptShow(item) {
|
|
80621
80645
|
const str = item.content;
|
|
80622
|
-
const target = '
|
|
80646
|
+
const target = 'latestResult';
|
|
80623
80647
|
// 找到目标字符串的位置
|
|
80624
80648
|
const index = str.indexOf(target);
|
|
80625
80649
|
// 截取目标字符串之前的内容(若目标不存在则返回原字符串)
|
|
@@ -80636,12 +80660,13 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80636
80660
|
}
|
|
80637
80661
|
const obj = JSON.parse(item.content);
|
|
80638
80662
|
this.$parent.pptContentId = item.contentId;
|
|
80639
|
-
|
|
80640
|
-
|
|
80663
|
+
if (obj.structure) {
|
|
80664
|
+
this.$parent.PPTTitle = obj.structure.title;
|
|
80665
|
+
this.$parent.pptSections = obj.structure.catalogs;
|
|
80666
|
+
}
|
|
80641
80667
|
this.$parent.isSidebarCollapsed = true;
|
|
80642
80668
|
this.$parent.aiPptDrawer = true;
|
|
80643
80669
|
this.$parent.aiJaDrawer = false;
|
|
80644
|
-
this.$parent.pptSections = obj.structure.catalogs;
|
|
80645
80670
|
this.$parent.images_url = obj.latestResult.images_url;
|
|
80646
80671
|
},
|
|
80647
80672
|
//ppt下载
|
|
@@ -80678,7 +80703,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80678
80703
|
link.download = this.$parent.userType == 2 ? '教学设计方案.docx' : '学案.docx'; // 设置下载的文件名
|
|
80679
80704
|
link.click();
|
|
80680
80705
|
window.URL.revokeObjectURL(url); // 释放内存
|
|
80681
|
-
})
|
|
80706
|
+
});
|
|
80682
80707
|
// try {
|
|
80683
80708
|
// const target = '<!--AI_HTML-->';
|
|
80684
80709
|
// const index = item.content.indexOf(target);
|
|
@@ -80851,22 +80876,22 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80851
80876
|
stopChat({
|
|
80852
80877
|
msgId: item.contentId,
|
|
80853
80878
|
})
|
|
80854
|
-
|
|
80855
|
-
|
|
80856
|
-
|
|
80857
|
-
|
|
80858
|
-
|
|
80859
|
-
|
|
80860
|
-
|
|
80861
|
-
|
|
80862
|
-
|
|
80863
|
-
|
|
80864
|
-
|
|
80879
|
+
.then((res) => {
|
|
80880
|
+
if (res.code == 200) {
|
|
80881
|
+
item.status = 1;
|
|
80882
|
+
this.tempAnswerStatus = null;
|
|
80883
|
+
}
|
|
80884
|
+
})
|
|
80885
|
+
.catch((error) => {
|
|
80886
|
+
console.error('停止对话失败:', error);
|
|
80887
|
+
this.$message({
|
|
80888
|
+
message: '停止对话失败,请重试',
|
|
80889
|
+
type: 'error',
|
|
80890
|
+
});
|
|
80891
|
+
})
|
|
80892
|
+
.finally(() => {
|
|
80893
|
+
this.apiLoading = false;
|
|
80865
80894
|
});
|
|
80866
|
-
})
|
|
80867
|
-
.finally(() => {
|
|
80868
|
-
this.apiLoading = false;
|
|
80869
|
-
});
|
|
80870
80895
|
},
|
|
80871
80896
|
cycleNumbers(currentIndex, arr) {
|
|
80872
80897
|
// 确保currentIndex在有效范围内
|
|
@@ -80893,21 +80918,21 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80893
80918
|
getlistChatMsgTag() {
|
|
80894
80919
|
this.apiLoading = true;
|
|
80895
80920
|
getlistChatMsgTag()
|
|
80896
|
-
|
|
80897
|
-
|
|
80898
|
-
|
|
80899
|
-
|
|
80900
|
-
|
|
80901
|
-
|
|
80902
|
-
|
|
80903
|
-
|
|
80904
|
-
|
|
80905
|
-
|
|
80921
|
+
.then((res) => {
|
|
80922
|
+
if (res.success == true) {
|
|
80923
|
+
this.errorList = res.data;
|
|
80924
|
+
}
|
|
80925
|
+
})
|
|
80926
|
+
.catch((error) => {
|
|
80927
|
+
console.error('获取消息标签列表失败:', error);
|
|
80928
|
+
this.$message({
|
|
80929
|
+
message: '获取消息标签列表失败',
|
|
80930
|
+
type: 'error',
|
|
80931
|
+
});
|
|
80932
|
+
})
|
|
80933
|
+
.finally(() => {
|
|
80934
|
+
this.apiLoading = false;
|
|
80906
80935
|
});
|
|
80907
|
-
})
|
|
80908
|
-
.finally(() => {
|
|
80909
|
-
this.apiLoading = false;
|
|
80910
|
-
});
|
|
80911
80936
|
},
|
|
80912
80937
|
// 消息评价
|
|
80913
80938
|
async chatEvaluate(item, val) {
|
|
@@ -80945,7 +80970,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80945
80970
|
}
|
|
80946
80971
|
},
|
|
80947
80972
|
chooseLike(index) {
|
|
80948
|
-
const {
|
|
80973
|
+
const {contentId} = this.messageListData[index];
|
|
80949
80974
|
feedbackSubmit({
|
|
80950
80975
|
additionalComment: '',
|
|
80951
80976
|
feedbackType: this.messageListData[index].feedbackType == 1 ? null : 1,
|
|
@@ -80954,13 +80979,13 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80954
80979
|
}).then((res) => {
|
|
80955
80980
|
if (res.data.code == 200) {
|
|
80956
80981
|
this.messageListData[index].feedbackType = this.messageListData[index].feedbackType == 1 ? null : 1;
|
|
80957
|
-
this.$forceUpdate()
|
|
80982
|
+
this.$forceUpdate();
|
|
80958
80983
|
}
|
|
80959
80984
|
});
|
|
80960
80985
|
},
|
|
80961
80986
|
// 点击拉踩按钮
|
|
80962
80987
|
chooseCai(index) {
|
|
80963
|
-
const {
|
|
80988
|
+
const {contentId} = this.messageListData[index];
|
|
80964
80989
|
feedbackSubmit({
|
|
80965
80990
|
additionalComment: this.dislikeFeedback,
|
|
80966
80991
|
feedbackType: this.messageListData[index].feedbackType == 2 ? null : 2,
|
|
@@ -80969,7 +80994,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
80969
80994
|
}).then((res) => {
|
|
80970
80995
|
if (res.data.code == 200) {
|
|
80971
80996
|
this.messageListData[index].feedbackType = this.messageListData[index].feedbackType == 2 ? null : 2;
|
|
80972
|
-
this.$forceUpdate()
|
|
80997
|
+
this.$forceUpdate();
|
|
80973
80998
|
}
|
|
80974
80999
|
});
|
|
80975
81000
|
},
|
|
@@ -81013,22 +81038,22 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81013
81038
|
chatId: this.chatId,
|
|
81014
81039
|
msgIds: flattenedShareList,
|
|
81015
81040
|
})
|
|
81016
|
-
|
|
81017
|
-
|
|
81018
|
-
|
|
81019
|
-
|
|
81020
|
-
|
|
81021
|
-
|
|
81022
|
-
|
|
81023
|
-
|
|
81024
|
-
|
|
81025
|
-
|
|
81026
|
-
|
|
81041
|
+
.then((res) => {
|
|
81042
|
+
this.shareMsgId = res.data.shareId;
|
|
81043
|
+
this.contents = res.data.contents;
|
|
81044
|
+
this.shareText = location.origin + '/#/share/' + res.data.shareId;
|
|
81045
|
+
this.shareDialog = true;
|
|
81046
|
+
})
|
|
81047
|
+
.catch((error) => {
|
|
81048
|
+
console.error('分享失败:', error);
|
|
81049
|
+
this.$message({
|
|
81050
|
+
message: '分享失败,请重试',
|
|
81051
|
+
type: 'error',
|
|
81052
|
+
});
|
|
81053
|
+
})
|
|
81054
|
+
.finally(() => {
|
|
81055
|
+
this.apiLoading = false;
|
|
81027
81056
|
});
|
|
81028
|
-
})
|
|
81029
|
-
.finally(() => {
|
|
81030
|
-
this.apiLoading = false;
|
|
81031
|
-
});
|
|
81032
81057
|
},
|
|
81033
81058
|
shareCopy() {
|
|
81034
81059
|
this.$message({
|
|
@@ -81094,6 +81119,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81094
81119
|
|
|
81095
81120
|
if (this.userInput.trim() !== '' || content) {
|
|
81096
81121
|
this.$parent.messageListData.push({
|
|
81122
|
+
files: this.fileUrls,
|
|
81097
81123
|
content: content || this.userInput,
|
|
81098
81124
|
role: 'user',
|
|
81099
81125
|
});
|
|
@@ -81143,6 +81169,7 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81143
81169
|
content: content || this.userInput,
|
|
81144
81170
|
role: 'user',
|
|
81145
81171
|
chatType: this.chatType,
|
|
81172
|
+
fileUrls: this.fileUrls,
|
|
81146
81173
|
// bodyId: this.$route.query.bodyId || localStorage.getItem('bodyId'),
|
|
81147
81174
|
bodyId: this.$parent.agentId || this.$route.query.bodyId,
|
|
81148
81175
|
// fileId: this.$parent.fileid,
|
|
@@ -81150,12 +81177,12 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81150
81177
|
templateId: this.templateId || '',
|
|
81151
81178
|
panelId: this.panelId || '',
|
|
81152
81179
|
structure:
|
|
81153
|
-
|
|
81154
|
-
|
|
81155
|
-
|
|
81156
|
-
|
|
81157
|
-
|
|
81158
|
-
|
|
81180
|
+
this.$parent.pptSections.length > 0
|
|
81181
|
+
? {
|
|
81182
|
+
title: this.$parent.PPTTitle || '',
|
|
81183
|
+
catalogs: this.$parent.pptSections,
|
|
81184
|
+
}
|
|
81185
|
+
: null,
|
|
81159
81186
|
coverId: this.$parent.coverId,
|
|
81160
81187
|
// model_name: modelName || 'chatglm3-6b'
|
|
81161
81188
|
},
|
|
@@ -81168,9 +81195,18 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81168
81195
|
if (msg.event === '') {
|
|
81169
81196
|
var result = JSON.parse(msg.data);
|
|
81170
81197
|
self.tempAnswerStatus = result.status;
|
|
81198
|
+
if (result.code != 0) {
|
|
81199
|
+
self.$parent.stop = true;
|
|
81200
|
+
self.chatSending = false;
|
|
81201
|
+
return self.$message({
|
|
81202
|
+
message: result.content,
|
|
81203
|
+
type: 'warning',
|
|
81204
|
+
});
|
|
81205
|
+
}
|
|
81171
81206
|
if (self.waitAnswer) {
|
|
81172
|
-
if (self.tempAnswerStatus == null) {
|
|
81207
|
+
if (self.tempAnswerStatus == null || result.code != 0) {
|
|
81173
81208
|
self.$parent.stop = true;
|
|
81209
|
+
self.chatSending = false;
|
|
81174
81210
|
return self.$message({
|
|
81175
81211
|
message: '您今日的次数已经用完',
|
|
81176
81212
|
type: 'warning',
|
|
@@ -81224,8 +81260,10 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81224
81260
|
self.$parent.isSidebarCollapsed = true;
|
|
81225
81261
|
self.$parent.aiPptDrawer = true;
|
|
81226
81262
|
self.$parent.aiJaDrawer = false;
|
|
81227
|
-
self
|
|
81228
|
-
|
|
81263
|
+
if (self.fileUrls.length == 0) {
|
|
81264
|
+
self.$parent.pptSections = obj.structure.catalogs;
|
|
81265
|
+
self.$parent.PPTTitle = obj.structure.title;
|
|
81266
|
+
}
|
|
81229
81267
|
if (obj.latestResult && obj.latestResult.images_url.length > 0) {
|
|
81230
81268
|
self.$parent.images_url = obj.latestResult.images_url;
|
|
81231
81269
|
}
|
|
@@ -81432,7 +81470,8 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81432
81470
|
this.dislikeFeedback = '';
|
|
81433
81471
|
},
|
|
81434
81472
|
},
|
|
81435
|
-
created() {
|
|
81473
|
+
created() {
|
|
81474
|
+
},
|
|
81436
81475
|
mounted() {
|
|
81437
81476
|
// 添加滚动事件监听
|
|
81438
81477
|
if (this.$refs.recordListRef) {
|
|
@@ -81487,11 +81526,11 @@ const chatvue_type_script_lang_js_signal = chatvue_type_script_lang_js_controlle
|
|
|
81487
81526
|
|
|
81488
81527
|
// CONCATENATED MODULE: ./src/components/agentComponent/chat.vue?vue&type=script&lang=js
|
|
81489
81528
|
/* harmony default export */ var agentComponent_chatvue_type_script_lang_js = (chatvue_type_script_lang_js);
|
|
81490
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=0&id=
|
|
81491
|
-
var
|
|
81529
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=0&id=4f9aac34&prod&lang=scss&scoped=true
|
|
81530
|
+
var chatvue_type_style_index_0_id_4f9aac34_prod_lang_scss_scoped_true = __webpack_require__("0521");
|
|
81492
81531
|
|
|
81493
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=1&id=
|
|
81494
|
-
var
|
|
81532
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/chat.vue?vue&type=style&index=1&id=4f9aac34&prod&scoped=true&lang=css
|
|
81533
|
+
var chatvue_type_style_index_1_id_4f9aac34_prod_scoped_true_lang_css = __webpack_require__("b811");
|
|
81495
81534
|
|
|
81496
81535
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
81497
81536
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -81603,11 +81642,11 @@ function normalizeComponent(
|
|
|
81603
81642
|
|
|
81604
81643
|
var component = normalizeComponent(
|
|
81605
81644
|
agentComponent_chatvue_type_script_lang_js,
|
|
81606
|
-
|
|
81607
|
-
|
|
81645
|
+
chatvue_type_template_id_4f9aac34_scoped_true_render,
|
|
81646
|
+
chatvue_type_template_id_4f9aac34_scoped_true_staticRenderFns,
|
|
81608
81647
|
false,
|
|
81609
81648
|
null,
|
|
81610
|
-
"
|
|
81649
|
+
"4f9aac34",
|
|
81611
81650
|
null
|
|
81612
81651
|
|
|
81613
81652
|
)
|
|
@@ -83894,13 +83933,13 @@ var jiaoAnContent_component = normalizeComponent(
|
|
|
83894
83933
|
)
|
|
83895
83934
|
|
|
83896
83935
|
/* harmony default export */ var jiaoAnContent = (jiaoAnContent_component.exports);
|
|
83897
|
-
// 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=
|
|
83898
|
-
var
|
|
83936
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"404717ef-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/pptContent.vue?vue&type=template&id=29b6cc50&scoped=true
|
|
83937
|
+
var pptContentvue_type_template_id_29b6cc50_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"ppt-content-sidebar"},[_c('div',{staticClass:"sidebar-header"},[_c('h3',[_vm._v("AI PPT")]),_c('div',{staticClass:"header-actions"},[(_vm.$parent.stop)?_c('button',{staticClass:"btn-primary",on:{"click":_vm.handleRegenerate}},[_vm._v("重新生成")]):_vm._e(),(_vm.$parent.stop)?_c('button',{staticClass:"btn-primary",on:{"click":_vm.handleSelectRegenerate}},[_vm._v("选择PPT模版")]):_vm._e(),(_vm.$parent.stop)?_c('button',{staticClass:"btn-primary",on:{"click":_vm.handleDownload}},[_vm._v("下载PPT")]):_vm._e(),_c('button',{staticClass:"close-btn",on:{"click":_vm.closeContent}},[_vm._v("✕")])])]),_c('div',{staticClass:"ppt-content-area"},[(_vm.pptSections.length > 0)?_c('div',{staticClass:"ppt-outline"},[_c('div',{staticClass:"outline-list"},_vm._l((_vm.pptSections),function(section,sectionIdx){return _c('div',{key:sectionIdx,staticClass:"outline-section"},[_c('div',{staticClass:"section-title"},[_c('span',{staticClass:"title-text",attrs:{"data-section-idx":sectionIdx}},[_vm._v(" 第"+_vm._s(_vm.getChineseNumber(sectionIdx + 1))+"章: "),_c('span',{attrs:{"contenteditable":_vm.$parent.stop},on:{"input":function($event){return _vm.editZj($event, sectionIdx)},"blur":function($event){return _vm.saveChapterEdit($event, sectionIdx)}}},[_vm._v(_vm._s(section.catalog))])]),(_vm.$parent.stop)?_c('div',{staticClass:"section-actions"},[_c('button',{staticClass:"text-btn demote-btn",on:{"click":function($event){return _vm.demoteSection(sectionIdx)}}},[_vm._v("降为字节")]),_c('button',{staticClass:"text-btn add-btn",on:{"click":function($event){return _vm.addSubSection(sectionIdx)}}},[_vm._v("新增子节")]),_c('button',{staticClass:"text-btn delete-btn",on:{"click":function($event){return _vm.deleteSection(sectionIdx)}}},[_vm._v("删除")])]):_vm._e()]),_c('div',{staticClass:"section-items"},_vm._l((section.sub_catalog),function(item,index){return _c('div',{key:index,staticClass:"outline-item"},[_c('span',{staticClass:"item-text"},[_vm._v(_vm._s(sectionIdx + 1)+"."+_vm._s(index + 1)+" "),_c('span',{attrs:{"contenteditable":_vm.$parent.stop,"data-section-idx":sectionIdx,"data-item-idx":index},on:{"input":function($event){return _vm.editCatalog($event, sectionIdx, index)},"blur":function($event){return _vm.saveCatalogEdit($event, sectionIdx, index)}}},[_vm._v(_vm._s(item))])]),(_vm.$parent.stop)?_c('div',{staticClass:"item-actions"},[_c('button',{staticClass:"text-btn promote-btn",on:{"click":function($event){return _vm.promoteItem(sectionIdx, index)}}},[_vm._v("升为章节")]),_c('button',{staticClass:"text-btn add-btn",on:{"click":function($event){return _vm.addSubItem(sectionIdx, index)}}},[_vm._v("新增子节")]),_c('button',{staticClass:"text-btn delete-btn",on:{"click":function($event){return _vm.deleteItem(sectionIdx, index)}}},[_vm._v("删除")])]):_vm._e()])}),0)])}),0)]):_vm._e(),_c('div',{staticClass:"ppt-preview"},[_c('div',{staticClass:"ppt-slide cover-slide"},[_vm._l((_vm.list),function(i,j){return (_vm.images_url.length == 0)?_c('div',{key:j,staticClass:"img"},[_c('img',{attrs:{"src":i.url,"alt":""}})]):_vm._e()}),_vm._l((_vm.images_url),function(i,j){return _c('div',{key:`image-${j}`,staticClass:"img"},[_c('img',{attrs:{"src":i.url,"alt":""}})])})],2)])])])
|
|
83899
83938
|
}
|
|
83900
|
-
var
|
|
83939
|
+
var pptContentvue_type_template_id_29b6cc50_scoped_true_staticRenderFns = []
|
|
83901
83940
|
|
|
83902
83941
|
|
|
83903
|
-
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=template&id=
|
|
83942
|
+
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=template&id=29b6cc50&scoped=true
|
|
83904
83943
|
|
|
83905
83944
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/agentComponent/pptContent.vue?vue&type=script&lang=js
|
|
83906
83945
|
|
|
@@ -84255,8 +84294,8 @@ var pptContentvue_type_template_id_5aa33b0f_scoped_true_staticRenderFns = []
|
|
|
84255
84294
|
|
|
84256
84295
|
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=script&lang=js
|
|
84257
84296
|
/* harmony default export */ var agentComponent_pptContentvue_type_script_lang_js = (pptContentvue_type_script_lang_js);
|
|
84258
|
-
// EXTERNAL MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=style&index=0&id=
|
|
84259
|
-
var
|
|
84297
|
+
// EXTERNAL MODULE: ./src/components/agentComponent/pptContent.vue?vue&type=style&index=0&id=29b6cc50&prod&lang=scss&scoped=true
|
|
84298
|
+
var pptContentvue_type_style_index_0_id_29b6cc50_prod_lang_scss_scoped_true = __webpack_require__("c154");
|
|
84260
84299
|
|
|
84261
84300
|
// CONCATENATED MODULE: ./src/components/agentComponent/pptContent.vue
|
|
84262
84301
|
|
|
@@ -84269,11 +84308,11 @@ var pptContentvue_type_style_index_0_id_5aa33b0f_prod_lang_scss_scoped_true = __
|
|
|
84269
84308
|
|
|
84270
84309
|
var pptContent_component = normalizeComponent(
|
|
84271
84310
|
agentComponent_pptContentvue_type_script_lang_js,
|
|
84272
|
-
|
|
84273
|
-
|
|
84311
|
+
pptContentvue_type_template_id_29b6cc50_scoped_true_render,
|
|
84312
|
+
pptContentvue_type_template_id_29b6cc50_scoped_true_staticRenderFns,
|
|
84274
84313
|
false,
|
|
84275
84314
|
null,
|
|
84276
|
-
"
|
|
84315
|
+
"29b6cc50",
|
|
84277
84316
|
null
|
|
84278
84317
|
|
|
84279
84318
|
)
|
|
@@ -84491,6 +84530,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84491
84530
|
|
|
84492
84531
|
|
|
84493
84532
|
|
|
84533
|
+
|
|
84494
84534
|
/* harmony default export */ var banwoxueAgentComponentvue_type_script_lang_js = ({
|
|
84495
84535
|
components: {
|
|
84496
84536
|
dialogueList: dialogueList,
|
|
@@ -84515,6 +84555,9 @@ function formatTimeDisplay(createTime) {
|
|
|
84515
84555
|
name: 'draw',
|
|
84516
84556
|
data() {
|
|
84517
84557
|
return {
|
|
84558
|
+
file_system_url: '',
|
|
84559
|
+
paramsData: {},
|
|
84560
|
+
fileList: [],
|
|
84518
84561
|
agentArr: '',
|
|
84519
84562
|
tableHtml: '',
|
|
84520
84563
|
content: {},
|
|
@@ -84556,17 +84599,17 @@ function formatTimeDisplay(createTime) {
|
|
|
84556
84599
|
planList: [
|
|
84557
84600
|
{
|
|
84558
84601
|
id: 1,
|
|
84559
|
-
title:
|
|
84602
|
+
title: 'AI教案'
|
|
84560
84603
|
},
|
|
84561
84604
|
{
|
|
84562
84605
|
id: 2,
|
|
84563
|
-
title:
|
|
84606
|
+
title: 'AI PPT'
|
|
84564
84607
|
}
|
|
84565
84608
|
],
|
|
84566
84609
|
modelList: [
|
|
84567
|
-
{
|
|
84568
|
-
{
|
|
84569
|
-
{
|
|
84610
|
+
{time: '今天', list: []},
|
|
84611
|
+
{time: '近7日', list: []},
|
|
84612
|
+
{time: '近30日', list: []},
|
|
84570
84613
|
],
|
|
84571
84614
|
searchValue: '',
|
|
84572
84615
|
pptSections: [],
|
|
@@ -84577,6 +84620,10 @@ function formatTimeDisplay(createTime) {
|
|
|
84577
84620
|
isGuest: false,
|
|
84578
84621
|
//用户类型
|
|
84579
84622
|
userType: '',
|
|
84623
|
+
// 当前模式:0=聊天, 1=教案, 2=PPT, 3=学案
|
|
84624
|
+
currentUploadMode: 0,
|
|
84625
|
+
// 文件上传中
|
|
84626
|
+
uploading: false,
|
|
84580
84627
|
};
|
|
84581
84628
|
},
|
|
84582
84629
|
watch: {
|
|
@@ -84600,6 +84647,20 @@ function formatTimeDisplay(createTime) {
|
|
|
84600
84647
|
},
|
|
84601
84648
|
},
|
|
84602
84649
|
methods: {
|
|
84650
|
+
getOssPolicy() {
|
|
84651
|
+
ossPolicy().then(res => {
|
|
84652
|
+
if (res.data.code === 200) {
|
|
84653
|
+
this.file_system_url = res.data.data.host;
|
|
84654
|
+
this.paramsData = {
|
|
84655
|
+
key: res.data.data.dir, //这里最好在后台处理好
|
|
84656
|
+
policy: res.data.data.policy,
|
|
84657
|
+
OSSAccessKeyId: res.data.data.ossAccessKeyId,
|
|
84658
|
+
signature: res.data.data.signature,
|
|
84659
|
+
success_action_status: '200'
|
|
84660
|
+
};
|
|
84661
|
+
}
|
|
84662
|
+
});
|
|
84663
|
+
},
|
|
84603
84664
|
//获取智能体logo
|
|
84604
84665
|
getAgentLogo() {
|
|
84605
84666
|
getLogo({
|
|
@@ -84634,7 +84695,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84634
84695
|
a.href = url;
|
|
84635
84696
|
const now = new Date();
|
|
84636
84697
|
const formattedDate = `${now.getFullYear()}${String(now.getMonth() + 1).padStart(2, '0')}${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}${String(
|
|
84637
|
-
|
|
84698
|
+
now.getMinutes()
|
|
84638
84699
|
).padStart(2, '0')}${String(now.getSeconds()).padStart(2, '0')}`;
|
|
84639
84700
|
a.download = `${formattedDate}.pptx`; // 设置下载文件名为当前时间
|
|
84640
84701
|
document.body.appendChild(a);
|
|
@@ -84657,11 +84718,11 @@ function formatTimeDisplay(createTime) {
|
|
|
84657
84718
|
// 获取外部某个字符串
|
|
84658
84719
|
getUrlCode(name) {
|
|
84659
84720
|
return (
|
|
84660
|
-
|
|
84661
|
-
|
|
84662
|
-
|
|
84663
|
-
|
|
84664
|
-
|
|
84721
|
+
decodeURIComponent(
|
|
84722
|
+
(new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(
|
|
84723
|
+
location.href
|
|
84724
|
+
) || [, ''])[1].replace(/\+/g, '%20')
|
|
84725
|
+
) || null
|
|
84665
84726
|
);
|
|
84666
84727
|
},
|
|
84667
84728
|
showAenget() {
|
|
@@ -84708,7 +84769,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84708
84769
|
this.AiShow = true;
|
|
84709
84770
|
this.isGuest = true;
|
|
84710
84771
|
//游客身份没有AI生成功能
|
|
84711
|
-
this.planList = []
|
|
84772
|
+
this.planList = [];
|
|
84712
84773
|
this.$nextTick(() => {
|
|
84713
84774
|
// 改为通过类名 + CSS 变量的写法:
|
|
84714
84775
|
const element = this.$refs.banwoxueAgentComponent;
|
|
@@ -84720,9 +84781,9 @@ function formatTimeDisplay(createTime) {
|
|
|
84720
84781
|
}).catch(() => {
|
|
84721
84782
|
const environment = sessionStorage.getItem('environment');
|
|
84722
84783
|
let url =
|
|
84723
|
-
|
|
84724
|
-
|
|
84725
|
-
|
|
84784
|
+
environment == 'test'
|
|
84785
|
+
? 'https://testsso.icve.com.cn/sso/auth?mode=simple&redirect='
|
|
84786
|
+
: 'https://sso.icve.com.cn/sso/auth?mode=simple&redirect=';
|
|
84726
84787
|
let redirect = window.location.href;
|
|
84727
84788
|
window.location.href = url + redirect;
|
|
84728
84789
|
});
|
|
@@ -84739,7 +84800,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84739
84800
|
|
|
84740
84801
|
// 3. 重组URL(协议+域名+路径+过滤后的参数+锚点)
|
|
84741
84802
|
const newUrl = `${url.origin}${url.pathname}${searchParams.toString() ? '?' + searchParams.toString() : ''
|
|
84742
|
-
|
|
84803
|
+
}${hash}`;
|
|
84743
84804
|
|
|
84744
84805
|
// 4. 无刷新更新URL
|
|
84745
84806
|
window.history.replaceState({}, document.title, newUrl);
|
|
@@ -84774,6 +84835,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84774
84835
|
|
|
84775
84836
|
// 发送消息
|
|
84776
84837
|
handleChange(i) {
|
|
84838
|
+
this.fileList = [];
|
|
84777
84839
|
if (this.selectedButton == i.id) {
|
|
84778
84840
|
this.selectedButton = null;
|
|
84779
84841
|
} else {
|
|
@@ -84831,7 +84893,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84831
84893
|
this.lessonPlanData.subject = this.$refs.subject.innerText;
|
|
84832
84894
|
this.lessonPlanData.grade = this.$refs.course.innerText;
|
|
84833
84895
|
this.lessonPlanData.course = this.$refs.course.innerText;
|
|
84834
|
-
const {
|
|
84896
|
+
const {subject, grade, course} = this.lessonPlanData;
|
|
84835
84897
|
this.userInput = `帮我写一份关于${subject}的教案,教材名称为${grade},专业学科为${course}。`;
|
|
84836
84898
|
this.showTemplateDialog = true;
|
|
84837
84899
|
},
|
|
@@ -84840,14 +84902,17 @@ function formatTimeDisplay(createTime) {
|
|
|
84840
84902
|
this.lessonPlanData.subject = this.$refs.subject.innerText;
|
|
84841
84903
|
this.lessonPlanData.grade = this.$refs.course.innerText;
|
|
84842
84904
|
this.lessonPlanData.course = this.$refs.course.innerText;
|
|
84843
|
-
const {
|
|
84905
|
+
const {subject, grade, course} = this.lessonPlanData;
|
|
84844
84906
|
this.userInput = `帮我写一份关于${subject}的学案,教材名称为${grade},专业学科为${course}。`;
|
|
84845
84907
|
this.sendMessage(5, this.selectedButton);
|
|
84846
84908
|
},
|
|
84847
|
-
generateLessonPlanPPT() {
|
|
84909
|
+
generateLessonPlanPPT(file) {
|
|
84848
84910
|
this.pptSections = [];
|
|
84849
84911
|
this.PPTTitle = this.$refs.PPTTitle.innerText;
|
|
84850
|
-
this.userInput = `帮我生成PPT,主题为:${this.PPTTitle}。`;
|
|
84912
|
+
this.userInput = file ? '基于附件生成PPT' : `帮我生成PPT,主题为:${this.PPTTitle}。`;
|
|
84913
|
+
if (!file) {
|
|
84914
|
+
this.fileList = [];
|
|
84915
|
+
}
|
|
84851
84916
|
this.sendMessage('', 2);
|
|
84852
84917
|
},
|
|
84853
84918
|
|
|
@@ -84858,11 +84923,122 @@ function formatTimeDisplay(createTime) {
|
|
|
84858
84923
|
this.$refs.chat.userInput = this.userInput;
|
|
84859
84924
|
this.$refs.chat.templateId = templateId || '';
|
|
84860
84925
|
this.$refs.chat.panelId = selectedButton || '';
|
|
84926
|
+
if (this.fileList.length > 0) {
|
|
84927
|
+
this.$refs.chat.fileUrls = this.fileList.map((file) => file.url);
|
|
84928
|
+
} else {
|
|
84929
|
+
this.$refs.chat.fileUrls = [];
|
|
84930
|
+
}
|
|
84861
84931
|
this.$refs.chat.sendMessage();
|
|
84862
84932
|
this.userInput = '';
|
|
84933
|
+
this.fileList = [];
|
|
84934
|
+
});
|
|
84935
|
+
},
|
|
84936
|
+
|
|
84937
|
+
// 触发文件上传选择(mode: 1=教案, 2=PPT, 3=学案)
|
|
84938
|
+
triggerUpload(mode) {
|
|
84939
|
+
this.currentUploadMode = mode;
|
|
84940
|
+
// PPT 模式只允许上传一个文件,其它模式允许多个
|
|
84941
|
+
this.$refs.fileInput.multiple = mode !== 2;
|
|
84942
|
+
if (mode === 2) {
|
|
84943
|
+
this.fileList = [];
|
|
84944
|
+
}
|
|
84945
|
+
this.$refs.fileInput.value = ''; // 清空以便重复选择同一文件
|
|
84946
|
+
this.$refs.fileInput.click();
|
|
84947
|
+
},
|
|
84948
|
+
|
|
84949
|
+
// 处理文件选择
|
|
84950
|
+
handleFileSelected(event) {
|
|
84951
|
+
const file = event.target.files[0];
|
|
84952
|
+
if (!file) return;
|
|
84953
|
+
|
|
84954
|
+
// 获取文件扩展名
|
|
84955
|
+
const fileName = file.name.toLowerCase();
|
|
84956
|
+
const ext = fileName.substring(fileName.lastIndexOf('.'));
|
|
84957
|
+
|
|
84958
|
+
// PPT模式允许的文件类型
|
|
84959
|
+
const pptAllowedExts = ['.md', '.doc', '.docx', '.pdf', '.xmind', '.mm', '.txt'];
|
|
84960
|
+
// 非PPT模式允许的文件类型
|
|
84961
|
+
const docAllowedExts = ['.doc', '.docx', '.wps', '.ppt', '.pptx', '.xls', '.xlsx', '.md', '.txt', '.pdf'];
|
|
84962
|
+
|
|
84963
|
+
// 根据模式校验文件类型
|
|
84964
|
+
const allowed = this.currentUploadMode === 2 ? pptAllowedExts : docAllowedExts;
|
|
84965
|
+
if (!allowed.includes(ext)) {
|
|
84966
|
+
const hint = this.currentUploadMode === 2
|
|
84967
|
+
? 'PPT生成仅支持:MarkDown、Word、PDF、XMind、FreeMind、TXT'
|
|
84968
|
+
: '支持文档:.doc、.docx、.wps、.ppt、.pptx、.xls、.xlsx、.md、.txt、.pdf';
|
|
84969
|
+
this.$message.warning(`不支持该文件格式!${hint}`);
|
|
84970
|
+
return;
|
|
84971
|
+
}
|
|
84972
|
+
|
|
84973
|
+
// 限制文件大小(50MB)
|
|
84974
|
+
const maxSize = 50 * 1024 * 1024;
|
|
84975
|
+
if (file.size > maxSize) {
|
|
84976
|
+
this.$message.warning('文件大小不能超过50MB');
|
|
84977
|
+
return;
|
|
84978
|
+
}
|
|
84979
|
+
|
|
84980
|
+
// 上传文件
|
|
84981
|
+
this.uploadFile(file, file.name);
|
|
84982
|
+
},
|
|
84983
|
+
|
|
84984
|
+
// 上传文件到服务器
|
|
84985
|
+
uploadFile(file, fileName) {
|
|
84986
|
+
if (this.uploading) return;
|
|
84987
|
+
this.uploading = true;
|
|
84988
|
+
const formData = new FormData();
|
|
84989
|
+
formData.append('files', file);
|
|
84990
|
+
uploadFile(formData).then(res => {
|
|
84991
|
+
if (res.data.code === 200) {
|
|
84992
|
+
const fileUrl = res.data.fileUrls[0];
|
|
84993
|
+
this.fileList.push({
|
|
84994
|
+
name: fileName,
|
|
84995
|
+
url: fileUrl,
|
|
84996
|
+
category: this.getFileCategory(fileName),
|
|
84997
|
+
});
|
|
84998
|
+
// PPT 模式:上传完成后询问是否基于附件生成
|
|
84999
|
+
if (this.currentUploadMode === 2) {
|
|
85000
|
+
this.$confirm('是否基于当前附件生成 PPT?', '提示', {
|
|
85001
|
+
confirmButtonText: '生成',
|
|
85002
|
+
cancelButtonText: '取消',
|
|
85003
|
+
type: 'info',
|
|
85004
|
+
}).then(() => {
|
|
85005
|
+
this.generateLessonPlanPPT('file');
|
|
85006
|
+
}).catch(() => {
|
|
85007
|
+
// 取消则删除刚上传的附件
|
|
85008
|
+
this.fileList.pop();
|
|
85009
|
+
});
|
|
85010
|
+
}
|
|
85011
|
+
} else {
|
|
85012
|
+
this.$message.error(res.data.msg || '文件上传失败');
|
|
85013
|
+
}
|
|
85014
|
+
}).catch(() => {
|
|
85015
|
+
this.$message.error('文件上传失败,请稍后重试');
|
|
85016
|
+
}).finally(() => {
|
|
85017
|
+
this.uploading = false;
|
|
84863
85018
|
});
|
|
84864
85019
|
},
|
|
84865
85020
|
|
|
85021
|
+
// 获取文件类别
|
|
85022
|
+
getFileCategory(fileName) {
|
|
85023
|
+
const ext = fileName.substring(fileName.lastIndexOf('.')).toLowerCase();
|
|
85024
|
+
const categoryMap = {
|
|
85025
|
+
'.doc': 'Word', '.docx': 'Word', '.wps': 'Word',
|
|
85026
|
+
'.ppt': 'PPT', '.pptx': 'PPT',
|
|
85027
|
+
'.xls': 'Excel', '.xlsx': 'Excel',
|
|
85028
|
+
'.pdf': 'PDF',
|
|
85029
|
+
'.md': 'Markdown',
|
|
85030
|
+
'.txt': '文本',
|
|
85031
|
+
'.xmind': 'XMind',
|
|
85032
|
+
'.mm': 'MindMap',
|
|
85033
|
+
};
|
|
85034
|
+
return categoryMap[ext] || '其他';
|
|
85035
|
+
},
|
|
85036
|
+
|
|
85037
|
+
// 删除文件
|
|
85038
|
+
removeFile(index) {
|
|
85039
|
+
this.fileList.splice(index, 1);
|
|
85040
|
+
},
|
|
85041
|
+
|
|
84866
85042
|
// 处理打开教案侧边栏
|
|
84867
85043
|
handleOpenLessonSidebar(item) {
|
|
84868
85044
|
this.pptContentId = item.contentId;
|
|
@@ -84890,6 +85066,7 @@ function formatTimeDisplay(createTime) {
|
|
|
84890
85066
|
},
|
|
84891
85067
|
},
|
|
84892
85068
|
created() {
|
|
85069
|
+
this.getOssPolicy();
|
|
84893
85070
|
this.getAgentLogo();
|
|
84894
85071
|
// this.showAenget();
|
|
84895
85072
|
const isSidebarCollapsed = sessionStorage.getItem('isSidebarCollapsed');
|
|
@@ -84922,11 +85099,11 @@ function formatTimeDisplay(createTime) {
|
|
|
84922
85099
|
|
|
84923
85100
|
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=script&lang=js
|
|
84924
85101
|
/* harmony default export */ var components_banwoxueAgentComponentvue_type_script_lang_js = (banwoxueAgentComponentvue_type_script_lang_js);
|
|
84925
|
-
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=0&id=
|
|
84926
|
-
var
|
|
85102
|
+
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=0&id=05cb4ad5&prod&lang=css
|
|
85103
|
+
var banwoxueAgentComponentvue_type_style_index_0_id_05cb4ad5_prod_lang_css = __webpack_require__("1ff2");
|
|
84927
85104
|
|
|
84928
|
-
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=1&id=
|
|
84929
|
-
var
|
|
85105
|
+
// EXTERNAL MODULE: ./src/components/banwoxueAgentComponent.vue?vue&type=style&index=1&id=05cb4ad5&prod&lang=scss&scoped=true
|
|
85106
|
+
var banwoxueAgentComponentvue_type_style_index_1_id_05cb4ad5_prod_lang_scss_scoped_true = __webpack_require__("5803");
|
|
84930
85107
|
|
|
84931
85108
|
// CONCATENATED MODULE: ./src/components/banwoxueAgentComponent.vue
|
|
84932
85109
|
|
|
@@ -84944,7 +85121,7 @@ var banwoxueAgentComponent_component = normalizeComponent(
|
|
|
84944
85121
|
staticRenderFns,
|
|
84945
85122
|
false,
|
|
84946
85123
|
null,
|
|
84947
|
-
"
|
|
85124
|
+
"05cb4ad5",
|
|
84948
85125
|
null
|
|
84949
85126
|
|
|
84950
85127
|
)
|