|
@@ -45,7 +45,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { post } from '@/utils/request';
|
|
|
import { ref, reactive, onMounted, watchEffect, watch, inject } from 'vue'
|
|
|
-import { BUSIESS_DETELELIST, BUSIESS_ROWBACK, tableColumn } from '../api';
|
|
|
+import { BUSIESS_DETELELIST, BUSIESS_PERDETELE, BUSIESS_ROWBACK, tableColumn } from '../api';
|
|
|
import { ElTable } from 'element-plus';
|
|
|
import { confirmAction } from '@/utils/tools';
|
|
|
import { formatDate } from '@/utils/times';
|
|
@@ -90,7 +90,7 @@ function batchOperation(type: operationType) {
|
|
|
|
|
|
function businessOperationItem(value: string | number, label: string, type: operationType, batch: boolean = false) {
|
|
|
confirmAction(`确定${batch ? '批量' : ''}${type}【${label}】商机吗?`).then(() => {
|
|
|
- let url = type == '恢复' ? BUSIESS_ROWBACK : ''
|
|
|
+ let url = type == '恢复' ? BUSIESS_ROWBACK : BUSIESS_PERDETELE
|
|
|
post(url, { ids: value }).then(res => {
|
|
|
if (res.code != 'ok') {
|
|
|
globalPopup?.showError(res.msg)
|