diff --git a/.env.dev b/.env.dev index 7cb5aaab..c8f7d099 100644 --- a/.env.dev +++ b/.env.dev @@ -6,6 +6,6 @@ NODE_ENV = 'development' VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk' # VUE_APP_BASE_URL = 'https://api.aida.com.hk' # 佩佩 -# VUE_APP_BASE_URL = 'http://192.168.1.7:5567' +VUE_APP_BASE_URL = 'http://192.168.1.7:5567' # 海波 # VUE_APP_BASE_URL = 'http://192.168.1.9:5567' diff --git a/src/assets/style/style.css b/src/assets/style/style.css index 37d393b9..00642b1c 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -1096,7 +1096,7 @@ li { margin-right: 15px; flex-shrink: 0; display: block; - width: 100px; + width: 10rem; text-align: right; } .admin_page .admin_state_item > input { @@ -1144,13 +1144,13 @@ li { .admin_page .admin_table_search .admin_state_list .admin_state_list_item { cursor: pointer; width: auto; - border-radius: 1rem; - padding: 1rem 2rem; + border-radius: 10px; + padding: 5px 10px; border: 1px solid #b6b6b6; background: #39215b; color: #fff; - margin: 0 2rem 2rem 0; - font-size: 1.8rem; + margin: 0 10px 10px 0; + font-size: 1.4rem; font-weight: 600; } .admin_page .admin_table_search .admin_state_list .admin_state_list_item:last-child { @@ -1209,6 +1209,19 @@ li { .admin_page .admin_table_content .ant-table-body::-webkit-scrollbar { width: 0 !important; } +.admin_page .admin_table_content .ant-table-body::-webkit-scrollbar-horizontal { + height: 2px !important; + width: 2px !important; +} +.admin_page .admin_table_content .ant-table-body::-webkit-scrollbar-thumb:horizontal { + background-color: #8a8a8a; + /* 水平滚动条手柄颜色 */ + border-radius: 5px; +} +.admin_page .admin_table_content .ant-table-body::-webkit-scrollbar-track:horizontal { + background-color: #f1f1f1; + /* 水平滚动条轨道颜色 */ +} .admin_page .admin_table_content .ant-table-thead > tr > th { background: #ffffff; border-bottom: none; diff --git a/src/assets/style/style.less b/src/assets/style/style.less index 16564e44..d045d230 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -1224,7 +1224,8 @@ input:focus{ flex-shrink: 0; display: block; // min-width: 20%; - width: 100px; + // width: 100px; + width: 10rem; text-align: right; } >input{ @@ -1273,13 +1274,13 @@ input:focus{ .admin_state_list_item{ cursor: pointer; width: auto; - border-radius: 1rem; - padding: 1rem 2rem; + border-radius: 10px; + padding: 5px 10px; border: 1px solid #b6b6b6; background: #39215b; color: #fff; - margin: 0 2rem 2rem 0; - font-size: 1.8rem; + margin: 0 10px 10px 0; + font-size: 1.4rem; font-weight: 600; } .admin_state_list_item:last-child{ @@ -1339,10 +1340,21 @@ input:focus{ overflow-y: auto !important; -ms-overflow-style: none; overflow: -moz-scrollbars-none; - &::-webkit-scrollbar { width: 0 !important; } + &::-webkit-scrollbar-horizontal { + height: 2px !important; + width: 2px !important; + } + &::-webkit-scrollbar-thumb:horizontal { + background-color: #8a8a8a; /* 水平滚动条手柄颜色 */ + border-radius: 5px; + } + + &::-webkit-scrollbar-track:horizontal { + background-color: #f1f1f1; /* 水平滚动条轨道颜色 */ + } } .ant-table-thead > tr > th { background: #ffffff; diff --git a/src/component/Administrator/allUser.vue b/src/component/Administrator/allUser.vue index ea8e96b6..9367efc9 100644 --- a/src/component/Administrator/allUser.vue +++ b/src/component/Administrator/allUser.vue @@ -187,17 +187,21 @@ export default defineComponent({ value: "", }, { - label: "visitor", - value: "1", - }, - { - label: "trial", - value: "2", - }, - { - label: "official", - value: "3", - }, + label:'visitor', + value:'0', + }, + { + label:'yearly', + value:'1', + }, + { + label:'monthly', + value:'2', + }, + { + label:'trial', + value:'3', + }, { label: "userInEvent", value: "4", @@ -249,18 +253,32 @@ export default defineComponent({ { title: "Valid Start Time", align: "center", - dataIndex: "validstartTime", + dataIndex: "validStartTime", key: "validstartTime", width:200, - ellipsis:true + ellipsis:true, + customRender: (record: any) => { + let time = '' + if(record.text){ + time = formatTime(record.text / 1000, 'YYYY-MM-DD hh:mm:ss') + } + return time + }, }, { title: "Valid End Time", align: "center", - dataIndex: "validendTime", + dataIndex: "validEndTime", key: "validendTime", width:200, - ellipsis:true + ellipsis:true, + customRender: (record: any) => { + let time = '' + if(record.text){ + time = formatTime(record.text / 1000, 'YYYY-MM-DD hh:mm:ss') + } + return time + }, }, { title: "Country", @@ -300,7 +318,6 @@ export default defineComponent({ dataIndex: "browserIdentifiers", key: "browserIdentifiers", width:200, - sorter: true, }, { title: "Credits", diff --git a/src/component/Administrator/allUserPoerations.vue b/src/component/Administrator/allUserPoerations.vue index 1f49e3e6..c610b4c4 100644 --- a/src/component/Administrator/allUserPoerations.vue +++ b/src/component/Administrator/allUserPoerations.vue @@ -21,7 +21,7 @@
- User Name: + User Name:
- User Email: + User Email:
- Create Time: + Create Time: