首页/cd
parent
7b8c17de6f
commit
a3d6077599
|
|
@ -33,6 +33,7 @@ declare module 'vue' {
|
|||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
||||
ElProgress: typeof import('element-plus/es')['ElProgress']
|
||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
|
|
|
|||
|
|
@ -1446,3 +1446,18 @@ export async function fetchPartmaxBusSeedsDetailList(params?: any) {
|
|||
export async function fetchPartmaxBusSeedsRateBySupplier(params?: any) {
|
||||
return http.get(`/cdcontent/partmaxBusSeedsRateBySupplier`, { params })
|
||||
}
|
||||
|
||||
// smm首页数据
|
||||
export async function fetchHomeSmmExInfo(params?: any) {
|
||||
return http.get(`/marketPre/homeSmmExInfo`, { params })
|
||||
}
|
||||
|
||||
// smm/lme 分类数据
|
||||
export async function fetchExchangeInfo(params?: any) {
|
||||
return http.get(`/marketPre/getExchangeInfo`, { params })
|
||||
}
|
||||
|
||||
// 获取分时数据
|
||||
export async function fetchTimeFuturecenter(params?: any) {
|
||||
return http.get(`/marketPre/getTimeFuturecenter/cu0013`, { params })
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
import HomeHead from '@/views/home/components/HomeHead.vue'
|
||||
// import HomeHeadSearch from '@/views/home/components/HomeHeadSearch.vue'
|
||||
import { useDate } from '@/views/home/hooks/useDate'
|
||||
// import { NTimeline, NTimelineItem } from 'naive-ui'
|
||||
import { useMessage } from 'naive-ui'
|
||||
import { useMessage }from 'naive-ui'
|
||||
|
||||
import { cateFileList } from '@/api/daikin/base'
|
||||
|
||||
const { day, week } = useDate()
|
||||
|
|
@ -66,8 +66,8 @@ const goFile = (row: any) => {
|
|||
const { isSelect, filePath } = row
|
||||
if (!isSelect || isSelect === 2) {
|
||||
message.info('没有访问权限!')
|
||||
return
|
||||
}
|
||||
return
|
||||
}·
|
||||
if (!filePath) {
|
||||
message.info('暂无文件')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,14 +6,21 @@ import { NSelect } from 'naive-ui'
|
|||
import News from './components/New.vue'
|
||||
import { homePageMarket, homePageRate, report, getHomeList, amountList } from '@/api/daikin/base'
|
||||
import { useUserStore } from '@/stores/modules/user'
|
||||
import { useMessage } from 'naive-ui'
|
||||
|
||||
const store = useUserStore()
|
||||
const message = useMessage()
|
||||
|
||||
const isUpPwds = ref(false)
|
||||
const userCode = ref(false)
|
||||
const useCdView = ref(false)
|
||||
watchEffect(() => {
|
||||
userCode.value = ['admin', 'cd_dandang', 'tech_service'].some((item) =>
|
||||
store.user.roleCode?.includes(item)
|
||||
)
|
||||
useCdView.value = ['admin', 'cd_view', 'cd_dandang', 'tech_service'].some((item) =>
|
||||
store.user.roleCode?.includes(item)
|
||||
)
|
||||
isUpPwds.value = store.user.isUpPwd === 2 ? true : false
|
||||
})
|
||||
const activeCard5NavKey = ref('DIS')
|
||||
|
|
@ -206,8 +213,8 @@ const displayDiffValue = (diffValue: number) => {
|
|||
async function setModule(codes: any, names: any) {
|
||||
const moduleCode = codes
|
||||
console.log(codes, names)
|
||||
if (names == 'CD' && !userCode.value) {
|
||||
return
|
||||
if (names == 'CD' && !useCdView.value) {
|
||||
return message.info('没有访问权限!')
|
||||
}
|
||||
push({ name: names })
|
||||
const { code } = await report({ moduleCode })
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ use([
|
|||
LineChart
|
||||
])
|
||||
|
||||
const userCode = ref(false)
|
||||
const store = useUserStore()
|
||||
const token = useStorage('token', null, sessionStorage)
|
||||
const header = { token: token.value }
|
||||
|
|
@ -69,6 +70,12 @@ const partList = [
|
|||
{ label: 'DISH', value: 'DISH' }
|
||||
]
|
||||
|
||||
watchEffect(() => {
|
||||
userCode.value = ['admin', 'cd_dandang', 'tech_service'].some((item) =>
|
||||
store.user.roleCode?.includes(item)
|
||||
)
|
||||
})
|
||||
|
||||
const chartClick = (it: any) => {
|
||||
console.log('🚀 ~ file: CD.vue:39 ~ it:', it)
|
||||
return
|
||||
|
|
@ -317,7 +324,7 @@ const beforeUpload = (file: any) => {
|
|||
/>
|
||||
<!-- b-2px rounded-6px b-solid b-#fff px-10px py-6px -->
|
||||
<div
|
||||
v-if="!showMax"
|
||||
v-if="!showMax && userCode"
|
||||
class="btn text-white absolute top-100px right-50px text-20px cursor-pointer animate__fadeIn animate__animated"
|
||||
>
|
||||
<el-upload
|
||||
|
|
@ -437,7 +444,7 @@ const beforeUpload = (file: any) => {
|
|||
/>
|
||||
</div>
|
||||
<div class="mt-50px w-full h-300px relative">
|
||||
<VChart @click="chartClick" key="yyyxx1" :option="option" autoresize></VChart>
|
||||
<VChart @click="" key="yyyxx1" :option="option" autoresize></VChart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-bg w-full h-full relative animate__fadeIn animate__animated">
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 621 KiB |
|
|
@ -13,6 +13,7 @@ import PurgeIcons from 'vite-plugin-purge-icons'
|
|||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: '/',
|
||||
server: {
|
||||
proxy: {
|
||||
'/test-api': {
|
||||
|
|
|
|||
Loading…
Reference in New Issue