From 902afe6184d53d067678e74d2b2b5bd213b7da44 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 02 六月 2024 23:51:26 +0800 Subject: [PATCH] 低代码更新 --- src/views/tigerprojects/system/account/index.vue | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/views/tigerprojects/system/account/index.vue b/src/views/tigerprojects/system/account/index.vue index 7caeaa8..20364ea 100644 --- a/src/views/tigerprojects/system/account/index.vue +++ b/src/views/tigerprojects/system/account/index.vue @@ -2,7 +2,7 @@ <PageWrapper dense contentFullHeight contentClass="flex"> <!-- <DeptTree class="w-1/4 xl:w-1/5" @select="handleSelect" /> --> <!-- <BasicTable @register="registerTable" class="w-3/4 xl:w-4/5" :searchInfo="searchInfo"> --> - <BasicTable @register="registerTable" :searchInfo="searchInfo"> + <BasicTable @register="registerTable" :searchInfo="searchInfo"> <template #toolbar> <a-button type="primary" @click="handleCreate">鏂板璐﹀彿</a-button> </template> @@ -25,7 +25,7 @@ tooltip: '鍒犻櫎姝よ处鍙�', popConfirm: { title: '鏄惁纭鍒犻櫎?', - placement: 'left', + placement: 'left', confirm: handleDelete.bind(null, record), }, }, @@ -51,7 +51,8 @@ import { getAccParams, DeleteUser } from '/@/api/tigerapi/account'; import { useMessage } from '/@/hooks/web/useMessage'; import { useI18n } from '/@/hooks/web/useI18n'; - const { t:bt } = useI18n(); + + const { t: bt } = useI18n(); export default defineComponent({ name: 'AccountManagement', @@ -93,11 +94,11 @@ } function handleEdit(record: Recordable) { - if(record.STATUS_CODE != true){ - record.STATUS_CODE = record.STATUS_CODE=='ENABLE'?true:false; + if (record.STATUS_CODE != true) { + record.STATUS_CODE = record.STATUS_CODE == 'ENABLE' ? true : false; } // console.log('record.STATUS_CODE ',typeof(record.STATUS_CODE) ) - + // console.log('record',record) record.isUpdate = true; openModal(true, { @@ -122,8 +123,8 @@ // 婕旂ず涓嶅埛鏂拌〃鏍肩洿鎺ユ洿鏂板唴閮ㄦ暟鎹�� // 娉ㄦ剰锛歶pdateTableDataRecord瑕佹眰琛ㄦ牸鐨剅owKey灞炴�т负string骞朵笖瀛樺湪浜庢瘡涓�琛岀殑record鐨刱eys涓� const result = updateTableDataRecord(values.ID, values); - - console.log('result',result); + + console.log('result', result); } else { const result = updateTableDataRecord(values.ID, values); createMessage.success(bt('淇濆瓨鎴愬姛')); -- Gitblit v1.9.3