This commit is contained in:
xiaozhiyong
2023-02-22 13:19:23 +08:00
parent 2c3fc5aacc
commit 726dc111b6
13 changed files with 561 additions and 295 deletions

View File

@@ -1,16 +1,6 @@
<template>
<div class="order">
<div class="frame">
<!-- <el-autocomplete
class="mr20"
label
v-model="parameter.params.id"
:fetch-suggestions="querySearchAsync"
value-key="refineryName"
value="id"
placeholder="炼厂名称"
></el-autocomplete> -->
<autocomplete
class="mr20"
:params="parameter.params"
@@ -160,6 +150,20 @@
:mappingData="mappingData"
@close="controlWindows.detail = false"
>
<template #refineryType>
<p>
{{
refineryTypeEnum.find(
(item) => item.value === oilCompanyMatch[0].refineryType
).label
}}
</p>
</template>
<template #enableMark>
<p>
{{ oilCompanyMatch[0].enableMark === "ENABLE" ? "启用" : "禁用" }}
</p>
</template>
</general-details>
</el-drawer>
</div>
@@ -197,7 +201,7 @@ export default {
labelKey: "refineryName",
valueKey: "id",
placeholder: "炼厂名称",
querykey: "refineryId",
querykey: "id",
},
refineryList: [],
tableHeight: 0,
@@ -253,19 +257,6 @@ export default {
this.parameter.total = res.data.totalCount;
});
},
//远程搜索
// querySearchAsync(queryString, cb) {
// if (queryString) {
// serve.findByEntity({ refineryName: queryString }).then((res) => {
// let timeInstance = setTimeout(() => {
// clearTimeout(timeInstance);
// if (res.data.length) {
// cb(res.data);
// } else cb([]);
// }, 1000 * Math.random());
// });
// } else cb([]);
// },
//新增
addition() {
this.controlWindows.addInfo.title = "炼厂入驻";
@@ -279,7 +270,7 @@ export default {
},
//详情
detail(row) {
this.oilCompanyMatch = row;
this.oilCompanyMatch = [row];
this.controlWindows.detail = true;
},
//删除
@@ -333,6 +324,9 @@ export default {
<style lang="scss" scoped>
.order {
.pft14 {
font-size: 14px;
}
.frame {
margin: 20px;
padding: 20px;