编目查询

This commit is contained in:
hekaiyu 2025-06-22 11:37:51 +08:00
parent 876299cb9f
commit 5af481c9ac
2 changed files with 29 additions and 0 deletions

View File

@ -333,6 +333,7 @@ export default {
}, },
gettagTables() { gettagTables() {
this.tagloading = true; this.tagloading = true;
this.queryParam.tagId = this.queryRefsParam.tagId
getTableTagRefs(this.queryRefsParam).then((res) => { getTableTagRefs(this.queryRefsParam).then((res) => {
if (res.success) { if (res.success) {
this.dataRefsSources = res.result; this.dataRefsSources = res.result;

View File

@ -58,6 +58,15 @@
format="YYYY-MM-DD HH:mm:ss" @change="onChangeTime" /> format="YYYY-MM-DD HH:mm:ss" @change="onChangeTime" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :md="4" :sm="4">
<a-form-item label="标签类型" :label-col="{ span: 10 }" :wrapper-col="{ span: 14 }">
<a-select placeholder="选择标签类型" option-filter-prop="children" @change="getMetaDataTypeTree" v-model="queryParam.tagId">
<a-select-option v-for="d in datatagSources" :key="d.id">
{{ d.tagName }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md="5" :sm="5"> <a-col :md="5" :sm="5">
<a-form-item label="关键词"> <a-form-item label="关键词">
<a-input placeholder="请输入搜索关键词" v-model="queryParam.massKey"></a-input> <a-input placeholder="请输入搜索关键词" v-model="queryParam.massKey"></a-input>
@ -113,6 +122,7 @@ import moment from 'moment';
import tablelist from '../../data/modules/tablelist.vue' import tablelist from '../../data/modules/tablelist.vue'
import exptable from '../../data/modules/exptable.vue' import exptable from '../../data/modules/exptable.vue'
import editdataseach from '../../data/modules/editdataseach.vue' import editdataseach from '../../data/modules/editdataseach.vue'
import {idcTableTaglist} from "@api/tag";
export default { export default {
name: "metadata", name: "metadata",
@ -141,6 +151,7 @@ export default {
// //
queryParam: { queryParam: {
sourceType: 1, sourceType: 1,
tagId: null,
massKey: null, massKey: null,
mdl: null, // mdl: null, //
hn: null, // hn: null, //
@ -151,12 +162,18 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1 pageNum: 1
}, },
tagqueryParam: {
pageNum: 1,
pageSize: 20,
tagName: ""
},
treeDate: [], treeDate: [],
dataSource: [], dataSource: [],
columns: [], columns: [],
dataTypeList: [], dataTypeList: [],
shipModel: [], shipModel: [],
shipNumber: [], shipNumber: [],
datatagSources: [],
existingDataTypes: {}, existingDataTypes: {},
treeHeight: 0 treeHeight: 0
} }
@ -176,6 +193,7 @@ export default {
created() { created() {
this.getselect() this.getselect()
this.queryAllTask() this.queryAllTask()
this.getdatatagSources()
// this.initDate() // this.initDate()
}, },
methods: { methods: {
@ -217,6 +235,16 @@ export default {
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
); );
}, },
getdatatagSources() {
idcTableTaglist(this.tagqueryParam).then((res) => {
if (res.success) {
this.datatagSources = res.result.records;
this.queryParam.tagId = res.result.records[0].id;
} else {
this.$message.warning(res.message);
}
});
},
changeshipModel(value) { changeshipModel(value) {
this.queryParam.shipModel = value this.queryParam.shipModel = value
var number = Object.keys(this.existingDataTypes[value]) var number = Object.keys(this.existingDataTypes[value])