更新
This commit is contained in:
@@ -59,6 +59,9 @@ export default {
|
||||
if (query !== "") {
|
||||
this.loading = true;
|
||||
let params = {};
|
||||
// if() {
|
||||
|
||||
// }
|
||||
this.config.autocompleteKey
|
||||
? (params[this.config.autocompleteKey] = query)
|
||||
: (params["queryTypeGet"] = query);
|
||||
|
||||
@@ -117,7 +117,7 @@ export default {
|
||||
init() {
|
||||
this.dataPage = this.mappingData.map(
|
||||
(mappingDataItem, mappingDataIndex) => {
|
||||
let shineData = this.sourceData[mappingDataIndex];
|
||||
let shineData = this.sourceData[mappingDataIndex] || {};
|
||||
return {
|
||||
title: mappingDataItem.carTitle,
|
||||
iconClass: mappingDataItem.iconClass || "iconjichuziliao",
|
||||
|
||||
@@ -7,6 +7,19 @@
|
||||
placeholder="产品名称"
|
||||
clearable
|
||||
></el-input>
|
||||
<el-select
|
||||
v-model="parameter.params.productType"
|
||||
placeholder="产品类型"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in productTypeList"
|
||||
:key="index"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- 炼厂名称 -->
|
||||
<autocomplete :params="parameter.params" :config="configAutocomplete" />
|
||||
<el-input
|
||||
@@ -227,6 +240,24 @@ export default {
|
||||
batch: false,
|
||||
adjust: false,
|
||||
},
|
||||
productTypeList: [
|
||||
{
|
||||
label: "0#柴",
|
||||
value: "0#",
|
||||
},
|
||||
{
|
||||
label: "-10#柴",
|
||||
value: "-10#",
|
||||
},
|
||||
{
|
||||
label: "92#汽",
|
||||
value: "92#",
|
||||
},
|
||||
{
|
||||
label: "95#汽",
|
||||
value: "95#",
|
||||
},
|
||||
],
|
||||
configAutocomplete: {
|
||||
serveTarget: refineryInfoServe.findByEntity,
|
||||
autocompleteKey: "refineryName",
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
<div class="table">
|
||||
<div class="operation">
|
||||
<el-button @click="addition">新增炼厂账户</el-button>
|
||||
<!-- <el-button @click="addition">新增炼厂账户</el-button> -->
|
||||
<el-button @click="addition">充值</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
|
||||
Reference in New Issue
Block a user