Compare commits
3 Commits
817b479a94
...
1b158f81d7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1b158f81d7 | ||
![]() |
22341b5e22 | ||
![]() |
6c9a251cf6 |
|
@ -58,10 +58,19 @@
|
|||
format="YYYY-MM-DD HH:mm:ss" @change="onChangeTime" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :md="16" :sm="5">
|
||||
<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="12" :sm="5">
|
||||
<a-form-item label="关键词">
|
||||
<a-input placeholder="请输入搜索关键词" v-model="queryParam.massKey"></a-input>
|
||||
</a-form-item>
|
||||
|
@ -114,6 +123,7 @@ import moment from 'moment';
|
|||
import tablelist from '../../data/modules/tablelist.vue'
|
||||
import exptable from '../../data/modules/exptable.vue'
|
||||
import editdataseach from '../../data/modules/editdataseach.vue'
|
||||
import {idcTableTaglist} from "@api/tag";
|
||||
|
||||
export default {
|
||||
name: "metadata",
|
||||
|
@ -142,6 +152,7 @@ export default {
|
|||
// 查询条件
|
||||
queryParam: {
|
||||
sourceType: 2,
|
||||
tagId: null,
|
||||
massKey: null,
|
||||
mdl: null, // 型号
|
||||
hn: null, // 舷号
|
||||
|
@ -152,12 +163,18 @@ export default {
|
|||
pageSize: 10,
|
||||
pageNum: 1
|
||||
},
|
||||
tagqueryParam: {
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
tagName: ""
|
||||
},
|
||||
treeDate: [],
|
||||
dataSource: [],
|
||||
columns: [],
|
||||
dataTypeList: [],
|
||||
shipModel: [],
|
||||
shipNumber: [],
|
||||
datatagSources: [],
|
||||
existingDataTypes: {},
|
||||
treeHeight: 0
|
||||
}
|
||||
|
@ -177,7 +194,8 @@ export default {
|
|||
created() {
|
||||
this.getselect()
|
||||
this.queryAllTask()
|
||||
// this.initDate()
|
||||
this.getdatatagSources()
|
||||
// this.initDate()
|
||||
},
|
||||
methods: {
|
||||
queryAllTask() {
|
||||
|
@ -218,6 +236,16 @@ export default {
|
|||
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) {
|
||||
this.queryParam.shipModel = value
|
||||
var number = Object.keys(this.existingDataTypes[value])
|
||||
|
|
|
@ -61,8 +61,8 @@
|
|||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<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-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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user