Commit 73aaa79e authored by 邓春圆's avatar 邓春圆

销售模块 切换页面保留筛选条件

parent dfdbc5cd
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
import { createChannel, updateChannel, deleteChannel, getChannel, getChannelPage, exportChannelExcel } from "@/api/ecw/channel"; import { createChannel, updateChannel, deleteChannel, getChannel, getChannelPage, exportChannelExcel } from "@/api/ecw/channel";
export default { export default {
name: "Channel", name: "EcwChannelIndex",
components: { components: {
}, },
data() { data() {
...@@ -163,6 +163,9 @@ export default { ...@@ -163,6 +163,9 @@ export default {
created() { created() {
this.getList(); this.getList();
}, },
activated() {
this.getList();
},
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
......
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
export default { export default {
name: "DeptTarget", name: "EcwDepttargetAllachievement",
components: {}, components: {},
data() { data() {
return { return {
...@@ -219,7 +219,11 @@ ...@@ -219,7 +219,11 @@
} }
} }
}, },
created() { activated() {
this.getChannelList();
this.getList();
},
created() {
this.getChannelList(); this.getChannelList();
this.getList(); this.getList();
listServiceUser().then(r=>{ listServiceUser().then(r=>{
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
import { parseTime } from '@/utils/ruoyi'; import { parseTime } from '@/utils/ruoyi';
export default { export default {
name: "DeptTarget", name: "EcwDepttargetIndex",
components: {}, components: {},
data() { data() {
return { return {
...@@ -266,7 +266,11 @@ import { parseTime } from '@/utils/ruoyi'; ...@@ -266,7 +266,11 @@ import { parseTime } from '@/utils/ruoyi';
this.getChannelList(); this.getChannelList();
this.getList(); this.getList();
}, },
methods: { activated() {
this.getChannelList();
this.getList();
},
methods: {
/** 查询部门列表 */ /** 查询部门列表 */
getDeptList(){ getDeptList(){
this.loading = true; this.loading = true;
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
export default { export default {
name: "DeptTarget", name: "EcwDepttargetMyachievement",
components: {}, components: {},
data() { data() {
return { return {
...@@ -215,7 +215,11 @@ ...@@ -215,7 +215,11 @@
} }
} }
}, },
created() { activated() {
this.getChannelList();
this.getList();
},
created() {
this.getChannelList(); this.getChannelList();
this.getList(); this.getList();
listServiceUser().then(r=>{ listServiceUser().then(r=>{
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
export default { export default {
name: "DeptTarget", name: "EcwDepttargetMydeptachievement",
components: {}, components: {},
data() { data() {
return { return {
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
import { parseTime } from '@/utils/ruoyi'; import { parseTime } from '@/utils/ruoyi';
export default { export default {
name: "DeptTarget", name: "EcwDepttargetMydepttarget",
components: {}, components: {},
data() { data() {
return { return {
...@@ -267,13 +267,17 @@ import { parseTime } from '@/utils/ruoyi'; ...@@ -267,13 +267,17 @@ import { parseTime } from '@/utils/ruoyi';
this.getChannelList(); this.getChannelList();
this.getList(); this.getList();
}, },
methods: { activated() {
this.getChannelList();
this.getList();
},
methods: {
/** 查询部门列表 */ /** 查询部门列表 */
getDeptList(){ getDeptList(){
this.loading = true; this.loading = true;
myListDept(this.queryParams).then(response => { myListDept(this.queryParams).then(response => {
this.deptList = this.handleTree(response.data, "id"); this.deptList = this.handleTree(response.data, "id");
console.log("this.deptList:"+JSON.stringify(this.deptList)); // console.log("this.deptList:"+JSON.stringify(this.deptList));
this.deptList.forEach((item) => { this.deptList.forEach((item) => {
this.normalizer(item); this.normalizer(item);
// this.deptData.push(item); // this.deptData.push(item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment