@@ -326,9 +341,7 @@ export default defineComponent({
}
.layout-header-left {
- ::v-deep(
- .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link
- ) {
+ ::v-deep(.n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link) {
color: #515a6e;
}
}
diff --git a/src/views/final/comp/FilterModal.vue b/src/views/final/comp/FilterModal.vue
index 9ac92c5..8ed15f8 100644
--- a/src/views/final/comp/FilterModal.vue
+++ b/src/views/final/comp/FilterModal.vue
@@ -146,32 +146,32 @@ function rowProps(row: RowData) {
}
function handleCheck(rowKeys: DataTableRowKey[]) {
+ console.log(rowKeys, selectionIds.value, "handleCheck");
selectionIds.value = rowKeys;
}
-function select(key: number) {
+function select(key: number, id: string) {
switch (key) {
case 1:
- editSelection();
+ editSelection(id);
break;
case 2:
- deleteSelection();
+ deleteSelection(id);
break;
default:
break;
}
}
-function editSelection() {
+function editSelection(id = "") {
// eslint-disable-next-line dot-notation
- const $message = window["$message"];
+ // const $message = window["$message"];
+ // if (selectionIds.value.length === 0 || selectionIds.value.length > 1) {
+ // $message.error("请选中一条过滤");
+ // return;
+ // }
- if (selectionIds.value.length === 0 || selectionIds.value.length > 1) {
- $message.error("请选中一条过滤");
- return;
- }
-
- const selectedId = selectionIds.value[0];
+ const selectedId = id;
const selectedFilter = tableData.value.find((item: any) => {
return item.id === selectedId;
});
@@ -180,12 +180,12 @@ function editSelection() {
closeModal();
}
-function deleteSelection() {
+function deleteSelection(id = "") {
// eslint-disable-next-line dot-notation
- const $message = window["$message"];
-
if (selectionIds.value.length === 0) {
- $message.error("至少选中一条过滤");
+ deleteCondition({ ids: id }).then(() => {
+ query(pagination.page, pagination.pageSize);
+ });
return;
}
@@ -335,12 +335,19 @@ const showSearch = computed(() => {
-
+
- 删除
+ 删除
-
已选中 {{ selectionIds.length }} 项
+
已选中
+ {{
+ selectionIds.length
+ }}
+ 项
清空
@@ -400,11 +407,10 @@ const showSearch = computed(() => {
width: 300px;
border: 1px solid gray;
}
- .del_btn{
-
+ .del_btn {
}
- .msg{
- a{
+ .msg {
+ a {
margin-left: 30px;
cursor: pointer;
color: #507afd;
diff --git a/src/views/home/aside/comp/Action.vue b/src/views/home/aside/comp/Action.vue
index a0e1560..af0ad94 100644
--- a/src/views/home/aside/comp/Action.vue
+++ b/src/views/home/aside/comp/Action.vue
@@ -1,10 +1,10 @@