关键字管理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user