From 3bee20e2930c5df3af1b01bba16c53e477bd8bf0 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 12 九月 2023 19:41:10 +0800 Subject: [PATCH] 元数据管理 枚举搜索 后端未调试 --- Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue | 2 +- Source/UBCS-WEB/src/views/modeling/originalAdd.vue | 38 +++++++++++++++++++++++++++++++++++--- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue b/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue index 9fe3956..652907c 100644 --- a/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue +++ b/Source/UBCS-WEB/src/components/dockingSearch/VciDockingSearch.vue @@ -4,7 +4,7 @@ <!-- 闆嗘垚鏃ュ織 浠诲姟 鏁版嵁鍏ㄩ儴鍏敤--> <el-form-item label="闆嗘垚鏌ヨ:" size="small"> <el-select v-model="formInline.type" placeholder="璇烽�夋嫨鍒嗙被" @change="SelectChange"> - <el-option :label="item.label" :value="item.value" v-for="item in SearchObject.searchData" ></el-option> + <el-option :label="item.label" :value="item.value" :key="item.value" v-for="(item,index) in SearchObject.searchData"></el-option> </el-select> </el-form-item> <!-- 闆嗘垚鏃ュ織 鏄惁鎴愬姛--> diff --git a/Source/UBCS-WEB/src/views/modeling/originalAdd.vue b/Source/UBCS-WEB/src/views/modeling/originalAdd.vue index 6b06bb8..c6b6974 100644 --- a/Source/UBCS-WEB/src/views/modeling/originalAdd.vue +++ b/Source/UBCS-WEB/src/views/modeling/originalAdd.vue @@ -111,6 +111,19 @@ <!-- 閫夋嫨鏋氫妇鏃剁殑寮圭獥 --> <el-dialog title="鏋氫妇鍒楄〃" :visible.sync="enumRefer.show" append-to-body @close="closeEnumDialog" width="70%" style="height: 115vh;"> + <div> + <el-form :inline="true" :model="form" class="demo-form-inline" size="small"> + <el-form-item label="鏋氫妇浠e彿"> + <el-input v-model="form.name" placeholder="鏋氫妇浠e彿"></el-input> + </el-form-item> + <el-form-item label="鏋氫妇鍚嶇О"> + <el-input v-model="form.label" placeholder="鏋氫妇鍚嶇О"></el-input> + </el-form-item> + <el-form-item> + <el-button type="primary" @click="onSubmit">鏌ヨ</el-button> + </el-form-item> + </el-form> + </div> <avue-crud ref="eunmTable" :option="enumRefer.option" @on-load="enumOnLoad" :data="enumRefer.data" class="enumTable" @row-click="enumReferClick" :page.sync="enumRefer.enumPage"> <template slot="radio" slot-scope="{row}"> @@ -141,6 +154,10 @@ }, data() { return { + form:{ + name:'', + label:'' + }, showSubmitDialog: false, // 榛樿鐨勯〉绛� activeName: 'referTab', @@ -229,7 +246,8 @@ border: true, reserveSelection: true, searchMenuSpan: 32, - searchShowBtn: false, + // searchShowBtn: false, + // search:true, highlightCurrentRow: true, column: [{ label: '', @@ -241,13 +259,13 @@ prop: 'name', align: 'center', searchSpan: 8, - search: true, + // search: true, }, { label: '鏋氫妇鍚嶇О', prop: 'label', align: 'center', searchSpan: 8, - search: true, + // search: true, }] }, // 鏋氫妇鍙傜収琛ㄦ牸鏁版嵁 @@ -281,6 +299,20 @@ this.initAttributeReferTypeList(); }, methods: { + onSubmit() { + const conditionMap = {}; + if (this.form.name) { + conditionMap[`conditionMap['name_like']`] = this.form.name; + } + if (this.form.label) { + conditionMap[`conditionMap['label_like']`] = this.form.label; + } + getParentList(this.enumRefer.enumPage.currentPage, this.enumRefer.enumPage.pageSize, conditionMap) + .then((res) => { + this.enumRefer.enumPage.total = res.data.data.total; + this.enumRefer.data = res.data.data.records; + }); + }, enumOnLoad(){ getParentList(this.enumRefer.enumPage.currentPage, this.enumRefer.enumPage.pageSize).then(res => { this.enumRefer.enumPage.total = res.data.data.total; -- Gitblit v1.9.3