| | |
| | | <el-button size="small" type="primary" @click="addRow">添加</el-button> |
| | | <el-button size="small" type="danger" @click="clearTable">清空</el-button> |
| | | </div> |
| | | <el-table :data="checkDetailList" border height="300" style="width: 100%"> |
| | | <el-table :data="checkDetailList" border height="300" style="width: 100%" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }"> |
| | | <el-table-column align="center" label="序号" type="index" width="60" /> |
| | | <el-table-column header-align="center" label="涉及要素和质量体系文件条款" prop="element"> |
| | | <template slot-scope="{row}"> |
| | |
| | | this.diaLoading = true |
| | | getInternalCheckOne({ checkId: row.checkId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.checkDetailList = this.form.checkDetailList |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalCheck(internalCheckDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalCheck(internalCheckDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |