lrf há 2 semanas atrás
pai
commit
eabe852470

+ 2 - 2
src/api/api.ts

@@ -97,8 +97,8 @@ const jtxw = {
  * 企业生产经营情况:qyscjyqk
  * 企业与相对人的争议解决方式:qyyxdrdzyjjfs
  */
-const xxgk = async (type: string) => {
-  const res = await axios.$get(`/xxgk/${type}`)
+const xxgk = async (type: string, query = {}) => {
+  const res = await axios.$get(`/xxgk/${type}`, query)
   return res;
 }
 const xxgkDetail = async (content_id: string) => {

+ 2 - 1
src/views/win/introduceParts/combriefIndex.vue

@@ -35,7 +35,7 @@
 import { ref, onMounted } from 'vue'
 import dividerIndex from '../../../components/windows/dividerIndex.vue'
 import { jtjs } from '@/api/api'
-import { get } from 'lodash-es'
+import { get, head } from 'lodash-es'
 // eslint-disable-next-line @typescript-eslint/no-explicit-any
 const list = ref<any[]>([])
 const active = ref('1')
@@ -81,6 +81,7 @@ const init = async () => {
   const result = await jtjs.gsjs()
   if (result.errcode == 0) {
     list.value = get(result, 'data', [])
+    active.value = get(head(get(result, 'data', [])), 'id', '1')
   }
 }
 const toOpen = () => {

+ 4 - 4
src/views/win/messParts/detail/list.vue

@@ -55,18 +55,18 @@ const list = ref<any[]>([
     date: '2024-12-24',
   },
 ])
-const total = ref(40)
+const total = ref(0)
 
 import { xxgk } from '@/api/api'
 /* 查询 */
 const toSearch = async ({ skip = 0, limit = 10, ...info } = {}) => {
   const type = props.code as string
-  const result = await xxgk(type)
+  const result = await xxgk(type, { skip, limit })
   if (result.errcode == 0) {
     const data = get(result, 'data.data', [])
-    const total = get(result, 'data.total', 0)
+    const t = get(result, 'data.total', 0)
     list.value = data
-    total.value = total
+    total.value = t
   }
 }
 import { useRoute } from 'vue-router'

+ 1 - 0
src/views/win/watersupplyParts/listIndex.vue

@@ -132,6 +132,7 @@ const dealNowTag = (id: string) => {
   if (!tab) return
   const type = get(tab, 'type')
   if (!type) return
+  tabActive.value = get(tab, 'id')
   if (type == 'toLogin') {
     // TODO:跳转至登录
     ElMessageBox.alert('请登录', '提示', {