| | |
| | | <slot name="tool"></slot> |
| | | <el-button v-show="!id" class="input" type="ghost" size="mini" @click="out">退出</el-button> |
| | | <el-button class="input" type="ghost" size="mini" @click="save">保存</el-button> |
| | | <el-button v-show="id" class="input" type="ghost" size="mini" @click="del">删除</el-button> |
| | | <el-button v-show="id" class="input" type="ghost" size="mini" @click="del">删除该地图</el-button> |
| | | <span>行数:</span> |
| | | <el-input style="width: 70px;" class="input" v-show="status !== 2" v-model="rows" /> |
| | | <span>列数:</span> |
| | |
| | | this.currentAdd = v |
| | | }, |
| | | del() { |
| | | this.$confirm('确定要永久删除此厂房,关联的设备将重置?', '提示', { |
| | | this.$confirm('确定要永久删除此地图,关联的设备将重置?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | |
| | | |
| | | <el-col :xs="24":sm="6":md="6":lg="6":xl="6"> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="dataForm.name" placeholder="名称" clearable></el-input> |
| | | <el-input v-model="dataForm.name" placeholder="名称" maxlength="80" clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | |
| | | </template> |
| | | |
| | | <template slot="table-tool"> |
| | | <el-button type="primary" size="mini" style="width: 150px;" @click="add">新增设备类型</el-button> |
| | | <el-button type="primary" size="mini" style="width: 150px;" @click="add">新增</el-button> |
| | | </template> |
| | | |
| | | <template slot="columns"> |
| | | <el-table-column |
| | | prop="id" |
| | | label="ID" |
| | | type="index" |
| | | label="序号" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </div> |
| | | <div class="item"> |
| | | <span>设备名称</span> |
| | | <el-select class="item-value" v-model="queryInfo.machineName" placeholder="请选择" clearable> |
| | | <el-select class="item-value" v-model="queryInfo.machineId" placeholder="请选择" clearable> |
| | | <el-option v-for="item in machineList" :key="item.id" :label="item.machineName" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | machineList: [], |
| | | queryInfo: { |
| | | uuid: '', |
| | | machineName: '', |
| | | machineId: '', |
| | | style: 1, |
| | | type: '', |
| | | specification: '', |