mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-24 18:22:53 +08:00
Compare commits
169 Commits
master1218
...
feature/20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f700d468d | ||
|
|
7a3fdeb7db | ||
|
|
47d8670df5 | ||
|
|
ca91042059 | ||
|
|
fb9b581022 | ||
|
|
40c9f1d189 | ||
|
|
bc8eaa0eac | ||
|
|
c52173fb70 | ||
|
|
42713a8685 | ||
|
|
1b6f50a19a | ||
|
|
e81d81a3ee | ||
| 13d698ad97 | |||
| 114ce94f0a | |||
| 6031f79b6f | |||
|
|
a265c226fb | ||
|
|
d8d858764d | ||
|
|
2738ea9b8f | ||
| b4a0261f8a | |||
|
|
6ed7201159 | ||
|
|
9e9ccf0b3a | ||
|
|
60625d8058 | ||
|
|
fadd4c5006 | ||
|
|
32cae2aee4 | ||
|
|
2c2f666c4a | ||
|
|
6302157e12 | ||
|
|
9d7bf92d48 | ||
|
|
7f5f478bde | ||
|
|
874b6655b6 | ||
|
|
fde8e62273 | ||
|
|
4d01d6946b | ||
|
|
032e15013a | ||
|
|
40be9c3e21 | ||
|
|
92079c48d8 | ||
|
|
cc0aba97c2 | ||
|
|
4eebcf6c22 | ||
|
|
c3c25703fe | ||
|
|
aa41bd8d46 | ||
|
|
9335302c37 | ||
|
|
5e46ecb515 | ||
|
|
a273d47938 | ||
|
|
989f1e87f4 | ||
|
|
6873b35a20 | ||
|
|
7afff408b5 | ||
|
|
16d11a3bfb | ||
|
|
a534242585 | ||
|
|
4f2526e143 | ||
|
|
4f1cafcf75 | ||
|
|
2a2241177b | ||
|
|
2ab5ec808b | ||
|
|
669cca1c4b | ||
|
|
a835dcd732 | ||
|
|
3b37180e94 | ||
|
|
7eefffed0f | ||
|
|
764c372161 | ||
|
|
7eedf2b3a3 | ||
|
|
0e5615bdf1 | ||
|
|
23ebe82577 | ||
|
|
4c53a79aaf | ||
|
|
4deaae77c9 | ||
|
|
2048a3a24f | ||
|
|
1af286f5e0 | ||
|
|
618bad868d | ||
|
|
7e9f37a6cb | ||
|
|
954c6246cd | ||
|
|
ec91150b7c | ||
|
|
ff62a0ce49 | ||
|
|
231e9ed09b | ||
|
|
f13a77f075 | ||
|
|
0662d2bc5f | ||
|
|
d826a6e7e7 | ||
|
|
924a9c3262 | ||
|
|
194ba14182 | ||
|
|
6abe4101cc | ||
|
|
12e24c8eb4 | ||
|
|
f2fe75d4b3 | ||
|
|
27001e0b3d | ||
|
|
21983af9de | ||
|
|
0a39375e61 | ||
|
|
699856429c | ||
|
|
58cd9cfab6 | ||
|
|
73179899fc | ||
|
|
2e31d48061 | ||
|
|
3e6492b94b | ||
|
|
b074a4b2a6 | ||
|
|
5efe4c9bec | ||
|
|
f6c6f0421b | ||
|
|
a4ab7d88e5 | ||
|
|
35c84d6aef | ||
|
|
72a849fa61 | ||
|
|
b8bb81ef75 | ||
|
|
6a49a96517 | ||
|
|
5cb021e1c4 | ||
|
|
1499c7633d | ||
|
|
87fe2c3f1b | ||
|
|
7c159ac091 | ||
|
|
9d46a207d9 | ||
|
|
28438f9ec0 | ||
|
|
236e9521be | ||
|
|
bc7f7e12c9 | ||
|
|
6b74e61684 | ||
|
|
a344c9f6bd | ||
|
|
39063bb37e | ||
|
|
5d458c97da | ||
|
|
30224553c9 | ||
|
|
34ab4e5319 | ||
|
|
4df875d891 | ||
|
|
205fcac1f4 | ||
|
|
084fcec0c4 | ||
|
|
3ff5b9989c | ||
|
|
edd45a8e78 | ||
|
|
5b33403db2 | ||
|
|
93fb9157e1 | ||
|
|
aff28e9ec7 | ||
|
|
5eebcf58c5 | ||
|
|
e45f701138 | ||
|
|
fab62c4f7f | ||
|
|
479a3327f0 | ||
|
|
535681749c | ||
|
|
da481c72c5 | ||
|
|
374dfb6b3d | ||
|
|
d212938819 | ||
|
|
14220b6d4d | ||
|
|
bbaa86ff92 | ||
|
|
2a2cb22fe9 | ||
|
|
94c82417a2 | ||
|
|
6cc3e1345c | ||
|
|
603bf9a63e | ||
|
|
49c85c49fb | ||
|
|
35d829c74f | ||
|
|
7b59c71b71 | ||
|
|
73d22a5b03 | ||
|
|
6790facaaf | ||
|
|
9eee28f8c2 | ||
|
|
d862d6e47d | ||
|
|
7786efbd38 | ||
|
|
9de579acb3 | ||
|
|
023d7a1372 | ||
|
|
cff501050c | ||
|
|
53e162edee | ||
|
|
23ab0ab0ec | ||
|
|
6b58b61151 | ||
|
|
c6799dba63 | ||
|
|
ead86f65bc | ||
|
|
822f885553 | ||
|
|
53aa40cee3 | ||
|
|
0f1c8081cb | ||
|
|
01a1b2c7a9 | ||
|
|
573370c019 | ||
|
|
a66e09630a | ||
|
|
d10a08da15 | ||
|
|
c3797d4d7e | ||
|
|
f6a2c08c97 | ||
|
|
072af11080 | ||
|
|
9c3b626520 | ||
|
|
2fff137908 | ||
|
|
8058039f85 | ||
|
|
e6fa45a5ac | ||
|
|
0d904de3ed | ||
|
|
c1b7a9c9d9 | ||
|
|
fd2c4f5096 | ||
|
|
c05c69a544 | ||
|
|
5966132265 | ||
|
|
7214c3f3b5 | ||
|
|
0119b4a86c | ||
|
|
30b497805b | ||
|
|
bada958769 | ||
|
|
f47a3ea342 | ||
|
|
d2077ddb5c | ||
|
|
d0b731158e |
1
lexiang-sso-77deb595.txt
Normal file
1
lexiang-sso-77deb595.txt
Normal file
@@ -0,0 +1 @@
|
||||
60ab8a4b97b446b2dcd32889
|
||||
@@ -28,9 +28,3 @@ export function getChatMessages(conversationId) {
|
||||
export function showCaseAiEntrance() {
|
||||
return ajax.get('/xboe/m/boe/case/ai/show-entrance')
|
||||
}
|
||||
export function likeMsg(data) {
|
||||
return ajax.postJson('/xboe/m/boe/case/ai/likeMsg',data)
|
||||
}
|
||||
export function msgFeedback(data) {
|
||||
return ajax.postJson('/xboe/m/boe/case/ai/msgFeedback',data)
|
||||
}
|
||||
|
||||
@@ -17,190 +17,195 @@ import errorCode from '@/utils/errorCode'
|
||||
*delete请求 axios.delete(url[, config])
|
||||
*/
|
||||
|
||||
const ReLoginUrl="/login";
|
||||
const TokenName='XBOE-Access-Token';
|
||||
const ReLoginUrl = "/login";
|
||||
const TokenName = 'XBOE-Access-Token';
|
||||
/**axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'**/
|
||||
//只是用于发送json对象数据时使用post,put,patch
|
||||
const jsonRequest=axios.create({
|
||||
headers:{'Content-Type':'application/json;charset=utf-8'},
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_CESOURCE_BASE_API,
|
||||
//超时
|
||||
timeout: 10000,
|
||||
const jsonRequest = axios.create({
|
||||
headers: { 'Content-Type': 'application/json;charset=utf-8' },
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_CESOURCE_BASE_API,
|
||||
//超时
|
||||
timeout: 10000,
|
||||
});
|
||||
//发送json对象的拦截器
|
||||
jsonRequest.interceptors.request.use(config => {
|
||||
//是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
if (getToken() && !isToken) {
|
||||
config.headers[TokenName] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
}
|
||||
return config
|
||||
//是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
if (getToken() && !isToken) {
|
||||
config.headers[TokenName] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
}
|
||||
return config
|
||||
}, error => {
|
||||
console.log(error)
|
||||
Promise.reject(error)
|
||||
console.log(error)
|
||||
Promise.reject(error)
|
||||
})
|
||||
|
||||
// 响应拦截器
|
||||
jsonRequest.interceptors.response.use(res => {
|
||||
|
||||
const code = res.data.status || 200;
|
||||
if(code===200){
|
||||
return res.data
|
||||
}else{
|
||||
if(code === 401){
|
||||
store.dispatch('LogOut').then(() => {
|
||||
const code = res.data.status || 200;
|
||||
if (code === 200) {
|
||||
return res.data
|
||||
} else {
|
||||
if (code === 401) {
|
||||
store.dispatch('LogOut').then(() => {
|
||||
if (top !== window) { // 判断当前是否在iframe内
|
||||
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||
} else {
|
||||
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||
}
|
||||
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||
})
|
||||
}else if(code===403){
|
||||
var msg='当前操作没有权限';
|
||||
Message({message: msg, type: 'error'});
|
||||
return Promise.reject(new Error(msg))
|
||||
}else{
|
||||
//Message({message: res.data.message, type: 'error'});
|
||||
//console.log('err:' + res.data.error);
|
||||
return res.data;
|
||||
//return Promise.reject(new Error(res.data.message))
|
||||
}
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
let { message } = error;
|
||||
if (message == "Network Error") {
|
||||
message = "网络异常,请稍后重试";
|
||||
}
|
||||
else if (message.includes("timeout")) {
|
||||
message = "系统接口请求超时";
|
||||
}
|
||||
else if (message.includes("Request failed with status code")) {
|
||||
message = "系统接口" + message.substr(message.length - 3) + "异常";
|
||||
}
|
||||
Message({
|
||||
message: message,
|
||||
type: 'error',
|
||||
duration: 5 * 1000
|
||||
})
|
||||
return Promise.reject(error)
|
||||
}
|
||||
})
|
||||
} else if (code === 403) {
|
||||
var msg = '当前操作没有权限';
|
||||
Message({ message: msg, type: 'error' });
|
||||
return Promise.reject(new Error(msg))
|
||||
} else {
|
||||
//Message({message: res.data.message, type: 'error'});
|
||||
//console.log('err:' + res.data.error);
|
||||
return res.data;
|
||||
//return Promise.reject(new Error(res.data.message))
|
||||
}
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
let { message } = error;
|
||||
if (message == "Network Error") {
|
||||
message = "网络异常,请稍后重试";
|
||||
}
|
||||
else if (message.includes("timeout")) {
|
||||
message = "系统接口请求超时";
|
||||
}
|
||||
else if (message.includes("Request failed with status code")) {
|
||||
message = "系统接口" + message.substr(message.length - 3) + "异常";
|
||||
}
|
||||
Message({
|
||||
message: message,
|
||||
type: 'error',
|
||||
duration: 5 * 1000
|
||||
})
|
||||
return Promise.reject(error)
|
||||
}
|
||||
)
|
||||
|
||||
//用于普通的发送请求
|
||||
const formRequest=axios.create({
|
||||
headers:{'Content-Type':'application/x-www-form-urlencoded'},
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_CESOURCE_BASE_API,
|
||||
//超时
|
||||
timeout: 10000,
|
||||
const formRequest = axios.create({
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
||||
baseURL: process.env.VUE_APP_CESOURCE_BASE_API,
|
||||
//超时
|
||||
timeout: 10000,
|
||||
})
|
||||
//发送json对象的拦截器
|
||||
formRequest.interceptors.request.use(config => {
|
||||
//是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
if (getToken() && !isToken) {
|
||||
config.headers[TokenName] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
}
|
||||
return config
|
||||
//是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
if (getToken() && !isToken) {
|
||||
config.headers[TokenName] = getToken() // 让每个请求携带自定义token 请根据实际情况自行修改
|
||||
}
|
||||
return config
|
||||
}, error => {
|
||||
console.log(error)
|
||||
Promise.reject(error)
|
||||
console.log(error)
|
||||
Promise.reject(error)
|
||||
});
|
||||
formRequest.interceptors.response.use(res => {
|
||||
const code = res.data.status || 200;
|
||||
if(code===200){
|
||||
const code = res.data.status || 200;
|
||||
if (code === 200) {
|
||||
return res.data
|
||||
} else {
|
||||
if (code === 401) {
|
||||
store.dispatch('LogOut').then(() => {
|
||||
if (top !== window) { // 判断当前是否在iframe内
|
||||
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||
} else {
|
||||
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||
}
|
||||
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||
})
|
||||
} else if (code === 403) {
|
||||
var msg = '当前操作没有权限';
|
||||
Message({ message: msg, type: 'error' });
|
||||
return Promise.reject(new Error(msg))
|
||||
} else {
|
||||
//Message({message: res.data.message, type: 'error'});
|
||||
//console.log('err' + res.data.error);
|
||||
return res.data
|
||||
}else{
|
||||
if(code === 401){
|
||||
store.dispatch('LogOut').then(() => {
|
||||
location.href = this.webBaseUrl + ReLoginUrl;
|
||||
})
|
||||
}else if(code===403){
|
||||
var msg='当前操作没有权限';
|
||||
Message({message: msg, type: 'error'});
|
||||
return Promise.reject(new Error(msg))
|
||||
}else{
|
||||
//Message({message: res.data.message, type: 'error'});
|
||||
//console.log('err' + res.data.error);
|
||||
return res.data
|
||||
}
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
let { message } = error;
|
||||
if (message == "Network Error") {
|
||||
message = "网络异常,请稍后重试";
|
||||
}
|
||||
else if (message.includes("timeout")) {
|
||||
message = "系统接口请求超时";
|
||||
}
|
||||
else if (message.includes("Request failed with status code")) {
|
||||
message = "系统接口" + message.substr(message.length - 3) + "异常";
|
||||
}
|
||||
Message({
|
||||
message: message,
|
||||
type: 'error',
|
||||
duration: 5 * 1000
|
||||
})
|
||||
return Promise.reject(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
error => {
|
||||
console.log('err' + error)
|
||||
let { message } = error;
|
||||
if (message == "Network Error") {
|
||||
message = "网络异常,请稍后重试";
|
||||
}
|
||||
else if (message.includes("timeout")) {
|
||||
message = "系统接口请求超时";
|
||||
}
|
||||
else if (message.includes("Request failed with status code")) {
|
||||
message = "系统接口" + message.substr(message.length - 3) + "异常";
|
||||
}
|
||||
Message({
|
||||
message: message,
|
||||
type: 'error',
|
||||
duration: 5 * 1000
|
||||
})
|
||||
return Promise.reject(error)
|
||||
}
|
||||
)
|
||||
|
||||
//request请求
|
||||
const request=function(cfg){
|
||||
if(cfg.data){
|
||||
cfg.data=qs.stringify(cfg.data);
|
||||
const request = function (cfg) {
|
||||
if (cfg.data) {
|
||||
cfg.data = qs.stringify(cfg.data);
|
||||
}
|
||||
};
|
||||
//requestJson请求
|
||||
const requestJson=jsonRequest.request;
|
||||
const requestJson = jsonRequest.request;
|
||||
//get请求
|
||||
const get=formRequest.request;
|
||||
const get = formRequest.request;
|
||||
//post请求
|
||||
const post=function(url,data,config){
|
||||
if(data){
|
||||
data=qs.stringify(data);
|
||||
const post = function (url, data, config) {
|
||||
if (data) {
|
||||
data = qs.stringify(data);
|
||||
}
|
||||
return formRequest.post(url,data,config);
|
||||
return formRequest.post(url, data, config);
|
||||
}
|
||||
//postJson请求
|
||||
const postJson=jsonRequest.post;
|
||||
const postJson = jsonRequest.post;
|
||||
//put请求
|
||||
const put=function(url,data,config){
|
||||
if(data){
|
||||
data=qs.stringify(data);
|
||||
const put = function (url, data, config) {
|
||||
if (data) {
|
||||
data = qs.stringify(data);
|
||||
}
|
||||
return formRequest.put(url,data,config);
|
||||
return formRequest.put(url, data, config);
|
||||
}
|
||||
//putJson请求
|
||||
const putJson=jsonRequest.put;
|
||||
const putJson = jsonRequest.put;
|
||||
//patch请求
|
||||
const patch=function(url,data,config){
|
||||
if(data){
|
||||
data=qs.stringify(data);
|
||||
const patch = function (url, data, config) {
|
||||
if (data) {
|
||||
data = qs.stringify(data);
|
||||
}
|
||||
return formRequest.patch(url,data,config);
|
||||
return formRequest.patch(url, data, config);
|
||||
}
|
||||
//patchJson请求
|
||||
const patchJson=jsonRequest.patch;
|
||||
const patchJson = jsonRequest.patch;
|
||||
//delete请求
|
||||
const del=formRequest.delete;
|
||||
const del = formRequest.delete;
|
||||
|
||||
|
||||
export default {
|
||||
request,
|
||||
requestJson,
|
||||
get,
|
||||
post,
|
||||
postJson,
|
||||
put,
|
||||
putJson,
|
||||
patch,
|
||||
patchJson,
|
||||
del
|
||||
request,
|
||||
requestJson,
|
||||
get,
|
||||
post,
|
||||
postJson,
|
||||
put,
|
||||
putJson,
|
||||
patch,
|
||||
patchJson,
|
||||
del
|
||||
}
|
||||
|
||||
@@ -34,9 +34,48 @@ const userRsSginupCourse = function(data){
|
||||
return ajax.postJson(baseURL,'/stu/project/stuCancelEnrollment',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取学员指定新员工转正项目的bpm审批状况
|
||||
* {studentId,pid}
|
||||
* add by zhengsongbo on 2025-07-12
|
||||
*/
|
||||
const getStudntProjectInfo = function(pid){
|
||||
return ajax.get(baseURL,`/stu/project/queryStudentInfo?pid=${pid}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* BPM项目:立即报名
|
||||
* pid
|
||||
* add by zhengsongbo on 2025-07-13
|
||||
*/
|
||||
const signUpBpmProjectNow = function(pid){
|
||||
return ajax.get(baseURL,`/stu/project/signUpBpmProjectNow?pid=${pid}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* BPM项目:重新报名
|
||||
* pid
|
||||
* add by zhengsongbo on 2025-07-13
|
||||
*/
|
||||
const signUpBpmProjectAgain = function(data){
|
||||
return ajax.postJson(baseURL,'/stu/project/signUpBpmProjectAgain',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 社招新员工
|
||||
* add by zhengsongbo on 2025-07-14
|
||||
*/
|
||||
const getNewSocialHireProject = function(){
|
||||
return ajax.get(baseURL,'/stu/project/getNewSocialHireProject');
|
||||
}
|
||||
|
||||
export default {
|
||||
getTaskNum,
|
||||
userTaskList,
|
||||
userDeleteStudy,
|
||||
userRsSginupCourse
|
||||
userRsSginupCourse,
|
||||
getStudntProjectInfo,
|
||||
signUpBpmProjectNow,
|
||||
signUpBpmProjectAgain,
|
||||
getNewSocialHireProject
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1765161872024" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2317" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M256 504.021333c0 39.765333-32.213333 71.978667-72.021333 71.978667H136.021333A71.936 71.936 0 0 1 64 503.978667V136.021333c0-39.808 32.213333-72.021333 72.021333-72.021333h47.957334C223.786667 64 256 96.213333 256 136.021333v367.957334z m701.184 45.866667c-6.698667 26.112-21.077333 46.592-46.976 55.722667a131.925333 131.925333 0 0 1-41.813333 6.570666c-75.306667 0.597333-150.613333 0.213333-225.877334 0.213334-9.728 0-10.026667 0.597333-8.533333 9.898666 4.693333 27.52 8.618667 55.125333 14.037333 82.389334 7.253333 37.034667 8.192 73.813333-4.138666 109.696-11.093333 32.341333-23.68 64.213333-35.797334 96.213333-6.784 18.090667-18.176 31.317333-36.48 38.912-34.517333 14.506667-68.608 14.208-101.717333-2.986667-21.077333-11.093333-33.493333-28.714667-32.768-53.802666 0.981333-35.413333 1.194667-70.826667 2.688-106.24a58.026667 58.026667 0 0 0-7.808-32.554667c-27.306667-46.933333-47.104-83.413333-75.605333-129.621333-5.290667-8.533333-21.376-24.789333-28.288-32.085334-20.394667-21.504-30.890667-35.498667-31.018667-59.093333-0.085333-85.930667-0.298667-275.029333-0.682667-396.8a71.936 71.936 0 0 1 72.106667-72.234667c105.173333 0.128 296.277333 0.298667 389.973333 0.298667 22.4 0 44.416 1.408 66.005334 8.405333 42.794667 13.994667 69.717333 47.189333 73.088 91.989334 1.322667 17.024 0.512 33.92-5.546667 50.346666-0.938667 2.261333 0.554667 6.272 2.261333 8.576 16.896 22.613333 27.008 47.616 25.173334 76.117334-0.554667 9.813333-3.669333 19.584-6.656 29.098666-1.621333 5.12-1.621333 8.490667 1.877333 12.8 16.128 20.181333 25.898667 43.178667 25.130667 69.162667-0.426667 12.330667-4.906667 24.405333-7.253334 36.608-0.554667 2.901333-0.981333 7.210667 0.64 9.002667 13.781333 15.402667 21.504 33.621333 25.514667 53.717333a5.546667 5.546667 0 0 0 1.365333 2.005333v28.288a258.005333 258.005333 0 0 0-2.901333 9.386667z" fill="#000000" opacity=".65" p-id="2318"></path></svg>
|
||||
|
Before Width: | Height: | Size: 2.2 KiB |
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1765161849864" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5624" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M960 543.573333v-43.946666l-3.882667-5.12a138.24 138.24 0 0 0-19.712-44.586667c2.816-9.6 4.394667-19.541333 4.906667-29.610667 0.768-26.794667-6.912-52.48-23.125333-76.629333 2.304-7.893333 3.84-16.085333 4.394666-24.32 1.834667-28.672-5.802667-56.576-22.698666-83.072 3.2-15.104 4.010667-30.592 2.602666-45.909333-4.181333-55.466667-38.784-99.2-92.373333-116.778667-25.728-8.405333-50.773333-9.813333-72.021333-9.813333h-93.866667c-33.237333 0-66.944 0.213333-100.693333 0.213333-53.034667 0-106.325333-0.213333-159.232-0.213333h-1.109334 0.128-247.296c-39.808 0-72.021333 32.213333-72.021333 72.021333v368c0 39.808 32.213333 71.978667 72.021333 71.978667H249.173333s55.893333 6.4 82.346667 48.512c18.346667 29.312 36.053333 60.202667 53.12 90.026666l22.016 38.058667c1.792 2.986667 2.602667 6.4 2.218667 9.898667-0.896 20.736-1.28 41.6-1.706667 61.696-0.213333 11.946667-0.512 24.234667-0.810667 36.224-0.981333 36.181333 16.810667 65.706667 49.92 83.114666a140.8 140.8 0 0 0 65.792 16.469334c19.498667 0 39.253333-4.096 58.88-12.288 25.514667-10.666667 43.52-29.781333 53.717334-56.789334l8.96-23.594666c8.234667-21.333333 16.64-43.434667 24.234666-65.621334 12.288-35.712 13.909333-74.88 5.12-119.808-2.602667-13.397333-4.906667-26.794667-7.125333-40.789333h21.589333l64.128 0.085333c29.184 0 58.666667 0 87.893334-0.170666h0.810666c16.768 0 33.493333-2.730667 49.493334-8.106667 23.594667-8.405333 54.272-28.416 66.56-76.714667l1.237333-4.010666 0.853333-2.986667 1.536-5.376z m-712.021333-39.594666H136.021333V135.978667h112.042667v368z m640 28.8c0 1.536-0.981333 3.541333-1.578667 5.632-4.608 18.090667-12.501333 23.466667-20.394667 26.368-8.405333 2.816-17.066667 4.224-25.898666 4.224h-0.426667l-0.469333-0.085334-0.512-0.128c-31.018667 0.213333-61.482667 0.298667-87.296 0.298667h-32.298667l-31.786667-0.085333h-106.24l13.653334 83.626666c2.56 15.872 4.864 29.354667 7.552 43.093334 6.314667 32.170667 5.546667 59.093333-2.474667 82.474666-6.997333 20.181333-14.421333 39.808-23.424 63.317334-3.072 7.978667-6.101333 16.085333-9.088 23.978666-3.584 9.6-8.106667 13.098667-14.08 15.701334-10.709333 4.522667-21.12 6.698667-31.146667 6.698666-11.093333 0-21.674667-2.688-32.384-8.277333a24.661333 24.661333 0 0 1-9.386666-7.68c-0.512-0.853333-2.133333-3.413333-1.92-9.642667 0.341333-11.52 0.64-22.997333 0.853333-36.778666v-1.706667c0.384-18.773333 0.768-38.314667 1.450667-57.173333a86.954667 86.954667 0 0 0-11.904-50.346667c-2.56-4.394667-5.077333-8.874667-7.68-13.269333-4.608-8.021333-9.386667-16.213333-13.909334-24.234667l-0.085333-0.085333-0.085333-0.085334-0.725334-1.109333c-17.194667-29.994667-34.986667-61.013333-53.674666-91.008l-0.128-0.213333-0.085334-0.170667c-16.64-26.325333-41.088-47.701333-71.509333-62.421333l-0.597333-387.712h63.914666c55.68 0 111.872 0.341333 159.402667 0.341333 16.981333 0 33.962667-0.128 50.773333-0.128 16.725333 0 33.28-0.213333 49.92-0.213333h93.866667c16.213333 0 33.536 0.938667 49.706667 6.229333 13.013333 4.181333 23.296 11.306667 30.634666 20.48 7.168 9.130667 11.264 20.224 12.288 33.28v0.64l0.085334 0.597333c0.810667 8.192 0.298667 16.298667-1.408 24.32l-0.768 3.413334h-8.704 8.704l-5.333334 25.173333 15.786667 25.002667c8.533333 13.397333 12.330667 26.282667 11.648 39.381333-0.213333 2.986667-0.853333 5.973333-1.621333 8.917333l-9.514667 32.298667 18.816 27.989333c7.594667 11.306667 11.093333 22.016 10.922667 33.493334-0.298667 4.266667-1.024 8.618667-2.218667 12.714666l-9.301333 32.426667 18.901333 27.861333c4.394667 6.4 7.509333 13.482667 9.301333 21.12l1.877334 7.765334v13.696z" fill="#000000" opacity=".65" p-id="5625"></path></svg>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1765161882076" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2499" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M184.021333 448H136.021333c-39.808 0-72.021333 32.213333-72.021333 72.021333v367.957334c0 39.808 32.213333 72.021333 72.021333 72.021333h47.957334C223.786667 960 256 927.786667 256 887.978667v-368c0-39.765333-32.213333-71.978667-72.021333-71.978667z m773.162667 26.112c-6.698667-26.112-21.077333-46.592-46.976-55.722667a131.925333 131.925333 0 0 0-41.813333-6.570666c-75.306667-0.597333-150.613333-0.213333-225.877334-0.213334-9.728 0-10.026667-0.597333-8.533333-9.898666 4.693333-27.52 8.618667-55.125333 14.037333-82.389334 7.253333-37.034667 8.192-73.813333-4.138666-109.738666-11.093333-32.298667-23.68-64.170667-35.797334-96.170667-6.784-18.090667-18.176-31.317333-36.48-38.912-34.517333-14.506667-68.608-14.208-101.717333 2.986667-21.077333 11.093333-33.493333 28.714667-32.768 53.802666 0.981333 35.413333 1.194667 70.826667 2.688 106.24a58.026667 58.026667 0 0 1-7.808 32.554667c-27.306667 46.933333-47.104 83.413333-75.605333 129.621333-5.290667 8.533333-21.376 24.789333-28.288 32.085334-20.394667 21.504-30.890667 35.498667-31.018667 59.093333-0.085333 85.930667-0.298667 275.029333-0.682667 396.8a71.936 71.936 0 0 0 72.106667 72.234667c105.173333-0.128 296.277333-0.298667 389.973333-0.298667 22.4 0 44.416-1.408 66.005334-8.405333 42.794667-13.994667 69.717333-47.232 73.088-92.032 1.322667-16.981333 0.512-33.877333-5.546667-50.261334-0.938667-2.304 0.554667-6.314667 2.261333-8.618666 16.896-22.613333 27.008-47.616 25.173334-76.117334-0.554667-9.813333-3.669333-19.584-6.656-29.098666-1.621333-5.12-1.621333-8.490667 1.877333-12.8 16.128-20.181333 25.898667-43.178667 25.130667-69.162667-0.426667-12.330667-4.906667-24.405333-7.253334-36.608-0.554667-2.901333-0.981333-7.210667 0.64-9.002667 13.781333-15.402667 21.504-33.621333 25.514667-53.717333a5.546667 5.546667 0 0 1 1.365333-2.005333v-28.288c-0.981333-3.114667-2.005333-6.186667-2.901333-9.386667z" fill="#000000" opacity=".65" p-id="2500"></path></svg>
|
||||
|
Before Width: | Height: | Size: 2.2 KiB |
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1765161839692" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5444" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M958.378667 475.093333l-0.853334-2.986666c-0.512-1.621333-1.024-2.986667-1.237333-4.010667-12.288-48.384-43.008-68.394667-66.56-76.714667a154.666667 154.666667 0 0 0-49.493333-8.106666h-0.853334c-29.184-0.170667-58.581333-0.170667-87.893333-0.170667l-64.085333 0.085333h-21.589334c2.304-13.994667 4.48-27.392 7.082667-40.789333 8.789333-44.885333 7.210667-84.096-5.12-119.808-7.594667-22.186667-16.085333-44.288-24.192-65.578667l-8.96-23.594666c-10.112-27.008-28.245333-46.08-53.76-56.832a141.056 141.056 0 0 0-124.586667 3.882666c-33.066667 17.322667-50.858667 46.848-49.877333 83.114667 0.298667 12.032 0.597333 24.32 0.810667 36.224 0.426667 20.181333 0.768 41.088 1.706666 61.696a16.426667 16.426667 0 0 1-2.218666 9.898667c-7.296 12.714667-14.805333 25.514667-22.016 38.101333-17.066667 29.781333-34.773333 60.714667-53.077334 90.026667C305.066667 441.6 249.173333 448 249.173333 448H135.978667c-39.765333 0-71.978667 32.213333-71.978667 72.021333v367.957334c0 39.808 32.213333 72.021333 71.978667 72.021333h247.338666-0.128 1.109334c52.821333 0 106.24-0.213333 159.189333-0.213333 33.792 0 67.498667 0.213333 100.693333 0.213333H738.133333c21.205333 0 46.293333-1.408 72.021334-9.813333 53.589333-17.493333 88.192-61.184 92.373333-116.778667a157.269333 157.269333 0 0 0-2.56-45.909333c16.896-26.410667 24.490667-54.314667 22.656-83.114667a118.101333 118.101333 0 0 0-4.394667-24.32c16.128-23.978667 23.808-49.664 23.125334-76.544a135.594667 135.594667 0 0 0-4.906667-29.610667c9.216-13.610667 15.914667-28.586667 19.712-44.629333l3.882667-5.12v-43.946667l-1.621334-5.12z m-710.4 412.928H136.021333v-368h112.042667v367.957334z m640-383.232l-1.877334 7.808a64.426667 64.426667 0 0 1-9.301333 21.12l-18.901333 27.861334 9.301333 32.426666c1.194667 4.096 1.92 8.405333 2.218667 12.714667 0.170667 11.52-3.328 22.186667-10.922667 33.493333l-18.773333 27.989334 9.472 32.298666a38.698667 38.698667 0 0 1 1.621333 8.917334c0.682667 13.184-2.986667 26.069333-11.605333 39.381333l-15.786667 25.002667 5.290667 25.173333h-8.704 8.704l0.768 3.413333c1.706667 8.021333 2.218667 16.213333 1.408 24.32l-0.085334 0.597334v0.597333c-1.024 13.013333-5.12 24.192-12.288 33.28a63.018667 63.018667 0 0 1-30.634666 20.48c-16.085333 5.333333-33.365333 6.229333-49.664 6.229333H644.266667c-16.512 0-33.109333-0.213333-49.92-0.213333l-50.773334-0.085333c-47.616 0-103.68 0.298667-159.402666 0.298666H320.298667l0.810666-387.712c30.378667-14.762667 54.869333-36.096 71.509334-62.378666l0.085333-0.213334 0.085333-0.170666c18.730667-30.037333 36.522667-61.013333 53.717334-91.008l0.682666-1.109334 0.128-0.085333 0.085334-0.128c4.48-7.893333 9.301333-16.213333 13.909333-24.192 2.56-4.48 5.205333-8.917333 7.68-13.312 9.002667-15.274667 13.098667-32.682667 11.946667-50.304-0.853333-18.901333-1.237333-38.4-1.536-57.173333v-1.706667c-0.298667-13.696-0.512-25.301333-0.810667-36.821333-0.213333-6.058667 1.408-8.661333 1.92-9.6a23.253333 23.253333 0 0 1 9.386667-7.68c10.666667-5.589333 21.333333-8.32 32.426666-8.32 9.856 0 20.394667 2.304 31.061334 6.741333 5.973333 2.474667 10.496 5.973333 14.08 15.658667 3.029333 7.936 6.144 16 9.130666 24.021333 9.002667 23.466667 16.384 43.093333 23.424 63.317333 7.978667 23.381333 8.874667 50.346667 2.474667 82.474667a1376.853333 1376.853333 0 0 0-7.594667 43.093333l-13.781333 83.712h106.197333c10.496 0 21.077333 0 31.786667-0.085333h32.298667c25.813333 0 56.32 0 87.296 0.298667l0.512-0.128 0.469333-0.085334h0.426667c8.789333 0 17.493333 1.493333 25.898666 4.181334 7.893333 2.901333 15.786667 8.32 20.394667 26.453333 0.512 2.048 1.621333 3.968 1.621333 5.546667v13.653333z" fill="#000000" opacity=".65" p-id="5445"></path></svg>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
BIN
src/assets/images/grateful/gratefulFooter20250611.png
Normal file
BIN
src/assets/images/grateful/gratefulFooter20250611.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 437 KiB |
@@ -167,7 +167,7 @@
|
||||
import simplePaper from "@/components/Course/simpleTestPaper.vue";
|
||||
import apiCourse from '../../api/modules/course.js';
|
||||
import apiExamPaper from '../../api/modules/paper.js';
|
||||
import { deepClone, safeJsonParse } from "../../utils";
|
||||
import { deepClone } from "../../utils";
|
||||
export default{
|
||||
components:{simplePaper},
|
||||
props:{
|
||||
@@ -253,7 +253,7 @@
|
||||
this.examInfo=res.result;
|
||||
if(res.result.paperType==1){
|
||||
this.examInfo.paperContent=res.result.paperContent;
|
||||
this.examPaper = safeJsonParse(res.result.paperContent, { items: [] });
|
||||
this.examPaper=JSON.parse(res.result.paperContent);
|
||||
}else{
|
||||
apiExamPaper.detail(this.examInfo.paperId).then(rs=>{
|
||||
if(rs.status==200){
|
||||
|
||||
@@ -1218,7 +1218,7 @@ export default {
|
||||
});
|
||||
this.teacherValues = tlist;
|
||||
this.teacherDownList = tlist;
|
||||
if (this.courseInfo.tags) {
|
||||
if (this.courseInfo.tags != '') {
|
||||
this.showTags = this.courseInfo.tags.split(',');
|
||||
}
|
||||
this.$nextTick(function() {
|
||||
|
||||
@@ -48,13 +48,17 @@ export default {
|
||||
let name = '';
|
||||
if (this.course && this.course.name && this.course.name !== '') {
|
||||
name = this.course.name.replace('color:#FF0000', 'color:#fff');
|
||||
console.log("name gengxindata1 : ",name)
|
||||
}
|
||||
if (this.course && this.course.courseName && this.course.courseName !== '') {
|
||||
name = this.course.courseName.replace('color:#FF0000', 'color:#fff');
|
||||
console.log("name gengxindata2 : ",name)
|
||||
}
|
||||
if (this.course && this.course.title && this.course.title !== '') {
|
||||
name = this.course.title.replace('color:#FF0000', 'color:#fff');
|
||||
console.log("name gengxindata3 : ",name)
|
||||
}
|
||||
console.log("name gengxindata4 : ",name)
|
||||
return name;
|
||||
// course.name || course.courseName || course.title
|
||||
},
|
||||
|
||||
@@ -132,7 +132,6 @@ import apiCourse from '@/api/modules/course.js';
|
||||
import apiExamPaper from '@/api/modules/paper.js';
|
||||
import {formatDate,formatSeconds} from '@/utils/datetime.js';
|
||||
import {testType,correctJudgment,numberToLetter} from '@/utils/tools.js';
|
||||
import { safeJsonParse } from '@/utils/index.js';
|
||||
export default {
|
||||
props:{
|
||||
studyId: {
|
||||
@@ -217,12 +216,8 @@ export default {
|
||||
apiCourse.getExam(this.content.id).then(res=>{
|
||||
if(res.status==200){
|
||||
this.info=res.result;
|
||||
if(this.showTest) {
|
||||
let paper = safeJsonParse(this.info.paperContent, { items: [] });
|
||||
if(!paper.items || paper.items.length === 0){
|
||||
this.viewTest = [];
|
||||
return;
|
||||
}
|
||||
if(this.showTest) {
|
||||
let paper= JSON.parse(this.info.paperContent);
|
||||
paper.items.forEach(item=>{
|
||||
//console.log(item);
|
||||
if(item.type==101){
|
||||
|
||||
@@ -575,7 +575,7 @@
|
||||
import apiExamPaper from '../../api/modules/paper.js';
|
||||
import audioPlayer from '@/components/AudioPlayer/index.vue';
|
||||
import {getType} from '../../utils/tools.js';
|
||||
import { deepClone, safeJsonParse } from "../../utils";
|
||||
import { deepClone } from "../../utils";
|
||||
export default{
|
||||
components:{WxEditor,simplePaper,FileUpload,pdfPreview,audioPlayer,chooseCourseFile},
|
||||
props: {
|
||||
@@ -921,7 +921,7 @@
|
||||
if(res.status==200){
|
||||
this.exam.info=res.result;
|
||||
if(res.result.paperType==1){
|
||||
this.exam.paperJson = safeJsonParse(res.result.paperContent, { items: [] });
|
||||
this.exam.paperJson=JSON.parse(res.result.paperContent);
|
||||
}else{
|
||||
apiExamPaper.detail(this.exam.info.paperId).then(rs=>{
|
||||
if(rs.status==200){
|
||||
|
||||
@@ -109,7 +109,6 @@
|
||||
import imgupload from '@/components/ImageUpload/single.vue';
|
||||
import apiExamTask from '@/api/modules/examTask.js';
|
||||
import examQuestionApi from "@/api/modules/question";
|
||||
import { safeJsonParse } from '../../utils';
|
||||
import {numberToLetter, deepCopy} from '../../utils/tools.js';
|
||||
export default {
|
||||
name: 'comEditPaper',
|
||||
@@ -164,7 +163,7 @@
|
||||
if(res.status === 200) {
|
||||
this.paper=res.result;
|
||||
//转化试题
|
||||
this.qitems = safeJsonParse(res.result.paperContent, []);
|
||||
this.qitems=JSON.parse(res.result.paperContent);
|
||||
//console.log(this.qitems,this.qitems)
|
||||
this.tempItems=this.qitems;
|
||||
this.paperCalculation();
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'LanServiceChecker',
|
||||
props: {
|
||||
errorMsg: {
|
||||
type: String,
|
||||
default: '十分抱歉,您当前的网络环境不符合观看要求。为了保障课程信息的安全,您需要接入公司内网才能观看。'
|
||||
},
|
||||
// 控制是否显示
|
||||
value: {type: Boolean, default: false}
|
||||
},
|
||||
created() {
|
||||
this.lanServiceCheck()
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
syncValue(val) {
|
||||
this.loading = false
|
||||
this.$emit('update:value', val)
|
||||
},
|
||||
/**局域网检测*/
|
||||
lanServiceCheck() {
|
||||
this.loading = true
|
||||
|
||||
// 使用 AbortController 来控制超时
|
||||
const controller = new AbortController();
|
||||
const timeoutId = setTimeout(() => {
|
||||
controller.abort();
|
||||
this.syncValue(true);
|
||||
}, 1000);
|
||||
|
||||
// 拼接随机参数(时间戳+随机数,确保URL唯一,防止缓存)
|
||||
const url = `${window.location.protocol}//uapi.boe.com.cn/500.html?t=${Date.now()}${Math.random()}`;
|
||||
|
||||
// 使用 fetch 发送 HEAD 请求
|
||||
fetch(url, {
|
||||
method: 'HEAD',
|
||||
signal: controller.signal
|
||||
})
|
||||
.then(response => {
|
||||
clearTimeout(timeoutId);
|
||||
this.syncValue(!response.ok)
|
||||
})
|
||||
.catch(error => {
|
||||
clearTimeout(timeoutId);
|
||||
if (error.name !== 'AbortError') {
|
||||
this.syncValue(true)
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="lan-checker-container">
|
||||
<div>
|
||||
<span>{{ errorMsg }}</span>
|
||||
</div>
|
||||
<div class="check-btn" @click="lanServiceCheck">
|
||||
<el-button v-loading="loading" type="primary">重新检测</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.lan-checker-container {
|
||||
height: 100%;
|
||||
|
||||
& > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.error-msg {
|
||||
margin-top: 40px;
|
||||
font-weight: 700;
|
||||
font-size: 22px;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.check-btn {
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -97,7 +97,7 @@
|
||||
<a style="display: flex;align-items: center;" @click="showReply(com)">
|
||||
<!-- <svg-icon icon-class="comment" style="margin-right: 0px;font-size: 16px;"></svg-icon> -->
|
||||
<div class="is_comment"></div>
|
||||
<span>回复</span>
|
||||
<span>回复</span>
|
||||
</a>
|
||||
<!--必须当前登录人是一个人-->
|
||||
<a style="display: flex;align-items: center;" v-if="userInfo.aid==com.sysCreateAid" @click="delCommnet(com,comIdx)">
|
||||
@@ -558,7 +558,7 @@
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
});
|
||||
|
||||
this.loadData(false);
|
||||
}
|
||||
|
||||
},
|
||||
@@ -633,6 +633,7 @@
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
});
|
||||
this.loadData(false);
|
||||
},
|
||||
delCommnet(com,idx){
|
||||
if(com.replyList!='' && com.replyList.length>0){
|
||||
|
||||
@@ -421,7 +421,6 @@ export default {
|
||||
one: urlPre + "/pc/contributornew/index",
|
||||
two: urlPre + "/pc/contributor/index",
|
||||
three: urlPre + "/pc/contributor_2024/index",
|
||||
four: urlPre + "/web/contributor_2025/index"
|
||||
};
|
||||
window.open(obj[val]);
|
||||
},
|
||||
|
||||
@@ -72,59 +72,51 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
down(e) {
|
||||
// if(this.isDrag) {
|
||||
this.$emit("getMouseDownStatus", true);
|
||||
this.is_mousedown_progress = true;
|
||||
// 获取完整进度条的clientX(dom左上角)
|
||||
let init_clientX = this.dom_full.getBoundingClientRect().left;
|
||||
// 计算调整后的当前进度条的长度
|
||||
this.current_width_px = e.clientX - init_clientX;
|
||||
// 设置当前的播放进度(同时作用于当前进度条的样式)
|
||||
let current = (e.clientX - init_clientX) / this.dom_full.clientWidth;
|
||||
if(current>1) current = 1;
|
||||
if(current<0) current = 0;
|
||||
var time = localStorage.getItem('videoProgressData');
|
||||
var arr = time&&JSON.parse(time) || {}
|
||||
//console.log('down arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
||||
// 禁止拖动
|
||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||
|
||||
this.$emit("updateProgress", current);
|
||||
// }
|
||||
if (!this.isDrag) return;
|
||||
this.$emit("getMouseDownStatus", true);
|
||||
this.is_mousedown_progress = true;
|
||||
// 获取完整进度条的clientX(dom左上角)
|
||||
let init_clientX = this.dom_full.getBoundingClientRect().left;
|
||||
// 计算调整后的当前进度条的长度
|
||||
this.current_width_px = e.clientX - init_clientX;
|
||||
// 设置当前的播放进度(同时作用于当前进度条的样式)
|
||||
let current = (e.clientX - init_clientX) / this.dom_full.clientWidth;
|
||||
if(current>1) current = 1;
|
||||
if(current<0) current = 0;
|
||||
var time = localStorage.getItem('videoProgressData');
|
||||
var arr = time&&JSON.parse(time) || {}
|
||||
// 禁止拖动
|
||||
if(time && arr[this.blobId] < current) return;
|
||||
|
||||
this.$emit("updateProgress", current);
|
||||
},
|
||||
move(e) {
|
||||
if (this.is_mousedown_progress) {
|
||||
let init_clientX = this.dom_full.getBoundingClientRect().left;
|
||||
this.current_width_px = e.clientX - init_clientX;
|
||||
let current = (e.clientX - init_clientX) / this.dom_full.clientWidth;
|
||||
if(current>1) current = 1;
|
||||
if(current<0) current = 0;
|
||||
var time = localStorage.getItem('videoProgressData');
|
||||
var arr = time&&JSON.parse(time) || {}
|
||||
//console.log('move arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
||||
// 禁止拖动
|
||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||
this.$emit("updateProgress", current);
|
||||
}
|
||||
if (!this.isDrag || !this.is_mousedown_progress) return;
|
||||
let init_clientX = this.dom_full.getBoundingClientRect().left;
|
||||
this.current_width_px = e.clientX - init_clientX;
|
||||
let current = (e.clientX - init_clientX) / this.dom_full.clientWidth;
|
||||
if(current>1) current = 1;
|
||||
if(current<0) current = 0;
|
||||
var time = localStorage.getItem('videoProgressData');
|
||||
var arr = time&&JSON.parse(time) || {}
|
||||
// 禁止拖动
|
||||
if(time && arr[this.blobId] < current) return;
|
||||
this.$emit("updateProgress", current);
|
||||
},
|
||||
up() {
|
||||
if (this.is_mousedown_progress) {
|
||||
// 标记鼠标不处于按下的状态了
|
||||
this.is_mousedown_progress = false;
|
||||
// 松开鼠标后,即调整进度条后,此时的进度(0-1)
|
||||
let current = this.current_width_px / this.dom_full.clientWidth;
|
||||
if(current>1) current = 1;
|
||||
if(current<0) current = 0;
|
||||
var time = localStorage.getItem('videoProgressData');
|
||||
var arr = time&&JSON.parse(time) || {}
|
||||
//console.log('up arr:',this.isDrag,this.blobId,arr,arr[this.blobId],current)
|
||||
this.$emit("getMouseDownStatus", false);
|
||||
// 禁止拖动
|
||||
if(!this.isDrag && time && arr[this.blobId] < current) return;
|
||||
this.$emit("updateProgress", current);
|
||||
|
||||
}
|
||||
if (!this.isDrag || !this.is_mousedown_progress) return;
|
||||
// 标记鼠标不处于按下的状态了
|
||||
this.is_mousedown_progress = false;
|
||||
// 松开鼠标后,即调整进度条后,此时的进度(0-1)
|
||||
let current = this.current_width_px / this.dom_full.clientWidth;
|
||||
if(current>1) current = 1;
|
||||
if(current<0) current = 0;
|
||||
var time = localStorage.getItem('videoProgressData');
|
||||
var arr = time&&JSON.parse(time) || {}
|
||||
this.$emit("getMouseDownStatus", false);
|
||||
// 禁止拖动
|
||||
if(time && arr[this.blobId] < current) return;
|
||||
this.$emit("updateProgress", current);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -99,7 +99,6 @@ export default {
|
||||
// background-repeat: no-repeat;
|
||||
//background-position: center;
|
||||
//background-color: #F4F4F4;
|
||||
|
||||
background-color: #F6F7FB;
|
||||
}
|
||||
.el-aside-header{
|
||||
|
||||
@@ -2,7 +2,6 @@ import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
/* Layout */
|
||||
import Layout from '@/layout/index'
|
||||
import LayoutPortal from '@/layout/portal'
|
||||
import Grateful from '@/views/grateful'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
@@ -454,8 +453,6 @@ export const constantRoutes = [{
|
||||
component: (resolve) => require(['@/views/contributorConferenceNew/detail/courseDetail'], resolve),
|
||||
meta: {title: '京东方大学堂', icon: 'dashboard', noCache: true, affix: true }
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
path: '/contributor_2024/index',
|
||||
component: (resolve) => require(['@/views/contributorConference2024/index'], resolve),
|
||||
|
||||
@@ -310,42 +310,6 @@ export function deepClone(source) {
|
||||
return targetObj
|
||||
}
|
||||
|
||||
import { Message } from 'element-ui';
|
||||
|
||||
/**
|
||||
* 安全解析 JSON 字符串,统一处理错误日志和 UI 提示
|
||||
* @param {string|object} text 待解析的字符串(或对象)
|
||||
* @param {*} fallback 解析失败或为空时的回退值,默认为空对象 {}
|
||||
* @param {string} errorMessage UI 提示信息,默认为试卷格式错误提示
|
||||
* @returns {*}
|
||||
*/
|
||||
export function safeJsonParse(text, fallback = {}, errorMessage = '试卷内容格式有误,请联系管理员检查试卷数据') {
|
||||
// 1. 如果已经是对象或数组,直接返回
|
||||
if (typeof text === 'object' && text !== null) {
|
||||
return text;
|
||||
}
|
||||
|
||||
// 2. 处理空值情况
|
||||
if (text === null || text === undefined || text === '') {
|
||||
return fallback;
|
||||
}
|
||||
|
||||
// 3. 尝试解析
|
||||
try {
|
||||
return JSON.parse(text);
|
||||
} catch (error) {
|
||||
// 4. 统一日志和报错
|
||||
console.error('JSON 解析失败:', {
|
||||
input: text,
|
||||
error: error.message
|
||||
});
|
||||
if (errorMessage) {
|
||||
Message.error(errorMessage);
|
||||
}
|
||||
return fallback;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Array} arr
|
||||
* @returns {Array}
|
||||
|
||||
@@ -289,8 +289,8 @@ export default {
|
||||
})
|
||||
},
|
||||
viewTopic(data) {
|
||||
// window.open(this.webBaseUrl+'/article/detail?id='+data.id , '_blank')
|
||||
this.$router.push({path:'/article/detail',query:{id:data.id}})
|
||||
window.open(this.webBaseUrl+'/article/detail?id='+data.id , '_blank')
|
||||
// this.$router.push({path:'/article/detail',query:{id:data.id}})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -697,7 +697,8 @@ export default {
|
||||
},
|
||||
viewTopic(data) {
|
||||
if (data.confidentialityLevel == '内部') {
|
||||
this.$router.push({ path: '/case/detail', query: { id: data.id } })
|
||||
// this.$router.push({ path: '/case/detail', query: { id: data.id } })
|
||||
window.open(this.webBaseUrl+'/case/detail?id='+data.id , '_blank')
|
||||
} else {
|
||||
this.$message.warning("非内部密级案例不能查看");
|
||||
}
|
||||
|
||||
@@ -40,9 +40,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-colleage-active');
|
||||
|
||||
let list = colleage.colleage;
|
||||
list.forEach(element => {
|
||||
let temp = element.org.split('/')
|
||||
@@ -50,44 +47,39 @@ export default {
|
||||
});
|
||||
this.colleageList = list;
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-colleage-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-colleage-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-colleage-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-colleage-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-colleage-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-colleage-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,49 +49,41 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-course-active');
|
||||
|
||||
this.courseList = course.course;
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-course-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-course-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-course-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-course-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-course-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-course-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-course-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-course-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-course-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-course-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,9 +98,6 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('course-detail-page-active');
|
||||
|
||||
this.id = this.$route.params.id
|
||||
let list = course.course;
|
||||
let pid = this.id
|
||||
@@ -127,50 +124,45 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('course-detail-page-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.course-detail-page-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.course-detail-page-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.course-detail-page-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.course-detail-page-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.course-detail-page-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.course-detail-page-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.course-detail-page-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.course-detail-page-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.course-detail-page-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body.course-detail-page-active {
|
||||
body {
|
||||
background-color: #e0ded9;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -123,9 +123,6 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-project-detail-active');
|
||||
|
||||
this.id = this.$route.params.id;
|
||||
let list = project.project;
|
||||
let pid = this.id;
|
||||
@@ -157,50 +154,45 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-project-detail-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-project-detail-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-project-detail-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-project-detail-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-project-detail-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-project-detail-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body.contributor-conference-project-detail-active {
|
||||
body {
|
||||
background-color: #e0ded9;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -52,9 +52,6 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-example-active');
|
||||
|
||||
let list = example.example
|
||||
for(let i = 0; i<list.length; i++){
|
||||
if(list[i].content.length > 200){
|
||||
@@ -63,45 +60,40 @@ export default {
|
||||
}
|
||||
this.exampleList = list
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-example-active');
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-example-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-example-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-example-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-example-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-example-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-example-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-example-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-example-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-example-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -383,49 +383,41 @@ export default {
|
||||
// if (res && res.code == "0") {
|
||||
// console.log(res);
|
||||
// }
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-index-active');
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-index-active');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-index-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-index-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-index-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-index-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-index-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-index-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-index-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-index-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-index-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,48 +111,39 @@ export default {
|
||||
this.$router.back('/contributor/index')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-project-active');
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-project-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-project-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-project-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-project-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-project-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-project-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-project-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-project-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-project-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-project-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,9 +43,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-teacher-active');
|
||||
|
||||
let list = teacher.teacher;
|
||||
list.forEach(element => {
|
||||
let temp = element.org.split('/')
|
||||
@@ -54,43 +51,38 @@ export default {
|
||||
this.teacherList = list
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-teacher-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-teacher-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-teacher-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-teacher-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-teacher-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-teacher-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,9 +40,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-colleage-active');
|
||||
|
||||
let list = colleage.colleage;
|
||||
list.forEach(element => {
|
||||
let temp = element.org.split('/')
|
||||
@@ -52,44 +49,39 @@ export default {
|
||||
});
|
||||
this.colleageList = list;
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-colleage-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-colleage-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-colleage-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-colleage-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-colleage-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-colleage-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,49 +50,41 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-course-active');
|
||||
|
||||
this.courseList = course.course;
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-course-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-course-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-course-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-course-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-course-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-course-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-course-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-course-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-course-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-course-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,9 +98,6 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-course-detail-active');
|
||||
|
||||
this.id = this.$route.params.id
|
||||
let list = course.course;
|
||||
let pid = this.id
|
||||
@@ -127,50 +124,45 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-course-detail-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-course-detail-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-course-detail-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-course-detail-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-course-detail-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-course-detail-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body.contributor-conference-2024-course-detail-active {
|
||||
body {
|
||||
background-color: #e0ded9;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -129,9 +129,6 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-project-detail-active');
|
||||
|
||||
this.id = this.$route.params.id;
|
||||
let list = project.project;
|
||||
let pid = this.id;
|
||||
@@ -163,50 +160,45 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-project-detail-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-project-detail-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-project-detail-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-project-detail-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-project-detail-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-project-detail-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body.contributor-conference-2024-project-detail-active {
|
||||
body {
|
||||
background-color: #e0ded9;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -52,9 +52,6 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-example-active');
|
||||
|
||||
let list = example.example
|
||||
for(let i = 0; i<list.length; i++){
|
||||
if(list[i].content.length > 200){
|
||||
@@ -63,45 +60,40 @@ export default {
|
||||
}
|
||||
this.exampleList = list
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-example-active');
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-example-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-example-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-example-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-example-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-example-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-example-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-example-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-example-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-example-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -408,14 +408,6 @@ export default {
|
||||
// if (res && res.code == "0") {
|
||||
// console.log(res);
|
||||
// }
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-index-active');
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-index-active');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -433,36 +425,35 @@ export default {
|
||||
font-family: 'biaoti2';
|
||||
src: url('../../assets/fonts/KMQfP4.ttf');
|
||||
}
|
||||
// 使用 body.contributor-conference-2024-index-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-index-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-index-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-index-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-index-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-index-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-index-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-index-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-index-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,48 +139,39 @@ export default {
|
||||
this.$router.back('/contributor_2024/index')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-project-active');
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-project-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-project-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-project-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-project-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-project-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-project-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-project-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-project-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-project-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-project-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,9 +43,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-2024-teacher-active');
|
||||
|
||||
let list = teacher.teacher;
|
||||
list.forEach(element => {
|
||||
let temp = element.org.split('/')
|
||||
@@ -54,43 +51,38 @@ export default {
|
||||
this.teacherList = list
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-2024-teacher-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-2024-teacher-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-2024-teacher-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-2024-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-2024-teacher-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-2024-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-2024-teacher-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-2024-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-2024-teacher-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-2024-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,9 +40,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-colleage-active');
|
||||
|
||||
let list = colleage.colleage;
|
||||
list.forEach(element => {
|
||||
let temp = element.org.split('/')
|
||||
@@ -50,44 +47,39 @@ export default {
|
||||
});
|
||||
this.colleageList = list;
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-colleage-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-colleage-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-colleage-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-colleage-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-colleage-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-colleage-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-colleage-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,49 +50,41 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-course-active');
|
||||
|
||||
this.courseList = course.course;
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-course-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-course-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-course-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-course-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-course-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-course-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-course-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-course-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-course-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-course-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,9 +98,6 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-course-detail-active');
|
||||
|
||||
this.id = this.$route.params.id
|
||||
let list = course.course;
|
||||
let pid = this.id
|
||||
@@ -127,50 +124,45 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-course-detail-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-course-detail-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-course-detail-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-course-detail-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-course-detail-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-course-detail-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-course-detail-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body.contributor-conference-new-course-detail-active {
|
||||
body {
|
||||
background-color: #e0ded9;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -129,9 +129,6 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-project-detail-active');
|
||||
|
||||
this.id = this.$route.params.id;
|
||||
let list = project.project;
|
||||
let pid = this.id;
|
||||
@@ -163,50 +160,45 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-project-detail-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-project-detail-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-project-detail-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-project-detail-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-project-detail-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-project-detail-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-project-detail-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
body.contributor-conference-new-project-detail-active {
|
||||
body {
|
||||
background-color: #e0ded9;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -52,9 +52,6 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-example-active');
|
||||
|
||||
let list = example.example
|
||||
for(let i = 0; i<list.length; i++){
|
||||
if(list[i].content.length > 200){
|
||||
@@ -63,45 +60,40 @@ export default {
|
||||
}
|
||||
this.exampleList = list
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-example-active');
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-example-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-example-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-example-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-example-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-example-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-example-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-example-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-example-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-example-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,14 +401,6 @@ export default {
|
||||
// if (res && res.code == "0") {
|
||||
// console.log(res);
|
||||
// }
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-index-active');
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-index-active');
|
||||
}
|
||||
|
||||
|
||||
@@ -427,36 +419,35 @@ export default {
|
||||
font-family: 'biaoti2';
|
||||
src: url('../../assets/fonts/KMQfP4.ttf');
|
||||
}
|
||||
// 使用 body.contributor-conference-new-index-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-index-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-index-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-index-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-index-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-index-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-index-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-index-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-index-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,48 +183,39 @@ export default {
|
||||
this.$router.back('/contributornew/index')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-project-active');
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-project-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-project-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-project-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-project-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-project-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-project-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-project-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-project-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-project-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-project-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,9 +43,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 给 body 添加特定类名,用于限制样式作用域
|
||||
document.body.classList.add('contributor-conference-new-teacher-active');
|
||||
|
||||
let list = teacher.teacher;
|
||||
list.forEach(element => {
|
||||
let temp = element.org.split('/')
|
||||
@@ -54,43 +51,38 @@ export default {
|
||||
this.teacherList = list
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 组件销毁时移除类名
|
||||
document.body.classList.remove('contributor-conference-new-teacher-active');
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
// 使用 body.contributor-conference-new-teacher-active 类名限制样式只在该页面生效
|
||||
@media screen and (min-width: 1440px) and (max-width: 1600px){
|
||||
body.contributor-conference-new-teacher-active{
|
||||
body{
|
||||
zoom: 79%;
|
||||
}
|
||||
body.contributor-conference-new-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1900px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1366px) and (max-width: 1440px){
|
||||
body.contributor-conference-new-teacher-active{
|
||||
body{
|
||||
zoom: 74%;
|
||||
}
|
||||
body.contributor-conference-new-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1869px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1280px) and (max-width: 1366px){
|
||||
body.contributor-conference-new-teacher-active{
|
||||
body{
|
||||
zoom: 72%;
|
||||
}
|
||||
body.contributor-conference-new-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1874px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1280px){
|
||||
body.contributor-conference-new-teacher-active{
|
||||
body{
|
||||
zoom: 67%;
|
||||
}
|
||||
body.contributor-conference-new-teacher-active #bg{
|
||||
#bg{
|
||||
width: 1885px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,10 +134,7 @@
|
||||
<div>
|
||||
<div style="line-height: 30px;">
|
||||
<div>请在当前面板选择需要上传的课件</div>
|
||||
<div style="">提示:<br>
|
||||
1、课件大小超过1G时,无法上传,请先压缩视频,或剪切成多个再上传。<br>
|
||||
2、视频码率需在1.5Mb/s及以下,帧数需在30帧及以下。<br>
|
||||
3、如果上传zip文件必须是scorm标准打包文件。</div>
|
||||
<div style="">提示:课件大小超过1G时,无法上传,请先压缩视频,或剪切成多个再上传。如果上传zip文件必须是scorm标准打包文件</div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display: flex;line-height: 30px;padding: 5px 0px;">
|
||||
@@ -630,8 +627,12 @@ export default {
|
||||
// if(item.minute){
|
||||
// item.duration=parseFloat(item.minute)*60;
|
||||
// }
|
||||
// 如果没有给一个默认值30分钟
|
||||
item.duration = item.minute ? parseFloat(item.minute) * 60 : 1800;
|
||||
// 视频文件才可以设置时长,其他类型直接赋值0
|
||||
if (item.fileType === 'mp4' || item.fileType === 'mp3') {
|
||||
item.duration = item.minute ? parseFloat(item.minute) * 60 : 0;
|
||||
} else {
|
||||
item.duration = 0;
|
||||
}
|
||||
});
|
||||
this.loading = true;
|
||||
coueseFile.batchUpdate(this.fileList).then(rs => {
|
||||
|
||||
@@ -296,7 +296,7 @@
|
||||
import apiPaper from '@/api/modules/paper.js';
|
||||
import apiExamTask from '@/api/modules/examTask.js';
|
||||
import examQuestionApi from "@/api/modules/question";
|
||||
import { deepClone, safeJsonParse } from '../../utils';
|
||||
import { deepClone } from '../../utils';
|
||||
import {numberToLetter, deepCopy} from '../../utils/tools.js';
|
||||
import { mapGetters,mapActions} from 'vuex';
|
||||
import editPaper from "@/components/Exam/EditPaper";
|
||||
@@ -689,7 +689,7 @@ export default {
|
||||
this.viewVolumeShow=true;
|
||||
apiPaper.detail(row.id).then(res=>{
|
||||
if(res.status === 200) {
|
||||
this.viewShowData = safeJsonParse(res.result.paperContent, { items: [] });
|
||||
this.viewShowData = JSON.parse(res.result.paperContent);
|
||||
console.log(this.viewShowData,'lll')
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
@@ -720,9 +720,8 @@ export default {
|
||||
apiPaper.detail(row.id).then(res=>{
|
||||
if(res.status === 200) {
|
||||
this.paper = res.result;
|
||||
const parsedValue = safeJsonParse(res.result.paperContent, []);
|
||||
this.paper.data = parsedValue;
|
||||
this.paperData = parsedValue;
|
||||
this.paper.data = JSON.parse(res.result.paperContent);
|
||||
this.paperData = JSON.parse(res.result.paperContent);
|
||||
this.paper.paperType = Number(res.result.paperType);
|
||||
if(res.result.resOwner3) {
|
||||
this.resOwner = [res.result.resOwner1,res.result.resOwner2,res.result.resOwner3];
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<img class="img" @click="goLearn('1351506180295131136')" src="../../assets/images/hotforum/2501.jpg" alt="">
|
||||
</div>
|
||||
<div class="item">
|
||||
<img class="img" @click="goLearn('1375146833375027200')" src="../../assets/images/hotforum/2503.png" alt="">
|
||||
<img class="img" @click="goLearn('1375146833375027200')" src="../../assets/images/hotforum/2503.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="line" style="margin: 0 auto;margin-top: 60px;width: 100%;text-align: center;">
|
||||
|
||||
1
src/views/lexiang-sso-77deb595.txt
Normal file
1
src/views/lexiang-sso-77deb595.txt
Normal file
@@ -0,0 +1 @@
|
||||
60ab8a4b97b446b2dcd32889
|
||||
@@ -9,7 +9,7 @@
|
||||
@close="onClose"
|
||||
class="case-expert-dialog"
|
||||
:modal="false"
|
||||
:fullscreen="dialogFullscreen"
|
||||
:fullscreen="false"
|
||||
top="0"
|
||||
v-resizeable
|
||||
v-draggable
|
||||
@@ -17,31 +17,18 @@
|
||||
<!-- 标题 -->
|
||||
<div slot="title" class="dialog-title">
|
||||
<span>案例专家</span>
|
||||
<div class="window-control-btn">
|
||||
<el-button
|
||||
style="color:#96999f;margin-right: 6px;"
|
||||
<el-button
|
||||
style="color:#96999f"
|
||||
type="text"
|
||||
class="window-control-btn"
|
||||
@click="minimizeWindow"
|
||||
>
|
||||
<i class="el-icon-minus"></i>
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
style="color:#96999f;"
|
||||
>
|
||||
<img v-if="!dialogFullscreen" @click="onbigWindowClick" :src="openImg" alt="" style="width: 17px">
|
||||
<i v-else @click="onRestoreWindowClick" class="el-icon-copy-document"></i>
|
||||
</el-button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="content-wrapper" v-show="isLan">
|
||||
<lan-service-checker :value.sync="isLan"/>
|
||||
</div>
|
||||
<!-- 内容区域 -->
|
||||
<div class="content-wrapper" v-show="!isLan" >
|
||||
<div class="content-wrapper">
|
||||
<div
|
||||
class="welcome-message"
|
||||
ref="messageContainer"
|
||||
@@ -49,7 +36,7 @@
|
||||
@wheel="handleWheel"
|
||||
>
|
||||
<div class="message-text" v-for="(item, index) in messageList" :key="index">
|
||||
<messages :messageData="item" @update:messageData="val=> $set(messageList, index, val)" :suggestions="suggestions" @getMinWindow="minimizeWindow" :isFirstMessage="item.isFirstMessage"></messages>
|
||||
<messages :messageData="item" :suggestions="suggestions" @getMinWindow="minimizeWindow"></messages>
|
||||
</div>
|
||||
<div class="message-suggestions" v-if="messageList.length > 0 && messageList[messageList.length-1].textCompleted">
|
||||
<div class="suggestion-item" v-for="(item, index) in suggestions" :key="index">
|
||||
@@ -125,7 +112,6 @@ import { mapState } from 'vuex'
|
||||
import messages from './components/messages.vue'
|
||||
import sendMessage from './components/sendMessage.vue'
|
||||
import openImg from './components/open.png'
|
||||
import LanServiceChecker from "@/components/LanServiceChecker.vue";
|
||||
export default {
|
||||
name: 'CaseExpertDialog',
|
||||
props: {
|
||||
@@ -135,7 +121,6 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
LanServiceChecker,
|
||||
messages,
|
||||
sendMessage
|
||||
},
|
||||
@@ -168,19 +153,13 @@ export default {
|
||||
let startY = 0;
|
||||
let startLeft = 0;
|
||||
let startTop = 0;
|
||||
|
||||
const startDrag = (event) => {
|
||||
// 只有在标题栏上按下鼠标才开始拖动
|
||||
if (event.target.closest('.resize-handle')) {
|
||||
return; // 如果点击的是resize-handle,则不触发拖动
|
||||
}
|
||||
if (event.target.closest('.window-control-btn')) {
|
||||
return; // 如果点击的是控制按钮,则不触发拖动
|
||||
}
|
||||
// 全屏状态下拖动为正常弹窗大小
|
||||
if (vnode.context.dialogFullscreen) {
|
||||
vnode.context.onRestoreWindowClick();
|
||||
return;
|
||||
}
|
||||
|
||||
isDragging = true;
|
||||
startX = event.clientX;
|
||||
startY = event.clientY;
|
||||
@@ -207,12 +186,14 @@ export default {
|
||||
|
||||
const stopDrag = () => {
|
||||
isDragging = false;
|
||||
|
||||
// 保存当前位置到 sessionStorage
|
||||
const currentPosition = {
|
||||
left: parseInt(dialogEl.style.left),
|
||||
top: parseInt(dialogEl.style.top)
|
||||
};
|
||||
// sessionStorage.setItem('aiCallDialogPosition', JSON.stringify(currentPosition));
|
||||
|
||||
// 移除全局事件监听
|
||||
document.removeEventListener('mousemove', handleMouseMove);
|
||||
document.removeEventListener('mouseup', stopDrag);
|
||||
@@ -487,8 +468,6 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialogFullscreen:false,
|
||||
isLan: true,
|
||||
openImg,
|
||||
AIContent: '',
|
||||
isLoading: false,
|
||||
@@ -496,7 +475,6 @@ export default {
|
||||
messageList: [
|
||||
{
|
||||
typing:true,
|
||||
isFirstMessage: true, // 添加 isFirstMessage 属性不展示赞 踩
|
||||
isBot: true, // 是否为机器人
|
||||
text: `<p><b>您好!我是京东方案例智能问答助手,随时为您服务。</b></p>
|
||||
<p>我可以帮您快速查找和解读平台内的各类案例内容。只需输入您想了解的问题或关键词,我会从案例库中精准匹配相关信息,并提供清晰的解答。每条回答都会附上来源链接,方便您随时查阅原始案例全文。</p>
|
||||
@@ -576,90 +554,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onbigWindowClick() {
|
||||
console.log('放大');
|
||||
// 保存当前非全屏状态的尺寸和位置(仅当当前不是全屏状态时)
|
||||
if (!this.dialogFullscreen) {
|
||||
const dialogEl = document.querySelector('.case-expert-dialog .el-dialog');
|
||||
if (dialogEl) {
|
||||
const normalSize = {
|
||||
width: parseInt(dialogEl.style.width) || dialogEl.offsetWidth,
|
||||
height: parseInt(dialogEl.style.height) || dialogEl.offsetHeight,
|
||||
left: parseInt(dialogEl.style.left) || dialogEl.offsetLeft,
|
||||
top: parseInt(dialogEl.style.top) || dialogEl.offsetTop
|
||||
};
|
||||
sessionStorage.setItem('aiCallDialogNormalSize', JSON.stringify(normalSize));
|
||||
}
|
||||
}
|
||||
|
||||
// 设置全屏状态
|
||||
this.dialogFullscreen = true;
|
||||
|
||||
// 设置全屏尺寸和位置
|
||||
this.$nextTick(() => {
|
||||
const dialogEl = document.querySelector('.case-expert-dialog .el-dialog');
|
||||
if (dialogEl) {
|
||||
dialogEl.style.width = '100vw';
|
||||
dialogEl.style.height = '100vh';
|
||||
dialogEl.style.left = '0px';
|
||||
dialogEl.style.top = '0px';
|
||||
|
||||
// 更新消息容器高度
|
||||
const messageContainer = document.querySelector('.welcome-message');
|
||||
const inputArea = document.querySelector('.input-area-wrapper');
|
||||
if (messageContainer && inputArea) {
|
||||
messageContainer.style.height = `calc(100vh - ${inputArea.offsetHeight}px - 120px)`;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
onRestoreWindowClick(){
|
||||
console.log('缩小');
|
||||
this.dialogFullscreen = false;
|
||||
|
||||
this.$nextTick(() => {
|
||||
const dialogEl = document.querySelector('.case-expert-dialog .el-dialog');
|
||||
if (dialogEl) {
|
||||
// 从 sessionStorage 中获取保存的正常窗口尺寸和位置
|
||||
const savedNormalSize = sessionStorage.getItem('aiCallDialogNormalSize');
|
||||
const savedSize = sessionStorage.getItem('aiCallDialogSize');
|
||||
const savedPosition = sessionStorage.getItem('aiCallDialogPosition');
|
||||
|
||||
if (savedNormalSize) {
|
||||
// 使用之前保存的正常尺寸
|
||||
const { width, height, left, top } = JSON.parse(savedNormalSize);
|
||||
dialogEl.style.width = width + 'px';
|
||||
dialogEl.style.height = height + 'px';
|
||||
dialogEl.style.left = left + 'px';
|
||||
dialogEl.style.top = top + 'px';
|
||||
} else if (savedSize) {
|
||||
// 回退到通用保存的尺寸
|
||||
const { width, height, left, top } = JSON.parse(savedSize);
|
||||
dialogEl.style.width = width + 'px';
|
||||
dialogEl.style.height = height + 'px';
|
||||
dialogEl.style.left = left + 'px';
|
||||
dialogEl.style.top = top + 'px';
|
||||
} else {
|
||||
// 如果没有保存的尺寸,则使用默认值
|
||||
dialogEl.style.width = '800px';
|
||||
dialogEl.style.height = '600px';
|
||||
dialogEl.style.left = (window.innerWidth - 800) / 2 + 'px';
|
||||
dialogEl.style.top = '100px';
|
||||
}
|
||||
|
||||
// 应用相应的消息容器高度
|
||||
this.$nextTick(() => {
|
||||
const messageContainer = document.querySelector('.welcome-message');
|
||||
const inputArea = document.querySelector('.input-area-wrapper');
|
||||
if (messageContainer && inputArea) {
|
||||
const dialogHeight = dialogEl.style.height || '600px';
|
||||
messageContainer.style.height = `calc(${dialogHeight} - ${inputArea.offsetHeight}px - 120px)`;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// / 关闭最小化窗口
|
||||
closeMinimizedWindow() {
|
||||
this.$store.commit('app/SET_SHOW_AI_CALL_MINIMIZED', false);
|
||||
@@ -676,13 +570,10 @@ closeMinimizedWindow() {
|
||||
sessionStorage.removeItem('aiCallDialogSize');
|
||||
// sessionStorage.removeItem('aiCallDialogPosition');
|
||||
this.$emit('close')
|
||||
this.dialogFullscreen=false
|
||||
// 可以在这里执行其他逻辑
|
||||
},
|
||||
|
||||
minimizeWindow() {
|
||||
console.log(131);
|
||||
|
||||
this.windowState = 'minimized';
|
||||
this.$store.commit('app/SET_SHOW_AI_CALL_MINIMIZED', true);
|
||||
},
|
||||
@@ -734,7 +625,6 @@ closeMinimizedWindow() {
|
||||
this.messageList = [
|
||||
{
|
||||
isBot: true,
|
||||
isFirstMessage: true,
|
||||
text: `<p><b>您好!我是京东方案例智能问答助手,随时为您服务。</b></p>
|
||||
<p>我可以帮您快速查找和解读平台内的各类案例内容。只需输入您想了解的问题或关键词,我会从案例库中精准匹配相关信息,并提供清晰的解答。每条回答都会附上来源链接,方便您随时查阅原始案例全文。</p>
|
||||
<p>我还会根据您的提问,智能推荐相关延伸问题,助您更高效地探索知识、解决问题。</p>
|
||||
@@ -853,7 +743,6 @@ closeMinimizedWindow() {
|
||||
font-size: 18px;
|
||||
padding: 5px 10px;
|
||||
color: #333; /* 黑色图标 */
|
||||
margin-top: -13px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -881,8 +770,6 @@ closeMinimizedWindow() {
|
||||
//margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
|
||||
.welcome-message {
|
||||
display: flex;
|
||||
@@ -1016,13 +903,4 @@ closeMinimizedWindow() {
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
.case-expert-dialog {
|
||||
::v-deep .el-dialog.fullscreen {
|
||||
border-radius: 0;
|
||||
|
||||
.el-dialog__body {
|
||||
height: calc(100vh - 120px); // 减去标题栏高度
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -6,13 +6,15 @@
|
||||
<div v-if="messageData.thinkText" class="bot-think" v-katex:auto v-html="md.render(messageData.thinkText)"></div>
|
||||
|
||||
<!-- 主要回复内容 -->
|
||||
<div ref="contentContainer" class="message-content" v-katex:auto v-html="md.render(displayText)">
|
||||
</div>
|
||||
|
||||
<div
|
||||
ref="contentContainer"
|
||||
class="message-content"
|
||||
v-katex:auto
|
||||
v-html="md.render(displayText)"
|
||||
></div>
|
||||
|
||||
<!-- 引用案例 -->
|
||||
<div v-if="messageData.caseRefers && messageData.caseRefers.length > 0 && messageData.textCompleted"
|
||||
class="case-refers">
|
||||
<div v-if="messageData.caseRefers && messageData.caseRefers.length > 0 && messageData.textCompleted" class="case-refers">
|
||||
<div class="case-refers-title">
|
||||
<span><i class="iconfont icon-think"></i> 引用案例</span>
|
||||
<span v-if="shouldShowMoreButton" class="more" @click="toggleShowAllCaseRefers">
|
||||
@@ -20,7 +22,11 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="case-refers-list">
|
||||
<div v-for="item in displayedCaseRefers" :key="item.caseId" class="case-refers-item">
|
||||
<div
|
||||
v-for="item in displayedCaseRefers"
|
||||
:key="item.caseId"
|
||||
class="case-refers-item"
|
||||
>
|
||||
<div class="case-refers-item-title">
|
||||
<a @click="toUrl(item)" class="title">{{ item.title }}</a>
|
||||
<span class="case-refers-item-timer">{{ item.uploadTime }}</span>
|
||||
@@ -37,54 +43,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 赞/踩图标区域 - 仅在文本加载完成后显示 -->
|
||||
<div v-if="showFeedbackIcons && !isFirstMessage" style="margin-top: 8px;">
|
||||
<el-tooltip class="item" effect="dark" content="点赞" placement="bottom">
|
||||
<!-- 修改为根据 isLike 值判断状态,使用 == 而不是 === -->
|
||||
<img :src="messageData.isLike == 1 ? require('@/assets/images/case/zan-yes.svg') : require('@/assets/images/case/zan.svg')"
|
||||
@click="toggleStar(1)" alt="zan" class="zan_img">
|
||||
</el-tooltip>
|
||||
<el-popover placement="bottom" trigger="manual" v-model="caiDialogShow">
|
||||
<div class="feedback-class">
|
||||
<span>反馈</span>
|
||||
<i class="el-icon-close" @click="caiDialogShow = false"></i>
|
||||
</div>
|
||||
<div style="margin-top: 15px;">
|
||||
<span class="tag-class" v-for="(item, index) in tagList" :key="index" @click="handleTag(item)">{{
|
||||
item.name}}</span>
|
||||
</div>
|
||||
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="feedbackText" style="margin-top: 10px;">
|
||||
</el-input>
|
||||
<div style="text-align: right; margin: 0">
|
||||
<el-button style="margin-top: 10px;" type="primary" size="mini" @click="handleSure">确定</el-button>
|
||||
</div>
|
||||
<!-- 修改为根据 isLike 值判断状态,使用 == 而不是 === -->
|
||||
<img slot="reference"
|
||||
:src="messageData.isLike == -1 ? require('@/assets/images/case/cai-yes.svg') : require('@/assets/images/case/cai.svg')"
|
||||
@click="toggleStar(-1)" alt="cai" class="zan_img" style="margin-left:10px">
|
||||
</el-popover>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 用户消息 -->
|
||||
<div v-else class="user-message">
|
||||
<div class="message-text" v-html="messageData.text"></div>
|
||||
</div>
|
||||
|
||||
<!-- 推荐问题 -->
|
||||
<!-- <div v-if="suggestions && suggestions.length > 0" class="suggestions">-->
|
||||
<!-- <div class="suggestions-title">💡 推荐问题</div>-->
|
||||
<!-- <div class="suggestions-list">-->
|
||||
<!-- <button-->
|
||||
<!-- v-for="(item, index) in suggestions"-->
|
||||
<!-- :key="index"-->
|
||||
<!-- class="suggestions-item"-->
|
||||
<!-- @click="$emit('suggestion-click', item)"-->
|
||||
<!-- >-->
|
||||
<!-- {{ item }}-->
|
||||
<!-- </button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div v-if="suggestions && suggestions.length > 0" class="suggestions">-->
|
||||
<!-- <div class="suggestions-title">💡 推荐问题</div>-->
|
||||
<!-- <div class="suggestions-list">-->
|
||||
<!-- <button-->
|
||||
<!-- v-for="(item, index) in suggestions"-->
|
||||
<!-- :key="index"-->
|
||||
<!-- class="suggestions-item"-->
|
||||
<!-- @click="$emit('suggestion-click', item)"-->
|
||||
<!-- >-->
|
||||
<!-- {{ item }}-->
|
||||
<!-- </button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -94,7 +73,6 @@ import highlight from 'markdown-it-highlightjs';
|
||||
import 'highlight.js/styles/a11y-dark.css';
|
||||
import markdownItMermaid from 'markdown-it-mermaid';
|
||||
import mermaid from 'mermaid';
|
||||
import { likeMsg, msgFeedback } from '@/api/boe/aiChat.js'
|
||||
|
||||
// 初始化 Mermaid
|
||||
mermaid.initialize({ startOnLoad: false });
|
||||
@@ -119,11 +97,6 @@ export default {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
// 添加 isFirstMessage 属性来标识是否为第一条消息
|
||||
isFirstMessage: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -132,16 +105,6 @@ export default {
|
||||
typingTimer: null,
|
||||
typingSpeed: 30, // 毫秒/字符
|
||||
showAllCaseRefers: false,
|
||||
caiDialogShow: false,
|
||||
tagList: [
|
||||
{ name: '回答不准确' },
|
||||
{ name: '逻辑不清晰' },
|
||||
{ name: '内容不完整' },
|
||||
{ name: '其他' },
|
||||
],
|
||||
feedbackText: '',
|
||||
showFeedbackIcons: false // 新增:控制赞/踩图标显示
|
||||
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -160,7 +123,6 @@ export default {
|
||||
handler(newVal) {
|
||||
if (!newVal) {
|
||||
this.displayText = '';
|
||||
this.showFeedbackIcons = false; // 隐藏图标
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -168,72 +130,15 @@ export default {
|
||||
// this.startTyping(newVal); // 启动打字机效果/**/
|
||||
|
||||
this.displayText = newVal || ''
|
||||
// 文本加载完成后显示图标
|
||||
this.$nextTick(() => {
|
||||
this.showFeedbackIcons = true;
|
||||
});
|
||||
} else {
|
||||
this.displayText = this.md.render(newVal);
|
||||
this.$nextTick(() => {
|
||||
this.showFeedbackIcons = true; // 显示图标
|
||||
this.renderMermaid();
|
||||
});
|
||||
this.$nextTick(this.renderMermaid); // 直接渲染 Mermaid
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
toggleStar(type) {
|
||||
// type: 1 表示赞,-1 表示踩,0 表示取消
|
||||
let newIsLike = 0;
|
||||
if (type === 1 && this.messageData.isLike == 1) {
|
||||
newIsLike = 0;
|
||||
} else if (type === -1 && this.messageData.isLike == -1) {
|
||||
newIsLike = 0;
|
||||
this.caiDialogShow = false;
|
||||
} else {
|
||||
newIsLike = type;
|
||||
if (type === -1) {
|
||||
this.caiDialogShow = true;
|
||||
} else {
|
||||
this.caiDialogShow = false;
|
||||
}
|
||||
}
|
||||
let params = {
|
||||
docId: this.messageData.docId,
|
||||
likeStatus: newIsLike === 0 ? '0' : newIsLike.toString(),
|
||||
}
|
||||
|
||||
likeMsg(params).then(res => {
|
||||
if(res.status ==200){
|
||||
// 更新状态
|
||||
this.$set(this.messageData, 'isLike', newIsLike)
|
||||
this.$emit('update:messageData', this.messageData)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
// 标签选择
|
||||
handleTag(item) {
|
||||
this.feedbackText = item.name
|
||||
},
|
||||
// 确定
|
||||
handleSure() {
|
||||
let params = {
|
||||
docId: this.messageData.docId,
|
||||
feedback: this.feedbackText
|
||||
}
|
||||
msgFeedback(params).then(res => {
|
||||
console.log(res);
|
||||
if(res.status ==200){
|
||||
this.$message.success('反馈成功')
|
||||
this.caiDialogShow = false
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
toUrl(item) {
|
||||
this.$router.push({
|
||||
path: '/case/detail',
|
||||
@@ -261,7 +166,6 @@ export default {
|
||||
} else {
|
||||
clearInterval(this.typingTimer);
|
||||
this.typingTimer = null;
|
||||
this.showFeedbackIcons = true; // 打字完成后显示图标
|
||||
this.$nextTick(this.renderMermaid); // 渲染 Mermaid 图表
|
||||
}
|
||||
}, this.typingSpeed);
|
||||
@@ -303,16 +207,14 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
::v-deep .mermaid {
|
||||
::v-deep .mermaid{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
::v-deep svg[id^="mermaid-"] {
|
||||
::v-deep svg[id^="mermaid-"]{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.messages {
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
@@ -476,7 +378,7 @@ export default {
|
||||
color: #577ee1;
|
||||
}
|
||||
|
||||
span+span {
|
||||
span + span {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
@@ -518,32 +420,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.zan_img {
|
||||
width: 15px;
|
||||
}
|
||||
|
||||
.feedback-class {
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
i {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.tag-class {
|
||||
background: #f2f2f2;
|
||||
border-radius: 5px;
|
||||
padding: 3px 6px;
|
||||
color: #555;
|
||||
margin-left: 13px;
|
||||
font-size: 13px !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tag-class:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
<template>
|
||||
<div class="input-area">
|
||||
<el-input v-model="inputContent" type="textarea" class="input-placeholder" placeholder="有问题,尽管问"
|
||||
@keyup.enter.native.prevent="handleSend" :disabled="disabled" :autosize="{ minRows: 2, maxRows: 4 }"
|
||||
resize="none"></el-input>
|
||||
<el-input
|
||||
v-model="inputContent"
|
||||
type="textarea"
|
||||
class="input-placeholder"
|
||||
placeholder="有问题,尽管问"
|
||||
@keyup.enter.native.prevent="handleSend"
|
||||
:disabled="disabled"
|
||||
:autosize="{ minRows: 2, maxRows: 4}"
|
||||
resize="none"
|
||||
></el-input>
|
||||
<div class="action-buttons">
|
||||
<el-button type="primary" size="small" class="start-btn" @click="handleNewConversation">
|
||||
+ 开启新对话
|
||||
@@ -80,10 +87,9 @@ export default {
|
||||
callAIChat(question) {
|
||||
// 创建新的AI消息对象
|
||||
const aiMessage = {
|
||||
docId: '',
|
||||
isBot: true,
|
||||
text: '',
|
||||
status: null,
|
||||
status:null,
|
||||
thinkText: '',
|
||||
caseRefers: [], // 添加caseRefers字段
|
||||
textCompleted: false // 添加文字处理完成状态,默认为false
|
||||
@@ -96,14 +102,14 @@ export default {
|
||||
query: question
|
||||
};
|
||||
// 创建POST请求
|
||||
fetch('/systemapi/xboe/m/boe/case/ai/chat', {
|
||||
fetch('/systemapi/xboe/m/boe/case/ai/chat',{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
"accept": "text/event-stream",
|
||||
},
|
||||
body: JSON.stringify(requestData)
|
||||
}).then(r => {
|
||||
}).then(r=>{
|
||||
return r
|
||||
}).then(response => {
|
||||
// 处理流式响应
|
||||
@@ -261,8 +267,8 @@ export default {
|
||||
// 累积内容并使用打字机效果更新显示
|
||||
accumulatedContent += content;
|
||||
// 如果thinkText已经显示完整,则继续使用打字机效果显示内容
|
||||
if (aiMessage.hasThink) {
|
||||
if (aiMessage.thinkText.length >= accumulatedThinkContent.length) {
|
||||
if( aiMessage.hasThink){
|
||||
if(aiMessage.thinkText.length >=accumulatedThinkContent.length){
|
||||
typeText(aiMessage, accumulatedContent);
|
||||
}
|
||||
} else {
|
||||
@@ -297,23 +303,6 @@ export default {
|
||||
this.$emit('update-message', aiMessage);
|
||||
}
|
||||
break;
|
||||
|
||||
case 9:
|
||||
if (jsonData.docId) {
|
||||
aiMessage.docId = jsonData.docId
|
||||
this.$emit('update-message', aiMessage);
|
||||
}
|
||||
console.log(jsonData)
|
||||
break
|
||||
default:
|
||||
if (jsonData.docId) {
|
||||
aiMessage.docId = jsonData.docId
|
||||
this.$emit('update-message', aiMessage);
|
||||
}
|
||||
break
|
||||
|
||||
|
||||
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('解析SSE数据错误:', error);
|
||||
|
||||
@@ -95,7 +95,10 @@
|
||||
<div v-if="coursewareInfo.content.contentType == 52">
|
||||
<div class="hyper-link" v-if="conLink.openType==2">
|
||||
<div class="hyper-link-row">课程内容是外部连接</div>
|
||||
<div class="hyper-link-row">{{conLink.url}}</div>
|
||||
<!-- <div class="hyper-link-row">{{conLink.url}}</div>-->
|
||||
<div class="hyper-link-row">
|
||||
<el-button @click="widthOpen(conLink.url)" type="primary" style="margin-left: 15px">点击前往</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="conLink.openType==1">
|
||||
<iframe :src="conLink.url" style="width: 100%;border:0px;min-height: 473px;border:0px" border="0" frameborder="0"></iframe>
|
||||
|
||||
@@ -357,17 +357,16 @@ import apiCourse from "@/api/modules/course.js";
|
||||
import apiCourseFile from "@/api/modules/courseFile.js";
|
||||
import apiCoursePortal from "@/api/modules/coursePortal.js";
|
||||
import apiUser from '@/api/system/user.js';
|
||||
import {
|
||||
formatDate,
|
||||
resListMap,
|
||||
toScore,
|
||||
courseType,
|
||||
getType,
|
||||
numberToLetter,
|
||||
correctJudgment
|
||||
} from "@/utils/tools.js";
|
||||
import { safeJsonParse } from "@/utils";
|
||||
import apicourseStudy from "@/api/modules/courseStudy.js";
|
||||
import {
|
||||
formatDate,
|
||||
resListMap,
|
||||
toScore,
|
||||
courseType,
|
||||
getType,
|
||||
numberToLetter,
|
||||
correctJudgment
|
||||
} from "@/utils/tools.js";
|
||||
import apicourseStudy from "@/api/modules/courseStudy.js";
|
||||
import apiCourseGrade from "@/api/modules/courseGrade.js";
|
||||
import apiPraises from "@/api/modules/praises.js";
|
||||
import apiTrample from "@/api/modules/trample.js";
|
||||
@@ -717,7 +716,7 @@ export default {
|
||||
apiCourse.getExam(this.examInfo.content.id).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.examInfo.info = res.result;
|
||||
this.examInfo.paper = safeJsonParse(res.result.paperContent, { items: [] });
|
||||
this.examInfo.paper = JSON.parse(res.result.paperContent);
|
||||
} else if (res.status == 404) {
|
||||
//没有找到考试信息
|
||||
} else {
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
<div class="qa-info-summary portal-summary-text" :class="qa.images==''? 'two-line-ellipsis':'four-line-ellipsis'" @click="jumpDetail(qa)" v-html="$keywordActiveShow(qa.content,queryKeyWord)">
|
||||
|
||||
</div>
|
||||
<div style="cursor: pointer; text-align: right;cursor: pointer;" v-if="qa.images!==''" @click="jumpDetail(qa)">
|
||||
<img style="width: 156px;height: 105px;border-radius: 4px;margin-left: 18px;" :src="fileBaseUrl + qa.images" alt="">
|
||||
<div style="cursor: pointer; text-align: right;cursor: pointer;" v-if="qa.images && qa.images!==''" @click="jumpDetail(qa)">
|
||||
<img style="width: 156px;height: 105px;border-radius: 4px;margin-left: 18px;" :src="fileBaseUrl + qa.images" alt="图片貌似被外星人劫走了">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -349,6 +349,7 @@ export default {
|
||||
this.$message.success('删除成功');
|
||||
this.queryData.pageIndex = 1;
|
||||
this.queryMessage(true);
|
||||
this.$store.dispatch('refrashMsg');
|
||||
} else {
|
||||
this.$message.error('删除失败' + res.message);
|
||||
}
|
||||
@@ -366,6 +367,7 @@ export default {
|
||||
this.$message.success('删除成功');
|
||||
this.queryData.pageIndex = 1;
|
||||
this.queryMessage(true);
|
||||
this.$store.dispatch('refrashMsg');
|
||||
} else {
|
||||
this.$message.error('删除失败' + res.message);
|
||||
}
|
||||
|
||||
@@ -306,8 +306,8 @@ export default {
|
||||
|
||||
},
|
||||
viewTopic(data) {
|
||||
// window.open(this.webBaseUrl+'/qa/answer?id='+data.id, '_blank');
|
||||
this.$router.push({path:'/qa/answer',query:{id:data.id}})
|
||||
window.open(this.webBaseUrl+'/qa/answer?id='+data.id, '_blank');
|
||||
// this.$router.push({path:'/qa/answer',query:{id:data.id}})
|
||||
},
|
||||
aduit(row) {
|
||||
this.form={...row};
|
||||
|
||||
0
src/views/study/@/assets/images/over.png
Normal file
0
src/views/study/@/assets/images/over.png
Normal file
@@ -140,6 +140,7 @@ export default {
|
||||
headers:{token:getToken(),}
|
||||
}).then((res) => {
|
||||
console.log('111',res.data.result)
|
||||
console.log('111 gx2',res.data.result)
|
||||
// this.porcessData=response.data.data
|
||||
this.porcessData.course=Math.floor(res.data.result.course.total === 0 ? 0: (res.data.result.course.completion/res.data.result.course.total)*100)
|
||||
this.porcessData.project=Math.floor(res.data.result.project.total === 0 ? 0: (res.data.result.project.completion/res.data.result.project.total)*100)
|
||||
|
||||
@@ -732,29 +732,21 @@
|
||||
title="点击进入他的主页"
|
||||
>
|
||||
<!-- <div class="teacher-text" v-if="item.authorInfo.avatar == ''">{{userAvatarText(item.teacherName)}}</div> -->
|
||||
<div v-if="item.authorInfo && item.authorInfo.avatar">
|
||||
<div v-if="item.authorInfo.avatar !== ''">
|
||||
<el-avatar
|
||||
:src="fileBaseUrl + item.authorInfo.avatar"
|
||||
shape="circle"
|
||||
:size="50"
|
||||
></el-avatar>
|
||||
</div>
|
||||
<!-- <div v-else class="teacher-text">
|
||||
<div v-else class="teacher-text">
|
||||
<div v-if="item.authorInfo.sex === 1">
|
||||
<img src="../../../public/images/Avatarman.png" alt="" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<img src="../../../public/images/Avatarwoman.png" alt="" />
|
||||
</div>
|
||||
</div>-->
|
||||
<div v-else-if="item.photo">
|
||||
<el-avatar :src="item.photo" shape="circle" :size="50"></el-avatar>
|
||||
</div>
|
||||
<div v-else class="teacher-text">
|
||||
<div v-if="item.authorInfo && item.authorInfo.sex === 1"><img src="../../../public/images/Avatarwoman.png" alt=""></div>
|
||||
<div v-else><img src="../../../public/images/Avatarman.png" alt=""></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="teacher-info">
|
||||
<div class="teacher-name">
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="total">累计</el-dropdown-item>
|
||||
<el-dropdown-item command="now">当前</el-dropdown-item>
|
||||
<el-dropdown-item command="now">当前年</el-dropdown-item>
|
||||
<!-- <el-dropdown-item command="weeks">本周</el-dropdown-item>
|
||||
<el-dropdown-item command="months">本月</el-dropdown-item>
|
||||
<el-dropdown-item command="years">本年</el-dropdown-item> -->
|
||||
@@ -33,10 +33,10 @@
|
||||
</div>
|
||||
<div class="myselftext">
|
||||
<div class="myranking">
|
||||
{{isNow ? '当前' : '累计'}}排名 : <span> {{currentUserRankingTotalData.rankNo}}</span>
|
||||
{{isNow ? '当前年' : '累计'}}排名 : <span> {{currentUserRankingTotalData.rankNo}}</span>
|
||||
</div>
|
||||
<div class="myexperience">
|
||||
{{isNow ? '当前' : '累计'}}经验值 : <span>{{currentUserRankingTotalData.rankValue}}</span>
|
||||
{{isNow ? '当前年' : '累计'}}经验值 : <span>{{currentUserRankingTotalData.rankValue}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="total">累计</el-dropdown-item>
|
||||
<el-dropdown-item command="now">当前</el-dropdown-item>
|
||||
<el-dropdown-item command="now">当前年</el-dropdown-item>
|
||||
<!-- <el-dropdown-item command="weeks">本周</el-dropdown-item>
|
||||
<el-dropdown-item command="months">本月</el-dropdown-item>
|
||||
<el-dropdown-item command="years">本年</el-dropdown-item> -->
|
||||
@@ -127,10 +127,10 @@
|
||||
</div>
|
||||
<div class="myselftext">
|
||||
<div class="myranking">
|
||||
{{isStudyTime ? '当前' : '累计'}}排名 : <span> {{learningDurationTotalData.rankNo}}</span>
|
||||
{{isStudyTime ? '当前年' : '累计'}}排名 : <span> {{learningDurationTotalData.rankNo}}</span>
|
||||
</div>
|
||||
<div class="myexperience">
|
||||
{{isStudyTime ? '当前' : '累计'}}学习时长: <span> {{formatSecondToHour(learningDurationTotalData.rankValue)}}</span> h
|
||||
{{isStudyTime ? '当前年' : '累计'}}学习时长: <span> {{formatSecondToHour(learningDurationTotalData.rankValue)}}</span> h
|
||||
</div>
|
||||
</div>
|
||||
<div class="exp-table" style="margin-top:20px;">
|
||||
@@ -206,7 +206,7 @@
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="total">累计</el-dropdown-item>
|
||||
<!-- <el-dropdown-item command="now">当前</el-dropdown-item> -->
|
||||
<el-dropdown-item command="now">当前年</el-dropdown-item>
|
||||
<!-- <el-dropdown-item command="weeks">本周</el-dropdown-item>
|
||||
<el-dropdown-item command="months">本月</el-dropdown-item>
|
||||
<el-dropdown-item command="years">本年</el-dropdown-item> -->
|
||||
@@ -216,10 +216,10 @@
|
||||
</div>
|
||||
<div class="myselftext">
|
||||
<div class="myranking">
|
||||
{{isStudyDay ? '当前' : '累计'}}排名 : <span> {{learningDaysTotalData.rankNo}}</span>
|
||||
{{isStudyDay ? '当前年' : '累计'}}排名 : <span> {{learningDaysTotalData.rankNo}}</span>
|
||||
</div>
|
||||
<div class="myexperience">
|
||||
{{isStudyDay ? '当前' : '累计'}}学习天数 : <span>{{learningDaysTotalData.rankValue}}</span>
|
||||
{{isStudyDay ? '当前年' : '累计'}}学习天数 : <span>{{learningDaysTotalData.rankValue}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="exp-table" style="margin-top:20px;">
|
||||
@@ -311,7 +311,7 @@ export default {
|
||||
formatSecondToHour:formatSecondToHour,
|
||||
experience:{
|
||||
field:'now',
|
||||
name:'当前',
|
||||
name:'当前年',
|
||||
data:{
|
||||
rankingNo:0,
|
||||
total:0
|
||||
@@ -320,7 +320,7 @@ export default {
|
||||
},
|
||||
learningDuration:{
|
||||
field:'now',
|
||||
name:'当前',
|
||||
name:'当前年',
|
||||
data:{
|
||||
rankingNo:0,
|
||||
total:0
|
||||
|
||||
Reference in New Issue
Block a user