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