|
|
@@ -68,7 +68,12 @@ import history from '@/assets/Icon/history.png';
|
|
|
import tm from '@/assets/Icon/tm.png';
|
|
|
import zw from '@/assets/Icon/zw.png';
|
|
|
import ry from '@/assets/Icon/ry.png';
|
|
|
-import { getSummaryMobilo, insertCustomAnswer, temporarilyCustomAnswer } from '@/api/index';
|
|
|
+import {
|
|
|
+ getSummaryMobilo,
|
|
|
+ insertCustomAnswer,
|
|
|
+ temporarilyCustomAnswer,
|
|
|
+ deleteSummaryMobile,
|
|
|
+} from '@/api/index';
|
|
|
import { ImagePreview } from 'vant';
|
|
|
import deleteUploadImg from '@/components/deleteUploadImg';
|
|
|
import componVisitSummary from '@/views/week/componVisitSummary';
|
|
|
@@ -266,7 +271,20 @@ export default {
|
|
|
message: '确定要删除吗?',
|
|
|
showCancelButton: true,
|
|
|
})
|
|
|
- .then(() => {})
|
|
|
+ .then(() => {
|
|
|
+ deleteSummaryMobile({ userSummaryId: this.$route.query.userSummaryId })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$toast('操作成功!');
|
|
|
+ this.onClickLeft();
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$toast(err.msg);
|
|
|
+ });
|
|
|
+ })
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
},
|