mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
测评上传
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref,onMounted, reactive,toRefs,computed } from "vue";
|
import { ref,onMounted, reactive,toRefs,computed,watch } from "vue";
|
||||||
import dialog from "@/utils/dialog";
|
import dialog from "@/utils/dialog";
|
||||||
import { getPage,deleteById } from "@/api/evaluation";
|
import { getPage,deleteById } from "@/api/evaluation";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
@@ -149,7 +149,15 @@ import {boeRequest} from "@/api/request";
|
|||||||
state.params.pageSize = pageSize
|
state.params.pageSize = pageSize
|
||||||
listData()
|
listData()
|
||||||
}
|
}
|
||||||
|
watch(()=>state.params.pageSize,(val)=>{
|
||||||
|
state.params.pageNo = 1
|
||||||
|
listData()
|
||||||
|
})
|
||||||
const downloadAll = (record) => {
|
const downloadAll = (record) => {
|
||||||
|
if(state.total == 0){
|
||||||
|
message.info('请先上传报告')
|
||||||
|
return
|
||||||
|
}
|
||||||
window.open(`/activityApi/evaluation/download?id=${route.query.id}`);
|
window.open(`/activityApi/evaluation/download?id=${route.query.id}`);
|
||||||
}
|
}
|
||||||
const listData = async () => {
|
const listData = async () => {
|
||||||
|
|||||||
@@ -1099,6 +1099,10 @@ import { message } from "ant-design-vue";
|
|||||||
state.btShow = trueFalse(record.permission,4)
|
state.btShow = trueFalse(record.permission,4)
|
||||||
}
|
}
|
||||||
const downloadAll = async (record) => {
|
const downloadAll = async (record) => {
|
||||||
|
if(record.reportReleaseNums == 0){
|
||||||
|
message.info('请先上传报告')
|
||||||
|
return
|
||||||
|
}
|
||||||
window.open(`/activityApi/evaluation/download?id=${record.id}`);
|
window.open(`/activityApi/evaluation/download?id=${record.id}`);
|
||||||
}
|
}
|
||||||
const of_exit = () => {
|
const of_exit = () => {
|
||||||
@@ -1138,22 +1142,6 @@ import { message } from "ant-design-vue";
|
|||||||
}
|
}
|
||||||
state.tableLoading = true
|
state.tableLoading = true
|
||||||
|
|
||||||
if(state.uploadStatus||state.btShow){
|
|
||||||
console.log(state.uploadStatus,'state.uploadStatus')
|
|
||||||
await save({
|
|
||||||
id: state.uploadDownId,
|
|
||||||
creatId:userInfo.value.userId,
|
|
||||||
creatName:userInfo.value.realName,
|
|
||||||
prefix:'',
|
|
||||||
remarks:state.formData.remarks,
|
|
||||||
evaluationName:state.formData.evaluationName,
|
|
||||||
// detailIds:state.idValue,
|
|
||||||
downloadUrls:state.downloadUrl,
|
|
||||||
imagePath:state.formData.cover
|
|
||||||
}).then((res)=>{
|
|
||||||
console.log(res.data,'data')
|
|
||||||
})
|
|
||||||
}
|
|
||||||
if(state.valueAll.length != 0 && !state.loadData){
|
if(state.valueAll.length != 0 && !state.loadData){
|
||||||
if(state.valueAll.length >1){
|
if(state.valueAll.length >1){
|
||||||
state.bg_results = true
|
state.bg_results = true
|
||||||
@@ -1164,14 +1152,31 @@ import { message } from "ant-design-vue";
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
//
|
//
|
||||||
await saveEvaluationDetail({evaluationDetailListlist:state.valueAll,pid:state.uploadId}).then((res)=>{
|
// await saveEvaluationDetail({evaluationDetailListlist:state.valueAll,pid:state.uploadId}).then((res)=>{
|
||||||
if(res.code == 200){
|
// if(res.code == 200){
|
||||||
message.success(res.msg)
|
// message.success(res.msg)
|
||||||
|
// }
|
||||||
|
// if(res.data.code == -1){
|
||||||
|
// message.error('保存失败')
|
||||||
|
// }
|
||||||
|
// console.log(res,'aaa')
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
if(res.data.code == -1){
|
if(state.uploadStatus||state.btShow){
|
||||||
message.error('保存失败')
|
console.log(state.uploadStatus,'state.uploadStatus')
|
||||||
}
|
await save({
|
||||||
console.log(res,'aaa')
|
id: state.uploadDownId,
|
||||||
|
creatId:userInfo.value.userId,
|
||||||
|
creatName:userInfo.value.realName,
|
||||||
|
prefix:'',
|
||||||
|
remarks:state.formData.remarks,
|
||||||
|
evaluationName:state.formData.evaluationName,
|
||||||
|
// detailIds:state.idValue,
|
||||||
|
evaluationDetailList:state.valueAll,
|
||||||
|
downloadUrls:state.downloadUrl,
|
||||||
|
imagePath:state.formData.cover
|
||||||
|
}).then((res)=>{
|
||||||
|
console.log(res.data,'data')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//else{
|
//else{
|
||||||
|
|||||||
Reference in New Issue
Block a user