Merge branch 'develop' into manage-release

This commit is contained in:
wyx
2023-03-08 17:22:55 +08:00
3 changed files with 9 additions and 3 deletions

View File

@@ -16,6 +16,10 @@ export function getCookie(name) {
return document.cookie?.split(";").find(e => e.includes(name))?.replace(`${name}=`, '') || ''
}
export function delCookie(name){
setCookie(name, "", -1)
}
export function useUserInfo(id) {
const userInfo = ref({})
watch(id, () => {

View File

@@ -307,7 +307,7 @@
</template>
<script setup>
import { computed, reactive, toRefs, watch, onUnmounted } from "vue";
import { computed, reactive, toRefs, watch, onUnmounted, ref } from "vue";
import FileTypeImg from "@/components/FileTypeImg.vue";
import { request, useRequest } from "@/api/request";
import {
@@ -343,8 +343,10 @@ const { activeName, enclosure, isAllowSign } = toRefs(state);
const handleClick = (tab, event) => {
console.log("附件", tab, event);
};
const fielPath = ref(import.meta.env.VITE_FILE_PATH);
const download = (url) => {
window.open(url);
console.log(fielPath.value+url)
window.open(fielPath.value+url);
};
const downloads = (url) => {
ElMessage.warning("未到开始时间,请耐心等待!");

View File

@@ -41,7 +41,7 @@
<botton
class="btn"
style="margin-right: 20px;width: 160px;height: 46px;"
v-if="data.hasTask || data.planDto.applyFlag"
v-if="data.planDto.applyFlag"
@click="onLineSignUp(false)"
:style="{ background: isAllowSign?data.isSignUp || data.isRefused ? '#999' : 'rgb(57, 146, 249)':'#999'}">
{{