From 48fcda77e875371fe0b38ffdc613ee78c8971226 Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Fri, 29 May 2020 14:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=B7=B1=E6=B5=8B=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 +- src/main.js | 3 +- src/views/excutes/Excute.vue | 16 +- src/views/excutes/Over.vue | 35 +- src/views/excutes/Post_pro.vue | 245 ++++-- src/views/excutes/Submit_mid.vue | 95 +- src/views/home/HomePage.vue | 20 +- src/views/personal/Collection.vue | 2 +- src/views/personal/Collection1.vue | 5 +- src/views/personal/Declare.vue | 14 +- src/views/project/Appcationnew.vue | 72 +- src/views/project/Project.vue | 5 +- src/views/project/Schedule.vue | 367 +++++--- src/views/project/fuzhi1.vue | 1313 ++++++++++++++++++++++++++++ src/views/socialcredit.vue | 2 +- static/img/txt.jpg | Bin 0 -> 8828 bytes vue.config.js | 3 +- 17 files changed, 1953 insertions(+), 248 deletions(-) create mode 100644 src/views/project/fuzhi1.vue create mode 100644 static/img/txt.jpg diff --git a/.env.production b/.env.production index b5c7375..87ef373 100644 --- a/.env.production +++ b/.env.production @@ -2,4 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = http://chaoyang.nxers.com/api/ \ No newline at end of file +#VUE_APP_BASE_API = http://chaoyang.nxers.com/api/ +VUE_APP_BASE_API = http://cyteam.org.cn/api/ +#http://chaoyang.nxers.com/api/ \ No newline at end of file diff --git a/src/main.js b/src/main.js index 6b009a1..fe44423 100644 --- a/src/main.js +++ b/src/main.js @@ -16,7 +16,8 @@ Vue.prototype.$axios = axios Vue.prototype.$md5 = md5 Vue.prototype.$tool = tool Vue.prototype.$http = http -Vue.prototype.$upload = 'http://chaoyang.nxers.com/api/v1/file/files' +// Vue.prototype.$upload = 'http://chaoyang.nxers.com/api/v1/file/files'//'http://chaoyang.nxers.com/api/v1/file/files' +Vue.prototype.$upload = 'http://cyteam.org.cn/api/v1/file/files'//'http://chaoyang.nxers.com/api/v1/file/files' Vue.prototype.$jump = function (url) { this.$router.push({ name: url diff --git a/src/views/excutes/Excute.vue b/src/views/excutes/Excute.vue index 60b1238..67ea4be 100644 --- a/src/views/excutes/Excute.vue +++ b/src/views/excutes/Excute.vue @@ -6,14 +6,14 @@

一、项目申报书

