Merge remote-tracking branch 'origin/master'
3 files modified
3 files added
| | |
| | | </template> |
| | | <script setup> |
| | | import { Search, RefreshRight, Plus, Delete } from '@element-plus/icons-vue' |
| | | import { onMounted, ref, nextTick, provide } from 'vue' |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import { getDictionaryByCode } from '@/api/system/dictbiz' |
| | | import { getDictLabel } from '@ztzf/utils' |
| | |
| | | import { useStore } from 'vuex' |
| | | const store = useStore() |
| | | const userDepartment = store.state.user.userInfo?.dept_id |
| | | const permission = computed(() => store.state.user.permission); |
| | | // 初始化查询参数 |
| | | const initSearchParams = () => ({ |
| | | caseName: '', // 案例名称 |
| | | innovationStatus: '', // 应用创新状态 |
| | | current: 1, // 当前页 |
| | | size: 10, // 每页大小 |
| | | isQueryAll:''//是否查询所有 |
| | | }) |
| | | const searchParams = ref(initSearchParams()) // 查询参数 |
| | | const total = ref(0) // 总条数 |
| | |
| | | async function getList() { |
| | | loading.value = true |
| | | try { |
| | | const res = await gdApplicationInnovationPageApi(searchParams.value) |
| | | // 根据权限设置查询参数 |
| | | const params = { ...searchParams.value } |
| | | if (permission.value.yycx_shtg) { |
| | | params.innovationStatus = '1' |
| | | params.isQueryAll = true |
| | | } else { |
| | | params.isQueryAll = false |
| | | delete params.innovationStatus |
| | | } |
| | | const res = await gdApplicationInnovationPageApi(params) |
| | | res?.data?.data?.records.forEach(item => { |
| | | item.isTheSameDepartment = String(item.createDept) === String(userDepartment) |
| | | }) |
| | |
| | | const store = useStore() |
| | | const userDepartment = store.state.user.userInfo?.dept_id |
| | | const permission = computed(() => store.state.user.permission); |
| | | console.log('ppppppp', permission.value.sjyy_shtg) |
| | | // 初始化查询参数 |
| | | const initSearchParams = () => ({ |
| | | title: '', // 标题 |
| | |
| | | |
| | | <script setup> |
| | | import { onMounted, reactive, ref } from 'vue' |
| | | import lbPng from '@/static/images/lbt.png' |
| | | import lbPng1 from '@/static/images/lbt1.png' |
| | | import lbPng2 from '@/static/images/lbt2.png' |
| | | import lbPng3 from '@/static/images/lbt3.png' |
| | | import kyxxPng from '@/static/images/kyxx.png' |
| | | import fxsqPng from '@/static/images/fxsq.png' |
| | | import flfgPng from '@/static/images/flfg.png' |
| | |
| | | import { useAppStore } from "@/store"; |
| | | const appStore = useAppStore() |
| | | |
| | | const lbList = reactive([]); |
| | | // lbPng 轮播图 5次 |
| | | for (let i = 0; i < 5; i++) { |
| | | lbList.push({ |
| | | image: lbPng, |
| | | const lbList = reactive([ |
| | | { |
| | | image: lbPng1, |
| | | title: '法律政策', |
| | | link: '/pages/legalPolicy/index', |
| | | }) |
| | | } |
| | | }, |
| | | { |
| | | image: lbPng2, |
| | | title: '法律政策', |
| | | link: '/pages/legalPolicy/index', |
| | | }, |
| | | { |
| | | image: lbPng3, |
| | | title: '法律政策', |
| | | link: '/pages/legalPolicy/index', |
| | | }, |
| | | ]); |
| | | // lbPng 轮播图 5次 |
| | | // for (let i = 0; i < 5; i++) { |
| | | // lbList.push({ |
| | | // image: lbPng, |
| | | // title: '法律政策', |
| | | // link: '/pages/legalPolicy/index', |
| | | // }) |
| | | // } |
| | | |
| | | // const change = (index) => { |
| | | // console.log('轮播图切换到第', index + 1, '张'); |