| | |
| | | <el-table-column |
| | | prop="description" |
| | | label="点检要求" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.description">{{ row.description }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="isscan" |
| | | label="选择扫码" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.isscan==='Y'">是</div> |
| | | <div v-if="row.isscan==='N'">否</div> |
| | | <div v-if="row.isscan==='Y'"> |
| | | <svg-icon icon-class="circleYes" style="margin-right: 2px" /> |
| | | 是 |
| | | </div> |
| | | <div v-if="row.isscan==='N'"> |
| | | <svg-icon icon-class="circleNo" style="margin-right: 2px" /> |
| | | 否 |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-dialog> |
| | | |
| | | <!--导入组件--> |
| | | <import-picker ref="importPickerFunc" class="importPickerClass" :shows.sync="shows" :title="title_value" :colos="colos" :code="code" /> |
| | | <import-picker |
| | | ref="importPickerFunc" |
| | | class="importPickerClass" |
| | | :shows.sync="shows" |
| | | :title="title_value" |
| | | :colos="colos" |
| | | :code="code" |
| | | /> |
| | | |
| | | </div> |
| | | </template> |
| | |
| | | checkitemname: '', // 设备点检部位名称 |
| | | checkitemdescr: '', // 设备点检部位要求 |
| | | cycle: 'D', // 设备点检部位周期 |
| | | isqrcode: 'Y', // 是否扫码 |
| | | isqrcode: 'N', // 是否扫码 |
| | | OperType: '' // 操作类型 |
| | | }, |
| | | operation: '', |
| | |
| | | this.$nextTick(() => { |
| | | this.dialogForm.id = row.id |
| | | this.dialogForm.cycle = row.cycle |
| | | this.dialogForm.isscan = row.isqrcode |
| | | this.dialogForm.isqrcode = row.isscan |
| | | this.dialogForm.checkitemcode = row.code |
| | | this.dialogForm.checkitemname = row.name |
| | | this.dialogForm.checkitemdescr = row.description |
| | |
| | | this.dialogForm.checkitemname = '' |
| | | this.dialogForm.checkitemdescr = '' |
| | | this.dialogForm.cycle = 'D' |
| | | this.dialogForm.isqrcode = 'Y' |
| | | this.dialogForm.isqrcode = 'N' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |