@@ -94,10 +93,7 @@ export default {
},
lang() {
return this.$store.state.app.lang;
- },
- mesCount() {
- return 0;
- },
+ }
},
methods: {
diff --git a/manager/src/views/customWords/index.vue b/manager/src/views/customWords/index.vue
index 5638fb08..25d11f1d 100644
--- a/manager/src/views/customWords/index.vue
+++ b/manager/src/views/customWords/index.vue
@@ -59,7 +59,6 @@ import {
} from "@/api/index";
export default {
name: "customWords",
- components: {},
data() {
return {
loading: true, // 表单加载状态
@@ -83,7 +82,7 @@ export default {
name: [
{
required: true,
- message: "请输入敏感词",
+ message: "请输入自定义分词",
trigger: "blur",
},
],
@@ -180,37 +179,23 @@ export default {
this.clearSelectAll();
},
changePageSize(v) {
+ this.searchForm.pageNumber = 1;
this.searchForm.pageSize = v;
this.getDataList();
},
handleSearch() {
this.searchForm.pageNumber = 1;
- this.searchForm.pageSize = 10;
- this.getDataList();
- },
- handleReset() {
- this.$refs.searchForm.resetFields();
- this.searchForm.pageNumber = 1;
- this.searchForm.pageSize = 10;
- // 重新加载数据
- this.getDataList();
- },
- changeSort(e) {
- this.searchForm.sort = e.key;
- this.searchForm.order = e.order;
- if (e.order === "normal") {
- this.searchForm.order = "";
- }
this.getDataList();
},
clearSelectAll() {
this.$refs.table.selectAll(false);
},
+ // 选中状态变更
changeSelect(e) {
this.selectList = e;
this.selectCount = e.length;
},
-
+ // 获取列表数据
getDataList() {
this.loading = true;
@@ -224,13 +209,13 @@ export default {
this.total = this.data.length;
this.loading = false;
},
+ // 提交数据
handleSubmit() {
this.$refs.form.validate((valid) => {
if (valid) {
this.submitLoading = true;
if (this.modalType == 0) {
- // 添加 避免编辑后传入id等数据 记得删除
delete this.form.id;
insertCustomWords(this.form).then((res) => {
this.submitLoading = false;
@@ -255,6 +240,7 @@ export default {
}
});
},
+ // 添加
add() {
this.modalType = 0;
this.modalTitle = "添加";
@@ -263,6 +249,7 @@ export default {
this.modalVisible = true;
},
+ // 修改
detail(v) {
this.modalType = 1;
this.id = v.id;
@@ -270,6 +257,7 @@ export default {
this.modalVisible = true;
this.form.name = v.name;
},
+ // 删除
remove(v) {
this.$Modal.confirm({
title: "确认删除",
@@ -288,6 +276,7 @@ export default {
},
});
},
+ // 批量删除
delAll() {
if (this.selectCount <= 0) {
this.$Message.warning("您还未选择要删除的数据");
diff --git a/manager/src/views/login.vue b/manager/src/views/login.vue
index 5e474d03..5bde2f62 100644
--- a/manager/src/views/login.vue
+++ b/manager/src/views/login.vue
@@ -45,7 +45,7 @@ export default {
LangSwitch,
Header,
Footer,
- verify,
+ verify
},
data() {
return {
@@ -77,7 +77,6 @@ export default {
};
},
methods: {
- mounted() {},
afterLogin(res) {
// 登录成功后处理
let accessToken = res.result.accessToken;
diff --git a/manager/src/views/sensitiveWords/index.vue b/manager/src/views/sensitiveWords/index.vue
index fd9b0f4b..3fe6754e 100644
--- a/manager/src/views/sensitiveWords/index.vue
+++ b/manager/src/views/sensitiveWords/index.vue
@@ -41,9 +41,7 @@
-
+
diff --git a/manager/src/views/statistics/goods.vue b/manager/src/views/statistics/goods.vue
index 88d1c73a..956ef9b1 100644
--- a/manager/src/views/statistics/goods.vue
+++ b/manager/src/views/statistics/goods.vue
@@ -6,7 +6,6 @@