rev 更新细节

This commit is contained in:
2023-04-17 08:50:26 +08:00
parent 6f9eb90c58
commit 9deeb8b14c
59 changed files with 1175 additions and 1438 deletions

View File

@@ -183,7 +183,7 @@
</template>
<script>
import crudInstruction from '@/api/acs/instruction/instruction'
import crudInstruction, { forceCancelByLinkNum } from '@/api/acs/instruction/instruction'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import crudOperation from '@crud/CRUD.operation'
import { getDicts } from '@/api/system/dict'
@@ -289,7 +289,7 @@ export default {
},
// https://www.cnblogs.com/jdWu-d/p/11898666.html
finish(index, row) {
crudInstruction.finish(row.instruction_id).then(res => {
crudInstruction.finishByLinkNum(row.link_num).then(res => {
this.crud.toQuery()
this.crud.notify('完成成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
@@ -297,7 +297,7 @@ export default {
})
},
cancel(index, row) {
crudInstruction.cancel(row.instruction_id).then(res => {
crudInstruction.cancelByLinkNum(row.link_num).then(res => {
this.crud.toQuery()
this.crud.notify('取消成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {
@@ -305,7 +305,7 @@ export default {
})
},
forceCancel(index, row) {
crudInstruction.forceCancel(row.instruction_id).then(res => {
crudInstruction.forceCancelByLinkNum(row.link_num).then(res => {
this.crud.toQuery()
this.crud.notify('强制取消成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(err => {