1
This commit is contained in:
@ -9,7 +9,7 @@ import requestGo from '@/utils/request-go';
|
|||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const listProject = (query?: ProjectQuery): AxiosPromise<ProjectVO[]> => {
|
export const listProjectGo = (query?: ProjectQuery): AxiosPromise<ProjectVO[]> => {
|
||||||
return requestGo({
|
return requestGo({
|
||||||
url: '/zm/api/v1/system/sysProject/list',
|
url: '/zm/api/v1/system/sysProject/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
@ -17,6 +17,20 @@ export const listProject = (query?: ProjectQuery): AxiosPromise<ProjectVO[]> =>
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询项目列表
|
||||||
|
* @param query
|
||||||
|
* @returns {*}
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const listProject = (query?: ProjectQuery): AxiosPromise<ProjectVO[]> => {
|
||||||
|
return request({
|
||||||
|
url: '/project/project/list',
|
||||||
|
method: 'get',
|
||||||
|
params: { ...query }
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询项目dxf
|
* 查询项目dxf
|
||||||
* @param query
|
* @param query
|
||||||
@ -246,7 +260,6 @@ export const delAttendanceRange = (id) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// 修改项目打卡范围
|
// 修改项目打卡范围
|
||||||
export const updateAttendanceRange = (data) => {
|
export const updateAttendanceRange = (data) => {
|
||||||
return request({
|
return request({
|
||||||
@ -263,4 +276,4 @@ export const getAttendanceRangeList = (data) => {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -55,6 +55,7 @@ setLocal('host', '121.37.237.116');
|
|||||||
setLocal('rtmpPort', '28451');
|
setLocal('rtmpPort', '28451');
|
||||||
setLocal('rtcPort', '28453');
|
setLocal('rtcPort', '28453');
|
||||||
setLocal('dockSocketUrl', 'ws://58.17.134.85:9512/websocket');
|
setLocal('dockSocketUrl', 'ws://58.17.134.85:9512/websocket');
|
||||||
|
window['$HOSTSRC'] = 'ws://58.17.134.85:8920/ws';
|
||||||
|
|
||||||
// 修改 el-dialog 默认点击遮照为不关闭
|
// 修改 el-dialog 默认点击遮照为不关闭
|
||||||
/*import { ElDialog } from 'element-plus';
|
/*import { ElDialog } from 'element-plus';
|
||||||
|
|||||||
@ -340,12 +340,14 @@ const getList = async () => {
|
|||||||
if (!queryParams.value.projectId) {
|
if (!queryParams.value.projectId) {
|
||||||
const res = await getProjectSquare(currentProject.value?.id);
|
const res = await getProjectSquare(currentProject.value?.id);
|
||||||
if (res.data.length === 0) {
|
if (res.data.length === 0) {
|
||||||
proxy?.$modal.msgWarning('当前项目下没有方阵,请先创建方阵');
|
// proxy?.$modal.msgWarning('当前项目下没有方阵,请先创建方阵');
|
||||||
matrixOptions.value = [];
|
// matrixOptions.value = [];
|
||||||
queryParams.value.projectId = '';
|
// queryParams.value.projectId = '';
|
||||||
form.value.projectId = '';
|
// form.value.projectId = '';
|
||||||
|
progressCategoryList.value = [];
|
||||||
tabList.value = [];
|
tabList.value = [];
|
||||||
activeTab.value = '';
|
// activeTab.value = '';
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
let matrixList = res.data.map((item) => {
|
let matrixList = res.data.map((item) => {
|
||||||
return {
|
return {
|
||||||
@ -523,6 +525,7 @@ const resetMatrix = () => {
|
|||||||
matrixValue.value = undefined;
|
matrixValue.value = undefined;
|
||||||
queryParams.value.matrixId = undefined;
|
queryParams.value.matrixId = undefined;
|
||||||
queryParams.value.projectId = undefined;
|
queryParams.value.projectId = undefined;
|
||||||
|
relevancyStructure.value = '1';
|
||||||
matrixOptions.value = [];
|
matrixOptions.value = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -123,7 +123,7 @@ import * as xlsx from 'xlsx';
|
|||||||
import { exportDataToExcel } from '@/utils/exportDataToExcel.js';
|
import { exportDataToExcel } from '@/utils/exportDataToExcel.js';
|
||||||
import { useUserStoreHook } from '@/store/modules/user';
|
import { useUserStoreHook } from '@/store/modules/user';
|
||||||
import { listProjectTeam } from '@/api/project/projectTeam';
|
import { listProjectTeam } from '@/api/project/projectTeam';
|
||||||
import { listProject } from '@/api/project/project';
|
import { listProject, listProjectGo } from '@/api/project/project';
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'index',
|
name: 'index',
|
||||||
components: {
|
components: {
|
||||||
@ -203,7 +203,7 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
// 获取项目列表数据
|
// 获取项目列表数据
|
||||||
const sysProjectList = () => {
|
const sysProjectList = () => {
|
||||||
listProject({ pageNum: 1, pageSize: 1000 }).then((res: any) => {
|
listProjectGo({ pageNum: 1, pageSize: 1000 }).then((res: any) => {
|
||||||
let list = res.data.list ?? [];
|
let list = res.data.list ?? [];
|
||||||
if (list.length) {
|
if (list.length) {
|
||||||
state.projectList = list;
|
state.projectList = list;
|
||||||
|
|||||||
@ -305,7 +305,7 @@ import {
|
|||||||
delProject,
|
delProject,
|
||||||
uploadProjectFile,
|
uploadProjectFile,
|
||||||
getProject,
|
getProject,
|
||||||
listProject,
|
listProjectGo,
|
||||||
updateProject,
|
updateProject,
|
||||||
attendanceRuleAdd,
|
attendanceRuleAdd,
|
||||||
attendanceRuleEdit,
|
attendanceRuleEdit,
|
||||||
@ -434,7 +434,7 @@ const { queryParams, form, rules } = toRefs(data);
|
|||||||
/** 查询项目列表 */
|
/** 查询项目列表 */
|
||||||
const getList = async () => {
|
const getList = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
const res = await listProject(queryParams.value);
|
const res = await listProjectGo(queryParams.value);
|
||||||
projectList.value = res.data.list;
|
projectList.value = res.data.list;
|
||||||
total.value = res.data.total;
|
total.value = res.data.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|||||||
@ -69,7 +69,6 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
const init = (obj) => {
|
const init = (obj) => {
|
||||||
let documentKey = obj.id.toString() + new Date().getTime();
|
let documentKey = obj.id.toString() + new Date().getTime();
|
||||||
window['$HOSTSRC'] = 'ws://58.17.134.85:8920/ws';
|
|
||||||
let baseURL = window['$HOSTSRC'].replace('ws:', 'http:').replace('/ws', '');
|
let baseURL = window['$HOSTSRC'].replace('ws:', 'http:').replace('/ws', '');
|
||||||
let url = baseURL + obj.filenPathCoding.replaceAll('+', ' ');
|
let url = baseURL + obj.filenPathCoding.replaceAll('+', ' ');
|
||||||
let type = obj.suffix;
|
let type = obj.suffix;
|
||||||
|
|||||||
@ -75,7 +75,6 @@ export default defineComponent({
|
|||||||
};
|
};
|
||||||
const init = (obj) => {
|
const init = (obj) => {
|
||||||
let documentKey = obj.id.toString() + new Date().getTime();
|
let documentKey = obj.id.toString() + new Date().getTime();
|
||||||
window['$HOSTSRC'] = 'ws://58.17.134.85:8920/ws';
|
|
||||||
let baseURL = window['$HOSTSRC'].replace('ws:', 'http:').replace('/ws', '');
|
let baseURL = window['$HOSTSRC'].replace('ws:', 'http:').replace('/ws', '');
|
||||||
let url = baseURL + obj.path;
|
let url = baseURL + obj.path;
|
||||||
new CXO_API.CXEditor('box_app_edit1', {
|
new CXO_API.CXEditor('box_app_edit1', {
|
||||||
|
|||||||
@ -274,6 +274,7 @@ const initData = async () => {
|
|||||||
try {
|
try {
|
||||||
// 获取项目列表
|
// 获取项目列表
|
||||||
const projectRes = await listProject();
|
const projectRes = await listProject();
|
||||||
|
console.log('🚀 ~ initData ~ projectRes:', projectRes);
|
||||||
projectOptions.value = projectRes.rows.map((item: any) => ({
|
projectOptions.value = projectRes.rows.map((item: any) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
projectName: item.projectName,
|
projectName: item.projectName,
|
||||||
|
|||||||
Reference in New Issue
Block a user