diff --git a/src/api/scale/SysScaleQuestion/types.ts b/src/api/scale/SysScaleQuestion/types.ts index c54e5ed..244b1a1 100644 --- a/src/api/scale/SysScaleQuestion/types.ts +++ b/src/api/scale/SysScaleQuestion/types.ts @@ -72,7 +72,7 @@ export interface SysScaleQuestionForm extends BaseEntity { */ factorName?: string; - scaleAnswerList: ScaleAnswer[], + scaleAnswerList: any[], } export interface ScaleAnswer { diff --git a/src/router/index.ts b/src/router/index.ts index 264f720..d671d07 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -105,7 +105,7 @@ export const dynamicRoutes: RouteOption[] = [ permissions: ['system:user:edit'], children: [ { - path: 'role/:userId(\\d+)', + path: 'role/:type/:userId(\\d+)', component: () => import('@/views/system/user/authRole.vue'), name: 'AuthRole', meta: { title: '分配角色', activeMenu: '/system/user', icon: '' } diff --git a/src/views/activity/component/statistics/index.vue b/src/views/activity/component/statistics/index.vue index 7d0afae..fc81657 100644 --- a/src/views/activity/component/statistics/index.vue +++ b/src/views/activity/component/statistics/index.vue @@ -136,7 +136,7 @@ async function getScalePublishList() { } //完成情况 -const completePieOption = ref(initPieOption('完成情况', [])) +const completePieOption = ref(initPieOption('', [])) const completeBarOption = ref(initBarOption([], [])) const completeTable = ref([]) async function getCompleteData() { @@ -190,7 +190,7 @@ async function getCompleteData() { } //风险情况 -const warnPieOption = ref(initPieOption('风险情况', [])) +const warnPieOption = ref(initPieOption('', [])) const warBarOption = ref(initBarOption([], [])) const warnTable = ref([]) async function getwarnData() { @@ -294,7 +294,7 @@ function initPieOption(name = '', data = []) { text: name, subtext: '', x: 'center', - y: '10', + y: '40', textStyle: { color: '#95989D', fontSize: 20, @@ -306,12 +306,11 @@ function initPieOption(name = '', data = []) { lineHeight: 10, }, }, - tooltip: { + tooltip: { trigger: 'item' }, legend: { - orient: 'vertical', - left: 'left' + orient: 'horizontal', }, series: [ { diff --git a/src/views/activity/index.vue b/src/views/activity/index.vue index 75bb61b..b9f829a 100644 --- a/src/views/activity/index.vue +++ b/src/views/activity/index.vue @@ -1,26 +1,51 @@ - - + diff --git a/src/views/archive/information/index.vue b/src/views/archive/information/index.vue index 57d04a1..b6ee4fe 100644 --- a/src/views/archive/information/index.vue +++ b/src/views/archive/information/index.vue @@ -69,7 +69,8 @@ v-model:limit="queryParams.pageSize" @pagination="getList" /> - + - + @@ -177,7 +178,7 @@ @@ -189,7 +190,7 @@ - + {{ des.score }} @@ -200,7 +201,7 @@ - + {{ currentInterveneResult.userName }} {{ handleSituation(currentInterveneResult.situation) @@ -210,10 +211,16 @@ {{ currentInterveneResult.note }} {{ currentInterveneResult.diagnose }} - 下载附件 + + 下载附件 - 下载附件 + + 下载附件 @@ -261,6 +268,11 @@ function handleSituation(situation: any) { } } +const checkImg = (annex: any) => { + return /\.(jpg|jpeg|png|gif)$/.test(annex) +} + + const initFormData: any = { } diff --git a/src/views/archive/interveneRecord/index.vue b/src/views/archive/interveneRecord/index.vue index 6ce5671..1413824 100644 --- a/src/views/archive/interveneRecord/index.vue +++ b/src/views/archive/interveneRecord/index.vue @@ -84,7 +84,7 @@ v-model:limit="queryParams.pageSize" @pagination="getList" /> - + @@ -176,7 +176,7 @@ - + {{ item.name }} @@ -187,7 +187,8 @@ - + @@ -253,8 +254,12 @@ --> - + + + + @@ -520,6 +525,7 @@ const handlePublish = async (row?: any) => { publishDialog.visible = true publishForm.value.userIds = [row.userId] publishForm.value.publishType = 0 + publishForm.value.nickName = row.nickName getScaleOptions() } diff --git a/src/views/archive/warnRecord/index.vue b/src/views/archive/warnRecord/index.vue index 7e1d393..c2e0826 100644 --- a/src/views/archive/warnRecord/index.vue +++ b/src/views/archive/warnRecord/index.vue @@ -61,7 +61,8 @@ - + @@ -76,7 +77,7 @@ - + diff --git a/src/views/demo/demo/index.vue b/src/views/demo/demo/index.vue index a7f3bd7..762c897 100644 --- a/src/views/demo/demo/index.vue +++ b/src/views/demo/demo/index.vue @@ -1,23 +1,29 @@