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", align:"center",
dataIndex: 'operateType', dataIndex: 'operateType',
customRender: ({ text }) => { customRender: ({ text }) => {
let map = ['','开启', '关闭'] let map = ['关闭','开启']
return map[text] return map[text]
}, },
@ -107,16 +107,16 @@ export const searchFormSchema: FormSchema[] = [
colProps: {span: 6}, colProps: {span: 6},
componentProps: { componentProps: {
options: [ options: [
{
label: '关闭',
value: '0',
key: '0',
},
{ {
label: '开启', label: '开启',
value: '1', value: '1',
key: '1', key: '1',
}, },
{
label: '关闭',
value: '2',
key: '2',
},
], ],
}, },
}, },
@ -183,16 +183,16 @@ export const formSchema: FormSchema[] = [
component: 'Select', component: 'Select',
componentProps: { componentProps: {
options: [ options: [
{
label: '关闭',
value: '0',
key: '0',
},
{ {
label: '开启', label: '开启',
value: '1', value: '1',
key: '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 => { changeAvyLiveApi({ ids:ids.join(','), type: isEnable?1:0 }).then(res => {
console.log(`🚀 -------------------------------------------------------🚀`); console.log(`🚀 -------------------------------------------------------🚀`);
console.log(`🚀 ~ file: index.vue:295 ~ changeAvyLiveApi ~ res:`, res); console.log(`🚀 ~ file: index.vue:295 ~ changeAvyLiveApi ~ res:`, res);
console.log(`🚀 -------------------------------------------------------🚀`); console.log(`🚀 -------------------------------------------------------🚀`);
loadData();
let content = ''; let content = '';
res.forEach(x => { res.forEach(x => {
content += x.jsmc + "-" + x.xm // content += x.jsmc + "-" + x.xm
content += x.jsmc
let text = ''; let text = '';
if(x.resText){ if(x.resText){
if(x.resText.includes('ok')){ if(x.resText.includes('ok')){
@ -335,7 +333,17 @@ function changeLive(record, isEnable){
} }
content += " " + text + "<br/>" content += " " + text + "<br/>"
}); });
if(content.includes('直播-操作成功!')){
//12
setTimeout(() => {
loadData();
createInfoModal({ width:'50%', title: '结果',content }) createInfoModal({ width:'50%', title: '结果',content })
}, 12*1000);
}else{
loadData();
createInfoModal({ width:'50%', title: '结果',content })
}
}).catch(e => { }).catch(e => {
console.error(e); console.error(e);
loading.value = false; loading.value = false;