-
+
重置
+
+
+
+ 强退
+
+
+
+
+
-
-
- {{ (pageNum - 1) * pageSize + scope.$index + 1 }}
-
-
+
+
+
+
+
+
@@ -46,9 +64,11 @@
{{ parseTime(scope.row.loginTime) }}
-
+
- 强退
+
+
+
@@ -67,6 +87,10 @@ const loading = ref(true);
const total = ref(0);
const pageNum = ref(1);
const pageSize = ref(10);
+const showSearch = ref(true);
+const ids = ref([]);
+const single = ref(true);
+const multiple = ref(true);
const queryParams = ref({
ipaddr: undefined,
@@ -92,13 +116,20 @@ function resetQuery() {
proxy.resetForm("queryRef");
handleQuery();
}
+/** 多选框选中数据 */
+function handleSelectionChange(selection) {
+ ids.value = selection.map(item => item.tokenId);
+ single.value = selection.length != 1;
+ multiple.value = !selection.length;
+}
/** 强退按钮操作 */
function handleForceLogout(row) {
- proxy.$modal.confirm('是否确认强退名称为"' + row.userName + '"的用户?').then(function () {
- return forceLogout(row.tokenId);
+ const tokenIds = row.tokenId || ids.value;
+ proxy.$modal.confirm('是否确认强退名称为"' + row.userName + '"的用户?').then(function () {
+ return forceLogout(tokenIds);
}).then(() => {
getList();
- proxy.$modal.msgSuccess("删除成功");
+ proxy.$modal.msgSuccess("强退成功");
}).catch(() => {});
}