| | |
| | | <el-button size="small" type="primary" @click="addRow">添加</el-button> |
| | | <el-button size="small" type="danger" @click="clearTable">清空</el-button> |
| | | </div> |
| | | <el-table :data="implementDetailList" border height="300" style="width: 100%"> |
| | | <el-table :data="implementDetailList" height="300" style="width: 100%" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border> |
| | | <el-table-column align="center" label="序号" type="index" width="60" /> |
| | | <el-table-column header-align="center" label="时间" prop="implement"> |
| | | <template slot-scope="{row}"> |
| | |
| | | this.diaLoading = true |
| | | getInternalImplementOne({ implementId: row.implementId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.implementDetailList = this.form.implementDetailList |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addInternalImplement(internalImplementDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |
| | |
| | | } else if (this.operationType === 'edit') { |
| | | updateInternalImplement(internalImplementDto).then(res => { |
| | | this.loading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('操作成功') |
| | | this.closeImplementDia() |
| | | }).catch(err => { |