| | |
| | | <script> |
| | | import {mapGetters} from "vuex"; |
| | | import basicOption from "@/util/basic-option"; |
| | | import {deletePvolume, getPvolumesPage, savePvolume, updatePvolume} from "@/api/system/fileCab/api"; |
| | | import {getTypeList, saveType, updateType, deleteType} from "@/api/processTemplate/type"; |
| | | import func from "@/util/func"; |
| | | |
| | | export default { |
| | |
| | | // 表格请求 |
| | | getTableList() { |
| | | this.tableLoading = true; |
| | | getPvolumesPage().then(res => { |
| | | getTypeList().then(res => { |
| | | this.tableData = res.data.data; |
| | | this.tableLoading = false; |
| | | }) |
| | |
| | | |
| | | // 新增 |
| | | rowSaveHandler(row, done, loading) { |
| | | savePvolume(row).then(res => { |
| | | saveType(row).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |
| | |
| | | |
| | | // 编辑 |
| | | rowUpdateHandler(row, index, done, loading) { |
| | | updatePvolume(row).then(res => { |
| | | updateType(row).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | deletePvolume(params).then(res => { |
| | | deleteType(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.$message.success(res.data.obj); |
| | | this.getTableList(); |