|
@@ -19,12 +19,10 @@
|
|
|
<template #tab1>
|
|
<template #tab1>
|
|
|
<span class="normal-title">基本信息</span>
|
|
<span class="normal-title">基本信息</span>
|
|
|
<defaultInfo :data="baseInfo"></defaultInfo>
|
|
<defaultInfo :data="baseInfo"></defaultInfo>
|
|
|
- <block v-if="viewRange.length > 0">
|
|
|
|
|
- <span class="normal-title">浏览范围</span>
|
|
|
|
|
- <defaultInfo :data="viewRange"></defaultInfo>
|
|
|
|
|
- </block>
|
|
|
|
|
<span class="normal-title">系统信息</span>
|
|
<span class="normal-title">系统信息</span>
|
|
|
<defaultInfo :data="systemInfo"></defaultInfo>
|
|
<defaultInfo :data="systemInfo"></defaultInfo>
|
|
|
|
|
+ <div style="height: 20px;"></div>
|
|
|
|
|
+ <view-range :satNoticeId="mainData.sat_noticeid" />
|
|
|
</template>
|
|
</template>
|
|
|
<template #tab2>
|
|
<template #tab2>
|
|
|
<fileTable ref="file" :disabled="true" :data="mainData.attinfos" :isHanle="false"></fileTable>
|
|
<fileTable ref="file" :disabled="true" :data="mainData.attinfos" :isHanle="false"></fileTable>
|
|
@@ -41,6 +39,7 @@ import defaultInfo from '@/template/defaultInfo/index.vue'
|
|
|
import customBtn from '@/components/customHandleBtn/index.vue'
|
|
import customBtn from '@/components/customHandleBtn/index.vue'
|
|
|
import editNotive from '../modules/editNotice.vue'
|
|
import editNotive from '../modules/editNotice.vue'
|
|
|
import fileTable from '../modules/fileTable.vue'
|
|
import fileTable from '../modules/fileTable.vue'
|
|
|
|
|
+import viewRange from './viewRange.vue'
|
|
|
|
|
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
import { ref, defineProps, createVNode, defineComponent, onMounted, provide } from 'vue'
|
|
import { ref, defineProps, createVNode, defineComponent, onMounted, provide } from 'vue'
|
|
@@ -50,7 +49,6 @@ const router = useRouter()
|
|
|
const mainAreaData = ref([])
|
|
const mainAreaData = ref([])
|
|
|
const mainData = ref({})
|
|
const mainData = ref({})
|
|
|
let baseInfo = ref([])
|
|
let baseInfo = ref([])
|
|
|
-let viewRange = ref([])
|
|
|
|
|
let systemInfo = ref([])
|
|
let systemInfo = ref([])
|
|
|
let classList = ref([])
|
|
let classList = ref([])
|
|
|
provide('classList', () => classList.value)
|
|
provide('classList', () => classList.value)
|
|
@@ -79,53 +77,8 @@ const mianData = async () => {
|
|
|
{ label: '发布人', value: mainData.value.checkby },
|
|
{ label: '发布人', value: mainData.value.checkby },
|
|
|
{ label: '发布时间', value: mainData.value.checkdate },
|
|
{ label: '发布时间', value: mainData.value.checkdate },
|
|
|
]
|
|
]
|
|
|
- getViewRange()
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getViewRange() {
|
|
|
|
|
- let params = [
|
|
|
|
|
- { type: "角色", "classname": "sysmanage.develop.optiontype.optiontype", "method": "optiontypeselect", "content": { "pageNumber": 1, "pageSize": 1000, "typename": "role", "parameter": {} } },
|
|
|
|
|
- { type: "部门", "id": 20240402101602, "content": { "ownertable": "sat_notice", "pageNumber": 1, "pageSize": 20, "where": {} } },
|
|
|
|
|
- { type: "人员", "id": 20240402101702, "content": { "ownertable": "sat_notice", "pageNumber": 1, "where": {} } },
|
|
|
|
|
- { type: "区域", "id": 20240402101802, "content": { "ownertable": "sat_notice", "pageNumber": 1, "where": {} } },
|
|
|
|
|
- { type: "经销商", "id": 20240402101902, "content": { "ownertable": "sat_notice", "pageNumber": 1, "where": {} } }
|
|
|
|
|
- ];
|
|
|
|
|
- Promise.all(params.map(item => {
|
|
|
|
|
- item.content.ownerid = router.currentRoute.value.query.id;
|
|
|
|
|
- item.content.pageSize = 9999
|
|
|
|
|
- return Api.requested(item)
|
|
|
|
|
- })).then(results => {
|
|
|
|
|
- results.forEach((res, index) => {
|
|
|
|
|
- if (res.code == 1) {
|
|
|
|
|
- let value = ''
|
|
|
|
|
- switch (params[index].type) {
|
|
|
|
|
- case '角色':
|
|
|
|
|
- let roleids = mainData.value.role;
|
|
|
|
|
- value = res.data.filter(item => roleids.includes(item.roleid)).map(item => item.rolename).join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '部门':
|
|
|
|
|
- value = res.data.map(item => item.depname).join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '人员':
|
|
|
|
|
- value = res.data.map(item => item.name).join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '区域':
|
|
|
|
|
- value = res.data.map(item => item.areaname).join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '经销商':
|
|
|
|
|
- value = res.data.map(item => item.enterprisename).join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- viewRange.value.push({ label: params[index].type, value: value || "--" })
|
|
|
|
|
- } else {
|
|
|
|
|
- typeMap[params[index].type] = '获取失败'
|
|
|
|
|
- viewRange.value.push({ label: params[index].type, value: '获取失败' })
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
const getClassList = async () => {
|
|
const getClassList = async () => {
|
|
|
let res = await Api.requested({
|
|
let res = await Api.requested({
|
|
|
'id': 20221101094603,
|
|
'id': 20221101094603,
|