|
@@ -9,6 +9,7 @@ import {deleteAction, getAction, downFile} from '@/api/manage'
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
import {ACCESS_TOKEN} from "@/store/mutation-types"
|
|
import {ACCESS_TOKEN} from "@/store/mutation-types"
|
|
import { transformTozTreeFormat } from '@/utils/util.js'
|
|
import { transformTozTreeFormat } from '@/utils/util.js'
|
|
|
|
+import {mapGetters} from 'vuex';
|
|
export const JeecgListMixin = {
|
|
export const JeecgListMixin = {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -63,6 +64,7 @@ export const JeecgListMixin = {
|
|
this.initDictConfig();
|
|
this.initDictConfig();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ ...mapGetters(['nickname', 'avatar', 'userInfo']),
|
|
// 二级树
|
|
// 二级树
|
|
expand(expanded,record){
|
|
expand(expanded,record){
|
|
if(this.url.listTwo){
|
|
if(this.url.listTwo){
|
|
@@ -144,7 +146,7 @@ export const JeecgListMixin = {
|
|
// if(params.endDate){
|
|
// if(params.endDate){
|
|
// params.endDate = moment(params.endDate).format('YYYY-MM-DD')
|
|
// params.endDate = moment(params.endDate).format('YYYY-MM-DD')
|
|
// }
|
|
// }
|
|
-
|
|
|
|
|
|
+ params.userId = this.userInfo().id
|
|
this.loading = true;
|
|
this.loading = true;
|
|
await getAction(this.url.list, params).then((res) => {
|
|
await getAction(this.url.list, params).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|