浏览代码

修改需求样式

zs 1 年之前
父节点
当前提交
277e804c02

+ 9 - 5
src/views/release/index.vue

@@ -17,6 +17,9 @@
 const $checkRes = inject('$checkRes')
 import { cloneDeep, get } from 'lodash-es'
 const route = useRoute()
+import { UserStore } from '@/store/user'
+const userStore = UserStore()
+const user = computed(() => userStore.user)
 // 接口
 import { AchievementStore } from '@/store/api/platform/achievement'
 import { DemandStore } from '@/store/api/platform/demand'
@@ -57,7 +60,6 @@ onMounted(async () => {
   await searchField()
   loading.value = false
 })
-
 const searchField = async () => {
   routeType.value = route.query.type
   if (routeType.value == 'achievement') {
@@ -94,9 +96,8 @@ const searchField = async () => {
 const search = async (query = { skip: 0, limit }) => {
   const info = {
     skip: query.skip,
-    limit: query.limit,
-    is_use: '0',
-    status: '1'
+    limit: query.limit
+    // user: user.value._id
   }
   let res
   if (routeType.value == 'achievement') res = await achieveStore.query(info)
@@ -139,10 +140,12 @@ const getDict = (data, model) => {
 // 地区显示
 const getArea = (data) => {
   if (data) return data.join(',')
+  else return '暂无'
 }
 // 时间
 const getTime = (data) => {
   if (data) return `${data[0]} - ${data[1]}`
+  else return '暂无'
 }
 const toCommon = (data) => {
   type.value = data
@@ -168,6 +171,7 @@ watch(
   route,
   (newVal) => {
     if (newVal) {
+      list.value = []
       searchField()
     }
   },
@@ -196,7 +200,7 @@ provide('changePage', changePage)
 <style scoped lang="scss">
 .main {
   background-color: #f1f2f5;
-  padding: 20px;
+  padding: 10px;
   min-height: 77vh;
 }
 </style>

+ 1 - 1
src/views/release/parts/achievement.vue

@@ -75,7 +75,7 @@ const rules = reactive({
 <style scoped lang="scss">
 .one {
   .one_1 {
-    margin: 10px;
+    margin: 0 10px 10px 10px;
     text-align: right;
   }
 }

+ 1 - 1
src/views/release/parts/demand.vue

@@ -75,7 +75,7 @@ const rules = reactive({
 <style scoped lang="scss">
 .one {
   .one_1 {
-    margin: 10px;
+    margin: 0 10px 10px 10px;
     text-align: right;
   }
 }

+ 1 - 1
src/views/release/parts/match.vue

@@ -75,7 +75,7 @@ const rules = reactive({
 <style scoped lang="scss">
 .one {
   .one_1 {
-    margin: 10px;
+    margin: 0 10px 10px 10px;
     text-align: right;
   }
 }

+ 1 - 1
src/views/release/parts/parts/list.vue

@@ -81,6 +81,7 @@ const sizeChange = inject('sizeChange')
 <style scoped lang="scss">
 .main {
   .one {
+    min-height: 55vh;
     .list {
       background: #fff;
       box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
@@ -153,7 +154,6 @@ const sizeChange = inject('sizeChange')
   .two {
     display: flex;
     flex-direction: row-reverse;
-    padding: 20px;
   }
 }
 </style>

+ 1 - 1
src/views/release/parts/project.vue

@@ -75,7 +75,7 @@ const rules = reactive({
 <style scoped lang="scss">
 .one {
   .one_1 {
-    margin: 10px;
+    margin: 0 10px 10px 10px;
     text-align: right;
   }
 }