{
+ this.updateItem(id, status)
+ }).catch(() => {
+
+ })
+ },
+ async updateItem (id, status) {
+ this.$api.service.orderDelete({ id }).then(res => {
+ if (res.code === 200) {
+ this.$message.success(this.$t(status === -1 ? 'tips.successDel' : 'tips.successOper'))
+ this.getTableDataList('', 'list')
+ } else {
+ if (status === -1) return
+ this.getTableDataList('', 'list')
+ }
+ })
+ },
/**
* @method 搜索订单列表
*/
diff --git a/后端UI/src/view/shop/order/list.vue b/后端UI/src/view/shop/order/list.vue
index f6f175d1..2444a355 100644
--- a/后端UI/src/view/shop/order/list.vue
+++ b/后端UI/src/view/shop/order/list.vue
@@ -367,12 +367,20 @@
{{ $t('action.view') }}删除
+ {{ $t('action.view') }}
{
+ this.updateItem(id, status)
+ }).catch(() => {
+
+ })
+ },
+ async updateItem (id, status) {
+ this.$api.service.orderDelete({ id }).then(res => {
+ if (res.code === 200) {
+ this.$message.success(this.$t(status === -1 ? 'tips.successDel' : 'tips.successOper'))
+ this.getTableDataList('', 'list')
+ } else {
+ if (status === -1) return
+ this.getTableDataList('', 'list')
+ }
+ })
+ },
handleTableChange (val, type) {
val = JSON.parse(JSON.stringify(val))
this.currentRow = val
diff --git a/后端UI/src/view/technician/edit.vue b/后端UI/src/view/technician/edit.vue
index 619e5a5d..feac82f3 100644
--- a/后端UI/src/view/technician/edit.vue
+++ b/后端UI/src/view/technician/edit.vue
@@ -74,6 +74,17 @@
+
+
+
+
+
+
+
+
+
+