增加字典、查询逻辑处理
This commit is contained in:
parent
b866840d7f
commit
ef8ec73ce8
@ -510,12 +510,18 @@
|
||||
</el-form-item> -->
|
||||
<el-form-item label="品牌" prop="brand">
|
||||
<el-input onkeyup="this.value=this.value.replace(/\s+/g,'')" maxlength="20" v-model="form.brand" placeholder="请输入品牌"/>
|
||||
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="uavName">
|
||||
<el-input onkeyup="this.value=this.value.replace(/\s+/g,'')" maxlength="50" v-model="form.uavName" placeholder="请输入名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="结构布局" prop="structure">
|
||||
<el-input onkeyup="this.value=this.value.replace(/\s+/g,'')" v-model="form.structure" placeholder="请输入结构布局"/>
|
||||
<!-- <el-input onkeyup="this.value=this.value.replace(/\s+/g,'')" v-model="form.structure" placeholder="请输入结构布局"/>-->
|
||||
<el-select v-model="form.structure" placeholder="请输入品牌" filterable remote style="width: 100%"
|
||||
reserve-keyword clearable>
|
||||
<el-option v-for="dict in policeTypeDictDatas" :label="dict.value" :value="dict.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品定位" prop="product">
|
||||
<el-input onkeyup="this.value=this.value.replace(/\s+/g,'')" maxlength="20" v-model="form.product" placeholder="请输入产品定位"/>
|
||||
@ -688,6 +694,7 @@
|
||||
checkModelCode,
|
||||
API_POST_importExcel
|
||||
} from '../../../api/datamodel/metasploitable/equmodel';
|
||||
import {getDicts} from "@/views/system/warLawLibrary/api.js";
|
||||
// import FileUploadForEqu from './FileUploadForEqu'
|
||||
// import {reactive, ref, onMounted, getCurrentInstance} from 'vue'
|
||||
|
||||
@ -742,6 +749,7 @@
|
||||
exportParams: {
|
||||
createBy: '',
|
||||
ids: [],
|
||||
policeTypeDictDatas: [],
|
||||
orgIds: []
|
||||
},
|
||||
//
|
||||
@ -814,6 +822,14 @@
|
||||
this.getList2();
|
||||
this.getList3();
|
||||
this.getSelectEquTypeList();
|
||||
getDicts('target_drone_type').then(res => {
|
||||
this.policeTypeDictDatas = res.data.map((item) => {
|
||||
return {
|
||||
value: item.dictLabel,
|
||||
label: item.dictValue
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
onMounted() {
|
||||
|
||||
@ -917,6 +933,7 @@
|
||||
getList() {
|
||||
this.loading = true;
|
||||
console.log("参数的值为:",this.queryParams)
|
||||
this.queryParams.structure = "多旋翼"
|
||||
listEqumodel(this.queryParams).then(response => {
|
||||
this.equmodelList = response.rows;
|
||||
this.total = response.total;
|
||||
@ -926,6 +943,7 @@
|
||||
getList1() {
|
||||
this.loading = true;
|
||||
console.log("参数的值为:",this.queryParams)
|
||||
this.queryParams.structure = "固定翼"
|
||||
listEqumodel(this.queryParams).then(response => {
|
||||
this.equmodelList1 = response.rows;
|
||||
this.total = response.total;
|
||||
@ -935,6 +953,7 @@
|
||||
getList2() {
|
||||
this.loading = true;
|
||||
console.log("参数的值为:",this.queryParams)
|
||||
this.queryParams.structure = "单旋翼"
|
||||
listEqumodel(this.queryParams).then(response => {
|
||||
this.equmodelList2 = response.rows;
|
||||
this.total = response.total;
|
||||
@ -944,6 +963,7 @@
|
||||
getList3() {
|
||||
this.loading = true;
|
||||
console.log("参数的值为:",this.queryParams)
|
||||
this.queryParams.structure = "复合式固定翼"
|
||||
listEqumodel(this.queryParams).then(response => {
|
||||
this.equmodelList3 = response.rows;
|
||||
this.total = response.total;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user