mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
更新
This commit is contained in:
@@ -8,7 +8,7 @@ export const boeuExamPageList = (obj) => http.post('/boeu/exam/pageList', obj)
|
|||||||
//概览页面案例列表请求接口
|
//概览页面案例列表请求接口
|
||||||
export const boeuCasePageList = (obj) => http.post('/boeu/case/pageList', obj)
|
export const boeuCasePageList = (obj) => http.post('/boeu/case/pageList', obj)
|
||||||
// 请求组织接口
|
// 请求组织接口
|
||||||
export const userGetUserOrg = (obj) => http.post('/org/getUserOrg', obj)
|
export const userGetUserOrg = (obj) => https.get(`/organization/all/tree`,obj)
|
||||||
// 请求所属组织接口
|
// 请求所属组织接口
|
||||||
export const userInfo = (obj) => https.post('/user/info', obj)
|
export const userInfo = (obj) => https.post('/user/info', obj)
|
||||||
// 课程列表接口
|
// 课程列表接口
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import http from "./configz";
|
import http from "./configz";
|
||||||
import https from './confign'
|
import https from './confign'
|
||||||
// 请求组织接口
|
// 请求组织接口
|
||||||
export const userGetUserOrg = (obj) => https.post('/user/getUserOrg', obj)
|
export const userGetUserOrg = (obj) => http.post('/org/getUserOrg', obj)
|
||||||
// 请求所属组织接口
|
// 请求所属组织接口
|
||||||
export const userInfo = (obj) => https.post('/user/info', obj)
|
export const userInfo = (obj) => https.post('/user/info', obj)
|
||||||
// 项目列表
|
// 项目列表
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
:allowClear="allowClear"
|
:allowClear="allowClear"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:fieldNames="{
|
:fieldNames="{
|
||||||
label: 'name',
|
label: 'orgName',
|
||||||
value: 'id',
|
value: 'organizationId',
|
||||||
children: 'treeChildList',
|
children: 'childList',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
</a-cascader>
|
</a-cascader>
|
||||||
@@ -141,9 +141,11 @@ import axios from "axios";
|
|||||||
import Cookies from "vue-cookies";
|
import Cookies from "vue-cookies";
|
||||||
import downLoad from "../../utils/downLoad";
|
import downLoad from "../../utils/downLoad";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
|
import {useStore} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "CurriculuM",
|
name: "CurriculuM",
|
||||||
setup() {
|
setup() {
|
||||||
|
const store = useStore();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tableLoading: false, // table加载图标
|
tableLoading: false, // table加载图标
|
||||||
tableDataTotal: 0, // 数据总条数
|
tableDataTotal: 0, // 数据总条数
|
||||||
@@ -168,15 +170,16 @@ export default {
|
|||||||
const getOption = async () => {};
|
const getOption = async () => {};
|
||||||
//请求组织接口
|
//请求组织接口
|
||||||
const getOrgList = async () => {
|
const getOrgList = async () => {
|
||||||
const result = await api.userGetUserOrg({});
|
let params = {
|
||||||
|
roleList: store.state.userInfo.roleList,
|
||||||
if (result) {
|
userId: store.state.userInfo.userId
|
||||||
state.option = result.data?.result?.list;
|
}
|
||||||
state.orgId = result.data?.result?.treeNodeList;
|
const res = await api.userGetUserOrg(params);
|
||||||
state.resetOrgId = result.data?.result?.treeNodeList;
|
if (res) {
|
||||||
result.data?.result?.userType === 1
|
state.option = res.data?.result;
|
||||||
? (state.allowClear = true)
|
state.orgId = [state.option[0]?.organizationId];
|
||||||
: (state.allowClear = false);
|
state.resetOrgId = [state.option[0]?.organizationId];
|
||||||
|
state.allowClear = true
|
||||||
getTableData();
|
getTableData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -194,8 +197,8 @@ export default {
|
|||||||
};
|
};
|
||||||
const res = await api.boeuCourseListPageV2(params);
|
const res = await api.boeuCourseListPageV2(params);
|
||||||
if (res) {
|
if (res) {
|
||||||
tableData.value = res.data.rows;
|
tableData.value = res.data.result.rows;
|
||||||
state.tableDataTotal = res.data.total;
|
state.tableDataTotal = res.data.result.total;
|
||||||
state.tableLoading = false;
|
state.tableLoading = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<div class="filter">
|
<div class="filter">
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<a-cascader
|
<a-cascader
|
||||||
|
change-on-select
|
||||||
:options="option"
|
:options="option"
|
||||||
v-model:value="orgId"
|
v-model:value="orgId"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@@ -173,16 +174,14 @@ export default {
|
|||||||
}
|
}
|
||||||
//请求组织接口
|
//请求组织接口
|
||||||
const getOrgList = async () => {
|
const getOrgList = async () => {
|
||||||
let params = {
|
//todo 获取用户角色列表,判断里面是否有system-admin
|
||||||
roleList: store.state.userInfo.roleList,
|
// let roleList = store.state.userInfo.roleList;
|
||||||
userId: store.state.userInfo.userId
|
const res = await api.userGetUserOrg();
|
||||||
}
|
|
||||||
const res = await api.userGetUserOrg(params);
|
|
||||||
if (res) {
|
if (res) {
|
||||||
state.option = res.data?.result;
|
state.option = res.data?.result;
|
||||||
state.orgId = state.option[0]?.organizationId;
|
state.orgId = [state.option[0]?.organizationId];
|
||||||
state.resetOrgId = state.option[0]?.organizationId;
|
state.resetOrgId = [state.option[0]?.organizationId];
|
||||||
state.allowClear = false
|
state.allowClear = true;
|
||||||
getTableData();
|
getTableData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
:allowClear="allowClear"
|
:allowClear="allowClear"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:fieldNames="{
|
:fieldNames="{
|
||||||
label: 'name',
|
label: 'orgName',
|
||||||
value: 'id',
|
value: 'organizationId',
|
||||||
children: 'treeChildList',
|
children: 'childList',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
</a-cascader>
|
</a-cascader>
|
||||||
@@ -169,9 +169,11 @@ import axios from "axios";
|
|||||||
import Cookies from "vue-cookies";
|
import Cookies from "vue-cookies";
|
||||||
import downLoad from "../../utils/downLoad";
|
import downLoad from "../../utils/downLoad";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
|
import { useStore } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "reportProject",
|
name: "reportProject",
|
||||||
setup() {
|
setup() {
|
||||||
|
const store = useStore();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
tableLoading: false, // table加载图标
|
tableLoading: false, // table加载图标
|
||||||
tableDataTotal: 0, // 数据总条数
|
tableDataTotal: 0, // 数据总条数
|
||||||
@@ -290,14 +292,16 @@ export default {
|
|||||||
};
|
};
|
||||||
//请求组织接口
|
//请求组织接口
|
||||||
const getOrgList = async () => {
|
const getOrgList = async () => {
|
||||||
const res = await api.userGetUserOrg({});
|
let params = {
|
||||||
|
roleList: store.state.userInfo.roleList,
|
||||||
|
userId: store.state.userInfo.userId
|
||||||
|
}
|
||||||
|
const res = await api.userGetUserOrg(params);
|
||||||
if (res) {
|
if (res) {
|
||||||
state.option = res.data?.result?.list;
|
state.option = res.data?.result;
|
||||||
state.orgId = res.data?.result?.treeNodeList;
|
state.orgId = [state.option[0]?.organizationId];
|
||||||
state.resetOrgId = res.data?.result?.treeNodeList;
|
state.resetOrgId = [state.option[0]?.organizationId];
|
||||||
res.data?.result?.userType === 1
|
state.allowClear = true
|
||||||
? (state.allowClear = true)
|
|
||||||
: (state.allowClear = false);
|
|
||||||
getTableData();
|
getTableData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -343,8 +347,9 @@ export default {
|
|||||||
});
|
});
|
||||||
return list;
|
return list;
|
||||||
};
|
};
|
||||||
tableData.value = fun(res.data.rows);
|
tableData.value = fun(res.data.result.rows);
|
||||||
state.tableDataTotal = res.data.total;
|
state.tableDataTotal = res.data.result.total;
|
||||||
|
console.log("safgaga"+res.data.result.total)
|
||||||
state.tableLoading = false;
|
state.tableLoading = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user