Commit 1e20a2cc by 张杰

优化界面展示

1 parent 1fc55cfa
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="设备号:"> <el-form-item label="设备号:">
<el-input placeholder="设备号" v-model="searchForm.sn"> <el-input placeholder="设备号" v-model="searchForm.sn" readonly>
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<!-- 按钮区域 end --> <!-- 按钮区域 end -->
<!-- 列表 开始 --> <!-- 列表 开始 -->
<glsx-table ref="glsxTable" :list="tableData" :column="columnList" :pageTotal="pageTotal" @change="getList"> <glsx-table ref="glsxTable" :list="tableData" v-loading="aloding" :column="columnList" :pageTotal="pageTotal" @change="getList">
<div slot="operate" slot-scope="{scope}"> <div slot="operate" slot-scope="{scope}">
<el-link type="primary" :underline="false" @click="lookTrack(scope)">查看轨迹</el-link> <el-link type="primary" :underline="false" @click="lookTrack(scope)">查看轨迹</el-link>
</div> </div>
...@@ -159,6 +159,7 @@ export default { ...@@ -159,6 +159,7 @@ export default {
], ],
}, },
dloading: false, dloading: false,
aloding:false
}; };
}, },
components: { components: {
...@@ -190,7 +191,9 @@ export default { ...@@ -190,7 +191,9 @@ export default {
let oParams = this.getParams(); let oParams = this.getParams();
oParams.pageSize = this.$refs.glsxTable.pageSize; oParams.pageSize = this.$refs.glsxTable.pageSize;
oParams.pageNumber = options ? options.pageNumber || 1 : 1; oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.aloding = true;
GET_JOURNEYS_SEARCHDETAIL(oParams).then((res) => { GET_JOURNEYS_SEARCHDETAIL(oParams).then((res) => {
this.aloding = false;
let { data } = res; let { data } = res;
let { list, totalElements } = data || {}; let { list, totalElements } = data || {};
this.pageTotal = totalElements; this.pageTotal = totalElements;
...@@ -239,7 +242,7 @@ export default { ...@@ -239,7 +242,7 @@ export default {
// 重置 // 重置
rest() { rest() {
this.searchForm = {}; //this.searchForm = {};
this.dateTime = []; this.dateTime = [];
this.getList(); this.getList();
this.$refs.glsxTable.rest(); this.$refs.glsxTable.rest();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!