接口修改projectwork
This commit is contained in:
parent
0bcd257a00
commit
025c80a1f4
@ -602,22 +602,38 @@ const getTagsProjectList = () =>{
|
|||||||
* @param token
|
* @param token
|
||||||
* 获取项目的所有子系统
|
* 获取项目的所有子系统
|
||||||
*/
|
*/
|
||||||
const projectWorkGet = (data,token) => {
|
// const projectWorkGet = (data,token) => {
|
||||||
|
// return axios({
|
||||||
|
// url:api + "/project/work/get",
|
||||||
|
// method:"get",
|
||||||
|
// data:data,
|
||||||
|
// headers:{
|
||||||
|
// 'Authorization':'Bearer '+token,
|
||||||
|
// 'content-type': 'application/json;charset=utf-8',
|
||||||
|
// 'Timestamp': getCurrentTimestamp()
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
const projectWorkGet = (data,token) =>{
|
||||||
|
const tags = data.tags
|
||||||
|
const isFinish = data.isFinish
|
||||||
|
const encodedTags = tags.map(tag => encodeURIComponent(tag));
|
||||||
|
const encodedIsFinish = isFinish.map(is => encodeURIComponent(is))
|
||||||
|
const queryTags = `tags=${encodedTags.join('&tags=')}`;
|
||||||
|
const queryIsFinish = `isFinish=${encodedIsFinish.join('&isFinish=')}`;
|
||||||
return axios({
|
return axios({
|
||||||
url:api + "/project/work/get",
|
url:`${api}/project/work/get?${queryTags}&${queryIsFinish}`,
|
||||||
method:"get",
|
method: "get",
|
||||||
data:data,
|
|
||||||
headers:{
|
headers:{
|
||||||
'Authorization':'Bearer '+token,
|
|
||||||
'content-type': 'application/json;charset=utf-8',
|
'content-type': 'application/json;charset=utf-8',
|
||||||
|
'Authorization':'Bearer '+token,
|
||||||
'Timestamp': getCurrentTimestamp()
|
'Timestamp': getCurrentTimestamp()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
login,
|
login,
|
||||||
|
@ -28,7 +28,7 @@ const project = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
onMounted(()=>{
|
onMounted(()=>{
|
||||||
|
console.log('id的值',id)
|
||||||
request.projectGetCustom(data).then((res)=>{
|
request.projectGetCustom(data).then((res)=>{
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
// Project.data= res.data.data.data
|
// Project.data= res.data.data.data
|
||||||
@ -38,7 +38,7 @@ onMounted(()=>{
|
|||||||
// console.log("projects.value:",projects.value)
|
// console.log("projects.value:",projects.value)
|
||||||
// console.log("projects.value[0].id:",projects.value[0].id)
|
// console.log("projects.value[0].id:",projects.value[0].id)
|
||||||
project.data = projects.value[0];
|
project.data = projects.value[0];
|
||||||
console.log("project.data:",project.data)
|
console.log("project.data:00000",project.data)
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-spin :spinning="false" tip="Loading..." >
|
<a-spin :spinning="false" tip="Loading..." >
|
||||||
<div class="relative h-full bg-gray-50 flex w-full overflow-x-hidden">
|
<div class="relative bg-gray-50 flex w-full overflow-x-hidden">
|
||||||
<div class="mt-0">
|
<div class="mt-0">
|
||||||
<div class="flex flex-row justify-between">
|
<div class="flex flex-row justify-between">
|
||||||
<div class="ml-3">
|
<div class="ml-3">
|
||||||
@ -32,9 +32,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="flex flex-wrap justify-between mt-5 w-full">
|
<div class="flex flex-wrap justify-start mt-5 w-full">
|
||||||
<template v-for="(project, index) in projects" :key="index">
|
<template v-for="(project, index) in projects" :key="index">
|
||||||
<a-card class="transition-transform transform-gpu hover:scale-105 relative w-[24vw] h-60 mb-4 rounded-none bg-cover bg-center bg-[url('@/assert/images/img12.jpg')]" @mouseleave="showButton[index]=false" @mouseover="showButton[index]=true">
|
<a-card class=" mr-2.5 transition-transform transform-gpu hover:scale-105 relative w-[24vw] h-60 mb-4 rounded-none bg-cover bg-center bg-[url('@/assert/images/img12.jpg')]" @mouseleave="showButton[index]=false" @mouseover="showButton[index]=true">
|
||||||
<div class="flex absolute left-0 bottom-0 min-h-[30%] w-full bg-white">
|
<div class="flex absolute left-0 bottom-0 min-h-[30%] w-full bg-white">
|
||||||
<p class="ml-6 mt-4 text-lg font-bold tracking-tight text-gray-900">{{ project.name }}</p>
|
<p class="ml-6 mt-4 text-lg font-bold tracking-tight text-gray-900">{{ project.name }}</p>
|
||||||
<div class="ml-auto mr-10">
|
<div class="ml-auto mr-10">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="relative h-full bg-gray-50 flex flex-col ">
|
<div class="relative bg-gray-50 flex flex-col ">
|
||||||
<a-breadcrumb class="ml-[3vw]">
|
<a-breadcrumb class="ml-[3vw]">
|
||||||
<a-breadcrumb-item>我的项目</a-breadcrumb-item>
|
<a-breadcrumb-item>我的项目</a-breadcrumb-item>
|
||||||
</a-breadcrumb>
|
</a-breadcrumb>
|
||||||
@ -27,24 +27,22 @@
|
|||||||
<a-checkbox-group v-model:value="data.isFinish" :options="options" class="mr-3" />
|
<a-checkbox-group v-model:value="data.isFinish" :options="options" class="mr-3" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex flex-wrap justify-start mt-5 w-full">
|
||||||
<div class="flex space-x-9 ml-16 mt-12">
|
<template v-for="(project, index) in projects" :key="index">
|
||||||
<template v-for="(project, index) in projects" :key="index">
|
<a-card class=" mr-2.5 transition-transform transform-gpu hover:scale-105 relative w-[24vw] h-60 mb-4 rounded-none bg-cover bg-center bg-[url('@/assert/images/img26.jpg')]" @mouseleave="showButton[index]=false" @mouseover="showButton[index]=true">
|
||||||
<a-card class="transition-transform transform-gpu hover:scale-105 relative w-[24vw] h-60 mb-4 rounded-none bg-cover bg-center bg-[url('@/assert/images/img26.jpg')]" @mouseleave="showButton[index]=false" @mouseover="showButton[index]=true">
|
<div class="flex absolute left-0 bottom-0 min-h-[30%] w-full bg-white">
|
||||||
<div class="flex absolute left-0 bottom-0 min-h-[30%] w-full bg-white">
|
<p class="ml-6 mt-4 text-lg font-bold tracking-tight text-gray-900">{{ project.name }}</p>
|
||||||
<p class="ml-6 mt-4 text-lg font-bold tracking-tight text-gray-900">{{ project.name }}</p>
|
<div class="ml-auto mr-10">
|
||||||
<div class="ml-auto mr-10">
|
<button v-if="showButton[index]" class="mt-8 w-6 h-6 flex items-center justify-center bg-green-400 text-black rounded-full transition duration-300 ease-in-out transform hover:scale-105" @click="MainMessage(project)">
|
||||||
<button v-if="showButton[index]" class="mt-8 w-6 h-6 flex items-center justify-center bg-green-400 text-black rounded-full transition duration-300 ease-in-out transform hover:scale-105" @click="MainMessage(project)">
|
<svg aria-hidden="true" class="rtl:rotate-180 w-4 h-4 text-white" fill="none" viewBox="0 0 14 10" xmlns="http://www.w3.org/2000/svg">
|
||||||
<svg aria-hidden="true" class="rtl:rotate-180 w-4 h-4 text-white" fill="none" viewBox="0 0 14 10" xmlns="http://www.w3.org/2000/svg">
|
<path d="M1 5h12m0 0L9 1m4 4L9 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
||||||
<path d="M1 5h12m0 0L9 1m4 4L9 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
|
</svg>
|
||||||
</svg>
|
</button>
|
||||||
</button>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a-card>
|
||||||
</a-card>
|
</template>
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user