diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/src/assets/icons/icon-add-circle.svg b/src/assets/icons/icon-add-circle.svg new file mode 100644 index 0000000..13f4b3b --- /dev/null +++ b/src/assets/icons/icon-add-circle.svg @@ -0,0 +1 @@ + diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/src/assets/icons/icon-add-circle.svg b/src/assets/icons/icon-add-circle.svg new file mode 100644 index 0000000..13f4b3b --- /dev/null +++ b/src/assets/icons/icon-add-circle.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-reduce-circle.svg b/src/assets/icons/icon-reduce-circle.svg new file mode 100644 index 0000000..eed0947 --- /dev/null +++ b/src/assets/icons/icon-reduce-circle.svg @@ -0,0 +1 @@ + diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/src/assets/icons/icon-add-circle.svg b/src/assets/icons/icon-add-circle.svg new file mode 100644 index 0000000..13f4b3b --- /dev/null +++ b/src/assets/icons/icon-add-circle.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-reduce-circle.svg b/src/assets/icons/icon-reduce-circle.svg new file mode 100644 index 0000000..eed0947 --- /dev/null +++ b/src/assets/icons/icon-reduce-circle.svg @@ -0,0 +1 @@ + diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 841e0cb..4f875ef 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -46,7 +46,7 @@ return { show: true, icon: 'circle', - orient: 'vertile', // 图例方向 + orient: 'horizontal', // 图例方向 align: 'left', // 图例标记和文本的对齐,默认自动 top: 5, right: 20, diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/src/assets/icons/icon-add-circle.svg b/src/assets/icons/icon-add-circle.svg new file mode 100644 index 0000000..13f4b3b --- /dev/null +++ b/src/assets/icons/icon-add-circle.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-reduce-circle.svg b/src/assets/icons/icon-reduce-circle.svg new file mode 100644 index 0000000..eed0947 --- /dev/null +++ b/src/assets/icons/icon-reduce-circle.svg @@ -0,0 +1 @@ + diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 841e0cb..4f875ef 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -46,7 +46,7 @@ return { show: true, icon: 'circle', - orient: 'vertile', // 图例方向 + orient: 'horizontal', // 图例方向 align: 'left', // 图例标记和文本的对齐,默认自动 top: 5, right: 20, diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue index f71ee79..df43894 100644 --- a/src/views/dashboard.vue +++ b/src/views/dashboard.vue @@ -39,8 +39,10 @@ if (system.url.includes('http')) { const token = userStore.token const params = `?token=${token}` - console.log(token, 'token') - window.location.href = system.url + params + console.log(system.url + params) + + window.open(system.url + params) + // window.open(`http://127.0.0.1:9526${params}`) } else { localStorage.setItem('currentSys', JSON.stringify({ name: system.name, code: system.code })) diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/src/assets/icons/icon-add-circle.svg b/src/assets/icons/icon-add-circle.svg new file mode 100644 index 0000000..13f4b3b --- /dev/null +++ b/src/assets/icons/icon-add-circle.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-reduce-circle.svg b/src/assets/icons/icon-reduce-circle.svg new file mode 100644 index 0000000..eed0947 --- /dev/null +++ b/src/assets/icons/icon-reduce-circle.svg @@ -0,0 +1 @@ + diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 841e0cb..4f875ef 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -46,7 +46,7 @@ return { show: true, icon: 'circle', - orient: 'vertile', // 图例方向 + orient: 'horizontal', // 图例方向 align: 'left', // 图例标记和文本的对齐,默认自动 top: 5, right: 20, diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue index f71ee79..df43894 100644 --- a/src/views/dashboard.vue +++ b/src/views/dashboard.vue @@ -39,8 +39,10 @@ if (system.url.includes('http')) { const token = userStore.token const params = `?token=${token}` - console.log(token, 'token') - window.location.href = system.url + params + console.log(system.url + params) + + window.open(system.url + params) + // window.open(`http://127.0.0.1:9526${params}`) } else { localStorage.setItem('currentSys', JSON.stringify({ name: system.name, code: system.code })) diff --git a/src/views/tested/dashboard/components/editScheduleDialog.vue b/src/views/tested/dashboard/components/editScheduleDialog.vue new file mode 100644 index 0000000..d58880d --- /dev/null +++ b/src/views/tested/dashboard/components/editScheduleDialog.vue @@ -0,0 +1,228 @@ + + + + + + + diff --git a/public/config/config.json b/public/config/config.json index 313fcf7..3bd0a89 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://192.168.8.101:5909" + "baseUrl": "http://111.198.10.15:21611" } diff --git a/src/api/eqpt/dashboard/calendar.ts b/src/api/eqpt/dashboard/calendar.ts new file mode 100644 index 0000000..c91b411 --- /dev/null +++ b/src/api/eqpt/dashboard/calendar.ts @@ -0,0 +1,39 @@ +/** + * 日历接口 + */ +import request from '@/api/index' + +// 新增日程 +export function addSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/add', + method: 'post', + data, + }) +} +// 编辑日程 +export function editSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/update', + method: 'post', + data, + }) +} +// 日历列表 +export function getCalendarList(data: { calendarMonth: string; userId: string }) { + return request({ + // url: '/workbench/calendarSchedule/list', + method: 'post', + data, + }) +} + +// 删除日程 +export function delSchedule(data: object) { + return request({ + // url: '/workbench/calendarSchedule/delete', + method: 'post', + data, + }) +} + diff --git a/src/assets/icons/icon-add-circle.svg b/src/assets/icons/icon-add-circle.svg new file mode 100644 index 0000000..13f4b3b --- /dev/null +++ b/src/assets/icons/icon-add-circle.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/icon-reduce-circle.svg b/src/assets/icons/icon-reduce-circle.svg new file mode 100644 index 0000000..eed0947 --- /dev/null +++ b/src/assets/icons/icon-reduce-circle.svg @@ -0,0 +1 @@ + diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 841e0cb..4f875ef 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -46,7 +46,7 @@ return { show: true, icon: 'circle', - orient: 'vertile', // 图例方向 + orient: 'horizontal', // 图例方向 align: 'left', // 图例标记和文本的对齐,默认自动 top: 5, right: 20, diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue index f71ee79..df43894 100644 --- a/src/views/dashboard.vue +++ b/src/views/dashboard.vue @@ -39,8 +39,10 @@ if (system.url.includes('http')) { const token = userStore.token const params = `?token=${token}` - console.log(token, 'token') - window.location.href = system.url + params + console.log(system.url + params) + + window.open(system.url + params) + // window.open(`http://127.0.0.1:9526${params}`) } else { localStorage.setItem('currentSys', JSON.stringify({ name: system.name, code: system.code })) diff --git a/src/views/tested/dashboard/components/editScheduleDialog.vue b/src/views/tested/dashboard/components/editScheduleDialog.vue new file mode 100644 index 0000000..d58880d --- /dev/null +++ b/src/views/tested/dashboard/components/editScheduleDialog.vue @@ -0,0 +1,228 @@ + + + + + + + diff --git a/src/views/tested/dashboard/index.vue b/src/views/tested/dashboard/index.vue index 10362ba..f0351a8 100644 --- a/src/views/tested/dashboard/index.vue +++ b/src/views/tested/dashboard/index.vue @@ -1,30 +1,250 @@ + diff --git a/src/views/tested/dashboard/index.vue b/src/views/tested/dashboard/index.vue index 10362ba..f0351a8 100644 --- a/src/views/tested/dashboard/index.vue +++ b/src/views/tested/dashboard/index.vue @@ -1,30 +1,250 @@