@@ -87,6 +87,13 @@ const currentTable = ref<any>({})
8787const init = () => {
8888 workspaceList ().then ((res ) => {
8989 tableList .value = res
90+ if (currentTable .value .id ) {
91+ tableList .value .forEach ((ele : any ) => {
92+ if (ele .id === currentTable .value .id ) {
93+ currentTable .value .name = ele .name
94+ }
95+ })
96+ }
9097 })
9198}
9299onMounted (() => {
@@ -119,7 +126,7 @@ const deleteBatchUser = () => {
119126 t (' workspace.selected_2_members' , { msg: multipleSelectionAll .value .length }),
120127 {
121128 confirmButtonType: ' danger' ,
122- confirmButtonText: t (' dashboard.delete ' ),
129+ confirmButtonText: t (' workspace.remove ' ),
123130 cancelButtonText: t (' common.cancel' ),
124131 customClass: ' confirm-no_icon' ,
125132 autofocus: false ,
@@ -141,7 +148,7 @@ const deleteBatchUser = () => {
141148const deleteHandler = (row : any ) => {
142149 ElMessageBox .confirm (t (' workspace.member_feng_yibudao' , { msg: row .name }), {
143150 confirmButtonType: ' danger' ,
144- confirmButtonText: t (' dashboard.delete ' ),
151+ confirmButtonText: t (' workspace.remove ' ),
145152 cancelButtonText: t (' common.cancel' ),
146153 customClass: ' confirm-no_icon' ,
147154 autofocus: false ,
@@ -231,6 +238,7 @@ const saveField = () => {
231238const delWorkspace = (row : any ) => {
232239 ElMessageBox .confirm (t (' workspace.workspace_de_workspace' , { msg: row .name }), {
233240 confirmButtonType: ' danger' ,
241+ tip: t (' workspace.operate_with_caution' ),
234242 confirmButtonText: t (' dashboard.delete' ),
235243 cancelButtonText: t (' common.cancel' ),
236244 customClass: ' confirm-no_icon' ,
@@ -533,7 +541,7 @@ const handleCurrentChange = (val: number) => {
533541 </el-form >
534542
535543 <div style =" display : flex ; justify-content : flex-end ; margin-top : 20px " >
536- <el-button @click =" closeField" >{{ t('common.cancel') }}</el-button >
544+ <el-button secondary @click =" closeField" >{{ t('common.cancel') }}</el-button >
537545 <el-button type =" primary" @click =" saveField" >{{
538546 t(workspaceForm.id ? 'common.save' : 'model.add')
539547 }}</el-button >
0 commit comments