|
@@ -191,6 +191,7 @@ import radioGroup from './radioGroup';
|
|
|
import followUpHistory from './followUpHistory';
|
|
import followUpHistory from './followUpHistory';
|
|
|
import { getDictOption } from '@/api/index';
|
|
import { getDictOption } from '@/api/index';
|
|
|
import { updateCustomerClueDept, getDeptInfo } from '@/api/clew';
|
|
import { updateCustomerClueDept, getDeptInfo } from '@/api/clew';
|
|
|
|
|
+import store from '@/store';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'complaintDetail',
|
|
name: 'complaintDetail',
|
|
@@ -326,8 +327,14 @@ export default {
|
|
|
insertCustomerClueAnswerKs(params).then((res) => {
|
|
insertCustomerClueAnswerKs(params).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
this.toastLoading().clear();
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
- this.$toast(res.msg);
|
|
|
|
|
- window.location.replace(window.location.origin + '/mobile/clew');
|
|
|
|
|
|
|
+ if (this.$route.query.token != undefined) {
|
|
|
|
|
+ window.location.replace(window.location.origin + '/mobile/clew');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ store.dispatch('setRefreshClewPage', true);
|
|
|
|
|
+ // 返回上一页不会刷新页面
|
|
|
|
|
+ this.$router.go(-1);
|
|
|
|
|
+ // this.$router.replace({ path: '/clew' });
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
this.$toast(res.msg);
|
|
this.$toast(res.msg);
|
|
|
}
|
|
}
|
|
@@ -470,6 +477,8 @@ export default {
|
|
|
if (this.$route.query.token != undefined) {
|
|
if (this.$route.query.token != undefined) {
|
|
|
window.location.replace(window.location.origin + '/mobile/clew');
|
|
window.location.replace(window.location.origin + '/mobile/clew');
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ store.dispatch('setRefreshClewPage', true);
|
|
|
|
|
+ // 返回上一页不会刷新页面
|
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
|
}
|
|
}
|
|
|
return done(true);
|
|
return done(true);
|