mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-04 05:58:00 +08:00
修改页面
This commit is contained in:
@@ -39,13 +39,29 @@
|
|||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" icon="el-icon-refresh-right" size="mini" @click="handleQuery">刷新</el-button>
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-refresh-right"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>刷新</el-button
|
||||||
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['pile:basic:batchAdd']">批量新增</el-button>
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['pile:basic:batchAdd']"
|
||||||
|
>批量新增</el-button
|
||||||
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!--<el-col :span="1.5">
|
<!--<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -122,7 +138,12 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="sim卡号" align="center" prop="iccid" width="220px"/>
|
<el-table-column
|
||||||
|
label="sim卡号"
|
||||||
|
align="center"
|
||||||
|
prop="iccid"
|
||||||
|
width="220px"
|
||||||
|
/>
|
||||||
<el-table-column label="sim卡商" align="center" prop="simSupplier">
|
<el-table-column label="sim卡商" align="center" prop="simSupplier">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag
|
<dict-tag
|
||||||
@@ -197,7 +218,11 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="站点" prop="stationId">
|
<el-form-item label="站点" prop="stationId">
|
||||||
<el-select v-model="form.stationId" filterable placeholder="请选择站点">
|
<el-select
|
||||||
|
v-model="form.stationId"
|
||||||
|
filterable
|
||||||
|
placeholder="请选择站点"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in stationList"
|
v-for="item in stationList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@@ -243,7 +268,14 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="产品型号" prop="modelId">
|
<el-form-item label="产品型号" prop="modelId">
|
||||||
<el-select v-model="form.modelId" placeholder="请选择产品型号" filterable clearable>
|
<el-select
|
||||||
|
filterable
|
||||||
|
remote
|
||||||
|
v-model="form.modelId"
|
||||||
|
placeholder="请选择产品型号"
|
||||||
|
v-selectLoadMore="selectLoadMore"
|
||||||
|
>
|
||||||
|
<!-- :remote-method="remoteMethod" -->
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in modelList"
|
v-for="item in modelList"
|
||||||
:key="item.modelName"
|
:key="item.modelName"
|
||||||
@@ -329,6 +361,13 @@ export default {
|
|||||||
dicts: ["pile_status", "software_protocol", "sim_supplier", "connector_type"],
|
dicts: ["pile_status", "software_protocol", "sim_supplier", "connector_type"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
modelTotal: 0,
|
||||||
|
loadMoreFlag: true,
|
||||||
|
searchModelParam: {
|
||||||
|
modelName: "",
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
// 定时器
|
// 定时器
|
||||||
timer: null,
|
timer: null,
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
@@ -403,10 +442,30 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
||||||
this.getModelList();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
selectLoadMore() {
|
||||||
|
console.log("触底了 ", this.searchModelParam.pageSize);
|
||||||
|
if (this.loadMoreFlag === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.searchModelParam.pageSize = this.searchModelParam.pageSize + 10;
|
||||||
|
// console.log("触底了执行查询", this.searchModelParam);
|
||||||
|
this.getModelList();
|
||||||
|
},
|
||||||
|
|
||||||
|
// 远程搜索
|
||||||
|
remoteMethod(val) {
|
||||||
|
// console.log("输入了", val);
|
||||||
|
this.loading = true;
|
||||||
|
this.searchModelParam.modelName = val;
|
||||||
|
this.searchModelParam.pageNum = 1;
|
||||||
|
this.modelList = [];
|
||||||
|
setTimeout(() => {
|
||||||
|
this.loading = false;
|
||||||
|
this.getModelList();
|
||||||
|
}, 500);
|
||||||
|
},
|
||||||
changeSelectMerchant(value) {
|
changeSelectMerchant(value) {
|
||||||
// 清空内容
|
// 清空内容
|
||||||
this.createPile.stationId = "";
|
this.createPile.stationId = "";
|
||||||
@@ -422,8 +481,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getModelList() {
|
getModelList() {
|
||||||
listModel().then((response) => {
|
listModel(this.searchModelParam).then((response) => {
|
||||||
|
// console.log("response", response);
|
||||||
|
this.modelTotal = response.total;
|
||||||
this.modelList = response.rows;
|
this.modelList = response.rows;
|
||||||
|
this.loadMoreFlag = this.searchModelParam.pageSize <= this.modelTotal;
|
||||||
console.log("this.modelList", this.modelList);
|
console.log("this.modelList", this.modelList);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -476,7 +538,7 @@ export default {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1
|
pageNum: 1,
|
||||||
};
|
};
|
||||||
// this.resetForm("queryForm");
|
// this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
@@ -493,6 +555,7 @@ export default {
|
|||||||
this.getMerchantList();
|
this.getMerchantList();
|
||||||
this.title = "批量添加设备";
|
this.title = "批量添加设备";
|
||||||
this.open = true;
|
this.open = true;
|
||||||
|
this.getModelList();
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user