自己测之前的

This commit is contained in:
asd
2020-05-29 14:39:04 +08:00
parent 4e0024a45c
commit 48fcda77e8
17 changed files with 1953 additions and 248 deletions

View File

@@ -2,4 +2,6 @@
ENV = 'production'
# base api
VUE_APP_BASE_API = http://chaoyang.nxers.com/api/
#VUE_APP_BASE_API = http://chaoyang.nxers.com/api/
VUE_APP_BASE_API = http://cyteam.org.cn/api/
#http://chaoyang.nxers.com/api/

View File

@@ -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

View File

@@ -6,14 +6,14 @@
<div class="excute_con">
<h3>项目申报书</h3>
<p>
<a :href="centers.probook?centers.probook:''" >{{centers.probook?(centers.probook.split('/')[8]).split('_')[0]:''}}</a>
<a :href="centers.probook?centers.probook:''" >{{probook?(probook.split('.')[0]).split('_')[0]+'.'+probook.split('.')[1]:""}}</a>
<!-- <a :href="centers.probook?centers.probook:''" target="_blank">预览</a> -->
<a :href="centers.probook" target="_blank">{{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'?'预览':'下载'}}</a>
</p>
<h3>项目实施方案</h3>
<!-- probook -->
<p>
<a :href="centers.fangan?centers.fangan:''" >{{centers.fangan?((centers.fangan.split('/')[8]).split('_')[0]?(centers.fangan.split('/')[8]).split('_')[0]:centers.fangan.split('/')[8]):''}}</a>
<a :href="centers.fangan?centers.fangan:''" >{{fangan?(fangan.split('.')[0]).split('_')[0]+'.'+fangan.split('.')[1]:""}}</a>
<!-- <a :href="centers.fangan?centers.fangan:''" target="_blank">预览</a> -->
<a :href="centers.fangan" target="_blank">{{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'?'预览':'下载'}}</a>
</p>
@@ -168,7 +168,9 @@
<p v-if='centers.ziliao[0].name ==""' style='color:blue;font-size:14px;'>暂未上传</p>
<h3 v-for="(i,j) in centers.ziliao" :key="j" v-if='centers.ziliao[0].name !==""'>
<p>活动名称{{j+1}}:{{i.name}}</p>
<a𡭔:href="i.elereport?i.elereport:''" style="margin-left:-1px">{{i.elereport?(i.elereport.split('/')[8]).split('_')[0]:''}}</a>
<!-- {{i.elereport.split('/')[8].split('_')}} -->
<a :href="i.elereport?i.elereport:''" style="margin-left:-1px">{{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])):''}}</a>
<!-- <a :href="i.elereport?i.elereport:''" style="margin-left:-1px">{{i.elereport?(i.elereport.split('/')[8]).split('_')[0]+'.'+i.elereport.substr(i.elereport.lastIndexOf('.')+1):''}}</a> -->
<span class="download" >
<!-- <a :href="i.elereport" download v-if="i.elereport">下载 |</a>
<a :href="i.elereport" target="_blank" v-if="i.elereport">预览</a> -->
@@ -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
);

View File

