Merge branch 'dev-scheduling' of http://42.192.7.176:3000/suojin/jonhon-mes-web into dev-scheduling

dev-scheduling
zhangdi 3 days ago
commit 6d123f6a28
  1. 82
      src/views/aaaaaaaaaaaaa/table.vue

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

Loading…
Cancel
Save