2023年10月20日 修复智慧教室主页操作流程,修改log页字段翻译

This commit is contained in:
bai 2023-10-20 22:16:10 +08:00
parent 0accf1162a
commit ef1f3e4fd5
2 changed files with 25 additions and 17 deletions

View File

@ -38,7 +38,7 @@ export const columns: BasicColumn[] = [
align:"center",
dataIndex: 'operateType',
customRender: ({ text }) => {
let map = ['','开启', '关闭']
let map = ['关闭','开启']
return map[text]
},
@ -107,17 +107,17 @@ export const searchFormSchema: FormSchema[] = [
colProps: {span: 6},
componentProps: {
options: [
{
label: '关闭',
value: '0',
key: '0',
},
{
label: '开启',
value: '1',
key: '1',
},
{
label: '关闭',
value: '2',
key: '2',
},
],
],
},
},
{
@ -183,16 +183,16 @@ export const formSchema: FormSchema[] = [
component: 'Select',
componentProps: {
options: [
{
label: '关闭',
value: '0',
key: '0',
},
{
label: '开启',
value: '1',
key: '1',
},
{
label: '关闭',
value: '2',
key: '2',
},
],
},
},

View File

@ -316,15 +316,13 @@ function changeLive(record, isEnable){
});
changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => {
console.log(`🚀 -------------------------------------------------------🚀`);
console.log(`🚀 ~ file: index.vue:295 ~ changeAvyLiveApi ~ res:`, res);
console.log(`🚀 -------------------------------------------------------🚀`);
loadData();
let content = '';
res.forEach(x => {
content += x.jsmc + "-" + x.xm
// content += x.jsmc + "-" + x.xm
content += x.jsmc
let text = '';
if(x.resText){
if(x.resText.includes('ok')){
@ -335,7 +333,17 @@ function changeLive(record, isEnable){
}
content += " " + text + "<br/>"
});
createInfoModal({ width:'50%', title: '结果',content })
if(content.includes('直播-操作成功!')){
//12
setTimeout(() => {
loadData();
createInfoModal({ width:'50%', title: '结果',content })
}, 12*1000);
}else{
loadData();
createInfoModal({ width:'50%', title: '结果',content })
}
}).catch(e => {
console.error(e);
loading.value = false;