diff --git a/src/api/method.js b/src/api/method.js index 5c4742d3..f304aa34 100644 --- a/src/api/method.js +++ b/src/api/method.js @@ -242,6 +242,10 @@ const setCookie = (name, value, perpetual) => { } //获取cookie数据 //先写一个方法 +export function getCookieForName(name) { + return document.cookie?.split(";").find(e => e.includes(name))?.replace(`${name}=`, '') || '' +} + function getCookie(name) { //1.获取cookie字符串 var cookies = document.cookie; diff --git a/src/api/request.js b/src/api/request.js index e682b2e1..acac32b1 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -1,5 +1,5 @@ import {reactive, ref, toRefs, watch} from "vue"; -import {getCookie} from "@/api/method"; +import {getCookieForName} from "@/api/method"; import JSONBigInt from 'json-bigint'; const JSONBigIntStr = JSONBigInt({storeAsString: true}); @@ -143,7 +143,7 @@ export async function request(_url, params) { return fetch(url, { method, headers: { - token: getCookie('token'), + token: getCookieForName('token'), ...method !== 'get' ? {'Content-Type': 'application/json'} : {} }, ...method !== 'get' ? {body: JSON.stringify(body)} : {} diff --git a/src/components/project/ProjectManagerNew.vue b/src/components/project/ProjectManagerNew.vue index 5f5ba8ab..afa0baf1 100644 --- a/src/components/project/ProjectManagerNew.vue +++ b/src/components/project/ProjectManagerNew.vue @@ -92,6 +92,8 @@ function getMemberData() { isOpen.value = false return; } + console.log(1111111111111) + console.log(props.value) const list = res.data.data.rows.filter(e => !(props.value + '').includes(e.id)).map(e => ({ label: e.realName + e.userNo, value: e.id, @@ -131,7 +133,7 @@ function change(e, l) { Array.isArray(selectOptions.value) && emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId, selectOptions.value.find(e => e.deptId)?.departName) if (Array.isArray(l)) { emit('update:name', l.map(t => t.label).join(',')) - emit('update:value', l.map(t => t.label).join(',')) + emit('update:value', l.map(t => t.value).join(',')) } else { emit('update:name', l?.label) emit('update:value', l?.value) diff --git a/src/components/student/CommonStudent.vue b/src/components/student/CommonStudent.vue index 6d145fde..d4fd1f07 100644 --- a/src/components/student/CommonStudent.vue +++ b/src/components/student/CommonStudent.vue @@ -96,6 +96,7 @@ +<<<<<<< HEAD
@@ -140,6 +141,46 @@
+======= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +>>>>>>> 0bbb4403e7650fcaf87f158833a10c02c3e51841
@@ -208,6 +249,7 @@
+<<<<<<< HEAD
{{ item.audienceName }}
+======= + +
+ +
+
查看更多>
+
收起<
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
受众关联
+
+
+
+
{{ item.audienceName }}
+
+
+
+
+
+
+
{{ item.audienceName }}
+>>>>>>> 0bbb4403e7650fcaf87f158833a10c02c3e51841
@@ -346,11 +434,19 @@