关键字管理

This commit is contained in:
2026-03-30 13:07:33 +08:00
parent 7d3e6654fd
commit 3f53a6c7d0
13 changed files with 1349 additions and 197 deletions

View File

@@ -29,6 +29,15 @@
style="width: 260px"
/>
</el-form-item>
<el-form-item label="">
<el-input
v-model="query.field"
:placeholder="$t('expertDatabase.fieldPlaceholder')"
clearable
style="width: 260px"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" :loading="loading" @click="handleSearch">
@@ -107,6 +116,7 @@ export default {
query: {
major_id: null,
keyword: '',
field: '',
pageIndex: 1,
pageSize: 10
},
@@ -167,6 +177,7 @@ export default {
const params = {
major_id: this.query.major_id,
keyword: this.query.keyword,
field: this.query.field,
pageIndex: this.query.pageIndex,
pageSize: this.query.pageSize
};
@@ -202,6 +213,7 @@ export default {
this.query = {
major_id: null,
keyword: '',
field: '',
pageIndex: 1,
pageSize: 10
};
@@ -217,7 +229,7 @@ export default {
this.fetchList();
},
async handleExport() {
if (!this.query.major_id && !this.query.keyword) {
if (!this.query.major_id && !this.query.keyword && !this.query.field) {
this.$message.warning(this.$t('expertDatabase.exportWarn'));
return;
}
@@ -225,7 +237,8 @@ export default {
try {
const params = {
major_id: this.query.major_id,
keyword: this.query.keyword
keyword: this.query.keyword,
field: this.query.field
};
const res = await this.$api.post('api/expert_manage/exportExcel', params);
if (res && res.code === 0 && res.data && res.data.file_url) {
@@ -259,6 +272,11 @@ export default {
margin: 0 20px;
margin-left: 0;
}
.form-line-break {
flex-basis: 100%;
width: 100%;
height: 0;
}
.actions {
white-space: nowrap;
}
@@ -269,11 +287,11 @@ export default {
margin-top: 15px;
text-align: right;
}
/deep/ .dark-table-header th {
::v-deep .dark-table-header th {
background-color: #f5f7fa;
font-weight: 600;
}
/deep/ .el-form-item--mini.el-form-item,
::v-deep .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 0;
}