| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" @submit.native.prevent> |
| | | <el-form-item label="点位名称" prop="pointName"> |
| | | <el-input v-model="queryParams.pointName" placeholder="输入点位名称" clearable @keyup.enter.native="handleQuery" /> |
| | | <el-input v-model="queryParams.pointName" placeholder="输入点位名称" clearable @clear="handleQuery" @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位" prop="unit"> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | |
| | | <!-- <el-button type="danger" plain icon="el-icon-receiving" size="mini" @click="handleEditBatch"--> |
| | | <!-- v-hasPermi="['point:edit']">批量修改</el-button>--> |
| | | <!-- </el-col>--> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | <right-toolbar @refreshHeader= "getDyColumn" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | | <el-table v-loading="loading" :data="pointList" @selection-change="handleSelectionChange"> |
| | | <el-table :key = "refreshkey" v-loading="loading" :data="pointList" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="点位名称" prop="pointName" width="200" show-overflow-tooltip/> |
| | | <el-table-column label="标签" align="center" width="200" show-overflow-tooltip> |
| | |
| | | dicts: ['point_tag', 'area_code'], |
| | | data() { |
| | | return { |
| | | refreshkey : 0, |
| | | dynamicColumnList: [], |
| | | needUpdateUnit: false, |
| | | importantTag: false, |
| | |
| | | this.getUnitSelect(); |
| | | // this.getCascader(); |
| | | this.getDeptCascader(); |
| | | this.getDyColumn() |
| | | this.getDyColumn(); |
| | | }, |
| | | methods: { |
| | | getDyColumn() { |
| | |
| | | } |
| | | getDynamicColumnList(params).then(res => { |
| | | this.dynamicColumnList = res.data |
| | | this.refreshkey+=1 |
| | | console.log("加载动态列"+this.refreshkey) |
| | | }) |
| | | }, |
| | | getDynamicValue(row, propName) { |