- {{centers.probook?(centers.probook.split('/')[8]).split('_')[0]:''}} + {{probook?(probook.split('.')[0]).split('_')[0]+'.'+probook.split('.')[1]:""}} {{centers.probook.split('/')[8].split('.')[1] == 'pdf'||centers.probook.split('/')[8].split('.')[1] == 'jpeg'||centers.probook.split('/')[8].split('.')[1] == 'png'||centers.probook.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}

二、项目实施方案

- {{centers.fangan?((centers.fangan.split('/')[8]).split('_')[0]?(centers.fangan.split('/')[8]).split('_')[0]:centers.fangan.split('/')[8]):''}} + {{fangan?(fangan.split('.')[0]).split('_')[0]+'.'+fangan.split('.')[1]:""}} {{centers.fangan.split('/')[8].split('.')[1] == 'pdf'||centers.fangan.split('/')[8].split('.')[1] == 'jpeg'||centers.fangan.split('/')[8].split('.')[1] == 'png'||centers.fangan.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}

@@ -168,7 +168,9 @@

暂未上传

活动名称{{j+1}}:{{i.name}}

- {{i.elereport?(i.elereport.split('/')[8]).split('_')[0]:''}} + + {{i.elereport?(i.elereport.split('/')[8].split('_')[1]?(i.elereport.split('/')[8]).split('_')[0]+'.'+i.elereport.substr(i.elereport.lastIndexOf('.')+1):(i.elereport.split('/')[8])):''}} + @@ -263,6 +265,8 @@ export default { index_num: 2, sub: 0, name: " ", + probook:'', + fangan:'', info: ["1"], zDatc: [], zDatb: [], @@ -350,6 +354,12 @@ export default { let data = res.data.data.data[0]; this.centers = data; console.log(this.centers); + this.probook = this.centers.probook.substring( + this.centers.probook.lastIndexOf("/") + 1 + ); + this.fangan = this.centers.fangan.substring( + this.centers.fangan.lastIndexOf("/") + 1 + ); this.caiwu = this.centers.fina.substring( this.centers.fina.lastIndexOf("/") + 1 ); diff --git a/src/views/excutes/Over.vue b/src/views/excutes/Over.vue index da81c0c..65bf314 100644 --- a/src/views/excutes/Over.vue +++ b/src/views/excutes/Over.vue @@ -8,14 +8,14 @@

{{over.probook?over.probook.split('/')[8]:'未上传'}} - {{over.probook.split('/')[8].split('.')[1] == 'pdf'||over.probook.split('/')[8].split('.')[1] == 'jpeg'||over.probook.split('/')[8].split('.')[1] == 'png'||over.probook.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}} + {{over.probook?(over.probook.split('/')[8].split('.')[1] == 'pdf'||over.probook.split('/')[8].split('.')[1] == 'jpeg'||over.probook.split('/')[8].split('.')[1] == 'png'||over.probook.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'):''}}

二、立项批复文件

- {{over.fangan?over.fangan.split('/')[8]:'未上传'}} + {{over.pifu?over.pifu.split('/')[8]:'未上传'}} - {{over.fangan.split('/')[8].split('.')[1] == 'pdf'||over.fangan.split('/')[8].split('.')[1] == 'jpeg'||over.fangan.split('/')[8].split('.')[1] == 'png'||over.fangan.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}} + {{over.pifu.split('/')[8].split('.')[1] == 'pdf'||over.pifu.split('/')[8].split('.')[1] == 'jpeg'||over.pifu.split('/')[8].split('.')[1] == 'png'||over.pifu.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}

三、实施方案

@@ -30,18 +30,18 @@ 预览

--> -

四、项目实施各阶段情况报告(月度报告)

+

四、项目实施各阶段情况报告

- {{over.location?over.location.split('/')[8]:'未上传'}} +     + {{over.location.split('/')[8].split('.')[1] == 'pdf'||over.location.split('/')[8].split('.')[1] == 'jpeg'||over.location.split('/')[8].split('.')[1] == 'png'||over.location.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}} + - -

@@ -52,7 +52,7 @@ 预览

--> -

五、结项报告(绩效报告)

+

五、结项报告

1、基本信息

七、会议活动相关资料(通知、议程、参加人员名单及签到表、现场照片或视频、会议纪要、活动总结报告、媒体报道、满意度测评表及报告等)

- +
+ + + 活动名称{{index+1}}:   {{item.name}} {{item.elereport?item.elereport.split('/')[8]:'未上传'}}     {{item.elereport.split('/')[8].split('.')[1] == 'pdf'||item.elereport.split('/')[8].split('.')[1] == 'jpeg'||item.elereport.split('/')[8].split('.')[1] == 'png'||item.elereport.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}} +
+

八、反映项目实施效果的相关资料 (媒体报道、获奖情况、文字成果、案例等) @@ -216,7 +221,7 @@ export default { dataFile: null, id: null, fileName: null, - over: null, + over: {}, probook:"" } }, @@ -264,7 +269,7 @@ export default { if (res.data.data.code === 200) { let data = res.data.data.data[0] this.over = data - console.log(this.over.probook.split('/')[8],500) + // console.log(this.over.probook.split('/')[8],500) // var index = file.response.data.url.lastIndexOf("."); // var filetype = file.response.data.url.substr(index + 1); } else { diff --git a/src/views/excutes/Post_pro.vue b/src/views/excutes/Post_pro.vue index 047338b..fcf7275 100644 --- a/src/views/excutes/Post_pro.vue +++ b/src/views/excutes/Post_pro.vue @@ -70,6 +70,7 @@ :on-preview="handlePreview" style="position: relative" :http-request="uploadfile" + :disabled="getpros.over.status == 127" >
@@ -96,7 +97,7 @@ >{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}

点击上方图标可上传文件

-
+
@@ -112,6 +113,7 @@ :show-file-list="false" style="position: relative" :http-request="uploadfile1" + :disabled="getpros.over.status == 127" >
@@ -141,7 +143,7 @@ @click="beforeRemove1(filename1,'imageUrl1')" class="close" style="left:52px" - v-if="imageUrl1" + v-if="imageUrl1&&getpros.over.status!=127" >
@@ -156,7 +158,7 @@ @click="dialogTableVisible = true" style="color:rgb(116, 113, 239);cursor:pointer" >+月工作报表

- +