代码提交

dev-scheduling
zhangdi 4 days ago
parent a258a2835a
commit b589776d30
  1. 82
      src/views/aaaaaaaaaaaaa/table.vue

@ -26,12 +26,12 @@
</template>
<script>
import {
getListPersonAbility,
removePersonAbility,
addPersonAbility,
updatePersonAbility,
} from '@/api/productionSchedulingPlan/scheduling';
// import {
// getListPersonAbility,
// removePersonAbility,
// addPersonAbility,
// updatePersonAbility,
// } from '@/api/productionSchedulingPlan/scheduling';
export default {
components: {},
data() {
@ -114,36 +114,36 @@ export default {
},
methods: {
rowSave(row, done, loading) {
addPersonAbility(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
window.console.log(error);
loading();
}
);
// addPersonAbility(row).then(
// () => {
// this.onLoad(this.page);
// this.$message({
// type: 'success',
// message: '!',
// });
// done();
// },
// error => {
// window.console.log(error);
// loading();
// }
// );
},
rowUpdate(row, index, done, loading) {
updatePersonAbility(row).then(
() => {
this.onLoad(this.page);
this.$message({
type: 'success',
message: '操作成功!',
});
done();
},
error => {
window.console.log(error);
loading();
}
);
// updatePersonAbility(row).then(
// () => {
// this.onLoad(this.page);
// this.$message({
// type: 'success',
// message: '!',
// });
// done();
// },
// error => {
// window.console.log(error);
// loading();
// }
// );
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
@ -152,7 +152,7 @@ export default {
type: 'warning',
})
.then(() => {
return removePersonAbility(row.id);
// return removePersonAbility(row.id);
})
.then(() => {
this.onLoad(this.page);
@ -202,12 +202,12 @@ export default {
onLoad(page, params = {}) {
this.loading = true;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.data = res.data.data.records;
this.loading = false;
this.page.total = res.data.data.total;
this.selectionClear();
});
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
// this.data = res.data.data.records;
// this.loading = false;
// this.page.total = res.data.data.total;
// this.selectionClear();
// });
},
},
mounted() {},

Loading…
Cancel
Save