@@ -8,14 +8,14 @@
<p>
<a :href="over.probook">{{over.probook?over.probook.split('/')[8]:'未上传'}}</a>
<!-- <a :href="over.probook" target="_blank" v-if="over.probook">预览</a> -->
<a v-if="over.probook" :href="over.probook" target="_blank">{{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'?'预览':'下载'}}</a>
<a v-if="over.probook" :href="over.probook" target="_blank">{{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'?'预览':'下载'):''}}</a>
</p>
<h3>立项批复文件</h3>
<p>
<a :href="over.fangan">{{over.fangan?over.fangan.split('/')[8]:'未上传'}}</a>
<a :href="over.pifu">{{over.pifu?over.pifu.split('/')[8]:'未上传'}}</a>
<!-- <a :href="over.fangan" target="_blank" v-if="over.fangan">预览</a> -->
<a v-if="over.fangan" :href="over.fangan" target="_blank">{{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'?'预览':'下载'}}</a>
<a v-if="over.pifu" :href="over.pifu" target="_blank">{{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'?'预览':'下载'}}</a>
</p>
<h3>实施方案</h3>
<p>
@@ -30,18 +30,18 @@
<a href="#">预览</a>
</span>
</p> -->
<h3>项目实施各阶段情况报告月度报告</h3>
<h3>项目实施各阶段情况报告</h3><!--月度报告-->
<p>
<DivisionLabor
<a :href="over.location">{{over.location?over.location.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp;
<a v-if="over.location" :href="over.location" target="_blank">{{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'?'预览':'下载'}}</a>
<!-- <DivisionLabor
@divisionLabor="plement"
:divisionLaborVal="over.pro_condition"
:writeable="false"
></DivisionLabor>
></DivisionLabor> -->
<!-- <a href="#">未上传</a> -->
<!-- <a :href="over.pro_condition">{{over.pro_condition?over.pro_condition.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp;
<a v-if="over.pro_condition" :href="over.pro_condition" target="_blank">{{over.pro_condition.split('/')[8].split('.')[1] == 'pdf'||over.pro_condition.split('/')[8].split('.')[1] == 'jpeg'||over.pro_condition.split('/')[8].split('.')[1] == 'png'||over.pro_condition.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> -->
<!-- <a :href="over.pro_condition" download="" v-if="over.pro_condition">下载</a>
<a :href="over.pro_condition" target="_blank" v-if="over.pro_condition">预览</a> -->
</p>
@@ -52,7 +52,7 @@
<a href="#">预览</a>
</span>
</p> -->
<h3>结项报告绩效报告</h3>
<h3>结项报告</h3> <!--绩效报告-->
<h3>1基本信息</h3>
<aside>
<div class="baseinfo">
@@ -65,7 +65,7 @@
</div>
<div class="baseinfo">
<label class="left">申请日期:</label>
<p class="right">{{over.aterm}}</p>
<p class="right">{{new Date(over.aterm*1000).getFullYear()+'-'+(new Date(over.aterm*1000).getMonth()+1)+'-'+new Date(over.aterm*1000).getDate()}}</p>
</div>
<div>
<label class="left" style="font-size:20px">项目执行团队人员构成及分工:</label>
@@ -146,13 +146,18 @@
</h3>
<!-- JSON.parse() -->
<h3>会议活动相关资料通知议程参加人员名单及签到表现场照片或视频会议纪要活动总结报告媒体报道满意度测评表及报告等</h3>
<span class="download" v-for="(item,index) in over.ziliao" :key="index" style="display:block;margin: 20px 0">
<div v-if="over.ziliao">
<span class="download" v-for="(item,index) in JSON.parse(over.ziliao)" :key="index" style="display:block;margin: 20px 0">
<span style="color:#000;margin-right:20px;"> 活动名称{{index+1}}:&nbsp;&nbsp; {{item.name}}</span>
<a :href="item.elereport">{{item.elereport?item.elereport.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp;
<a v-if="item.elereport" :href="item.elereport" target="_blank">{{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'?'预览':'下载'}}</a>
<!-- <a :href="item.elereport" download v-if="item.elereport">下载 |</a>
<a :href="item.elereport" target="_blank" v-if="item.elereport">预览</a> -->
</span>
</div>
<h3>
反映项目实施效果的相关资料
媒体报道获奖情况文字成果案例等
@@ -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 {

View File

@@ -70,6 +70,7 @@
:on-preview="handlePreview"
style="position: relative"
:http-request="uploadfile"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -96,7 +97,7 @@
>{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<!-- v-if="imageUrl" -->
<div @click="beforeRemove1(filename,'imageUrl')" class="close" v-if="imageUrl">
<div @click="beforeRemove1(filename,'imageUrl')" class="close" v-if="imageUrl&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
@@ -112,6 +113,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile1"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -141,7 +143,7 @@
@click="beforeRemove1(filename1,'imageUrl1')"
class="close"
style="left:52px"
v-if="imageUrl1"
v-if="imageUrl1&&getpros.over.status!=127"
>
<i class="el-icon-close close"></i>
</div>
@@ -156,7 +158,7 @@
@click="dialogTableVisible = true"
style="color:rgb(116, 113, 239);cursor:pointer"
>+月工作报表</p>
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible">
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible" @close="toclose">
<aside>
<div>
<label>项目名称:</label>
@@ -231,6 +233,7 @@
:limit="10"
:on-exceed="handleExceed"
:file-list="fileLists"
:title="filename"
>
<el-button
size="small"
@@ -331,9 +334,9 @@
<div class="statistics" v-show="num == 0">
<table>
<tr style="color:white">
<th>月份</th>
<th>提交情况</th>
<th>月报文件</th>
<th style="border-right:1px solid #fff">月份</th>
<th style="border-right:1px solid #fff">提交情况</th>
<th style="border-right:1px solid #fff">月报文件</th>
<th>提交时间</th>
</tr>
<tr
@@ -341,20 +344,70 @@
:key="index"
:class="{ on: index % 2 == 0, off: index % 2 != 0 }"
>
<td>{{new Date(names.month*1000).getMonth()+1}}</td>
<td>{{names.type}}</td>
<td style="vertical-align:middle;">{{new Date(names.month*1000).getMonth()+1}}</td>
<td style="vertical-align:middle;">{{names.type}}</td>
<td class="td_tooltip" style>
<el-tooltip
<div v-for="(item,index) in (JSON.parse(names.elereport))" :key="index">
<div v-if="JSON.parse(names.elereport).length>1" style="display:flex;flex-wrap:nowrap;text-align:left">
<!-- {{item}} -->
<el-tooltip
class="item"
effect="dark"
:content="item.name? item.name:'未上传'"
placement="top"
>
<a
:href="item.url"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{item.name}}</a>
</el-tooltip>
<a
:href="item.url?item.url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="names.elereport"
>下载</a>
</div>
<div v-else style="display:flex;flex-wrap:nowrap;">
<!-- {{JSON.parse(info.elereport).names}} -->
<!-- {{item}} -->
<el-tooltip
class="item"
effect="dark"
:content="JSON.parse(names.elereport)[0].names+'.'+JSON.parse(names.elereport)[0].extension"
placement="top"
>
<a
:href="JSON.parse(names.elereport)[0].url"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{JSON.parse(names.elereport)[0].names+'.'+JSON.parse(names.elereport)[0].extension}}</a>
</el-tooltip>
<a
:href="names.elereport?JSON.parse(names.elereport)[0].url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="names.elereport"
>下载</a>
</div>
</div>
<!-- {{names.elereport}} -->
<!-- <el-tooltip
class="item"
effect="dark"
:content="names.elereport?(JSON.parse(names.elereport).names.split('_')[0]?JSON.parse(names.elereport).names.split('_')[0]:JSON.parse(names.elereport).names) + (JSON.parse(names.elereport).extension == undefined ? '' : '.' + JSON.parse(names.elereport).extension):''"
:content="names.elereport?(JSON.parse(names.elereport)[0].names.split('_')[0]?JSON.parse(names.elereport)[0].names.split('_')[0]:JSON.parse(names.elereport)[0].names) + (JSON.parse(names.elereport)[0].extension == undefined ? '' : '.' + JSON.parse(names.elereport)[0].extension):''"
placement="top"
>
<a
:href="names.elereport?JSON.parse(names.elereport).url:''"
target="view_window"
style="width:82%;float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{names.elereport?(JSON.parse(names.elereport).names.split('_')[0]?JSON.parse(names.elereport).names.split('_')[0]:JSON.parse(names.elereport).names) + (JSON.parse(names.elereport).extension == undefined ? '' : '.' + JSON.parse(names.elereport).extension):''}}</a>
>{{names.elereport?(JSON.parse(names.elereport)[0].names.split('_')[0]?JSON.parse(names.elereport)[0].names.split('_')[0]:JSON.parse(names.elereport)[0].names) + (JSON.parse(names.elereport)[0].extension == undefined ? '' : '.' + JSON.parse(names.elereport)[0].extension):''}}</a>
</el-tooltip>
<a
@@ -362,12 +415,12 @@
target="view_window"
style="width:18%;color:#7471ef"
>下载</a>
</td>
</td> -->
<!-- <td>
<a :href="names.elereport">{{names.name}}</a>
</td>-->
<!-- <td>{{new Date(names.month*1000).getFullYear()+'/'+new Date(names.month*1000).getMonth()+1+'/'+new Date(names.month*1000).getDate()}}</td> -->
<td>{{new Date(names.month*1000).getFullYear()+'-'+parseInt(new Date(names.month*1000).getMonth()+1)+'-'+new Date(names.month*1000).getDate()}}</td>
<td style="vertical-align:middle;">{{new Date(names.month*1000).getFullYear()+'-'+parseInt(new Date(names.month*1000).getMonth()+1)+'-'+new Date(names.month*1000).getDate()}}</td>
</tr>
</table>
</div>
@@ -385,6 +438,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile2"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -402,7 +456,7 @@
</el-upload>
<a class="filename" :href="fileurl2">{{filename2?filename2:''}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename2,'imageUrl2')" class="close" v-if="imageUrl2">
<div @click="beforeRemove1(filename2,'imageUrl2')" class="close" v-if="imageUrl2&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -581,6 +635,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile3"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -601,7 +656,7 @@
:href="fileurl4"
>{{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename4,'imageUrl4')" class="close" v-if="imageUrl4">
<div @click="beforeRemove1(filename4,'imageUrl4')" class="close" v-if="imageUrl4&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -616,6 +671,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile4"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -636,7 +692,7 @@
:href="fileurl5"
>{{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename5,'imageUrl5')" class="close" v-if="imageUrl5">
<div @click="beforeRemove1(filename5,'imageUrl5')" class="close" v-if="imageUrl5&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -651,6 +707,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile5"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -674,7 +731,7 @@
<div
@click="beforeRemove1(filename6,'imageUrl6')"
class="close"
v-if="imageUrl6"
v-if="imageUrl6&&getpros.over.status!=127"
style="left:75px;top:-60"
>
<i class="el-icon-close close"></i>
@@ -689,7 +746,7 @@
<el-button
type="primary"
plain
style="height:40px;margin-top:51px;position: relative;top: 85px;left: -160px;z-index:999"
class="button_add"
@click="add"
>添加</el-button>
</div>
@@ -719,6 +776,7 @@
:show-file-list="false"
style="margin-left:3px;position:relative"
:http-request="uploadfile10"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -744,7 +802,7 @@
<div
@click="beforeRemove1('','imageUrl7',j)"
class="close"
v-if="i.length"
v-if="i.length&&getpros.over.status!=127"
style="left:-9px;top:-65px"
>
<i class="el-icon-close close" style="left:140px;top:-107"></i>
@@ -763,6 +821,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile7"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -783,7 +842,7 @@
:href="fileurl8"
>{{filename8? filename8.split('_')[0]+''+(filename8.split('_')[0].includes('.')?'':'.'+filename8.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename8,'imageUrl8')" class="close" v-if="imageUrl8">
<div @click="beforeRemove1(filename8,'imageUrl8')" class="close" v-if="imageUrl8&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -798,6 +857,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile8"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -818,7 +878,7 @@
:href="fileurl9"
>{{filename9? filename9.split('_')[0]+''+(filename9.split('_')[0].includes('.')?'':'.'+filename9.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename9,'imageUrl9')" class="close" v-if="imageUrl9">
<div @click="beforeRemove1(filename9,'imageUrl9')" class="close" v-if="imageUrl9&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -833,6 +893,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile9"
:disabled="getpros.over.status == 127"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -853,7 +914,7 @@
:href="fileurl10"
>{{filename10? filename10.split('_')[0]+''+(filename10.split('_')[0].includes('.')?'':'.'+filename10.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename10,'imageUrl10')" class="close" v-if="imageUrl10">
<div @click="beforeRemove1(filename10,'imageUrl10')" class="close" v-if="imageUrl10&&getpros.over.status!=127">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -1026,6 +1087,11 @@ export default {
},
// model:{},
methods: {
toclose(){
this.month = ''
this.fileLists=[]
// this.fileLists2=[]
},
uploadfile(f) {
console.log(f);
let formdata = new FormData();
@@ -1713,18 +1779,35 @@ export default {
this.fileid = file.response.data.id;
this.filename = file.response.data.name;
this.fileurl = file.response.data.url;
this.fileLists[0] = file.response.data;
this.fileLists.push(file.response.data)
//this.fileLists[0] = file.response.data;
console.log(file);
},
handlePreview(file) {
console.log(file);
this.previewinfo = file;
if (!!window.ActiveXObject || "ActiveXObject" in window) {
alert("推荐谷歌进行文件预览");
} else {
window.open(file.url); //blob格式地址
}
},
handleRemove(file, fileList) {
this.picture.forEach(element => {
// this.picture.forEach(element => {
// if (file.name === element.name) {
// this.picture.splice(element, 1);
// }
// });
this.fileLists.forEach(element => {
console.log(file,element)
if (file.name === element.name) {
this.picture.splice(element, 1);
console.log(this.fileLists.lastIndexOf(element),"del")
this.fileLists.splice(this.fileLists.lastIndexOf(element), 1);
}
});
console.log(this.fileLists)
return;
},
subBtn() {
// console.log(this.zData.id, this.month)
@@ -1737,29 +1820,42 @@ export default {
// let datefin1=datefin.substr(0,datefin.length-2)
// console.log(datefin1)
if (this.fileLists.length) {
this.$http({
method: "post",
url: "v1/pro/mon",
data: {
project_id: this.id,
month: Math.round(this.month / 1000),
pid: this.fileLists[0].id,
name: this.fileLists[0].name,
elereport: JSON.stringify(this.fileLists[0])
}
})
.then(res => {
if (res.data.data.code === 200) {
console.log(res, 15656);
this.dialogTableVisible = false;
this.getPostData();
} else {
alert("请求失败!");
if(this.month){
this.$http({
method: "post",
url: "v1/pro/mon",
data: {
project_id: this.id,
month: Math.round(this.month / 1000),
pid: this.fileLists[0].id,
name: this.fileLists[0].name,
elereport: JSON.stringify(this.fileLists),
}
})
.catch(err => {
console.log(err);
.then(res => {
if (res.data.data.code === 200) {
console.log(res, 15656);
this.dialogTableVisible = false;
this.month = "";
this.getPro();
this.$message({
type: "success",
message: "操作成功"
});
this.fileLists=[]
} else {
alert("请求失败!");
}
})
.catch(err => {
console.log(err);
});
}else{
this.$message({
type: "error",
message: "请选择日期"
});
}
} else {
this.$message({
type: "error",
@@ -1839,7 +1935,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl = "/static/img/txt.png";
this.imageUrl = "/static/img/txt.jpg";
}
this.filename = res.name; // res.name + "." + res.extension;
// console.log(file);
@@ -1892,7 +1988,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl1 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl1 = "/static/img/txt.png";
this.imageUrl1 = "/static/img/txt.jpg";
}
this.filename1 = res.name; // res.name + "." + res.extension;
// console.log(file);
@@ -1944,7 +2040,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl2 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl2 = "/static/img/txt.png";
this.imageUrl2 = "/static/img/txt.jpg";
}
this.filename2 = res.name; // res.name + "." + res.extension;
@@ -2008,7 +2104,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl3 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl3 = "/static/img/txt.png";
this.imageUrl3 = "/static/img/txt.jpg";
}
this.filename3 = file.response.data.name;
// this.imageUrl = URL.createObjectURL(file.raw)
@@ -2032,7 +2128,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl4 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl4 = "/static/img/txt.png";
this.imageUrl4 = "/static/img/txt.jpg";
}
this.filename4 = res.name; // res.name + "." + res.extension;
// console.log(file);
@@ -2084,7 +2180,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl5 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl5 = "/static/img/txt.png";
this.imageUrl5 = "/static/img/txt.jpg";
}
this.filename5 = res.name; //res.name + "." + res.extension;
@@ -2137,7 +2233,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl6 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl6 = "/static/img/txt.png";
this.imageUrl6 = "/static/img/txt.jpg";
}
this.filename6 = res.name; //res.name + "." + res.extension;
// console.log(file);
@@ -2192,7 +2288,7 @@ export default {
// this.imageUrl7[i] = "/static/img/pdf.jpg";
this.$set(this.imageUrl7, i, "/static/img/pdf.jpg");
} else if (this.filetype[i] == "txt") {
this.$set(this.imageUrl7, i, "/static/img/txt.png");
this.$set(this.imageUrl7, i, "/static/img/txt.jpg");
} else if (this.filetype[i] == "xls" || this.filetype[i] == "xlsx") {
// this.imageUrl7[i] = "/static/img/excel.png";
this.$set(this.imageUrl7, i, "/static/img/excel.png");
@@ -2283,7 +2379,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl8 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl8 = "/static/img/txt.png";
this.imageUrl8 = "/static/img/txt.jpg";
}
this.filename8 = res.name; // res.name + "." + res.extension;
@@ -2336,7 +2432,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl9 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl9 = "/static/img/txt.png";
this.imageUrl9 = "/static/img/txt.jpg";
}
this.filename9 = res.name; // res.name + "." + res.extension;
// console.log(file);
@@ -2388,7 +2484,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl10 = "/static/img/zip.png";
} else if (houzui == "txt") {
this.imageUrl10 = "/static/img/txt.png";
this.imageUrl10 = "/static/img/txt.jpg";
}
this.filename10 = res.name; //res.name + "." + res.extension;
@@ -2658,7 +2754,7 @@ export default {
// this.ziliaoarr[i] = "/static/img/pdf.jpg";
// } else if (uurl.split('/')[8].split('.')[2] == "txt") {
// // "/static/img/pdf.jpg"
// this.ziliaoarr[i] = "/static/img/txt.png";
// this.ziliaoarr[i] = "/static/img/txt.jpg";
// } else if (
// url.split('/')[8].split('.')[2] == "jpg" ||
// url.split('/')[8].split('.')[2] == "jpeg" ||
@@ -2748,7 +2844,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this[g] = "/static/img/zip.png";
} else if (houzui == "txt") {
this[g] = "/static/img/txt.png";
this[g] = "/static/img/txt.jpg";
}
this[f] = e.split("/")[8];
this[m] = e;
@@ -2817,8 +2913,8 @@ export default {
fina: this.fileurl4,
elereport: this.fileurl5,
adjust: this.fileurl6,
ziliao: this.fileurl7,
// ziliao: JSON.stringify(this.fileurl7),
// ziliao: this.fileurl7,
ziliao: JSON.stringify(this.fileurl7),
pro_result: this.fileurl8,
manage: this.fileurl9,
money: this.fileurl10
@@ -2828,7 +2924,7 @@ export default {
console.log(res);
if (res.data.data.code == 200) {
this.$message({
message: res.data.data.msg,
message: '保存成功!',
type: "success"
});
this.$router.push({
@@ -2879,8 +2975,8 @@ export default {
fina: this.fileurl4,
elereport: this.fileurl5,
adjust: this.fileurl6,
ziliao:this.fileurl7,
// ziliao: JSON.stringify(this.fileurl7),
// ziliao:this.fileurl7,
ziliao: JSON.stringify(this.fileurl7),
pro_result: this.fileurl8,
manage: this.fileurl9,
money: this.fileurl10
@@ -2890,7 +2986,7 @@ export default {
console.log(res);
if (res.data.data.code == 200) {
this.$message({
message: res.data.data.msg,
message: '提交成功!',
type: "success"
});
this.$router.push({
@@ -2898,7 +2994,7 @@ export default {
});
} else {
this.$message.error(res.data.data.msg);
this.$router.push({ path: `/schedule${this.id}` });
// this.$router.push({ path: `/schedule${this.id}` });
}
})
.catch(err => {
@@ -2915,6 +3011,15 @@ export default {
};
</script>
<style lang="scss" scoped>
.button_add{
height:40px;
margin-top:51px;
position: relative;
top: 85px;
left: -160px;
z-index:999
}
// .upload-demo /deep/ .el-upload-list__item-status-label .el-icon-upload-success{
// display: none !important;
@@ -3221,4 +3326,14 @@ label {
padding: 10px 0;
}
}
@media screen and (min-width: 1600px) {
.button_add{
height:40px;
margin-top:51px;
position: relative;
top: 38px;
left: -260px;
z-index:999
}
}
</style>

View File

@@ -195,6 +195,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile2"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -214,7 +215,7 @@
<a class="filename" :href="fileurl">{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename,'imageUrl')" v-if="imageUrl">
<div @click="beforeRemove1(filename,'imageUrl')" v-if="imageUrl&&subdata.status!=1000">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -230,6 +231,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile1"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -248,7 +250,7 @@
<a class="filename" :href="fileurl1">{{filename1? filename1.split('_')[0]+''+(filename1.split('_')[0].includes('.')?'':'.'+filename1.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<!--文件上传-->
<div @click="beforeRemove1(filename1,'imageUrl1')" v-if="imageUrl1">
<div @click="beforeRemove1(filename1,'imageUrl1')" v-if="imageUrl1&&subdata.status!=1000">
<i class="el-icon-close close"></i>
</div>
</div>
@@ -263,6 +265,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -280,7 +283,7 @@
</el-upload>
<a class="filename" style="margin-top:10px" :href="fileurl2">{{filename2? filename2.split('_')[0]+''+(filename2.split('_')[0].includes('.')?'':'.'+filename2.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename2,'imageUrl2')" v-if="imageUrl2">
<div @click="beforeRemove1(filename2,'imageUrl2')" v-if="imageUrl2&&subdata.status!=1000">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -344,6 +347,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile6"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -363,7 +367,7 @@
<a class="filename" :href="urls[j]" v-if="i!=1&&i">{{filenamearr[j]}}</a>
<!-- <a class="filename" :href="urls[j]" v-if="i!=1&&i">{{filenamearr[j]}}</a> -->
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1('','imageUrl3',j)" v-if="i.length">
<div @click="beforeRemove1('','imageUrl3',j)" v-if="i.length&&subdata.status!=1000">
<i class="el-icon-close close" style="left:120px;top:-150px"></i>
</div>
<!--文件上传-->
@@ -381,6 +385,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile3"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -398,7 +403,7 @@
</el-upload>
<a class="filename" :href="fileurl4">{{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename4,'imageUrl4')" v-if="imageUrl4">
<div @click="beforeRemove1(filename4,'imageUrl4')" v-if="imageUrl4&&subdata.status!=1000">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -414,6 +419,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile4"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -431,7 +437,7 @@
</el-upload>
<a class="filename" :href="fileurl5">{{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename5,'imageUrl5')" v-if="imageUrl5">
<div @click="beforeRemove1(filename5,'imageUrl5')" v-if="imageUrl5&&subdata.status!=1000">
<i class="el-icon-close close"></i>
</div>
<!--文件上传-->
@@ -447,6 +453,7 @@
:show-file-list="false"
style="position: relative"
:http-request="uploadfile5"
:disabled="subdata.status == 1000"
>
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
<!-- {{uploadname[2]}} -->
@@ -464,9 +471,10 @@
</el-upload>
<a class="filename" :href="fileurl6">{{filename6? filename6.split('_')[0]+''+(filename6.split('_')[0].includes('.')?'':'.'+filename6.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p>
<div @click="beforeRemove1(filename6,'imageUrl6')" v-if="imageUrl6">
<div @click="beforeRemove1(filename6,'imageUrl6')" v-if="imageUrl6&&subdata.status!=1000">
<i class="el-icon-close close"></i>
</div>
<!-- -->
<!--文件上传-->
</div>
<!-- <div class="ll">
@@ -480,6 +488,7 @@
label-width="100px"
class="demo-ruleForm"
>
<!-- -->
<el-form-item v-if="subdata.status!=1000">
<button type="button" @click="before">返回</button>
<button type="button" @click="postApply(0)">保存</button>
@@ -1121,7 +1130,7 @@ export default {
}else if (houzui == "zip" || houzui == "rar") {
this[g] = "/static/img/zip.png";
}else if(houzui == "txt"){
this[g] = "/static/img/txt.png";
this[g] = "/static/img/txt.jpg";
}
this[f]=e.split('/')[8]
this[m]=e
@@ -1148,7 +1157,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){
this.imageUrl = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl = "/static/img/txt.png";
this.imageUrl = "/static/img/txt.jpg";
}
this.filename = res.names+'.'+res.extension;
// this.fileurl = file.response.data.url;
@@ -1198,7 +1207,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){
this.imageUrl1 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl1 = "/static/img/txt.png";
this.imageUrl1 = "/static/img/txt.jpg";
}
this.filename1 = res.names+'.'+res.extension;
// this.fileurl1 = file.response.data.url;
@@ -1250,7 +1259,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){
this.imageUrl2 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl2 = "/static/img/txt.png";
this.imageUrl2 = "/static/img/txt.jpg";
}
this.filename2 = res.names+'.'+res.extension;
},
@@ -1289,7 +1298,7 @@ export default {
}else if(this.filetype[i] == "zip" || this.filetype[i] == "rar"){
this.imageUrl3[i] = "/static/img/zip.png";
}else if(this.filetype[i] == "txt"){
this.imageUrl3[i] = "/static/img/txt.png";
this.imageUrl3[i] = "/static/img/txt.jpg";
}
else if (
@@ -1333,7 +1342,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){
this.imageUrl4 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl4 = "/static/img/txt.png";
this.imageUrl4 = "/static/img/txt.jpg";
}
this.filename4 = res.names+'.'+res.extension;
},
@@ -1356,7 +1365,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){
this.imageUrl5 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl5 = "/static/img/txt.png";
this.imageUrl5 = "/static/img/txt.jpg";
}
this.filename5 = res.names+'.'+res.extension;
},
@@ -1379,7 +1388,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){
this.imageUrl6 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl6 = "/static/img/txt.png";
this.imageUrl6 = "/static/img/txt.jpg";
}
this.filename6 = res.names+'.'+res.extension;
},
@@ -1542,7 +1551,7 @@ export default {
},
postApply(index) {
if (index == 0) {
this.$confirm("此操作将保存当前填写的内容, 是否继续?", "提示", {
this.$confirm("此操作将保存当前填写的内容, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
@@ -1614,7 +1623,50 @@ export default {
this.fileurl3[i].elereport = this.urls[i];
}
}
this.$http({
if(!this.fileurl){
this.$message({
message: '请先上传财务报告!',
type: "danger"
});
return false;
}else if(!this.fileurl1){
this.$message({
message: '请先上传电子报告!',
type: "danger"
});
return false;
}
else if(!this.fileurl2){
this.$message({
message: '请先上传调整申请表!',
type: "danger"
});
return false;
}
else if(!this.fileurl4){
this.$message({
message: '请先上财务中期预算表!',
type: "danger"
});
return false;
}
else if(!this.fileurl5){
this.$message({
message: '请先上传其他类报告!',
type: "danger"
});
return false;
}
else if(!this.fileurl6){
this.$message({
message: '请先上传中期ppt文件!',
type: "danger"
});
return false;
}
else{
this.$http({
method: "post",
url: "v1/test/cent-sub",
data: {
@@ -1654,6 +1706,7 @@ export default {
.catch(err => {
console.log(err);
});
}
});
}
}
@@ -1667,6 +1720,7 @@ export default {
};
</script>
<style lang="scss" scoped>
.tip {
color: gray !important;
font-size: 12px !important;
@@ -1703,7 +1757,7 @@ export default {
// // margin-left: 45px;
// }
.rich {
z-index: 10;
// z-index: 10;
width: 100%;
// margin: 30px auto 0px;
margin-bottom: 30px;
@@ -1861,3 +1915,8 @@ export default {
}
}
</style>
<style >
.el-message-box__wrapper{
z-index: 990221!important;
}
</style>

View File

@@ -238,7 +238,8 @@ export default {
},
methods: {
statuschange(){
this.$axios({
if(sessionStorage.getItem("party_id")){
this.$axios({
url: "v1/news/list?org_id="+sessionStorage.getItem("party_id"),//805
method: "get",
@@ -254,8 +255,21 @@ export default {
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$axios({
url: "v1/news/du?id="+res.data.data[0].id,
method: "get",
// nol: 45,
// headers: { "Content-Type": "multipart/form-data" },
}).then(res=>{
console.log(res)
})
})
.catch(() => {
this.$message({
type: "info",
message: "已取消"
});
});
}
}else{
// this.$message({
@@ -264,6 +278,8 @@ export default {
// });
}
})
}
},
details (id) {
let routeUrl = this.$router.resolve({

View File

@@ -27,7 +27,7 @@
<!-- end -->
</div>
<div class="pages">
<div class="pages" v-if="collect.length>0">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"

View File

@@ -12,10 +12,11 @@
<div class="box" :key="index">
<!-- <span class="iconfont icon-changyongtubiao-mianxing-"></span> -->
<aside>
<span class="span1">{{list.content}}</span>
<span class="span1">问题{{list.content}}</span>
<!-- <span class="span2">来源板块{{list.society_name}}</span> -->
</aside>
<p>
<span>回复</span>
{{list.reply}}
</p>
</div>
@@ -27,7 +28,7 @@
<!-- end -->
</div>
<div class="pages">
<div class="pages" v-if="list.length>0">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"

View File

@@ -75,6 +75,7 @@
<el-option
v-for="(i,j) in bgValue.type"
:key="j"
style="text-align:center"
:label="bgValue.type[j]"
:value="j"
></el-option>
@@ -90,6 +91,7 @@
<el-option
v-for="(i,j) in bgValue.status"
:key="j"
style="text-align:center"
:label="bgValue.status[j]"
:value="j"
></el-option>
@@ -105,6 +107,7 @@
<el-option
v-for="(i,j) in bgValue.area"
:key="j"
style="text-align:center"
:label="bgValue.area[j]"
:value="j"
></el-option>
@@ -249,7 +252,7 @@ export default {
watch: {},
methods: {
/** 筛选函数 */
prolist(time0, time1, type, area, status, currentPage) {
prolist(currentPage) {
this.$http({
method: "get",
url: "v1/project/list",
@@ -260,7 +263,7 @@ export default {
area: this.areaval,
status: this.statusval,
page: currentPage ? currentPage : 0,
num: 6
num: 4
}
})
.then(res => {
@@ -383,15 +386,14 @@ export default {
},
handleCurrentChange(val) {
this.currentPage = val;
this.getDataTwo();
this.getPackData();
this.prolist(val)
// this.getDataTwo();
},
getPackData() {}
},
created() {
this.currentPage = Number(localStorage.getItem("page")) || 1;
this.handleCurrentChange(this.currentPage);
this.getDataOne();
this.prolist(this.currentPage)
},
mounted() {
this.sendMsgToParent();

View File

@@ -215,7 +215,7 @@
<el-form-item label="办公电话" prop="respoophone" style="margin-right:-69px">
<el-input v-model="ruleForm1.respoophone" style="width:150px"></el-input>
</el-form-item>
<el-form-item label="手机" prop="respoptel" style="margin-right:-69px">
<el-form-item label="手机" prop="respoptel2" style="margin-right:-69px">
<!-- ruleForm.region -->
<el-input v-model="ruleForm1.respoptel" style="width:150px"></el-input>
</el-form-item>
@@ -232,7 +232,7 @@
<el-form-item label="办公电话" prop="respocophone" style="margin-right:-69px">
<el-input v-model="ruleForm1.respocophone" style="width:150px"></el-input>
</el-form-item>
<el-form-item label="手机" prop="respoctel" style="margin-right:-69px">
<el-form-item label="手机" prop="respoctel2" style="margin-right:-69px">
<!-- ruleForm.region -->
<el-input v-model="ruleForm1.respoctel" style="width:150px"></el-input>
</el-form-item>
@@ -355,6 +355,7 @@
:limit="10"
:on-exceed="handleExceed"
:file-list="fileLists"
:title="fileLists?fileLists[0].name:''"
>
<el-button size="small" type="primary">上传文件</el-button>
<!-- <span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> -->
@@ -904,6 +905,7 @@ export default {
xa: require("../../../static/img/xa.png")
},
fileLists: [],
hrefurl:'',
popupStatus: false,
first_levels: [],
types: [],
@@ -1257,7 +1259,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl = "/static/img/txt.png";
this.imageUrl = "/static/img/txt.jpg";
}
this.filename = res.name//res.name//res.name+'.'+res.extension;
@@ -1284,7 +1286,19 @@ export default {
name: file.name,
url: file.response.data.url
});
this.fileLists.push({
name: file.name,
url: file.response.data.url
});
console.log(this.fileLists,1900)
//this.hrefurl = file.response.data.url
},
// successUpload(response, file, fileList) {
// this.picture.push({
// name: file.name,
// url: file.response.data.url
// });
// },
successUploadTwo(response, file, fileList) {
this.fileid = file.response.data.id;
this.filename = file.response.data.name;
@@ -1341,7 +1355,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl1 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl1 = "/static/img/txt.png";
this.imageUrl1 = "/static/img/txt.jpg";
}
this.filename1 =res.name// res.name+'.'+res.extension;
@@ -1390,7 +1404,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl2 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl2 = "/static/img/txt.png";
this.imageUrl2 = "/static/img/txt.jpg";
}
this.filename2 =res.name// res.name+'.'+res.extension;
@@ -1439,7 +1453,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl3 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl3 = "/static/img/txt.png";
this.imageUrl3 = "/static/img/txt.jpg";
}
console.log(res.name);
this.filename3 =res.name// res.name+'.'+res.extension;
@@ -1488,7 +1502,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl4 = "/static/img/zip.png";
}else if(houzui == "txt"){
this.imageUrl4 = "/static/img/txt.png";
this.imageUrl4 = "/static/img/txt.jpg";
}
this.filename4 =res.name// res.name+'.'+res.extension;
@@ -1563,12 +1577,7 @@ export default {
}
});
},
successUpload(response, file, fileList) {
this.picture.push({
name: file.name,
url: file.response.data.url
});
},
handleRemove(file, fileList) {
this.picture.forEach(element => {
if (file.name === element.name) {
@@ -2161,7 +2170,7 @@ export default {
} else if (filetype == "zip" || filetype == "rar") {
this.imageUrl = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl = "/static/img/txt.png";
this.imageUrl = "/static/img/txt.jpg";
}
}
if (this.ruleForm.fangan) {
@@ -2188,7 +2197,7 @@ export default {
}else if (filetype == "zip" || filetype == "rar") {
this.imageUrl1 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl1 = "/static/img/txt.png";
this.imageUrl1 = "/static/img/txt.jpg";
}
}
if (this.ruleForm.pifu) {
@@ -2214,7 +2223,7 @@ export default {
}else if (filetype == "zip" || filetype == "rar") {
this.imageUrl2 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl2 = "/static/img/txt.png";
this.imageUrl2 = "/static/img/txt.jpg";
}
}
if (this.ruleForm.pact) {
@@ -2240,7 +2249,7 @@ export default {
}else if (filetype == "zip" || filetype == "rar") {
this.imageUrl3 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl3 = "/static/img/txt.png";
this.imageUrl3 = "/static/img/txt.jpg";
}
}
if (this.ruleForm.promise) {
@@ -2266,25 +2275,25 @@ export default {
}else if (filetype == "zip" || filetype == "rar") {
this.imageUrl4 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl4 = "/static/img/txt.png";
this.imageUrl4 = "/static/img/txt.jpg";
}
}
this.filename = this.bgData.probook.substring(
this.filename =this.bgData.probook? this.bgData.probook.substring(
this.bgData.probook.lastIndexOf("/") + 1
);
):'';
//sconsole.log(this.filename)
this.filename1 = this.bgData.fangan.substring(
this.filename1 =this.bgData.fangan? this.bgData.fangan.substring(
this.bgData.fangan.lastIndexOf("/") + 1
);
this.filename2 = this.bgData.pifu.substring(
):'';
this.filename2 = this.bgData.pifu?this.bgData.pifu.substring(
this.bgData.pifu.lastIndexOf("/") + 1
);
this.filename3 = this.bgData.pact.substring(
):'';
this.filename3 =this.bgData.pact? this.bgData.pact.substring(
this.bgData.pact.lastIndexOf("/") + 1
);
this.filename4 = this.bgData.promise.substring(
):'';
this.filename4 = this.bgData.promise?this.bgData.promise.substring(
this.bgData.promise.lastIndexOf("/") + 1
);
):'';
let imgs = JSON.parse(this.bgData.proimages);
this.fileLists = imgs;
@@ -2307,8 +2316,13 @@ export default {
}
};
</script>
<style>
.el-upload-list__item-name{
width: 310px;
}
</style>
<style lang="scss" scoped>
// .el-upload-list__item .el-icon-close-tip
.filenames {
width: 155px;

View File

@@ -80,6 +80,7 @@
<el-option
v-for="(i,j) in bgValue.type"
:key="j"
style="padding:0 57px"
:label="bgValue.type[j]"
:value="j"
></el-option>
@@ -91,10 +92,11 @@
</template>
</select>-->
<el-select v-model="statusval" placeholder=" 请选择项目状态" clearable @change="prolist">
<el-select v-model="statusval" placeholder=" 请选择项目状态" clearable @change="prolist">
<el-option
v-for="(i,j) in bgValue.status"
:key="j"
style="padding:0 20px"
:label="bgValue.status[j]"
:value="j"
></el-option>
@@ -117,6 +119,7 @@
v-for="(i,j) in bgValue.area"
:key="j"
:label="bgValue.area[j]"
style="padding:0 87px"
:value="j"
></el-option>
</el-select>

View File

@@ -221,12 +221,12 @@
class="xxxx"
style="width:300px;margin-top:30px;position:relative;right:43px;top:-39px"
>
<p
<!-- <p
class="yulantext"
v-if="dataFile.length != 0"
@click="yulana1(dataFile[0])"
style="left:546px;top:36px;width:40px"
>预览</p>
>预览</p> -->
<template>
<el-upload
class="upload-demo"
@@ -968,7 +968,7 @@
<el-form-item label="办公电话" prop="poffice_tel" style="margin-right:-69px">
<el-input v-model="ruleForm.poffice_tel" style="width:150px" :disabled="ifupdate"></el-input>
</el-form-item>
<el-form-item label="手机" prop="aphone" style="margin-right:-69px">
<el-form-item label="手机" prop="aphone2" style="margin-right:-69px">
<!-- ruleForm.region -->
<el-input v-model="ruleForm.aphone" style="width:150px" :disabled="ifupdate"></el-input>
</el-form-item>
@@ -1049,7 +1049,7 @@
:disabled="ifupdate"
></el-input>
</el-form-item>
<el-form-item label="手机" prop="respoptel" style="margin-right:-69px">
<el-form-item label="手机" prop="respoptel2" style="margin-right:-69px">
<!-- ruleForm.region -->
<el-input v-model="ruleForm1.respoptel" style="width:150px" :disabled="ifupdate"></el-input>
</el-form-item>
@@ -1070,7 +1070,7 @@
:disabled="ifupdate"
></el-input>
</el-form-item>
<el-form-item label="手机" prop="respoctel" style="margin-right:-69px">
<el-form-item label="手机" prop="respoctel2" style="margin-right:-69px">
<!-- ruleForm.region -->
<el-input v-model="ruleForm1.respoctel" style="width:150px" :disabled="ifupdate"></el-input>
</el-form-item>
@@ -1181,12 +1181,12 @@
<h5 style="font-size:20px">项目主责单位意见</h5>
<!-- <div style="font-size:13px;color:gray;margin-top:10px">点击文件名查看文件</div> -->
<div class="xxxx">
<p
<!-- <p
v-if="fileLists.length"
class="yulantext"
@click="yulana(fileLists[0])"
style="left:368px;width:25px"
>预览</p>
>预览</p> -->
<template>
<!-- v-if="!ifupdate" -->
<div>
@@ -1202,8 +1202,9 @@
:limit="10"
:on-exceed="handleExceed"
:file-list="fileLists"
:title="fileLists[0]?fileLists[0].name:''"
>
<!-- v-if="!ifupdate" v-if="!ifupdate"-->
<!-- v-if="!ifupdate" -->
<div style="display:flex" v-if="!ifupdate">
<el-button size="small" type="primary">上传文件</el-button>
<span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span>
@@ -1655,7 +1656,7 @@
<a
:href="executio.pact?executio.pact:''"
target="_blank"
>{{shili3?shili3.split('_')[0]+''+(shili3.split('_')[0].includes('.')?'':shili3.split('.')[1]):"未上传"}}</a>
>{{shili3?shili3.split('_')[0]+'.'+(shili3.split('_')[0].includes('.')?'':shili3.split('.')[1]):"未上传"}}</a>
<!-- <a :href="executio.pact" download>下载</a> | -->
<a
:href="executio.pact"
@@ -1751,25 +1752,6 @@
&nbsp;
<strong style="font-size:14px;font-weight:600;float:left;margin-left:30px">满意度评估报告:</strong>
&nbsp;
<span style="margin-left:10px;float:left;width:70px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
<a
target="_blank"
:title="review_my_zq?review_my_zq.split('_')[0]+'.'+(review_my_zq.split('_')[0].includes('.')?'':review_my_zq.split('.')[1]):''"
>{{review_my_zq?review_my_zq.split('_')[0]+'.'+(review_my_zq.split('_')[0].includes('.')?'':review_my_zq.split('.')[1]):"未上传"}}</a>
<!-- <a :href="executio.promise" download>下载</a> | -->
</span>
<span style="float:left">
<a
:href="review_my_zq_url?review_my_zq_url:''"
target="_blank"
class="yulan"
v-if="review_my_zq"
>{{review_my_zq.split('.')[1]=="jpg"||review_my_zq.split('.')[1]=="jpeg"||review_my_zq.split('.')[1]=="png"||review_my_zq.split('.')[1]=="pdf"?'预览':'下载'}}</a>
</span>
<strong style="font-size:14px;font-weight:600;float:left">主管单位评估报告:</strong>
&nbsp;
<span style="float:left;width:70px;margin-left:10px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
<a
target="_blank"
@@ -1787,6 +1769,26 @@
>{{review_my.split('.')[1]=="jpg"||review_my.split('.')[1]=="jpeg"||review_my.split('.')[1]=="png"||review_my.split('.')[1]=="pdf"?'预览':'下载'}}</a>
</span>
<strong style="font-size:14px;font-weight:600;float:left">主管单位评估报告:</strong>
&nbsp;
<span style="margin-left:10px;float:left;width:70px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
<a
target="_blank"
:title="review_my_zq?review_my_zq.split('_')[0]+'.'+(review_my_zq.split('_')[0].includes('.')?'':review_my_zq.split('.')[1]):''"
>{{review_my_zq?review_my_zq.split('_')[0]+'.'+(review_my_zq.split('_')[0].includes('.')?'':review_my_zq.split('.')[1]):"未上传"}}</a>
<!-- <a :href="executio.promise" download>下载</a> | -->
</span>
<span style="float:left">
<a
:href="review_my_zq_url?review_my_zq_url:''"
target="_blank"
class="yulan"
v-if="review_my_zq"
>{{review_my_zq.split('.')[1]=="jpg"||review_my_zq.split('.')[1]=="jpeg"||review_my_zq.split('.')[1]=="png"||review_my_zq.split('.')[1]=="pdf"?'预览':'下载'}}</a>
</span>
</li>
</ul>
</div>
@@ -1798,7 +1800,7 @@
<!-- <span @click="num = 2" :class="{ active: num == 2 }">监测活动信息</span> -->
<div class="speed_box">
<el-button type="text" v-show="num == 0" @click="dialogTableVisible = true">+月工作报表</el-button>
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible">
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible" @close="toclose">
<aside>
<div class="yuedu">
<label>项目名称:</label>
@@ -1872,7 +1874,7 @@
<div class="mid_box" style="margin-bottom:30px;width:708px; margin-left:35px">
<label style="white-space:nowrap">上传电子版文件</label>
<div class="xxxx" style="position: relative">
<a
<!-- <a
style="position: absolute;
top: 54px;
left: 202px;
@@ -1883,11 +1885,11 @@
:href="dianziurl"
target="_blank"
v-if="dianziurl !=''"
>预览</a>
<div
>预览</a> -->
<!-- <div
style="
position: absolute;
top: 51px;
top: 45px;
left: 275px;
color: rgb(116, 113, 239);
z-index: 999;
@@ -1896,7 +1898,7 @@
"
@click="delfileLists1"
v-if="dianziurl !=''"
>×</div>
>×</div> -->
<template>
<el-upload
class="upload-demo"
@@ -1904,9 +1906,8 @@
:on-preview="handlePreview"
:on-remove="handleRemove1"
:on-success="successUploadTwo"
:before-remove="beforeRemove1"
:before-remove="beforeRemove"
multiple
:limit="1"
:on-exceed="handleExceed1"
:file-list="fileLists1"
style="margin-left:20px;margin-top:10px"
@@ -1932,7 +1933,7 @@
</aside>
</el-dialog>
<el-button type="text" v-show="num == 1" @click="dialogFormVisible = true">+新闻稿</el-button>
<el-dialog title="添加新闻稿" :visible.sync="dialogFormVisible">
<el-dialog title="添加新闻稿" :visible.sync="dialogFormVisible" @close ='toclose'>
<aside>
<div class="yuedu">
<label>项目名称:</label>
@@ -2003,7 +2004,7 @@
style="margin-left:29px;margin-top:-1px;margin-bottom:64px;width:708px;position:relative;"
>
<template>
<a
<!-- <a
style="position: absolute;
top: 45px;
left: 202px;
@@ -2014,11 +2015,11 @@
:href="xinweiurl"
target="_blank"
v-if="xinweiurl != ''"
>预览</a>
<div
>预览</a> -->
<!-- <div
style="
position: absolute;
top: 41px;
top: 35px;
left: 275px;
color: rgb(116, 113, 239);
z-index: 999;
@@ -2027,16 +2028,15 @@
"
@click="delfileLists2"
v-if="xinweiurl !=''"
>×</div>
>×</div> -->
<el-upload
class="upload-demo"
:action="$upload"
:on-preview="handlePreview"
:on-remove="handleRemove1"
:on-remove="handleRemove2"
:on-success="successUploadThree"
:before-remove="beforeRemove1"
:before-remove="beforeRemove"
multiple
:limit="1"
:on-exceed="handleExceed1"
:file-list="fileLists2"
ref="xinwen"
@@ -2088,32 +2088,67 @@
:class="{ on: index % 2 == 0, off: index % 2 != 0 }"
class="tr"
>
<td>{{ info.month }}</td>
<td >{{ info.month }}</td>
<td>{{ info.type }}</td>
<!-- filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):"" -->
<td style="display:flex;flex-wrap:nowrap">
<td >
<!-- {{info.elereport}} -->
<!-- {{JSON.parse(info.elereport)}} -->
<el-tooltip
class="item"
effect="dark"
:content="info.elereport? ((JSON.parse(info.elereport).names?JSON.parse(info.elereport).names.split('_')[0]:JSON.parse(info.elereport).name.split('_')[0])) + (JSON.parse(info.elereport).extension == undefined ? '' : '.' + JSON.parse(info.elereport).extension):'未上传'"
placement="top"
>
<a
:href="info.elereport?JSON.parse(info.elereport).url:''"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{info.elereport? ((JSON.parse(info.elereport).names?JSON.parse(info.elereport).names.split('_')[0]:JSON.parse(info.elereport).name.split('_')[0])) + (JSON.parse(info.elereport).extension == undefined ? '' : '.' + JSON.parse(info.elereport).extension):'未上传'}}</a>
</el-tooltip>
<div v-for="(item,index) in (JSON.parse(info.elereport))" :key="index">
<div v-if="JSON.parse(info.elereport).length>1" style="display:flex;flex-wrap:nowrap;text-align:left">
<!-- {{item}} -->
<el-tooltip
class="item"
effect="dark"
:content="item.name? item.name:'未上传'"
placement="top"
>
<a
:href="item.url"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{item.name}}</a>
</el-tooltip>
<a
:href="info.elereport?JSON.parse(info.elereport).url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="info.elereport"
>下载</a>
<a
:href="item.url?item.url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="info.elereport"
>下载</a>
</div>
<div v-else style="display:flex;flex-wrap:nowrap;">
<!-- {{JSON.parse(info.elereport).names}} -->
<!-- {{item}} -->
<el-tooltip
class="item"
effect="dark"
:content="JSON.parse(info.elereport)[0].names+'.'+JSON.parse(info.elereport)[0].extension"
placement="top"
>
<a
:href="JSON.parse(info.elereport)[0].url"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{JSON.parse(info.elereport)[0].names+'.'+JSON.parse(info.elereport)[0].extension}}</a>
</el-tooltip>
<a
:href="info.elereport?JSON.parse(info.elereport)[0].url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="info.elereport"
>下载</a>
</div>
</div>
<!-- <div v-else>
</div> -->
</td>
<!-- <td>{{ new Date(parseInt(info.created_at)*1000).toLocaleString().substr(0,9) }}</td> -->
<td>{{info.created_at}}</td>
@@ -2156,10 +2191,10 @@
:class="{ on: index % 2 == 0, off: index % 2 != 0 }"
>
<td
style=" width: 200px;display:block; text-indent:30px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis; "
style=" width: 200px; text-indent:30px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis; "
>
<el-tooltip
class="item"
@@ -2184,7 +2219,67 @@
>{{ zData.company }}</p>
</el-tooltip>
</td>
<td style="display:flex;flex-wrap:nowrap">
<td >
<!-- {{info.elereport}} -->
<!-- {{JSON.parse(info.elereport)}} -->
<div v-for="(item,index) in (JSON.parse(info.elereport))" :key="index" >
<div v-if="JSON.parse(info.elereport).length>1" style="display:flex;flex-wrap:nowrap;text-align:left">
<!-- {{item}} -->
<el-tooltip
class="item"
effect="dark"
:content="item.name? item.name:'未上传'"
placement="top"
>
<a
:href="item.url"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{item.name}}</a>
</el-tooltip>
<a
:href="item.url?item.url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="info.elereport"
>下载</a>
</div>
<div v-else style="display:flex;flex-wrap:nowrap;">
<!-- {{JSON.parse(info.elereport).names}} -->
<!-- {{JSON.parse(info.elereport)}} -->
<el-tooltip
class="item"
effect="dark"
:content="JSON.parse(info.elereport)[0].names+'.'+JSON.parse(info.elereport)[0].extension"
placement="top"
>
<a
:href="JSON.parse(info.elereport)[0].url"
target="view_window"
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
>{{JSON.parse(info.elereport)[0].names+'.'+JSON.parse(info.elereport)[0].extension}}</a>
</el-tooltip>
<a
:href="info.elereport?JSON.parse(info.elereport)[0].url:''"
target="view_window"
style="width:50px;color:#7471ef"
v-if="info.elereport"
>下载</a>
</div>
</div>
<!-- <div v-else>
</div> -->
</td>
<!-- <td style="display:flex;flex-wrap:nowrap">
<el-tooltip
class="item"
effect="dark"
@@ -2203,7 +2298,7 @@
style="width:50px;color:#7471ef"
v-if="info.elereport"
>下载</a>
</td>
</td> -->
<!-- <td> <a :href="JSON.parse( info.elereport )[index]?JSON.parse( info.elereport )[index].url:JSON.parse( info.elereport )[0].url " target="view_window">{{JSON.parse( info.elereport )[index]?JSON.parse( info.elereport )[index].name:JSON.parse( info.elereport )[0].name }}</a></td> -->
<td>{{ new Date(parseInt(info.created_at)*1000).toLocaleString().substr(0,9).replace(/\//g,"-") }}</td>
</tr>
@@ -3191,7 +3286,7 @@ export default {
}else if(filetype == "zip" || filetype == "rar"){
this.imageUrl = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl = "/static/img/txt.png";
this.imageUrl = "/static/img/txt.jpg";
}
}
if (this.ruleForm.fangan) {
@@ -3218,7 +3313,7 @@ export default {
}else if(filetype == "zip" || filetype == "rar"){
this.imageUrl1 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl1 = "/static/img/txt.png";
this.imageUrl1 = "/static/img/txt.jpg";
}
}
if (this.ruleForm.pifu) {
@@ -3244,7 +3339,7 @@ export default {
}else if(filetype == "zip" || filetype == "rar"){
this.imageUrl2 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl2 = "/static/img/txt.png";
this.imageUrl2 = "/static/img/txt.jpg";
}
}
if (this.ruleForm.pact) {
@@ -3271,7 +3366,7 @@ export default {
}else if(filetype == "zip" || filetype == "rar"){
this.imageUrl3 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl3 = "/static/img/txt.png";
this.imageUrl3 = "/static/img/txt.jpg";
}
}
if (this.ruleForm.promise) {
@@ -3297,7 +3392,7 @@ export default {
}else if(filetype == "zip" || filetype == "rar"){
this.imageUrl4 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl4 = "/static/img/txt.png";
this.imageUrl4 = "/static/img/txt.jpg";
}
}
for (let m in this.ruleForm1) {
@@ -3603,7 +3698,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") {
this.imageUrl = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl = "/static/img/txt.png";
this.imageUrl = "/static/img/txt.jpg";
}
this.fileid = res.id;
}
@@ -3633,7 +3728,7 @@ export default {
// } else if (houzui == "zip" || houzui == "rar") {
// this.imageUrl = "/static/img/zip.png";
// }else if (filetype == "txt") {
// this.imageUrl = "/static/img/txt.png";
// this.imageUrl = "/static/img/txt.jpg";
// }
// this.fileid = res.id;
@@ -3691,29 +3786,66 @@ export default {
this.fileid = file.response.data.id;
this.filename = file.response.data.name;
this.fileurl = file.response.data.url;
this.fileLists1[0] = file.response.data;
this.fileLists1.push(file.response.data)
//this.fileLists1[0] = file.response.data;
this.dianziurl = file.response.data.url;
// this.fileLists1.push(file.response.data);
console.log(file);
console.log(this.fileLists1);
},
successUploadThree(response, file, fileList) {
this.fileid = file.response.data.id;
this.filename = file.response.data.name;
this.fileurl = file.response.data.url;
this.fileLists2[0] = file.response.data;
this.fileLists2.push(file.response.data)
//this.fileLists2[0] = file.response.data;
this.xinweiurl = file.response.data.url;
// this.fileLists.push(file.response.data);
// this.fileLists.push(file.response.data);
console.log(file);
},
handleRemove1(file, fileList) {
console.log(12220)
this.dianziurl != "" && (this.dianziurl = "");
this.xinweiurl != "" && (this.xinweiurl = "");
this.picture.forEach(element => {
this.fileLists1.forEach(element => {
console.log(file,element)
if (file.name === element.name) {
this.picture.splice(element, 1);
console.log(this.fileLists1.lastIndexOf(element),"del")
this.fileLists1.splice(this.fileLists1.lastIndexOf(element), 1);
}
});
console.log(this.fileLists1)
return;
// if (!this.ifupdate) {
// this.picture.forEach(element => {
// if (file.name === element.name) {
// this.picture.splice(element, 1);
// }
// });
// return this.$confirm(`确定移除 ${file.name} ?`);
// } else {
// // this.dataFile = JSON.pardse(this.zData.proimages);
// // this.fileLists[0]=file
// this.$set(this.fileLists, 0, file);
// // console.log(this.fileLists)
// // this.$message.warning("已提交的的附件不能删除");
// return;
// }
},
handleRemove2(file, fileList) {
console.log(12220)
this.dianziurl != "" && (this.dianziurl = "");
this.xinweiurl != "" && (this.xinweiurl = "");
this.fileLists2.forEach(element => {
console.log(file,element)
if (file.name === element.name) {
console.log(this.fileLists2.lastIndexOf(element),"del")
this.fileLists2.splice(this.fileLists2.lastIndexOf(element), 1);
}
});
console.log(this.fileLists2)
return;
// if (!this.ifupdate) {
// this.picture.forEach(element => {
@@ -3739,14 +3871,15 @@ export default {
}
});
// return this.$confirm(`确定移除 ${file.name} ?`);
} else {
// this.dataFile = JSON.pardse(this.zData.proimages);
// this.fileLists[0]=file
this.$set(this.fileLists, 0, file);
// console.log(this.fileLists)
this.$message.warning("已提交的的附件不能修改");
return;
}
}
// else {
// // this.dataFile = JSON.pardse(this.zData.proimages);
// // this.fileLists[0]=file
// this.$set(this.fileLists, 0, file);
// // console.log(this.fileLists)
// this.$message.warning("已提交的的附件不能修改");
// return;
// }
},
handlePreview(file) {
console.log(file);
@@ -3824,14 +3957,15 @@ export default {
type: "warning"
}).then(() => {
if (this.fileLists1.length) {
this.$http({
if(this.month){
this.$http({
method: "post",
url: "v1/pro/mon",
data: {
// project_id: this.zData.id,
project_id: this.id,
month: Math.round(this.month / 1000),
elereport: JSON.stringify(this.fileLists1[0]),
elereport: JSON.stringify(this.fileLists1),
pid: this.fileLists1[0].id,
name: this.fileLists1[0].name
}
@@ -3857,6 +3991,7 @@ export default {
});
this.month = "";
this.dianziurl = "";
this.fileLists1 = [];
this.dialogTableVisible = false;
// alert("请求失败!");
}
@@ -3864,6 +3999,13 @@ export default {
.catch(err => {
console.log(err);
});
}else{
this.$message({
type: "error",
message: "请选择日期"
});
}
} else {
this.$message({
type: "error",
@@ -3881,12 +4023,18 @@ export default {
}
});
},
toclose(){
this.month = ''
this.fileLists1=[]
this.fileLists2=[]
},
subsBun() {
console.log(this.fileLists);
// var date = new Date(this.month.replace(/-/g, "/"));
// var datefin = Math.round(date.getTime() / 1000).toString();
if (this.fileLists2[0]) {
this.$http({
if(this.month){
this.$http({
method: "post",
url: "v1/pro/news",
data: {
@@ -3895,7 +4043,7 @@ export default {
month: Math.round(this.month / 1000),
// pid: this.fileid,
// name: this.filename ? this.filename : this.zData.name1,
elereport: JSON.stringify(this.fileLists2[0]),
elereport: JSON.stringify(this.fileLists2),
pid: this.fileLists2[0].id,
name: this.fileLists2[0].name
}
@@ -3919,11 +4067,20 @@ export default {
});
this.month = "";
this.xinweiurl = "";
this.fileLists2 = [];
this.dialogFormVisible = false;
}
})
.catch(err => {
console.log(err);
});
}else{
this.$message({
type: "error",
message: "请选择日期"
});
}
} else {
this.$message({
type: "error",
@@ -4153,7 +4310,7 @@ export default {
}else if (houzui == "zip" || houzui == "rar") {
this.imageUrl1 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl1 = "/static/img/txt.png";
this.imageUrl1 = "/static/img/txt.jpg";
}
// console.log(file);
@@ -4221,7 +4378,7 @@ export default {
}else if (houzui == "zip" || houzui == "rar") {
this.imageUrl2 = "/static/img/zip.png";
}else if (houzui == "txt") {
this.imageUrl2 = "/static/img/txt.png";
this.imageUrl2 = "/static/img/txt.jpg";
}
// console.log(file);
@@ -4287,7 +4444,7 @@ export default {
}else if (houzui == "zip" || houzui == "rar") {
this.imageUrl3 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl3 = "/static/img/txt.png";
this.imageUrl3 = "/static/img/txt.jpg";
}
// console.log(file);
@@ -4338,7 +4495,7 @@ export default {
this.fileurl4 = res.url;
this.filename4 = res.name;
+"." + res.extension;
this.ruleForm.pact = res.url;
this.ruleForm.promise = res.url;
if (houzui == "doc" || houzui == "docx") {
this.imageUrl4 = "/static/img/word.png";
@@ -4353,7 +4510,7 @@ export default {
}else if (houzui == "zip" || houzui == "rar") {
this.imageUrl4 = "/static/img/zip.png";
}else if (filetype == "txt") {
this.imageUrl4 = "/static/img/txt.png";
this.imageUrl4 = "/static/img/txt.jpg";
}
// console.log(file);
@@ -4425,7 +4582,7 @@ export default {
// margin-right: 10px!important
// }
/deep/ .el-upload-list__item /deep/ .el-icon-close {
display: none !important;
// display: none !important;
}
/deep/ .el-icon-close-tip {
display: none !important;
@@ -5138,6 +5295,7 @@ export default {
overflow-y: auto;
td {
border: 1px solid #eee !important;
vertical-align:middle;
}
}
.on {
@@ -5146,6 +5304,9 @@ export default {
.off {
background-color: #f7f7f7;
// background: #a3a3a3;
}
.off td{
}
.monitor {
th {
@@ -5155,12 +5316,14 @@ export default {
td {
width: 260px;
border: 2px solid #d7d3d3 !important;
vertical-align:middle;
}
}
.news_release {
height: 10000px;
td {
border: none !important;
vertical-align:middle;
}
}
.footer {

1313
src/views/project/fuzhi1.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -36,7 +36,7 @@
</tr>
<tr>
<td class="key">社会组织类型</td>
<td class="val">{{result.society_type == 0?"非企业单位":"社会团体"}}</td>
<td class="val">{{result.society_type == 0?"民办非企业单位":"社会团体"}}</td>
<td class="key">法定代表人</td>
<td class="val">{{result.legal_person?result.legal_person:"无"}}</td>
</tr>

BIN
static/img/txt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -12,7 +12,8 @@
hotOnly: false,
proxy: {
'/url/': {
target: 'http://chaoyang.nxers.com/api/',
target: 'http://cyteam.org.cn/api/',//http://chaoyang.nxers.com/api/',
// target: 'http://chaoyang.nxers.com/api/',//http://chaoyang.nxers.com/api/',
ws: false,
changeOrigin: true,
pathRewrite: {