| | |
| | | <dict-tag :options="dict.type.DICT103" :value="scope.row.baudRate"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="读数指令" align="center" prop="readInstruction"/> |
| | | <el-table-column label="读数指令" align="center" width="180" prop="readInstruction"/> |
| | | <el-table-column label="回数长度" align="center" prop="loopLength"/> |
| | | <el-table-column label="功能描述" align="center" prop="description"/> |
| | | <el-table-column label="操作" align="center" fixed="right" width="240" class-name="small-padding fixed-width"> |
| | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | icon="el-icon-view" |
| | | @click="handleInfo(scope.row)" |
| | | v-hasPermi="['oa:peripheralUnit:info']" |
| | | >查看 |
| | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['oa:peripheralUnit:remove']" |
| | | >删除 |
| | | icon="el-icon-document" |
| | | @click="handleUpload(scope.row)" |
| | | >附件 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleUpload(scope.row)" |
| | | >附件 |
| | | class="del-btn" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['oa:peripheralUnit:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | {required: true, message: "外设代码不能为空", trigger: "blur"} |
| | | ], |
| | | name: [ |
| | | {required: true, message: "外设名称不能为空", trigger: "blur"} |
| | | {required: true, message: "外设名称不能为空", trigger: "blur"}, |
| | | {max: 32, message: '最多输入32中文字符', trigger: 'blur' } |
| | | ], |
| | | model: [ |
| | | {required: true, message: "规格型号不能为空", trigger: "blur"} |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除外设单元编号为"' + ids + '"的数据项?').then(() => { |
| | | this.$modal.confirm('是否确认删除?').then(() => { |
| | | this.loading = true; |
| | | return delPeripheralUnit(ids); |
| | | }).then(() => { |