2 Commits
master ... zj

Author SHA1 Message Date
asd
f167bf7fe3 还没加新改的需求 上传文件 2020-06-29 09:11:06 +08:00
asd
48fcda77e8 自己测之前的 2020-05-29 14:39:04 +08:00
25 changed files with 6096 additions and 615 deletions

View File

@@ -2,4 +2,6 @@
ENV = 'production' ENV = 'production'
# base api # 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/

BIN
dist.zip Normal file

Binary file not shown.

View File

@@ -26,7 +26,7 @@ export default {
mounted () { mounted () {
let t = this let t = this
this.$nextTick(()=>{ this.$nextTick(()=>{
console.log(t.time,document.getElementById(t.time)) //console.log(t.time,document.getElementById(t.time))
this.phoneEditor = new E(document.getElementById(t.time)) this.phoneEditor = new E(document.getElementById(t.time))
let phoneEditor = this.phoneEditor let phoneEditor = this.phoneEditor
phoneEditor.customConfig.pasteFilterStyle = false phoneEditor.customConfig.pasteFilterStyle = false

View File

@@ -73,8 +73,8 @@ export default {
<style lang='scss' scoped> <style lang='scss' scoped>
#wrapper { #wrapper {
min-width: 1280px; // min-width: 1280px;
// width: 100%; width: 100%;
height: 389px; height: 389px;
box-sizing: border-box; box-sizing: border-box;
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -89,7 +89,7 @@ export default {
justify-content: center; justify-content: center;
img { img {
// width: 100%; width: 100%;
height: 100%; height: 100%;
cursor: default; cursor: default;

View File

@@ -52,8 +52,11 @@ export default {
'redo' // 重复 'redo' // 重复
] ]
phoneEditor.create() phoneEditor.create()
phoneEditor.txt.html(_this.projectBriefVal)
phoneEditor.$textElem.attr('contenteditable', this.writeable) phoneEditor.txt.html(_this.projectBriefVal)
phoneEditor.txt.clear()
phoneEditor.$textElem.attr('contenteditable', this.writeable)
}, },
methods: {}, methods: {},
computed: {}, computed: {},

View File

@@ -30,23 +30,23 @@ export default {
let pageHeight = (contentWidth / 592.28) * 841.89 let pageHeight = (contentWidth / 592.28) * 841.89
let leftHeight = contentHeight let leftHeight = contentHeight
let position = 0 let position = 0
let imgWidth = 595.28
// let imgWidth = 595.28 // let imgWidth = 595.28
let imgWidth = 595.28
let imgHeight = (597.28/ contentWidth) * contentHeight let imgHeight = (597.28/ contentWidth) * contentHeight
let pageData = canvas.toDataURL('image/jpeg', 0.4) let pageData = canvas.toDataURL('image/jpeg', 0.4)
// var d1 = document.getElementsByTagName("body")[0]; // var d1 = document.getElementsByTagName("body")[0];
// var img = document.createElement("img"); // var img = document.createElement("img");
// img.src=pageData // img.src=pageData
// d1.appendChild(img); // d1.appendChild(img);
let PDF = new JsPDF('', 'pt', 'a4') let PDF = new JsPDF('', 'pt', 'a3')
if (leftHeight < pageHeight) { if (leftHeight < pageHeight) {
PDF.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight) PDF.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight)
} else { } else {
while (leftHeight > 0) { while (leftHeight > 0) {
PDF.addImage(pageData, 'JPEG', 0, position, imgWidth, imgHeight) PDF.addImage(pageData, 'JPEG', 132, position, imgWidth, imgHeight)
leftHeight -= pageHeight leftHeight -= pageHeight
// position -= 841.89
position -= 841.89 position -= 841.89
// position -= 11541.89
if (leftHeight > 0) { if (leftHeight > 0) {
PDF.addPage() PDF.addPage()
} }

View File

@@ -16,7 +16,8 @@ Vue.prototype.$axios = axios
Vue.prototype.$md5 = md5 Vue.prototype.$md5 = md5
Vue.prototype.$tool = tool Vue.prototype.$tool = tool
Vue.prototype.$http = http 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) { Vue.prototype.$jump = function (url) {
this.$router.push({ this.$router.push({
name: url name: url

View File

@@ -6,14 +6,14 @@
<div class="excute_con"> <div class="excute_con">
<h3>项目申报书</h3> <h3>项目申报书</h3>
<p> <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?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> <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> </p>
<h3>项目实施方案</h3> <h3>项目实施方案</h3>
<!-- probook --> <!-- probook -->
<p> <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?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> <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> </p>
@@ -61,7 +61,7 @@
</div> </div>
<div style="margin-bottom:15px;position:relative;right:94px"> <div style="margin-bottom:15px;position:relative;right:94px">
<label style="">申请日期:</label> <label style="">申请日期:</label>
<span style="margin-left:20px">{{zDatc.aterm}}</span> <span style="margin-left:20px">{{zDatc.aterm}}</span>--<span>{{zDatc.fterm}}</span>
<!-- <el-date-picker <!-- <el-date-picker
v-model="zDatc.month" v-model="zDatc.month"
type="date" type="date"
@@ -79,10 +79,11 @@
<div style="margin-bottom:15px"> <div style="margin-bottom:15px">
<label style="font-size:20px;white-space:nowrap;margin-left:6px">项目执行团队人员构成及分工:</label> <label style="font-size:20px;white-space:nowrap;margin-left:6px">项目执行团队人员构成及分工:</label>
<span style="font-size:15px;margin-left:20px">{{zDatc.people}}</span> <span style="font-size:15px;margin-left:20px">{{zDatc.people}}</span>
<div class="rich"> <p v-html="centers.people"></p>
<!-- <team @team1="team1" :teamVal="teamval"></team> --> <!-- <div class="rich">
<team @team1="team1" :teamVal="teamval"></team>
<aboutUs @aboutUs="inform2" :aboutUsVal="centers.people" :writeable="!ifupdate"></aboutUs> <aboutUs @aboutUs="inform2" :aboutUsVal="centers.people" :writeable="!ifupdate"></aboutUs>
</div> </div>-->
<!-- <el-input <!-- <el-input
v-model="zDatc.people" v-model="zDatc.people"
name="name" name="name"
@@ -102,37 +103,41 @@
</aside> </aside>
<h3>2发展性状况</h3> <h3>2发展性状况</h3>
<div class="rich"> <div class="rich">
<ProjectBrief <p v-html="centers.develop"></p>
<!-- <ProjectBrief
@projectBrief="inform" @projectBrief="inform"
:projectBriefVal="centers.develop" :projectBriefVal="centers.develop"
:writeable="!ifupdate" :writeable="!ifupdate"
></ProjectBrief> ></ProjectBrief> -->
</div> </div>
<!-- <p>我国仍处于井将长期处于社会主义初级阶段,是最大的国情和实际我们开展各项工作,要一切从实际出发,牢牢立足这个最大国情和实际,不要超越阶段从能源来看,我国當富煤少油缺气?的资源禀赋,决定了煤炭在较长一个时期内作为我国主体能源的地位不会发玍变化,这就婓求我们坚持从煤炭资源丰富的囯情出发,切实抓好煤炭清洁高效利用章建华</p> --> <!-- <p>我国仍处于井将长期处于社会主义初级阶段,是最大的国情和实际我们开展各项工作,要一切从实际出发,牢牢立足这个最大国情和实际,不要超越阶段从能源来看,我国當富煤少油缺气?的资源禀赋,决定了煤炭在较长一个时期内作为我国主体能源的地位不会发玍变化,这就婓求我们坚持从煤炭资源丰富的囯情出发,切实抓好煤炭清洁高效利用章建华</p> -->
<h3>3项目实施情况</h3> <h3>3项目实施情况</h3>
<div class="rich"> <div class="rich">
<ProjectAssessment <p v-html="centers.pro_condition"></p>
<!-- <ProjectAssessment
@projectAssessment="goals" @projectAssessment="goals"
:projectAssessmentVal="centers.pro_condition" :projectAssessmentVal="centers.pro_condition"
:writeable="!ifupdate" :writeable="!ifupdate"
></ProjectAssessment> ></ProjectAssessment> -->
</div> </div>
<h3>4项目取得的成就</h3> <h3>4项目取得的成就</h3>
<div class="rich"> <div class="rich">
<ExistingBasis <p v-html="centers.result"></p>
<!-- <ExistingBasis
@existingBasis="effect" @existingBasis="effect"
:existingBasisVal="centers.result" :existingBasisVal="centers.result"
:writeable="!ifupdate" :writeable="!ifupdate"
></ExistingBasis> ></ExistingBasis> -->
</div> </div>
<h3>5对项目实施至今的情况总结</h3> <h3>5对项目实施至今的情况总结</h3>
<div class="rich"> <div class="rich">
<MethodsWay <p v-html="centers.summary"></p>
<!-- <MethodsWay
@methodsWay="plement" @methodsWay="plement"
:methodsWayVal="centers.summary" :methodsWayVal="centers.summary"
:writeable="!ifupdate" :writeable="!ifupdate"
></MethodsWay> ></MethodsWay> -->
</div> </div>
<!-- <p>{{ centers.summary }}</p> --> <!-- <p>{{ centers.summary }}</p> -->
<h3> <h3>
@@ -168,7 +173,9 @@
<p v-if='centers.ziliao[0].name ==""' style='color:blue;font-size:14px;'>暂未上传</p> <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 !==""'> <h3 v-for="(i,j) in centers.ziliao" :key="j" v-if='centers.ziliao[0].name !==""'>
<p>活动名称{{j+1}}:{{i.name}}</p> <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('_')}} -->
<span :href="i.elereport?i.elereport:''" style="margin-left:-1px;font-size:14px;color: #7471ef;">{{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])):''}}</span>
<!-- <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" > <span class="download" >
<!-- <a :href="i.elereport" download v-if="i.elereport">下载 |</a> <!-- <a :href="i.elereport" download v-if="i.elereport">下载 |</a>
<a :href="i.elereport" target="_blank" v-if="i.elereport">预览</a> --> <a :href="i.elereport" target="_blank" v-if="i.elereport">预览</a> -->
@@ -263,6 +270,8 @@ export default {
index_num: 2, index_num: 2,
sub: 0, sub: 0,
name: " ", name: " ",
probook:'',
fangan:'',
info: ["1"], info: ["1"],
zDatc: [], zDatc: [],
zDatb: [], zDatb: [],
@@ -289,6 +298,7 @@ export default {
}, },
created() { created() {
this.GetListImg(); this.GetListImg();
this.getCenter()
}, },
methods: { methods: {
inform(data) { inform(data) {
@@ -347,29 +357,42 @@ export default {
}) })
.then(res => { .then(res => {
if (res.data.data.code === 200) { if (res.data.data.code === 200) {
let data = res.data.data.data[0]; console.log(res.data.data.data[0].status)
this.centers = data; if(res.data.data.data[0].status == 1000){
console.log(this.centers); let data = res.data.data.data[0];
this.caiwu = this.centers.fina.substring( this.centers = data;
this.centers.fina.lastIndexOf("/") + 1 console.log(this.centers);
); this.probook = this.centers.probook.substring(
this.dianzi = this.centers.elereport.substring( this.centers.probook.lastIndexOf("/") + 1
this.centers.elereport.lastIndexOf("/") + 1 );
); this.fangan = this.centers.fangan.substring(
this.shenqing = this.centers.adjust.substring( this.centers.fangan.lastIndexOf("/") + 1
this.centers.adjust.lastIndexOf("/") + 1 );
); this.caiwu = this.centers.fina.substring(
this.midcaiwu = this.centers.budget.substring( this.centers.fina.lastIndexOf("/") + 1
this.centers.budget.lastIndexOf("/") + 1 );
); this.dianzi = this.centers.elereport.substring(
this.qita = this.centers.other.substring( this.centers.elereport.lastIndexOf("/") + 1
this.centers.other.lastIndexOf("/") + 1 );
); this.shenqing = this.centers.adjust.substring(
this.ppt = this.centers.PPT.substring( this.centers.adjust.lastIndexOf("/") + 1
this.centers.PPT.lastIndexOf("/") + 1 );
); this.midcaiwu = this.centers.budget.substring(
this.centers.budget.lastIndexOf("/") + 1
);
this.qita = this.centers.other.substring(
this.centers.other.lastIndexOf("/") + 1
);
this.ppt = this.centers.PPT.substring(
this.centers.PPT.lastIndexOf("/") + 1
);
}else{
this.$message.error("当前页面未提交暂时无法查看!");
this.$router.push({path: `/schedule${this.id}`});
}
} else { } else {
alert(res.data.data.msg); this.$message.error("当前页面未提交暂时无法查看!");
// this.$jParams("schedule", { id: this.id, mid_sub: 1 }); // this.$jParams("schedule", { id: this.id, mid_sub: 1 });
this.$router.push({path: `/schedule${this.id}`}); this.$router.push({path: `/schedule${this.id}`});
} }

View File

@@ -8,42 +8,66 @@
<p> <p>
<a :href="over.probook">{{over.probook?over.probook.split('/')[8]:'未上传'}}</a> <a :href="over.probook">{{over.probook?over.probook.split('/')[8]:'未上传'}}</a>
<!-- <a :href="over.probook" target="_blank" v-if="over.probook">预览</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> </p>
<h3>立项批复文件</h3> <h3>立项批复文件</h3>
<p> <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 :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> </p>
<h3>实施方案</h3> <h3>实施方案</h3>
<p> <p>
<a :href="over.fangan">{{over.fangan?over.fangan.split('/')[8]:'未上传'}}</a> <a :href="over.fangan">{{over.fangan?over.fangan.split('/')[8]:'未上传'}}</a>
<!-- <a :href="over.fangan" target="_blank" v-if="over.fangan">预览</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.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>
</p> </p>
<!-- <h3>街道地区办事处关于2019年社会建设资金购买社会组织服务结项材料的说明</h3> <h3>
<!-- <span style="color:red;margin-right:10px;position:relative;right:3px">*</span> -->
街道地区办事处关于2019年社会建设资金购买社会组织服务结项材料的说明
</h3>
<p> <p>
<span> <a :href="over.explain">{{over.explain?over.explain.split('/')[8]:'未上传'}}</a>
<a href="#">下载</a> | <!-- <a :href="over.fangan" target="_blank" v-if="over.fangan">预览</a> -->
<a href="#">预览</a> <a
</span> v-if="over.explain"
</p> --> :href="over.explain"
<h3>项目实施各阶段情况报告月度报告</h3> target="_blank"
>{{over.explain.split('/')[8].split('.')[1] == 'pdf'||over.explain.split('/')[8].split('.')[1] == 'jpeg'||over.explain.split('/')[8].split('.')[1] == 'png'||over.explain.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
</p>
<h3>项目实施各阶段情况报告</h3>
<!--月度报告-->
<p> <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" @divisionLabor="plement"
:divisionLaborVal="over.pro_condition" :divisionLaborVal="over.pro_condition"
:writeable="false" :writeable="false"
></DivisionLabor> ></DivisionLabor>-->
<!-- <a href="#">未上传</a> --> <!-- <a href="#">未上传</a> -->
<!-- <a :href="over.pro_condition" download="" v-if="over.pro_condition">下载</a>
<!-- <a :href="over.pro_condition">{{over.pro_condition?over.pro_condition.split('/')[8]:'未上传'}}</a> <a :href="over.pro_condition" target="_blank" v-if="over.pro_condition">预览</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> </p>
<!-- <h3>中期评估报告</h3> <!-- <h3>中期评估报告</h3>
<p> <p>
@@ -51,8 +75,23 @@
<a href="#">下载</a> | <a href="#">下载</a> |
<a href="#">预览</a> <a href="#">预览</a>
</span> </span>
</p> --> </p>-->
<h3>结项报告绩效报告</h3>
<h3>
<!-- <span style="color:red;margin-right:10px;position:relative;right:3px">*</span> -->
中期评估报告
</h3>
<p>
<a :href="over.assess">{{over.assess?over.assess.split('/')[8]:'未上传'}}</a>
<!-- <a :href="over.fangan" target="_blank" v-if="over.fangan">预览</a> -->
<a
v-if="over.explain"
:href="over.explain"
target="_blank"
>{{over.assess.split('/')[8].split('.')[1] == 'pdf'||over.assess.split('/')[8].split('.')[1] == 'jpeg'||over.assess.split('/')[8].split('.')[1] == 'png'||over.assess.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
</p>
<h3>结项报告</h3>
<!--绩效报告-->
<h3>1基本信息</h3> <h3>1基本信息</h3>
<aside> <aside>
<div class="baseinfo"> <div class="baseinfo">
@@ -61,11 +100,13 @@
</div> </div>
<div class="baseinfo"> <div class="baseinfo">
<label class="left">机构名称:</label> <label class="left">机构名称:</label>
<p class="right">{{over.company}}</p> <p class="right">{{over.company}}</p>
</div> </div>
<div class="baseinfo"> <div class="baseinfo">
<label class="left">申请日期:</label> <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()}}--{{new Date(over.fterm*1000).getFullYear()+'-'+(new Date(over.fterm*1000).getMonth()+1)+'-'+new Date(over.fterm*1000).getDate()}}</p>
</div> </div>
<div> <div>
<label class="left" style="font-size:20px">项目执行团队人员构成及分工:</label> <label class="left" style="font-size:20px">项目执行团队人员构成及分工:</label>
@@ -77,112 +118,156 @@
required required
disabled disabled
class="division" class="division"
/> --> />-->
<DivisionLabor <!-- <DivisionLabor
@divisionLabor="plement" @divisionLabor="plement"
:divisionLaborVal="over.people" :divisionLaborVal="over.people"
:writeable="false" :writeable="false"
></DivisionLabor> ></DivisionLabor> -->
<!-- <p v-html="over.people"></p> --> <p v-html="over.people"></p>
</div> </div>
</aside> </aside>
<div class="mid_box">
<h3>
<span style="color:red;margin-right:10px;position:relative;right:3px">*</span>2项目发展性状况
</h3>
<div class="rich">
<!-- {{subMidVal}}zzzzzz -->
<!-- <DivisionLabor @divisionLabor="plement" :divisionLaborVal="over.develop" :writeable="true"></DivisionLabor> -->
<!-- <sub-mid @subMid="subMid" :subMidVal="subMidVal"></sub-mid> -->
<p v-html="over.develop"></p>
</div>
</div>
<h3>3项目实施情况</h3>
<!-- <DivisionLabor @divisionLabor="plement" :divisionLaborVal="over.pro_condition" :writeable="false"></DivisionLabor> -->
<!-- <h3>2发展性状况</h3> --> <!-- <h3>2发展性状况</h3> -->
<!-- <p></p> --> <!-- <p></p> -->
<!-- <h3>3项目实施情况</h3> --> <!-- <h3>3项目实施情况</h3> -->
<!-- <p>{{over.pro_condition}}</p> --> <!-- <p>{{over.pro_condition}}</p> -->
<!-- <p v-html="over.pro_condition"></p> --> <p v-html="over.pro_condition"></p>
<!-- <DivisionLabor <!-- <DivisionLabor
@divisionLabor="plement" @divisionLabor="plement"
:divisionLaborVal="over.pro_condition" :divisionLaborVal="over.pro_condition"
:writeable="false" :writeable="false"
></DivisionLabor> --> ></DivisionLabor>-->
<h3>1项目取得的成就</h3> <h3>4项目取得的成就</h3>
<!-- <p>{{over.result}}</p> --> <p v-html="over.result"></p>
<!-- <p v-html="over.result"></p> --> <!-- <DivisionLabor @divisionLabor="plement" :divisionLaborVal="over.result" :writeable="false"></DivisionLabor> -->
<DivisionLabor
@divisionLabor="plement" <h3>5对项目实施至今的情况总结</h3>
:divisionLaborVal="over.result"
:writeable="false"
></DivisionLabor>
<h3>2对项目实施至今的情况总结</h3>
<!-- <p>{{ over.summary }}</p> --> <!-- <p>{{ over.summary }}</p> -->
<!-- <p v-html="over.summary"></p> --> <p v-html="over.summary"></p>
<DivisionLabor <!-- <DivisionLabor @divisionLabor="plement" :divisionLaborVal="over.summary" :writeable="false"></DivisionLabor> -->
@divisionLabor="plement"
:divisionLaborVal="over.summary"
:writeable="false"
></DivisionLabor>
<h3> <h3>
3项目财务报告 6项目财务报告
<span class="download"> <span class="download">
<!-- {{over.fina}} --> <!-- {{over.fina}} -->
<a :href="over.fina">{{over.fina?over.fina.split('/')[8]:'未上传'}}</a> <a :href="over.fina">{{over.fina?over.fina.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a v-if="over.fina" :href="over.fina" target="_blank">{{over.fina.split('/')[8].split('.')[1] == 'pdf'||over.fina.split('/')[8].split('.')[1] == 'jpeg'||over.fina.split('/')[8].split('.')[1] == 'png'||over.fina.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> <a
v-if="over.fina"
:href="over.fina"
target="_blank"
>{{over.fina.split('/')[8].split('.')[1] == 'pdf'||over.fina.split('/')[8].split('.')[1] == 'jpeg'||over.fina.split('/')[8].split('.')[1] == 'png'||over.fina.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
<!-- <a :href="over.fina" download v-if="over.fina"> 下载 |</a> <!-- <a :href="over.fina" download v-if="over.fina"> 下载 |</a>
<a :href="over.fina" target="_blank" v-if="over.fina">预览</a> --> <a :href="over.fina" target="_blank" v-if="over.fina">预览</a>-->
</span> </span>
</h3> </h3>
<h3> <h3>
4结项电子报告 7结项电子报告
<span class="download"> <span class="download">
<a :href="over.elereport">{{over.elereport?over.elereport.split('/')[8]:'未上传'}}</a> <a :href="over.elereport">{{over.elereport?over.elereport.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a v-if="over.elereport" :href="over.elereport" target="_blank">{{over.elereport.split('/')[8].split('.')[1] == 'pdf'||over.elereport.split('/')[8].split('.')[1] == 'jpeg'||over.elereport.split('/')[8].split('.')[1] == 'png'||over.elereport.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> <a
v-if="over.elereport"
:href="over.elereport"
target="_blank"
>{{over.elereport.split('/')[8].split('.')[1] == 'pdf'||over.elereport.split('/')[8].split('.')[1] == 'jpeg'||over.elereport.split('/')[8].split('.')[1] == 'png'||over.elereport.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
<!-- <a :href="over.elereport" download v-if="over.elereport"> 下载 |</a> <!-- <a :href="over.elereport" download v-if="over.elereport"> 下载 |</a>
<a :href="over.elereport" target="_blank" v-if="over.elereport">预览</a> --> <a :href="over.elereport" target="_blank" v-if="over.elereport">预览</a>-->
</span> </span>
</h3> </h3>
<h3> <h3>
项目调整申请表及批复意见表 8项目调整申请表及批复意见表
<span class="download"> <span class="download">
<a :href="over.adjust">{{over.adjust?over.adjust.split('/')[8]:'未上传'}}</a> <a :href="over.adjust">{{over.adjust?over.adjust.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a v-if="over.adjust" :href="over.adjust" target="_blank">{{over.adjust.split('/')[8].split('.')[1] == 'pdf'||over.adjust.split('/')[8].split('.')[1] == 'jpeg'||over.adjust.split('/')[8].split('.')[1] == 'png'||over.adjust.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> <a
v-if="over.adjust"
:href="over.adjust"
target="_blank"
>{{over.adjust.split('/')[8].split('.')[1] == 'pdf'||over.adjust.split('/')[8].split('.')[1] == 'jpeg'||over.adjust.split('/')[8].split('.')[1] == 'png'||over.adjust.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
<!-- <a :href="over.adjust" download v-if="over.adjust">下载 |</a> <!-- <a :href="over.adjust" download v-if="over.adjust">下载 |</a>
<a :href="over.adjust" target="_blank" v-if="over.adjust">预览</a> --> <a :href="over.adjust" target="_blank" v-if="over.adjust">预览</a>-->
</span> </span>
</h3> </h3>
<!-- JSON.parse() --> <!-- JSON.parse() -->
<h3>会议活动相关资料通知议程参加人员名单及签到表现场照片或视频会议纪要活动总结报告媒体报道满意度测评表及报告等</h3> <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 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> <a :href="item.elereport">{{item.elereport?item.elereport.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &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
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" download v-if="item.elereport">下载 |</a>
<a :href="item.elereport" target="_blank" v-if="item.elereport">预览</a> --> <a :href="item.elereport" target="_blank" v-if="item.elereport">预览</a>-->
</span> </span>
</div>
<h3> <h3>
反映项目实施效果的相关资料 反映项目实施效果的相关资料
媒体报道获奖情况文字成果案例等 媒体报道获奖情况文字成果案例等
<span class="download"> <span class="download">
<a :href="over.pro_result">{{over.pro_result?over.pro_result.split('/')[8]:'未上传'}}</a> <a :href="over.pro_result">{{over.pro_result?over.pro_result.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a v-if="over.pro_result" :href="over.pro_result" target="_blank">{{over.pro_result.split('/')[8].split('.')[1] == 'pdf'||over.pro_result.split('/')[8].split('.')[1] == 'jpeg'||over.pro_result.split('/')[8].split('.')[1] == 'png'||over.pro_result.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> <a
v-if="over.pro_result"
:href="over.pro_result"
target="_blank"
>{{over.pro_result.split('/')[8].split('.')[1] == 'pdf'||over.pro_result.split('/')[8].split('.')[1] == 'jpeg'||over.pro_result.split('/')[8].split('.')[1] == 'png'||over.pro_result.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
<!-- <a :href="over.pro_result" download v-if="over.pro_result">下载 |</a> <!-- <a :href="over.pro_result" download v-if="over.pro_result">下载 |</a>
<a :href="over.pro_result" target="_blank" v-if="over.pro_result">预览</a> --> <a :href="over.pro_result" target="_blank" v-if="over.pro_result">预览</a>-->
</span> </span>
</h3> </h3>
<h3> <h3>
财务管理制度 财务管理制度
<span class="download"> <span class="download">
<a :href="over.manage">{{over.manage?over.manage.split('/')[8]:'未上传'}}</a> <a :href="over.manage">{{over.manage?over.manage.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a v-if="over.manage" :href="over.manage" target="_blank">{{over.manage.split('/')[8].split('.')[1] == 'pdf'||over.manage.split('/')[8].split('.')[1] == 'jpeg'||over.manage.split('/')[8].split('.')[1] == 'png'||over.manage.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> <a
v-if="over.manage"
:href="over.manage"
target="_blank"
>{{over.manage.split('/')[8].split('.')[1] == 'pdf'||over.manage.split('/')[8].split('.')[1] == 'jpeg'||over.manage.split('/')[8].split('.')[1] == 'png'||over.manage.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
<!-- <a :href="over.manage" download v-if="over.manage">下载 |</a> <!-- <a :href="over.manage" download v-if="over.manage">下载 |</a>
<a :href="over.manage" target="_blank" v-if="over.manage">预览</a> --> <a :href="over.manage" target="_blank" v-if="over.manage">预览</a>-->
</span> </span>
</h3> </h3>
<h3> <h3>
项目经费表决算表 项目经费表决算表
<span class="download"> <span class="download">
<a :href="over.money">{{over.money?over.money.split('/')[8]:'未上传'}}</a> <a :href="over.money">{{over.money?over.money.split('/')[8]:'未上传'}}</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a v-if="over.money" :href="over.money" target="_blank">{{over.money.split('/')[8].split('.')[1] == 'pdf'||over.money.split('/')[8].split('.')[1] == 'jpeg'||over.money.split('/')[8].split('.')[1] == 'png'||over.money.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a> <a
v-if="over.money"
:href="over.money"
target="_blank"
>{{over.money.split('/')[8].split('.')[1] == 'pdf'||over.money.split('/')[8].split('.')[1] == 'jpeg'||over.money.split('/')[8].split('.')[1] == 'png'||over.money.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
<!-- <a :href="over.money" download v-if="over.money">下载 |</a> <!-- <a :href="over.money" download v-if="over.money">下载 |</a>
<a :href="over.money" target="_blank" v-if="over.money">预览</a>--> <a :href="over.money" target="_blank" v-if="over.money">预览</a>-->
</span> </span>
</h3> </h3>
</div> </div>
</div> </div>
@@ -190,8 +275,8 @@
</div> </div>
</template> </template>
<script> <script>
import HeaderNav from '../../components/HeaderNav' import HeaderNav from "../../components/HeaderNav";
import FooterNav from '../../components/FooterNav' import FooterNav from "../../components/FooterNav";
const path = require("path"); const path = require("path");
const files = require.context("@/components", false, /\.vue$/); const files = require.context("@/components", false, /\.vue$/);
const modules = {}; const modules = {};
@@ -200,103 +285,111 @@ files.keys().forEach(key => {
modules[names] = files(key).default || files(key); modules[names] = files(key).default || files(key);
}); });
// eslint-disable-next-line no-unused-vars // eslint-disable-next-line no-unused-vars
var preD = function (e) { var preD = function(e) {
e.preventDefault() e.preventDefault();
} };
export default { export default {
components: modules, components: modules,
data () { data() {
return { return {
index_num: 2, index_num: 2,
sub: 0, sub: 0,
name: ' ', name: " ",
info: ['1'], info: ["1"],
zDatc: [], zDatc: [],
zDatb: [], zDatb: [],
dataFile: null, dataFile: null,
id: null, id: null,
fileName: null, fileName: null,
over: null, over: {},
probook:"" probook: ""
} };
}, },
created () { created() {
this.GetListImg() this.GetListImg();
}, },
methods: { methods: {
plement(){}, plement() {},
aterm () { }, aterm() {},
fterm () { }, fterm() {},
getData () { getData() {
this.$http({ this.$http({
method: 'post', method: "post",
url: 'v1/project/details', url: "v1/project/details",
data: { data: {
id: this.id id: this.id
} }
}) })
.then(res => { .then(res => {
console.log(res, 234568) console.log(res, 234568);
if (res.data.data.code === 200) { if (res.data.data.code === 200) {
this.zDatc = res.data.data.data.ProjectDetails this.zDatc = res.data.data.data.ProjectDetails;
console.log(this.zDatc, 256) console.log(this.zDatc, 256);
} else { } else {
alert('请求失败!') alert("请求失败!");
} }
}) })
.catch(err => { .catch(err => {
console.log(err) console.log(err);
}) });
}, },
getOver () { getOver() {
this.$http({ this.$http({
method: 'get', method: "get",
url: 'v1/pro/center', url: "v1/pro/center",
params: { params: {
// id: 83, // id: 83,
id:this.$route.query.id, id: this.$route.query.id,
category: 'over' category: "over"
} }
}) })
.then(res => { .then(res => {
// console.log(res,500) // console.log(res,500)
if (res.data.data.code === 200) { if (res.data.data.code === 200) {
let data = res.data.data.data[0] console.log(res.data.data.data[0].status)
this.over = data if(res.data.data.data[0].status == 1000){
console.log(this.over.probook.split('/')[8],500) let data = res.data.data.data[0];
this.over = data;
}else{
this.$message.error("当前页面未提交暂时无法查看!");
this.$router.push({ path: `/schedule${this.id}` });
}
console.log(data, "1111");
// console.log(this.over.probook.split('/')[8],500)
// var index = file.response.data.url.lastIndexOf("."); // var index = file.response.data.url.lastIndexOf(".");
// var filetype = file.response.data.url.substr(index + 1); // var filetype = file.response.data.url.substr(index + 1);
} else { } else {
alert(res.data.data.msg) this.$message.error("当前页面未提交暂时无法查看!");
this.$router.push({path: `/schedule${this.id}`}); this.$router.push({ path: `/schedule${this.id}` });
} }
}) })
.catch(err => { .catch(err => {
console.log(err) console.log(err);
}) });
} }
}, },
// eslint-disable-next-line no-dupe-keys // eslint-disable-next-line no-dupe-keys
created () { created() {
this.id = this.$route.query.id this.id = this.$route.query.id;
this.getData() this.getData();
this.getOver() this.getOver();
} }
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.baseinfo{ .baseinfo {
// min-width:180px; // min-width:180px;
display: flex; display: flex;
.right{ .right {
margin-left: 15px; margin-left: 15px;
margin-bottom: 20px; margin-bottom: 20px;
position: relative; position: relative;
top: -5px; top: -5px;
} }
.left{ .left {
margin-left:29px; margin-left: 29px;
} }
} }
#excute_box { #excute_box {
@@ -318,10 +411,10 @@ export default {
font-size: 14px; font-size: 14px;
margin-right: 10px; margin-right: 10px;
} }
p{ p {
font-size: 14px!important; font-size: 14px !important;
margin-left: 33px; margin-left: 33px;
line-height: 33px!important; line-height: 33px !important;
} }
label { label {
// margin-left: 16px; // margin-left: 16px;

View File

@@ -70,8 +70,10 @@
:on-preview="handlePreview" :on-preview="handlePreview"
style="position: relative" style="position: relative"
:http-request="uploadfile" :http-request="uploadfile"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <!-- :disabled="getpros.over.status == 1000" -->
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -96,7 +98,7 @@
>{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}</a> >{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p> <p class="tip">点击上方图标可上传文件</p>
<!-- v-if="imageUrl" --> <!-- 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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
@@ -112,8 +114,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile1" :http-request="uploadfile1"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -141,7 +144,7 @@
@click="beforeRemove1(filename1,'imageUrl1')" @click="beforeRemove1(filename1,'imageUrl1')"
class="close" class="close"
style="left:52px" style="left:52px"
v-if="imageUrl1" v-if="imageUrl1&&getpros.over.status!=1000"
> >
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
@@ -156,7 +159,7 @@
@click="dialogTableVisible = true" @click="dialogTableVisible = true"
style="color:rgb(116, 113, 239);cursor:pointer" style="color:rgb(116, 113, 239);cursor:pointer"
>+月工作报表</p> >+月工作报表</p>
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible"> <el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible" @close="toclose">
<aside> <aside>
<div> <div>
<label>项目名称:</label> <label>项目名称:</label>
@@ -231,6 +234,7 @@
:limit="10" :limit="10"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:file-list="fileLists" :file-list="fileLists"
:title="filename"
> >
<el-button <el-button
size="small" size="small"
@@ -331,9 +335,9 @@
<div class="statistics" v-show="num == 0"> <div class="statistics" v-show="num == 0">
<table> <table>
<tr style="color:white"> <tr style="color:white">
<th>月份</th> <th style="border-right:1px solid #fff">月份</th>
<th>提交情况</th> <th style="border-right:1px solid #fff">提交情况</th>
<th>月报文件</th> <th style="border-right:1px solid #fff">月报文件</th>
<th>提交时间</th> <th>提交时间</th>
</tr> </tr>
<tr <tr
@@ -341,20 +345,70 @@
:key="index" :key="index"
:class="{ on: index % 2 == 0, off: index % 2 != 0 }" :class="{ on: index % 2 == 0, off: index % 2 != 0 }"
> >
<td>{{new Date(names.month*1000).getMonth()+1}}</td> <td style="vertical-align:middle;">{{new Date(names.month*1000).getFullYear()}}-{{new Date(names.month*1000).getMonth()+1}}</td>
<td>{{names.type}}</td> <td style="vertical-align:middle;">{{names.type}}</td>
<td class="td_tooltip" style> <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" class="item"
effect="dark" 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" placement="top"
> >
<a <a
:href="names.elereport?JSON.parse(names.elereport).url:''" :href="names.elereport?JSON.parse(names.elereport).url:''"
target="view_window" target="view_window"
style="width:82%;float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis" 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> </el-tooltip>
<a <a
@@ -362,12 +416,12 @@
target="view_window" target="view_window"
style="width:18%;color:#7471ef" style="width:18%;color:#7471ef"
>下载</a> >下载</a>
</td> </td> -->
<!-- <td> <!-- <td>
<a :href="names.elereport">{{names.name}}</a> <a :href="names.elereport">{{names.name}}</a>
</td>--> </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()+'/'+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> </tr>
</table> </table>
</div> </div>
@@ -385,8 +439,10 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile2" :http-request="uploadfile2"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <!-- :disabled="getpros.over.status == 1000" -->
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -402,7 +458,7 @@
</el-upload> </el-upload>
<a class="filename" :href="fileurl2">{{filename2?filename2:''}}</a> <a class="filename" :href="fileurl2">{{filename2?filename2:''}}</a>
<p class="tip">点击上方图标可上传文件</p> <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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -477,7 +533,7 @@
range-separator="" range-separator=""
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
style="margin-left:25px" style="margin-left:25px;"
></el-date-picker> ></el-date-picker>
</div> </div>
</div> </div>
@@ -581,8 +637,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile3" :http-request="uploadfile3"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -601,7 +658,7 @@
:href="fileurl4" :href="fileurl4"
>{{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}}</a> >{{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p> <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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -616,8 +673,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile4" :http-request="uploadfile4"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -636,7 +694,7 @@
:href="fileurl5" :href="fileurl5"
>{{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}}</a> >{{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p> <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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -651,8 +709,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile5" :http-request="uploadfile5"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -674,7 +733,7 @@
<div <div
@click="beforeRemove1(filename6,'imageUrl6')" @click="beforeRemove1(filename6,'imageUrl6')"
class="close" class="close"
v-if="imageUrl6" v-if="imageUrl6&&getpros.over.status!=1000"
style="left:75px;top:-60" style="left:75px;top:-60"
> >
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
@@ -689,8 +748,9 @@
<el-button <el-button
type="primary" type="primary"
plain plain
style="height:40px;margin-top:51px;position: relative;top: 85px;left: -160px;z-index:999" class="button_add"
@click="add" @click="add"
v-if="getpros.over.status !=1000"
>添加</el-button> >添加</el-button>
</div> </div>
@@ -708,6 +768,7 @@
icon="el-icon-delete" icon="el-icon-delete"
circle circle
style="margin-left:64px" style="margin-left:64px"
v-if="getpros.over.status !=1000"
@click="delactive(j)" @click="delactive(j)"
></el-button> ></el-button>
<!-- <input type="text" name="activity" value v-model="name[j]" required class="midsion" /> --> <!-- <input type="text" name="activity" value v-model="name[j]" required class="midsion" /> -->
@@ -719,8 +780,9 @@
:show-file-list="false" :show-file-list="false"
style="margin-left:3px;position:relative" style="margin-left:3px;position:relative"
:http-request="uploadfile10" :http-request="uploadfile10"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -744,7 +806,7 @@
<div <div
@click="beforeRemove1('','imageUrl7',j)" @click="beforeRemove1('','imageUrl7',j)"
class="close" class="close"
v-if="i.length" v-if="i.length&&getpros.over.status!=1000"
style="left:-9px;top:-65px" style="left:-9px;top:-65px"
> >
<i class="el-icon-close close" style="left:140px;top:-107"></i> <i class="el-icon-close close" style="left:140px;top:-107"></i>
@@ -763,8 +825,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile7" :http-request="uploadfile7"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -783,7 +846,7 @@
:href="fileurl8" :href="fileurl8"
>{{filename8? filename8.split('_')[0]+''+(filename8.split('_')[0].includes('.')?'':'.'+filename8.split('.')[1]):""}}</a> >{{filename8? filename8.split('_')[0]+''+(filename8.split('_')[0].includes('.')?'':'.'+filename8.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p> <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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -798,8 +861,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile8" :http-request="uploadfile8"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -818,7 +882,7 @@
:href="fileurl9" :href="fileurl9"
>{{filename9? filename9.split('_')[0]+''+(filename9.split('_')[0].includes('.')?'':'.'+filename9.split('.')[1]):""}}</a> >{{filename9? filename9.split('_')[0]+''+(filename9.split('_')[0].includes('.')?'':'.'+filename9.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p> <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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -833,8 +897,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile9" :http-request="uploadfile9"
:disabled="getpros.over.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -853,7 +918,7 @@
:href="fileurl10" :href="fileurl10"
>{{filename10? filename10.split('_')[0]+''+(filename10.split('_')[0].includes('.')?'':'.'+filename10.split('.')[1]):""}}</a> >{{filename10? filename10.split('_')[0]+''+(filename10.split('_')[0].includes('.')?'':'.'+filename10.split('.')[1]):""}}</a>
<p class="tip">点击上方图标可上传文件</p> <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!=1000">
<i class="el-icon-close close"></i> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -865,7 +930,7 @@
<!-- :model="numberValidateForm" --> <!-- :model="numberValidateForm" -->
<div class="ll" v-if="getpros.over.status!=127"> <div class="ll" v-if="getpros.over.status!=1000">
<el-form ref="numberValidateForm" label-width="100px" class="demo-ruleForm"> <el-form ref="numberValidateForm" label-width="100px" class="demo-ruleForm">
<el-form-item> <el-form-item>
@@ -1026,6 +1091,11 @@ export default {
}, },
// model:{}, // model:{},
methods: { methods: {
toclose(){
this.month = ''
this.fileLists=[]
// this.fileLists2=[]
},
uploadfile(f) { uploadfile(f) {
console.log(f); console.log(f);
let formdata = new FormData(); let formdata = new FormData();
@@ -1713,18 +1783,35 @@ export default {
this.fileid = file.response.data.id; this.fileid = file.response.data.id;
this.filename = file.response.data.name; this.filename = file.response.data.name;
this.fileurl = file.response.data.url; 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); console.log(file);
}, },
handlePreview(file) { handlePreview(file) {
console.log(file); console.log(file);
this.previewinfo = file;
if (!!window.ActiveXObject || "ActiveXObject" in window) {
alert("推荐谷歌进行文件预览");
} else {
window.open(file.url); //blob格式地址
}
}, },
handleRemove(file, fileList) { 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) { 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() { subBtn() {
// console.log(this.zData.id, this.month) // console.log(this.zData.id, this.month)
@@ -1737,29 +1824,42 @@ export default {
// let datefin1=datefin.substr(0,datefin.length-2) // let datefin1=datefin.substr(0,datefin.length-2)
// console.log(datefin1) // console.log(datefin1)
if (this.fileLists.length) { if (this.fileLists.length) {
this.$http({ if(this.month){
method: "post", this.$http({
url: "v1/pro/mon", method: "post",
data: { url: "v1/pro/mon",
project_id: this.id, data: {
month: Math.round(this.month / 1000), project_id: this.id,
pid: this.fileLists[0].id, month: Math.round(this.month / 1000),
name: this.fileLists[0].name, pid: this.fileLists[0].id,
elereport: JSON.stringify(this.fileLists[0]) name: this.fileLists[0].name,
} elereport: JSON.stringify(this.fileLists),
})
.then(res => {
if (res.data.data.code === 200) {
console.log(res, 15656);
this.dialogTableVisible = false;
this.getPostData();
} else {
alert("请求失败!");
} }
}) })
.catch(err => { .then(res => {
console.log(err); 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 { } else {
this.$message({ this.$message({
type: "error", type: "error",
@@ -1839,7 +1939,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl = "/static/img/zip.png"; this.imageUrl = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl = "/static/img/txt.png"; this.imageUrl = "/static/img/txt.jpg";
} }
this.filename = res.name; // res.name + "." + res.extension; this.filename = res.name; // res.name + "." + res.extension;
// console.log(file); // console.log(file);
@@ -1892,7 +1992,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl1 = "/static/img/zip.png"; this.imageUrl1 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl1 = "/static/img/txt.png"; this.imageUrl1 = "/static/img/txt.jpg";
} }
this.filename1 = res.name; // res.name + "." + res.extension; this.filename1 = res.name; // res.name + "." + res.extension;
// console.log(file); // console.log(file);
@@ -1934,7 +2034,7 @@ export default {
if (houzui == "doc" || houzui == "docx") { if (houzui == "doc" || houzui == "docx") {
this.imageUrl2 = "/static/img/word.png"; this.imageUrl2 = "/static/img/word.png";
} else if (houzui == "pptx" || houzui == "ppt") { } else if (houzui == "pptx" || houzui == "ppt") {
this.imageUrl1 = "/static/img/ppt.png"; this.imageUrl2 = "/static/img/ppt.png";
} else if (houzui == "pdf") { } else if (houzui == "pdf") {
this.imageUrl2 = "/static/img/pdf.jpg"; this.imageUrl2 = "/static/img/pdf.jpg";
} else if (houzui == "xls" || houzui == "xlsx") { } else if (houzui == "xls" || houzui == "xlsx") {
@@ -1944,7 +2044,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl2 = "/static/img/zip.png"; this.imageUrl2 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl2 = "/static/img/txt.png"; this.imageUrl2 = "/static/img/txt.jpg";
} }
this.filename2 = res.name; // res.name + "." + res.extension; this.filename2 = res.name; // res.name + "." + res.extension;
@@ -2008,7 +2108,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl3 = "/static/img/zip.png"; this.imageUrl3 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl3 = "/static/img/txt.png"; this.imageUrl3 = "/static/img/txt.jpg";
} }
this.filename3 = file.response.data.name; this.filename3 = file.response.data.name;
// this.imageUrl = URL.createObjectURL(file.raw) // this.imageUrl = URL.createObjectURL(file.raw)
@@ -2032,7 +2132,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl4 = "/static/img/zip.png"; this.imageUrl4 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl4 = "/static/img/txt.png"; this.imageUrl4 = "/static/img/txt.jpg";
} }
this.filename4 = res.name; // res.name + "." + res.extension; this.filename4 = res.name; // res.name + "." + res.extension;
// console.log(file); // console.log(file);
@@ -2084,7 +2184,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl5 = "/static/img/zip.png"; this.imageUrl5 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl5 = "/static/img/txt.png"; this.imageUrl5 = "/static/img/txt.jpg";
} }
this.filename5 = res.name; //res.name + "." + res.extension; this.filename5 = res.name; //res.name + "." + res.extension;
@@ -2137,7 +2237,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl6 = "/static/img/zip.png"; this.imageUrl6 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl6 = "/static/img/txt.png"; this.imageUrl6 = "/static/img/txt.jpg";
} }
this.filename6 = res.name; //res.name + "." + res.extension; this.filename6 = res.name; //res.name + "." + res.extension;
// console.log(file); // console.log(file);
@@ -2192,7 +2292,7 @@ export default {
// this.imageUrl7[i] = "/static/img/pdf.jpg"; // this.imageUrl7[i] = "/static/img/pdf.jpg";
this.$set(this.imageUrl7, i, "/static/img/pdf.jpg"); this.$set(this.imageUrl7, i, "/static/img/pdf.jpg");
} else if (this.filetype[i] == "txt") { } 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") { } else if (this.filetype[i] == "xls" || this.filetype[i] == "xlsx") {
// this.imageUrl7[i] = "/static/img/excel.png"; // this.imageUrl7[i] = "/static/img/excel.png";
this.$set(this.imageUrl7, i, "/static/img/excel.png"); this.$set(this.imageUrl7, i, "/static/img/excel.png");
@@ -2283,7 +2383,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl8 = "/static/img/zip.png"; this.imageUrl8 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl8 = "/static/img/txt.png"; this.imageUrl8 = "/static/img/txt.jpg";
} }
this.filename8 = res.name; // res.name + "." + res.extension; this.filename8 = res.name; // res.name + "." + res.extension;
@@ -2336,7 +2436,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl9 = "/static/img/zip.png"; this.imageUrl9 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl9 = "/static/img/txt.png"; this.imageUrl9 = "/static/img/txt.jpg";
} }
this.filename9 = res.name; // res.name + "." + res.extension; this.filename9 = res.name; // res.name + "." + res.extension;
// console.log(file); // console.log(file);
@@ -2388,7 +2488,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl10 = "/static/img/zip.png"; this.imageUrl10 = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this.imageUrl10 = "/static/img/txt.png"; this.imageUrl10 = "/static/img/txt.jpg";
} }
this.filename10 = res.name; //res.name + "." + res.extension; this.filename10 = res.name; //res.name + "." + res.extension;
@@ -2465,37 +2565,49 @@ export default {
} }
}) })
.then(res => { .then(res => {
console.log(res.data.data, 88888); // console.log(res.data.data, 88888);
if (res.data.data.code == 0) { if (res.data.data.code == 0) {
alert(res.data.data.message); alert(res.data.data.message);
this.$router.push({ path: "schedule" + this.id }); this.$router.push({ path: "schedule" + this.id });
// this.before() // this.before()
} else { } else {
console.log(res, 100); // console.log(res, 100);
this.c = res.data.data; this.c = res.data.data;
this.getpros = res.data.data; this.getpros = res.data.data;
console.log(this.getpros, "aaaa"); // console.log(this.getpros, "aaaa");
// this.getpros.prodemofg="" // this.getpros.prodemofg=""
let shili = res.data.data.probook; let shili = res.data.data.probook;
this.shili = shili.substring(shili.lastIndexOf("/") + 1); this.shili = shili.substring(shili.lastIndexOf("/") + 1);
let shili1 = res.data.data.pifu; let shili1 = res.data.data.pifu;
this.shili1 = shili1.substring(shili1.lastIndexOf("/") + 1); if(shili1){
this.shili1 = shili1.substring(shili1.lastIndexOf("/") + 1);
}
let shili2 = res.data.data.fangan; let shili2 = res.data.data.fangan;
this.shili2 = shili2.substring(shili2.lastIndexOf("/") + 1); if(shili2){
this.shili2 = shili2.substring(shili2.lastIndexOf("/") + 1);
}
let shili3 = res.data.data.probook; let shili3 = res.data.data.probook;
this.shili3 = shili.substring(shili.lastIndexOf("/") + 1); if(shili3 ){
this.shili3 = shili.substring(shili.lastIndexOf("/") + 1);
}
let shili4 = res.data.data.probook; let shili4 = res.data.data.probook;
this.shili4 = shili.substring(shili.lastIndexOf("/") + 1); if(shili4){
this.shili4 = shili.substring(shili.lastIndexOf("/") + 1);
}
this.$set(this, "visitDate", [ this.$set(this, "visitDate", [
res.data.data.aterm, res.data.data.aterm,
res.data.data.fterm res.data.data.fterm
]); ]);
console.log(res.data.data.over, 4455); // console.log(res.data.data.over, 4455);
this.getpros.prodemofg =''; this.getpros.prodemofg ='';
if (res.data.data.over.people) { if (res.data.data.over.people) {
this.getpros.prodemofg = res.data.data.over.people; this.getpros.prodemofg = res.data.data.over.people;
@@ -2586,7 +2698,7 @@ export default {
} }
let arrlist = JSON.parse(res.data.data.over.ziliao) let arrlist = JSON.parse(res.data.data.over.ziliao)
if (arrlist.length) { if (arrlist.length) {
console.log(arrlist.length) // console.log(arrlist.length)
this.ziliaoarr=[] this.ziliaoarr=[]
for(let i in arrlist){ for(let i in arrlist){
let url = arrlist[i].elereport; let url = arrlist[i].elereport;
@@ -2597,7 +2709,7 @@ export default {
this.$set(this.filenamearr, i, filename); this.$set(this.filenamearr, i, filename);
this.ziliaoarr.push(1) this.ziliaoarr.push(1)
let houzhui=this.filenamearr[i].substring(filename.lastIndexOf(".")+1) let houzhui=this.filenamearr[i].substring(filename.lastIndexOf(".")+1)
console.log(houzhui,'10810') // console.log(houzhui,'10810')
if(houzhui=='rar'||houzhui=='zip'){ if(houzhui=='rar'||houzhui=='zip'){
this.ziliaoarr[i] = "/static/img/zip.png"; this.ziliaoarr[i] = "/static/img/zip.png";
}else if(houzhui=='doc'||houzhui=='docx'){ }else if(houzhui=='doc'||houzhui=='docx'){
@@ -2616,7 +2728,7 @@ export default {
this.ziliaoarr[i] = url; this.ziliaoarr[i] = url;
} }
console.log(this.filenamearr) // console.log(this.filenamearr)
} }
} }
@@ -2658,7 +2770,7 @@ export default {
// this.ziliaoarr[i] = "/static/img/pdf.jpg"; // this.ziliaoarr[i] = "/static/img/pdf.jpg";
// } else if (uurl.split('/')[8].split('.')[2] == "txt") { // } else if (uurl.split('/')[8].split('.')[2] == "txt") {
// // "/static/img/pdf.jpg" // // "/static/img/pdf.jpg"
// this.ziliaoarr[i] = "/static/img/txt.png"; // this.ziliaoarr[i] = "/static/img/txt.jpg";
// } else if ( // } else if (
// url.split('/')[8].split('.')[2] == "jpg" || // url.split('/')[8].split('.')[2] == "jpg" ||
// url.split('/')[8].split('.')[2] == "jpeg" || // url.split('/')[8].split('.')[2] == "jpeg" ||
@@ -2732,8 +2844,8 @@ export default {
}); });
}, },
fileloading(e, f, g, m) { fileloading(e, f, g, m) {
let houzui = e.split(".")[3]; let houzui = e.substring(e.lastIndexOf(".")+1)//e.split(".")[3];
console.log(houzui); // console.log(houzui);
if (houzui == "doc" || houzui == "docx") { if (houzui == "doc" || houzui == "docx") {
// console.log(g,'klll') // console.log(g,'klll')
this[g] = "/static/img/word.png"; this[g] = "/static/img/word.png";
@@ -2748,11 +2860,11 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this[g] = "/static/img/zip.png"; this[g] = "/static/img/zip.png";
} else if (houzui == "txt") { } else if (houzui == "txt") {
this[g] = "/static/img/txt.png"; this[g] = "/static/img/txt.jpg";
} }
this[f] = e.split("/")[8]; this[f] = e.split("/")[8];
this[m] = e; this[m] = e;
console.log(e.split("/")); // console.log(e.split("/"));
}, },
getSubmis() { getSubmis() {
this.$http({ this.$http({
@@ -2817,8 +2929,8 @@ export default {
fina: this.fileurl4, fina: this.fileurl4,
elereport: this.fileurl5, elereport: this.fileurl5,
adjust: this.fileurl6, adjust: this.fileurl6,
ziliao: this.fileurl7, // ziliao: this.fileurl7,
// ziliao: JSON.stringify(this.fileurl7), ziliao: JSON.stringify(this.fileurl7),
pro_result: this.fileurl8, pro_result: this.fileurl8,
manage: this.fileurl9, manage: this.fileurl9,
money: this.fileurl10 money: this.fileurl10
@@ -2828,12 +2940,16 @@ export default {
console.log(res); console.log(res);
if (res.data.data.code == 200) { if (res.data.data.code == 200) {
this.$message({ this.$message({
message: res.data.data.msg, message: '保存成功!',
type: "success" type: "success"
}); });
this.$router.push({ // this.$router.push({
name: "project" // name: "project"
}); // });
this.$router.go(-1)
// let id = this.id;
// console.log(id)
// $jParams('schedule', { id: id })
} else { } else {
this.$message.error(res.data.data.msg); this.$message.error(res.data.data.msg);
// this.$router.push({ path: `/schedule${this.id}` }); // this.$router.push({ path: `/schedule${this.id}` });
@@ -2850,7 +2966,6 @@ export default {
type: "warning" type: "warning"
}).then(() => { }).then(() => {
let procondition = this.stateText; let procondition = this.stateText;
for (let i in this.ziliaoarr) { for (let i in this.ziliaoarr) {
this.fileurl7[i] = { name: "", elereport: "" }; this.fileurl7[i] = { name: "", elereport: "" };
if (this.name[i]) { if (this.name[i]) {
@@ -2861,6 +2976,7 @@ export default {
} }
} }
console.log(this.getpros, 666); console.log(this.getpros, 666);
this.$http({ this.$http({
method: "post", method: "post",
url: "v1/test/end-sub", url: "v1/test/end-sub",
@@ -2879,8 +2995,8 @@ export default {
fina: this.fileurl4, fina: this.fileurl4,
elereport: this.fileurl5, elereport: this.fileurl5,
adjust: this.fileurl6, adjust: this.fileurl6,
ziliao:this.fileurl7, // ziliao:this.fileurl7,
// ziliao: JSON.stringify(this.fileurl7), ziliao: JSON.stringify(this.fileurl7),
pro_result: this.fileurl8, pro_result: this.fileurl8,
manage: this.fileurl9, manage: this.fileurl9,
money: this.fileurl10 money: this.fileurl10
@@ -2890,15 +3006,14 @@ export default {
console.log(res); console.log(res);
if (res.data.data.code == 200) { if (res.data.data.code == 200) {
this.$message({ this.$message({
message: res.data.data.msg, message: '提交成功!',
type: "success" type: "success"
}); });
this.$router.push({ //
name: "project" this.$router.go(-1)
});
} else { } else {
this.$message.error(res.data.data.msg); this.$message.error(res.data.data.msg);
this.$router.push({ path: `/schedule${this.id}` }); // this.$router.push({ path: `/schedule${this.id}` });
} }
}) })
.catch(err => { .catch(err => {
@@ -2914,7 +3029,22 @@ export default {
} }
}; };
</script> </script>
<style>
.el-picker-panel {
z-index: 99999 !important;
background: #fff;
}
</style>
<style lang="scss" scoped> <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{ // .upload-demo /deep/ .el-upload-list__item-status-label .el-icon-upload-success{
// display: none !important; // display: none !important;
@@ -2981,12 +3111,13 @@ label {
height: 320px; height: 320px;
} }
#excute_box { #excute_box {
width: 92%; width: 1300px;
margin: 0 auto; margin: 0 auto;
margin-top: 40px; margin-top: 40px;
background: white; background: white;
.excute_con { .excute_con {
min-width: 1200px; // min-width: 1200px;
width: 1200px;
margin: 0 auto; margin: 0 auto;
padding: 40px 30px; padding: 40px 30px;
margin-bottom: 51px; margin-bottom: 51px;
@@ -3221,4 +3352,14 @@ label {
padding: 10px 0; 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> </style>

View File

@@ -195,8 +195,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile2" :http-request="uploadfile2"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -211,10 +212,11 @@
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<!-- <a class="filename" :href="fileurl">{{filename}}</a> --> <!-- <a class="filename" :href="fileurl">{{filename}}</a> -->
<a class="filename" :href="fileurl">{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}</a> <!-- {{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}} -->
<a class="filename" :href="fileurl">{{filename?filename:''}}</a>
<p class="tip">点击上方图标可上传文件</p> <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> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -230,8 +232,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile1" :http-request="uploadfile1"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -245,10 +248,11 @@
<img v-if="imageUrl1" :src="imageUrl1" class="avatar" /> <img v-if="imageUrl1" :src="imageUrl1" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<a class="filename" :href="fileurl1">{{filename1? filename1.split('_')[0]+''+(filename1.split('_')[0].includes('.')?'':'.'+filename1.split('.')[1]):""}}</a> <!-- {{filename1? filename1.split('_')[0]+''+(filename1.split('_')[0].includes('.')?'':'.'+filename1.split('.')[1]):""}} -->
<a class="filename" :href="fileurl1">{{filename1?filename1:''}}</a>
<p class="tip">点击上方图标可上传文件</p> <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> <i class="el-icon-close close"></i>
</div> </div>
</div> </div>
@@ -263,8 +267,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile" :http-request="uploadfile"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -278,9 +283,10 @@
<img v-if="imageUrl2" :src="imageUrl2" class="avatar" /> <img v-if="imageUrl2" :src="imageUrl2" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<a class="filename" style="margin-top:10px" :href="fileurl2">{{filename2? filename2.split('_')[0]+''+(filename2.split('_')[0].includes('.')?'':'.'+filename2.split('.')[1]):""}}</a> <!-- {{filename2? filename2.split('_')[0]+''+(filename2.split('_')[0].includes('.')?'':'.'+filename2.split('.')[1]):""}} -->
<a class="filename" style="margin-top:10px" :href="fileurl2">{{filename2?filename2:''}}</a>
<p class="tip">点击上方图标可上传文件</p> <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> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -310,6 +316,7 @@
right: 168px; right: 168px;
z-index:999" z-index:999"
@click="add" @click="add"
v-if="subdata.status!=1000"
>添加</el-button> >添加</el-button>
</div> </div>
@@ -336,6 +343,7 @@
circle circle
style="margin-left:64px" style="margin-left:64px"
@click="delactive(j)" @click="delactive(j)"
v-if="subdata.status!=1000"
></el-button> ></el-button>
<div @click="active1(j)"> <div @click="active1(j)">
<el-upload <el-upload
@@ -344,8 +352,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile6" :http-request="uploadfile6"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -363,7 +372,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>
<!-- <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> <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> <i class="el-icon-close close" style="left:120px;top:-150px"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -381,8 +390,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile3" :http-request="uploadfile3"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -396,9 +406,10 @@
<img v-if="imageUrl4" :src="imageUrl4" class="avatar" /> <img v-if="imageUrl4" :src="imageUrl4" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<a class="filename" :href="fileurl4">{{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}}</a> <!-- {{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}} -->
<a class="filename" :href="fileurl4">{{filename4?filename4:''}}</a>
<p class="tip">点击上方图标可上传文件</p> <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> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -414,8 +425,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile4" :http-request="uploadfile4"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -429,9 +441,10 @@
<img v-if="imageUrl5" :src="imageUrl5" class="avatar" /> <img v-if="imageUrl5" :src="imageUrl5" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<a class="filename" :href="fileurl5">{{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}}</a> <!-- {{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}} -->
<a class="filename" :href="fileurl5">{{filename5?filename5:'' }}</a>
<p class="tip">点击上方图标可上传文件</p> <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> <i class="el-icon-close close"></i>
</div> </div>
<!--文件上传--> <!--文件上传-->
@@ -447,8 +460,9 @@
:show-file-list="false" :show-file-list="false"
style="position: relative" style="position: relative"
:http-request="uploadfile5" :http-request="uploadfile5"
:disabled="subdata.status == 1000"
> >
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px"> <div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
<!-- {{uploadname[2]}} --> <!-- {{uploadname[2]}} -->
<!-- --> <!-- -->
<el-progress <el-progress
@@ -462,11 +476,13 @@
<img v-if="imageUrl6" :src="imageUrl6" class="avatar" /> <img v-if="imageUrl6" :src="imageUrl6" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> </el-upload>
<a class="filename" :href="fileurl6">{{filename6? filename6.split('_')[0]+''+(filename6.split('_')[0].includes('.')?'':'.'+filename6.split('.')[1]):""}}</a> <!-- {{filename6? filename6.split('_')[0]+''+(filename6.split('_')[0].includes('.')?'':'.'+filename6.split('.')[1]):""}} -->
<a class="filename" :href="fileurl6">{{filename6? filename6:""}}</a>
<p class="tip">点击上方图标可上传文件</p> <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> <i class="el-icon-close close"></i>
</div> </div>
<!-- -->
<!--文件上传--> <!--文件上传-->
</div> </div>
<!-- <div class="ll"> <!-- <div class="ll">
@@ -480,6 +496,7 @@
label-width="100px" label-width="100px"
class="demo-ruleForm" class="demo-ruleForm"
> >
<!-- -->
<el-form-item v-if="subdata.status!=1000"> <el-form-item v-if="subdata.status!=1000">
<button type="button" @click="before">返回</button> <button type="button" @click="before">返回</button>
<button type="button" @click="postApply(0)">保存</button> <button type="button" @click="postApply(0)">保存</button>
@@ -1076,10 +1093,10 @@ export default {
console.log(data, "data"); console.log(data, "data");
this.teamtext = data; this.teamtext = data;
}, },
inform(data) { // inform(data) {
console.log(data,44444); // console.log(data,44444);
this.infomrText = data; // this.infomrText = data;
}, // },
inform2(data) { inform2(data) {
console.log(data, "111111e"); console.log(data, "111111e");
this.team = data; this.team = data;
@@ -1106,7 +1123,7 @@ export default {
this.plementText = data; this.plementText = data;
}, },
fileloading(e,f,g,m){ fileloading(e,f,g,m){
let houzui =e.split('.')[3] let houzui = e.substring(e.lastIndexOf(".")+1)//e.split('.')[3]
console.log(houzui) console.log(houzui)
if (houzui == "doc" || houzui == "docx") { if (houzui == "doc" || houzui == "docx") {
this[g] = "/static/img/word.png"; this[g] = "/static/img/word.png";
@@ -1121,7 +1138,7 @@ export default {
}else if (houzui == "zip" || houzui == "rar") { }else if (houzui == "zip" || houzui == "rar") {
this[g] = "/static/img/zip.png"; this[g] = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this[g] = "/static/img/txt.png"; this[g] = "/static/img/txt.jpg";
} }
this[f]=e.split('/')[8] this[f]=e.split('/')[8]
this[m]=e this[m]=e
@@ -1148,7 +1165,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){ }else if(houzui == "zip" || houzui == "rar"){
this.imageUrl = "/static/img/zip.png"; this.imageUrl = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl = "/static/img/txt.png"; this.imageUrl = "/static/img/txt.jpg";
} }
this.filename = res.names+'.'+res.extension; this.filename = res.names+'.'+res.extension;
// this.fileurl = file.response.data.url; // this.fileurl = file.response.data.url;
@@ -1198,7 +1215,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){ }else if(houzui == "zip" || houzui == "rar"){
this.imageUrl1 = "/static/img/zip.png"; this.imageUrl1 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl1 = "/static/img/txt.png"; this.imageUrl1 = "/static/img/txt.jpg";
} }
this.filename1 = res.names+'.'+res.extension; this.filename1 = res.names+'.'+res.extension;
// this.fileurl1 = file.response.data.url; // this.fileurl1 = file.response.data.url;
@@ -1250,7 +1267,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){ }else if(houzui == "zip" || houzui == "rar"){
this.imageUrl2 = "/static/img/zip.png"; this.imageUrl2 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl2 = "/static/img/txt.png"; this.imageUrl2 = "/static/img/txt.jpg";
} }
this.filename2 = res.names+'.'+res.extension; this.filename2 = res.names+'.'+res.extension;
}, },
@@ -1289,7 +1306,7 @@ export default {
}else if(this.filetype[i] == "zip" || this.filetype[i] == "rar"){ }else if(this.filetype[i] == "zip" || this.filetype[i] == "rar"){
this.imageUrl3[i] = "/static/img/zip.png"; this.imageUrl3[i] = "/static/img/zip.png";
}else if(this.filetype[i] == "txt"){ }else if(this.filetype[i] == "txt"){
this.imageUrl3[i] = "/static/img/txt.png"; this.imageUrl3[i] = "/static/img/txt.jpg";
} }
else if ( else if (
@@ -1333,7 +1350,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){ }else if(houzui == "zip" || houzui == "rar"){
this.imageUrl4 = "/static/img/zip.png"; this.imageUrl4 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl4 = "/static/img/txt.png"; this.imageUrl4 = "/static/img/txt.jpg";
} }
this.filename4 = res.names+'.'+res.extension; this.filename4 = res.names+'.'+res.extension;
}, },
@@ -1356,7 +1373,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){ }else if(houzui == "zip" || houzui == "rar"){
this.imageUrl5 = "/static/img/zip.png"; this.imageUrl5 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl5 = "/static/img/txt.png"; this.imageUrl5 = "/static/img/txt.jpg";
} }
this.filename5 = res.names+'.'+res.extension; this.filename5 = res.names+'.'+res.extension;
}, },
@@ -1379,7 +1396,7 @@ export default {
}else if(houzui == "zip" || houzui == "rar"){ }else if(houzui == "zip" || houzui == "rar"){
this.imageUrl6 = "/static/img/zip.png"; this.imageUrl6 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl6 = "/static/img/txt.png"; this.imageUrl6 = "/static/img/txt.jpg";
} }
this.filename6 = res.names+'.'+res.extension; this.filename6 = res.names+'.'+res.extension;
}, },
@@ -1432,7 +1449,7 @@ export default {
}, },
getSubmis() { getSubmis() {
let t = this; let t = this;
console.log(t.$route.query.id, "aa"); //console.log(t.$route.query.id, "aa");
this.$http({ this.$http({
method: "get", method: "get",
url: "v1/test/center", url: "v1/test/center",
@@ -1442,7 +1459,7 @@ export default {
}) })
.then(res => { .then(res => {
// console.log(res.data.code) // console.log(res.data.code)
console.log(res, 888); // console.log(res, 888);
if (res.data.data.code === 200) { if (res.data.data.code === 200) {
t.subdata=res.data.data.data.center?res.data.data.data.center:res.data.data.data.optimize t.subdata=res.data.data.data.center?res.data.data.data.center:res.data.data.data.optimize
@@ -1454,8 +1471,8 @@ export default {
? "0" + (date.getMonth() + 1) ? "0" + (date.getMonth() + 1)
: date.getMonth() + 1) + "-"; : date.getMonth() + 1) + "-";
let D = date.getDate() + " "; let D = date.getDate() + " ";
console.log(Y + M + D); // console.log(Y + M + D);
console.log(this.getsubs); // console.log(this.getsubs);
this.visitDate[0] = Y + M + D; this.visitDate[0] = Y + M + D;
var date1 = new Date(parseInt(this.getsubs.fterm) * 1000); var date1 = new Date(parseInt(this.getsubs.fterm) * 1000);
@@ -1465,24 +1482,25 @@ export default {
? "0" + (date1.getMonth() + 1) ? "0" + (date1.getMonth() + 1)
: date1.getMonth() + 1) + "-"; : date1.getMonth() + 1) + "-";
let D1 = date1.getDate() + " "; let D1 = date1.getDate() + " ";
console.log(Y1 + M1 + D1); // console.log(Y1 + M1 + D1);
console.log(this.getsubs); // console.log(this.getsubs);
this.visitDate[1] = Y1 + M1 + D1; this.visitDate[1] = Y1 + M1 + D1;
let shili = res.data.data.data.optimize.probook; let shili = res.data.data.data.optimize.probook;
console.log(shili)
// var filename = shili.substring(shili.lastIndexOf('/')+1); // var filename = shili.substring(shili.lastIndexOf('/')+1);
// console.log(filename) // console.log(filename)
this.shili = shili.substring(shili.lastIndexOf("/") + 1); this.shili = shili.substring(shili.lastIndexOf("/") + 1);
console.log(this.shili,'1223') // console.log(this.shili,'1223')
let shili1 = res.data.data.data.optimize.fangan; let shili1 = res.data.data.data.optimize.fangan;
this.shili1 = shili1.substring(shili.lastIndexOf("/") + 1); this.shili1 = shili1.substring(shili.lastIndexOf("/") + 1);
// console.log(this.team,121222)s // console.log(this.team,121222)s
this.team=res.data.data.data.center.people this.team=res.data.data.data.center.people
this.infomrText=res.data.data.data.center.develop this.infomrText=res.data.data.data.center.develop
this.goalsText=res.data.data.data.center.pro_condition this.goalsText=res.data.data.data.center.pro_condition
console.log(this.goalsText,"goad") //console.log(this.goalsText,"goad")
this.effectText=res.data.data.data.center.result this.effectText=res.data.data.data.center.result
this.plementText=res.data.data.data.center.summary this.plementText=res.data.data.data.center.summary
this.fileurl=res.data.data.data.center.fina this.fileurl=res.data.data.data.center.fina
@@ -1490,7 +1508,7 @@ export default {
this.fileloading(res.data.data.data.center.elereport,'filename1','imageUrl1','fileurl1') this.fileloading(res.data.data.data.center.elereport,'filename1','imageUrl1','fileurl1')
this.fileloading(res.data.data.data.center.adjust,'filename2','imageUrl2','fileurl2') this.fileloading(res.data.data.data.center.adjust,'filename2','imageUrl2','fileurl2')
let arrlist = JSON.parse(res.data.data.data.center.ziliao) let arrlist = JSON.parse(res.data.data.data.center.ziliao)
console.log(arrlist.length) // console.log(arrlist.length)
if (arrlist.length) { if (arrlist.length) {
this.ziliaoarr=[] this.ziliaoarr=[]
@@ -1503,7 +1521,7 @@ export default {
this.$set(this.filenamearr, i, filename); this.$set(this.filenamearr, i, filename);
this.ziliaoarr.push(1) this.ziliaoarr.push(1)
let houzhui=this.filenamearr[i].substring(filename.lastIndexOf(".")+1) let houzhui=this.filenamearr[i].substring(filename.lastIndexOf(".")+1)
console.log(houzhui,'10810') // console.log(houzhui,'10810')
if(houzhui=='rar'||houzhui=='zip'){ if(houzhui=='rar'||houzhui=='zip'){
this.ziliaoarr[i] = "/static/img/zip.png"; this.ziliaoarr[i] = "/static/img/zip.png";
}else if(houzhui=='doc'||houzhui=='docx'){ }else if(houzhui=='doc'||houzhui=='docx'){
@@ -1522,7 +1540,7 @@ export default {
this.ziliaoarr[i] = url; this.ziliaoarr[i] = url;
} }
console.log(this.filenamearr) // console.log(this.filenamearr)
} }
} }
@@ -1542,7 +1560,7 @@ export default {
}, },
postApply(index) { postApply(index) {
if (index == 0) { if (index == 0) {
this.$confirm("此操作将保存当前填写的内容, 是否继续?", "提示", { this.$confirm("此操作将保存当前填写的内容, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
@@ -1557,7 +1575,42 @@ export default {
} }
} }
// console.log(this.fileurl3, "额"); // console.log(this.fileurl3, "额");
if(!this.fileurl){
this.$message({
message: '请先上传财务报告!',
type: "error"
});
return false;
}else if(!this.fileurl1){
this.$message({
message: '请先上传电子报告!',
type: "error"
});
return false;
}
else if(!this.fileurl4){
this.$message({
message: '请先上财务中期预算表!',
type: "error"
});
return false;
}
else if(!this.fileurl5){
this.$message({
message: '请先上传其他类报告!',
type: "error"
});
return false;
}
else if(!this.fileurl6){
this.$message({
message: '请先上传中期ppt文件!',
type: "error"
});
return false;
}
else{
this.$http({ this.$http({
method: "post", method: "post",
url: "v1/test/cent-sub", url: "v1/test/cent-sub",
@@ -1587,17 +1640,19 @@ export default {
message: res.data.data.msg, message: res.data.data.msg,
type: "success" type: "success"
}); });
this.$router.push({ this.$router.go(-1)
name: "project" // this.$router.push({
}); // name: "project"
// });
} else { } else {
this.$message.error(res.data.data.msg); this.$message.error(res.data.data.msg);
this.$router.push({path: `/schedule${this.id}`}); // this.$router.push({path: `/schedule${this.id}`});
} }
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
}); });
}
}); });
} else if (index == 1) { } else if (index == 1) {
this.$confirm("请确认是否提交中期评审材料,提交后不可修改!", "提示", { this.$confirm("请确认是否提交中期评审材料,提交后不可修改!", "提示", {
@@ -1614,7 +1669,43 @@ export default {
this.fileurl3[i].elereport = this.urls[i]; this.fileurl3[i].elereport = this.urls[i];
} }
} }
this.$http({ if(!this.fileurl){
this.$message({
message: '请先上传财务报告!',
type: "error"
});
return false;
}else if(!this.fileurl1){
this.$message({
message: '请先上传电子报告!',
type: "error"
});
return false;
}
else if(!this.fileurl4){
this.$message({
message: '请先上财务中期预算表!',
type: "error"
});
return false;
}
else if(!this.fileurl5){
this.$message({
message: '请先上传其他类报告!',
type: "error"
});
return false;
}
else if(!this.fileurl6){
this.$message({
message: '请先上传中期ppt文件!',
type: "error"
});
return false;
}
else{
this.$http({
method: "post", method: "post",
url: "v1/test/cent-sub", url: "v1/test/cent-sub",
data: { data: {
@@ -1643,17 +1734,20 @@ export default {
message: res.data.data.msg, message: res.data.data.msg,
type: "success" type: "success"
}); });
this.$router.push({ this.$router.go(-1)
name: "project"
}); // this.$router.push({
// name: "project"
// });
} else { } else {
this.$message.error(res.data.data.msg); this.$message.error(res.data.data.msg);
this.$router.push({path: `/schedule${this.id}`}); // this.$router.push({path: `/schedule${this.id}`});
} }
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
}); });
}
}); });
} }
} }
@@ -1667,6 +1761,7 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.tip { .tip {
color: gray !important; color: gray !important;
font-size: 12px !important; font-size: 12px !important;
@@ -1703,7 +1798,7 @@ export default {
// // margin-left: 45px; // // margin-left: 45px;
// } // }
.rich { .rich {
z-index: 10; // z-index: 10;
width: 100%; width: 100%;
// margin: 30px auto 0px; // margin: 30px auto 0px;
margin-bottom: 30px; margin-bottom: 30px;
@@ -1861,3 +1956,8 @@ export default {
} }
} }
</style> </style>
<style >
.el-message-box__wrapper{
z-index: 990221!important;
}
</style>

View File

@@ -238,7 +238,8 @@ export default {
}, },
methods: { methods: {
statuschange(){ statuschange(){
this.$axios({ if(sessionStorage.getItem("party_id")){
this.$axios({
url: "v1/news/list?org_id="+sessionStorage.getItem("party_id"),//805 url: "v1/news/list?org_id="+sessionStorage.getItem("party_id"),//805
method: "get", method: "get",
@@ -254,8 +255,21 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).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{ }else{
// this.$message({ // this.$message({
@@ -264,6 +278,8 @@ export default {
// }); // });
} }
}) })
}
}, },
details (id) { details (id) {
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({

View File

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

View File

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

View File

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

View File

@@ -1,10 +1,9 @@
<template> <template>
<div class="wrapper" v-if="types"> <div class="wrapper" v-if="types">
<header-nav :index_num="index_num"></header-nav> <header-nav :index_num="index_num"></header-nav>
<div id="box"> <div id="box">
<h3>项目信息优化</h3> <h3>项目信息优化</h3>
<!-- 导航 --> <div class="box">
<div class="box">
<div <div
:class="sub == 0 ? 'color' : ''" :class="sub == 0 ? 'color' : ''"
:style="{ :style="{
@@ -22,7 +21,7 @@
</div> </div>
<div class="form"> <div class="form">
<el-form <el-form
:model="ruleForm" :model="ruleForm"
:rules="rules" :rules="rules"
ref="ruleForm" ref="ruleForm"
@@ -173,7 +172,8 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-form
<el-form
:model="ruleForm1" :model="ruleForm1"
:rules="rules1" :rules="rules1"
ref="ruleForm1" ref="ruleForm1"
@@ -181,7 +181,7 @@
class="demo-ruleForm" class="demo-ruleForm"
v-show="sub == 1" v-show="sub == 1"
> >
<el-form-item label="项目主责单位" prop="prespo"> <el-form-item label="项目主责单位" prop="prespo">
<el-input v-model="ruleForm1.prespo"></el-input> <el-input v-model="ruleForm1.prespo"></el-input>
</el-form-item> </el-form-item>
<div style="display:flex"> <div style="display:flex">
@@ -215,7 +215,7 @@
<el-form-item label="办公电话" prop="respoophone" style="margin-right:-69px"> <el-form-item label="办公电话" prop="respoophone" style="margin-right:-69px">
<el-input v-model="ruleForm1.respoophone" style="width:150px"></el-input> <el-input v-model="ruleForm1.respoophone" style="width:150px"></el-input>
</el-form-item> </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 --> <!-- ruleForm.region -->
<el-input v-model="ruleForm1.respoptel" style="width:150px"></el-input> <el-input v-model="ruleForm1.respoptel" style="width:150px"></el-input>
</el-form-item> </el-form-item>
@@ -232,12 +232,13 @@
<el-form-item label="办公电话" prop="respocophone" style="margin-right:-69px"> <el-form-item label="办公电话" prop="respocophone" style="margin-right:-69px">
<el-input v-model="ruleForm1.respocophone" style="width:150px"></el-input> <el-input v-model="ruleForm1.respocophone" style="width:150px"></el-input>
</el-form-item> </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 --> <!-- ruleForm.region -->
<el-input v-model="ruleForm1.respoctel" style="width:150px"></el-input> <el-input v-model="ruleForm1.respoctel" style="width:150px"></el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="xx">
<div class="xx">
<h5>申报单位简介</h5> <h5>申报单位简介</h5>
<div class="rich"> <div class="rich">
<aboutUs @aboutUs="aboutUs" :aboutUsVal="ruleForm.decldes" :writeable="true"></aboutUs> <aboutUs @aboutUs="aboutUs" :aboutUsVal="ruleForm.decldes" :writeable="true"></aboutUs>
@@ -334,14 +335,15 @@
<label>我们确认项目申报内容的真实性,并愿意承担相应的责任</label> <label>我们确认项目申报内容的真实性,并愿意承担相应的责任</label>
</div> </div>
</div> </div>
<div class="xxx">
<div class="xxx">
<h5 style="font-size:20px">项目主责单位意见</h5> <h5 style="font-size:20px">项目主责单位意见</h5>
<p <!-- <p
class="yulantext" class="yulantext"
@click="yulana1(fileLists[0])" @click="yulana1(fileLists[0])"
style="left:401px;top:95px" style="left:401px;top:95px"
v-if="fileLists.length" v-if="fileLists.length"
>预览</p> >预览</p> -->
<div class="xxxx"> <div class="xxxx">
<template> <template>
<el-upload <el-upload
@@ -356,12 +358,14 @@
:on-exceed="handleExceed" :on-exceed="handleExceed"
:file-list="fileLists" :file-list="fileLists"
> >
<!-- :title="fileLists?(fileLists.length?fileLists[0].name:''):''" -->
<el-button size="small" type="primary">上传文件</el-button> <el-button size="small" type="primary">上传文件</el-button>
<!-- <span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> --> <!-- <span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> -->
</el-upload> </el-upload>
</template> </template>
</div> </div>
</div> </div>
<div class="mid_box"> <div class="mid_box">
<template> <template>
<div class="el-icon-close close" @click="del" v-if="filename"></div> <div class="el-icon-close close" @click="del" v-if="filename"></div>
@@ -634,7 +638,8 @@
</div> </div>
</template> </template>
</div> </div>
<el-form-item>
<el-form-item>
<div class="ll"> <div class="ll">
<button type="button" @click="next(0)" style="cursor:pointer">上一页</button> <button type="button" @click="next(0)" style="cursor:pointer">上一页</button>
<button type="button" @click="submitForm('ruleForm1',1)" style="cursor:pointer">保存</button> <button type="button" @click="submitForm('ruleForm1',1)" style="cursor:pointer">保存</button>
@@ -648,8 +653,8 @@
<!-- <el-button type="primary" @click="submitForm('ruleForm')">立即创建</el-button> <!-- <el-button type="primary" @click="submitForm('ruleForm')">立即创建</el-button>
<el-button @click="resetForm('ruleForm')">重置</el-button>--> <el-button @click="resetForm('ruleForm')">重置</el-button>-->
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<footer-nav class="footer"></footer-nav> <footer-nav class="footer"></footer-nav>
</div> </div>
</template> </template>
@@ -904,6 +909,7 @@ export default {
xa: require("../../../static/img/xa.png") xa: require("../../../static/img/xa.png")
}, },
fileLists: [], fileLists: [],
hrefurl:'',
popupStatus: false, popupStatus: false,
first_levels: [], first_levels: [],
types: [], types: [],
@@ -1021,12 +1027,25 @@ export default {
} }
}) })
.then(res => { .then(res => {
// this.imageUrl = res.data.data if(res.data.code == 200){
if (this.uploadname[0] === 100) { if (this.uploadname[0] === 100) {
// this.progressPercent = 0 // this.progressPercent = 0
this.handleAvatarSuccess(res.data.data, f.file.name); this.handleAvatarSuccess(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name); // this.uploadfun.fun(res.data.data, f.file.name);
} }
}else{
this.$alert("上传的项目申报书文件上传失败,请修改文件名长度后重新上传", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false;
}
// this.imageUrl = res.data.data
// if (this.uploadname[0] === 100) {
// // this.progressPercent = 0
// this.handleAvatarSuccess(res.data.data, f.file.name);
// // this.uploadfun.fun(res.data.data, f.file.name);
// }
}) })
.then(error => { .then(error => {
console.log(error); console.log(error);
@@ -1060,12 +1079,25 @@ export default {
} }
}) })
.then(res => { .then(res => {
// this.imageUrl = res.data.data if(res.data.code == 200){
if (this.uploadname[1] === 100) { if (this.uploadname[1] === 100) {
// this.progressPercent = 0 // this.progressPercent = 0
this.handleAvatarSuccess1(res.data.data, f.file.name); this.handleAvatarSuccess1(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name); // this.uploadfun.fun(res.data.data, f.file.name);
}
}else{
this.$alert("上传的实施方案文件上传失败,请修改文件名长度后重新上传", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false;
} }
// this.imageUrl = res.data.data
// if (this.uploadname[1] === 100) {
// // this.progressPercent = 0
// this.handleAvatarSuccess1(res.data.data, f.file.name);
// // this.uploadfun.fun(res.data.data, f.file.name);
// }
}) })
.then(error => { .then(error => {
console.log(error); console.log(error);
@@ -1099,12 +1131,25 @@ export default {
} }
}) })
.then(res => { .then(res => {
// this.imageUrl = res.data.data if(res.data.code == 200){
if (this.uploadname[2] === 100) { if (this.uploadname[2] === 100) {
// this.progressPercent = 0 // this.progressPercent = 0
this.handleAvatarSuccess2(res.data.data, f.file.name); this.handleAvatarSuccess2(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name); // this.uploadfun.fun(res.data.data, f.file.name);
} }
}else{
this.$alert("上传的立项批复文件上传失败,请修改文件名长度后重新上传", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false;
}
// this.imageUrl = res.data.data
// if (this.uploadname[2] === 100) {
// // this.progressPercent = 0
// this.handleAvatarSuccess2(res.data.data, f.file.name);
// // this.uploadfun.fun(res.data.data, f.file.name);
// }
}) })
.then(error => { .then(error => {
console.log(error); console.log(error);
@@ -1138,12 +1183,25 @@ export default {
} }
}) })
.then(res => { .then(res => {
// this.imageUrl = res.data.data if(res.data.code == 200){
if (this.uploadname[3] === 100) { if (this.uploadname[3] === 100) {
// this.progressPercent = 0 // this.progressPercent = 0
this.handleAvatarSuccess3(res.data.data, f.file.name); this.handleAvatarSuccess3(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name); // this.uploadfun.fun(res.data.data, f.file.name);
} }
}else{
this.$alert("上传的项目合同文件上传失败,请修改文件名长度后重新上传", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false;
}
// this.imageUrl = res.data.data
// if (this.uploadname[3] === 100) {
// // this.progressPercent = 0
// this.handleAvatarSuccess3(res.data.data, f.file.name);
// // this.uploadfun.fun(res.data.data, f.file.name);
// }
}) })
.then(error => { .then(error => {
console.log(error); console.log(error);
@@ -1178,11 +1236,24 @@ export default {
}) })
.then(res => { .then(res => {
// this.imageUrl = res.data.data // this.imageUrl = res.data.data
if (this.uploadname[4] === 100) { // if (this.uploadname[4] === 100) {
// // this.progressPercent = 0
// this.handleAvatarSuccess4(res.data.data, f.file.name);
// // this.uploadfun.fun(res.data.data, f.file.name);
// }
if(res.data.code == 200){
if (this.uploadname[4] === 100) {
// this.progressPercent = 0 // this.progressPercent = 0
this.handleAvatarSuccess4(res.data.data, f.file.name); this.handleAvatarSuccess4(res.data.data, f.file.name);
// this.uploadfun.fun(res.data.data, f.file.name); // this.uploadfun.fun(res.data.data, f.file.name);
} }
}else{
this.$alert("上传的服务承诺书文件上传失败,请修改文件名长度后重新上传", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false;
}
}) })
.then(error => { .then(error => {
console.log(error); console.log(error);
@@ -1257,7 +1328,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl = "/static/img/zip.png"; this.imageUrl = "/static/img/zip.png";
}else if(houzui == "txt"){ }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; this.filename = res.name//res.name//res.name+'.'+res.extension;
@@ -1284,7 +1355,19 @@ export default {
name: file.name, name: file.name,
url: file.response.data.url 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) { successUploadTwo(response, file, fileList) {
this.fileid = file.response.data.id; this.fileid = file.response.data.id;
this.filename = file.response.data.name; this.filename = file.response.data.name;
@@ -1297,13 +1380,13 @@ export default {
this.fileurl = file.response.data.url; this.fileurl = file.response.data.url;
console.log(file); console.log(file);
}, },
handleRemove(file, fileList) { // handleRemove(file, fileList) {
this.picture.forEach(element => { // this.picture.forEach(element => {
if (file.name === element.name) { // if (file.name === element.name) {
this.picture.splice(element, 1); // this.picture.splice(element, 1);
} // }
}); // });
}, // },
handlePreview(file) { handlePreview(file) {
console.log(file); console.log(file);
if (!!window.ActiveXObject || "ActiveXObject" in window) { if (!!window.ActiveXObject || "ActiveXObject" in window) {
@@ -1341,7 +1424,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl1 = "/static/img/zip.png"; this.imageUrl1 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl1 = "/static/img/txt.png"; this.imageUrl1 = "/static/img/txt.jpg";
} }
this.filename1 =res.name// res.name+'.'+res.extension; this.filename1 =res.name// res.name+'.'+res.extension;
@@ -1390,7 +1473,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl2 = "/static/img/zip.png"; this.imageUrl2 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl2 = "/static/img/txt.png"; this.imageUrl2 = "/static/img/txt.jpg";
} }
this.filename2 =res.name// res.name+'.'+res.extension; this.filename2 =res.name// res.name+'.'+res.extension;
@@ -1439,7 +1522,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl3 = "/static/img/zip.png"; this.imageUrl3 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl3 = "/static/img/txt.png"; this.imageUrl3 = "/static/img/txt.jpg";
} }
console.log(res.name); console.log(res.name);
this.filename3 =res.name// res.name+'.'+res.extension; this.filename3 =res.name// res.name+'.'+res.extension;
@@ -1488,7 +1571,7 @@ export default {
} else if (houzui == "zip" || houzui == "rar") { } else if (houzui == "zip" || houzui == "rar") {
this.imageUrl4 = "/static/img/zip.png"; this.imageUrl4 = "/static/img/zip.png";
}else if(houzui == "txt"){ }else if(houzui == "txt"){
this.imageUrl4 = "/static/img/txt.png"; this.imageUrl4 = "/static/img/txt.jpg";
} }
this.filename4 =res.name// res.name+'.'+res.extension; this.filename4 =res.name// res.name+'.'+res.extension;
@@ -1563,18 +1646,18 @@ export default {
} }
}); });
}, },
successUpload(response, file, fileList) {
this.picture.push({
name: file.name,
url: file.response.data.url
});
},
handleRemove(file, fileList) { handleRemove(file, fileList) {
this.picture.forEach(element => { this.picture.forEach(element => {
if (file.name === element.name) { if (file.name === element.name) {
this.picture.splice(element, 1); this.picture.splice(element, 1);
} }
}); });
this.fileLists.forEach(element => {
if (file.name === element.name) {
this.fileLists.splice(this.fileLists.lastIndexOf(element), 1);
}
});
}, },
// handlePreview(file) { // handlePreview(file) {
// console.log(file); // console.log(file);
@@ -1743,8 +1826,153 @@ export default {
for (let m in this.ruleForm1) { for (let m in this.ruleForm1) {
this.ruleForm[m] = this.ruleForm1[m]; this.ruleForm[m] = this.ruleForm1[m];
} }
console.log(this.ruleForm); console.log(this.ruleForm.prodemo.length);
this.submitYes(index); //if(this.ruleForm.prodes.length<=11){
// this.$alert("项目简介不能为空并不得低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemo.length<=29235) {
// this.$alert("项目实施必要性不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// } else if (this.ruleForm.prodemojc.length<=29108) {
// this.$alert("项目实施的基础不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemotj.length<=29108) {
// this.$alert("具体方法和途径不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemojd.length<=29108) {
// this.$alert("进度安排不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemoxg.length<=29108) {
// this.$alert("预期效果不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemofg.length<=29108) {
// this.$alert("项目团队及分工不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemotwo.length<=29108) {
// this.$alert("项目实施涵盖范围,规模,人群及创新等不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.funds.length<=29458) {
// this.$alert("经费预算不能为空并不的低于四个汉字", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (
// if(this.ruleForm.prodes.length==0){
// //<=11 并不得低于四个汉字
// this.$alert("项目简介不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemo.length==0) {
// //<=29235 并不的低于四个汉字
// this.$alert("项目实施必要性不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// } else if (this.ruleForm.prodemojc.length==0) {
// //<=29108 并不的低于四个汉字
// this.$alert("项目实施的基础不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemotj.length==0) {
// //<=29235 并不的低于四个汉字
// this.$alert("具体方法和途径不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemojd.length==0) {
// // <=29108 并不的低于四个汉字
// this.$alert("进度安排不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemoxg.length==0) {
// // <=29108 并不的低于四个汉字
// this.$alert("预期效果不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemofg.length==0) {
// //<=29108 并不的低于四个汉字
// this.$alert("项目团队及分工不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemotwo.length==0) {
// //<=29108 并不的低于四个汉字
// this.$alert("项目实施涵盖范围,规模,人群及创新等不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.funds.length==0) {
// // <=29458并不的低于四个汉字
// this.$alert("经费预算不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
if(this.ruleForm.probook.length ==0 //&&
//&&
// this.ruleForm.pifu.length &&
// this.ruleForm.pact.length &&
// this.ruleForm.promise.length
) {
this.$alert("请上传项目申报书", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false;
} else if(this.ruleForm.fangan.length == 0 ){
this.$alert("请上传实施方案", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false
}else if(this.picture.length == 0 ){
this.$alert("请上传项目主责单位意见", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false
}else{
this.submitYes(index);
}
//this.submitYes(index);
} else { } else {
this.$message({ this.$message({
type: "info", type: "info",
@@ -1807,8 +2035,97 @@ export default {
for (let m in this.ruleForm1) { for (let m in this.ruleForm1) {
this.ruleForm[m] = this.ruleForm1[m]; this.ruleForm[m] = this.ruleForm1[m];
} }
console.log(this.ruleForm); console.log(this.ruleForm.prodes.length);
this.submitYes(index); // if(this.ruleForm.prodes.length==0){
// //<=11 并不得低于四个汉字
// this.$alert("项目简介不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemo.length==0) {
// //<=29235 并不的低于四个汉字
// this.$alert("项目实施必要性不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// } else if (this.ruleForm.prodemojc.length==0) {
// //<=29108 并不的低于四个汉字
// this.$alert("项目实施的基础不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemotj.length==0) {
// //<=29235 并不的低于四个汉字
// this.$alert("具体方法和途径不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemojd.length==0) {
// // <=29108 并不的低于四个汉字
// this.$alert("进度安排不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemoxg.length==0) {
// // <=29108 并不的低于四个汉字
// this.$alert("预期效果不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemofg.length==0) {
// //<=29108 并不的低于四个汉字
// this.$alert("项目团队及分工不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.prodemotwo.length==0) {
// //<=29108 并不的低于四个汉字
// this.$alert("项目实施涵盖范围,规模,人群及创新等不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
// }else if (this.ruleForm.funds.length==0) {
// // <=29458并不的低于四个汉字
// this.$alert("经费预算不能为空", "提示", {
// confirmButtonText: "确定",
// callback: action => {}
// });
// return false;
if (
this.ruleForm.probook.length ==0 //&&
//&&
// this.ruleForm.pifu.length &&
// this.ruleForm.pact.length &&
// this.ruleForm.promise.length
) {
this.$alert("请上传项目申报书", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
} else if(this.picture.length == 0 ){
this.$alert("请上传项目主责单位意见", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
return false
}else if(this.ruleForm.fangan.length == 0 ){
this.$alert("请上传实施方案", "提示", {
confirmButtonText: "确定",
callback: action => {}
});
}else{
this.submitYes(index);
}
//this.submitYes(index);
} else { } else {
this.$message({ this.$message({
type: "info", type: "info",
@@ -1861,13 +2178,13 @@ export default {
} else { } else {
this.$message({ this.$message({
type: "info", type: "info",
message: res.data.data.msg message: res.data.data.message
}); });
} }
} else { } else {
this.$message({ this.$message({
type: "info", type: "info",
message: res.data.data.msg message: res.data.data.message
}); });
} }
}) })
@@ -2161,7 +2478,7 @@ export default {
} else if (filetype == "zip" || filetype == "rar") { } else if (filetype == "zip" || filetype == "rar") {
this.imageUrl = "/static/img/zip.png"; this.imageUrl = "/static/img/zip.png";
}else if (filetype == "txt") { }else if (filetype == "txt") {
this.imageUrl = "/static/img/txt.png"; this.imageUrl = "/static/img/txt.jpg";
} }
} }
if (this.ruleForm.fangan) { if (this.ruleForm.fangan) {
@@ -2188,7 +2505,7 @@ export default {
}else if (filetype == "zip" || filetype == "rar") { }else if (filetype == "zip" || filetype == "rar") {
this.imageUrl1 = "/static/img/zip.png"; this.imageUrl1 = "/static/img/zip.png";
}else if (filetype == "txt") { }else if (filetype == "txt") {
this.imageUrl1 = "/static/img/txt.png"; this.imageUrl1 = "/static/img/txt.jpg";
} }
} }
if (this.ruleForm.pifu) { if (this.ruleForm.pifu) {
@@ -2214,7 +2531,7 @@ export default {
}else if (filetype == "zip" || filetype == "rar") { }else if (filetype == "zip" || filetype == "rar") {
this.imageUrl2 = "/static/img/zip.png"; this.imageUrl2 = "/static/img/zip.png";
}else if (filetype == "txt") { }else if (filetype == "txt") {
this.imageUrl2 = "/static/img/txt.png"; this.imageUrl2 = "/static/img/txt.jpg";
} }
} }
if (this.ruleForm.pact) { if (this.ruleForm.pact) {
@@ -2240,7 +2557,7 @@ export default {
}else if (filetype == "zip" || filetype == "rar") { }else if (filetype == "zip" || filetype == "rar") {
this.imageUrl3 = "/static/img/zip.png"; this.imageUrl3 = "/static/img/zip.png";
}else if (filetype == "txt") { }else if (filetype == "txt") {
this.imageUrl3 = "/static/img/txt.png"; this.imageUrl3 = "/static/img/txt.jpg";
} }
} }
if (this.ruleForm.promise) { if (this.ruleForm.promise) {
@@ -2266,29 +2583,32 @@ export default {
}else if (filetype == "zip" || filetype == "rar") { }else if (filetype == "zip" || filetype == "rar") {
this.imageUrl4 = "/static/img/zip.png"; this.imageUrl4 = "/static/img/zip.png";
}else if (filetype == "txt") { }else if (filetype == "txt") {
this.imageUrl4 = "/static/img/txt.png"; this.imageUrl4 = "/static/img/txt.jpg";
} }
} }
this.filename = this.bgData.probook.substring( if(this.bgData){
this.filename =this.bgData.probook? this.bgData.probook.substring(
this.bgData.probook.lastIndexOf("/") + 1 this.bgData.probook.lastIndexOf("/") + 1
); ):'';
//sconsole.log(this.filename) //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.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.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.bgData.pact.lastIndexOf("/") + 1
); ):'';
this.filename4 = this.bgData.promise.substring( this.filename4 = this.bgData.promise?this.bgData.promise.substring(
this.bgData.promise.lastIndexOf("/") + 1 this.bgData.promise.lastIndexOf("/") + 1
); ):'';
let imgs = JSON.parse(this.bgData.proimages); let imgs = JSON.parse(this.bgData.proimages);
this.fileLists = imgs; this.fileLists = imgs;
this.picture = this.fileLists; this.picture = this.fileLists;
}
// this.assignment(this.bgData); // this.assignment(this.bgData);
} else { } else {
alert("请求失败!"); alert("请求失败!");
@@ -2303,12 +2623,18 @@ export default {
this.company = sessionStorage.name; this.company = sessionStorage.name;
}, },
mounted() { mounted() {
this.status(); //this.status();
this.getData();
} }
}; };
</script> </script>
<style>
.el-upload-list__item-name{
width: 310px;
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
// .el-upload-list__item .el-icon-close-tip // .el-upload-list__item .el-icon-close-tip
.filenames { .filenames {
width: 155px; width: 155px;

View File

@@ -347,7 +347,7 @@
</div> </div>
<div class="xxx"> <div class="xxx">
<h5 style="font-size:20px">项目主责单位意见</h5> <h5 style="font-size:20px">项目主责单位意见</h5>
<p class="yulantext" v-if="picture.length" @click="yulana1(picture[0])" style="left:507px;top:95px">预览</p> <!-- <p class="yulantext" v-if="picture.length" @click="yulana1(picture[0])" style="left:507px;top:95px">预览</p> -->
<div class="xxxx"> <div class="xxxx">
<template> <template>
<el-upload <el-upload
@@ -363,7 +363,7 @@
:file-list="fileLists" :file-list="fileLists"
> >
<el-button size="small" type="primary">上传文件</el-button> <el-button size="small" type="primary">上传文件</el-button>
<span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> <!-- <span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> -->
</el-upload> </el-upload>
</template> </template>
</div> </div>
@@ -1063,8 +1063,18 @@ export default {
for (let m in this.ruleForm1) { for (let m in this.ruleForm1) {
this.ruleForm[m] = this.ruleForm1[m]; this.ruleForm[m] = this.ruleForm1[m];
} }
console.log(this.ruleForm); console.log(this.ruleForm.proimages);
this.submitYes(index); if(this.picture.length == 0 || this.picture == ''){
this.$message({
type: "info",
message: "请上传项目主责单位意见"
});
return false
}else{
console.log(this.ruleForm);
this.submitYes(index);
}
//this.submitYes(index);s
} else { } else {
this.$message({ this.$message({
type: "info", type: "info",
@@ -1089,13 +1099,23 @@ export default {
if (this.ruleForm.thff) { if (this.ruleForm.thff) {
this.ruleForm.party_id = sessionStorage.getItem("party_id"); this.ruleForm.party_id = sessionStorage.getItem("party_id");
this.ruleForm.proimages = JSON.stringify(this.picture); this.ruleForm.proimages = JSON.stringify(this.picture);
console.log(this.picture,'picture')
console.log(this.fileLists);
for (let m in this.ruleForm1) { for (let m in this.ruleForm1) {
this.ruleForm[m] = this.ruleForm1[m]; this.ruleForm[m] = this.ruleForm1[m];
} }
if(this.picture.length == 0 || this.picture == ''){
this.$message({
type: "info",
message: "请上传项目主责单位意见"
});
return false
}else{
console.log(this.ruleForm);
this.submitYes(index);
}
console.log(this.picture,'picture')
console.log(this.fileLists);
console.log(this.ruleForm); console.log(this.ruleForm);
this.submitYes(index);
} else { } else {
this.$message({ this.$message({
type: "info", type: "info",

View File

@@ -80,6 +80,7 @@
<el-option <el-option
v-for="(i,j) in bgValue.type" v-for="(i,j) in bgValue.type"
:key="j" :key="j"
style="padding:0 57px"
:label="bgValue.type[j]" :label="bgValue.type[j]"
:value="j" :value="j"
></el-option> ></el-option>
@@ -91,10 +92,11 @@
</template> </template>
</select>--> </select>-->
<el-select v-model="statusval" placeholder=" 请选择项目状态" clearable @change="prolist"> <el-select v-model="statusval" placeholder=" 请选择项目状态" clearable @change="prolist">
<el-option <el-option
v-for="(i,j) in bgValue.status" v-for="(i,j) in bgValue.status"
:key="j" :key="j"
style="padding:0 20px"
:label="bgValue.status[j]" :label="bgValue.status[j]"
:value="j" :value="j"
></el-option> ></el-option>
@@ -117,6 +119,7 @@
v-for="(i,j) in bgValue.area" v-for="(i,j) in bgValue.area"
:key="j" :key="j"
:label="bgValue.area[j]" :label="bgValue.area[j]"
style="padding:0 87px"
:value="j" :value="j"
></el-option> ></el-option>
</el-select> </el-select>
@@ -166,11 +169,8 @@
<img :src="imgUrl.btg" style="width:120px;height:90px" v-else-if="item.tid == 4 || item.tid == 9" /> <img :src="imgUrl.btg" style="width:120px;height:90px" v-else-if="item.tid == 4 || item.tid == 9" />
<img :src="imgUrl.zxz" style="width:120px;height:90px" v-else-if="item.tid == 10" /> <img :src="imgUrl.zxz" style="width:120px;height:90px" v-else-if="item.tid == 10" />
<img :src="imgUrl.wtj" style="width:120px;height:90px" v-else-if="item.tid == 1000" /> <img :src="imgUrl.wtj" style="width:120px;height:90px" v-else-if="item.tid == 1000" />
<img <img :src="imgUrl.yjx" v-else-if="item.tid == 110" style="width:120px;height:90px" />
:src="imgUrl.yjx" <img :src="imgUrl.yhshz" v-else-if="item.status == '项目优化信息待审核'" style="width:120px;height:90px" />
v-else-if="item.tid == 110"
style="width:120px;height:90px"
/>
<img :src="imgUrl.shz" style="width:120px;height:90px" v-else /> <img :src="imgUrl.shz" style="width:120px;height:90px" v-else />
<!-- <img <!-- <img
:src="imgUrl.yjx" :src="imgUrl.yjx"
@@ -247,6 +247,7 @@ export default {
tg: require("../../../static/img/tg.png"), tg: require("../../../static/img/tg.png"),
btg: require("../../../static/img/btg.png"), btg: require("../../../static/img/btg.png"),
shz: require("../../../static/img/shz.png"), shz: require("../../../static/img/shz.png"),
yhshz: require("../../../static/img/yhshz.png"),
zxz: require("../../../static/img/zxz.png"), zxz: require("../../../static/img/zxz.png"),
wtj: require("../../../static/img/wtj.png"), wtj: require("../../../static/img/wtj.png"),
yjx: require("../../../static/img/yjx.png") yjx: require("../../../static/img/yjx.png")

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff

3040
src/views/project/fuzhi2.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -21,12 +21,13 @@
<tr> <tr>
<td class="key">社会组织名称</td> <td class="key">社会组织名称</td>
<td class="val" :title="result.name"><div style="width:266px;margin:0 auto;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">{{result.name?result.name:"无"}}</div></td> <td class="val" :title="result.name?result.name:'无'"><div style="width:266px;margin:0 auto;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">{{result.name?result.name:"无"}}</div></td>
<td class="key">组织状态</td> <td class="key">组织状态</td>
<td class="val" v-if="result.status==0">已注销</td> <td class="val" v-if="result.status==1">信用良好</td>
<td class="val" v-if="result.status==1">异常</td> <td class="val" v-else>活动异常</td>
<!-- <td class="val" v-if="result.status==0">已注销</td>
<td class="val" v-if="result.status==2">正常</td> <td class="val" v-if="result.status==2">正常</td>
<td class="val" v-if="result.status==3">待审核</td> <td class="val" v-if="result.status==3">待审核</td> -->
</tr> </tr>
<tr> <tr>
<td class="key">统一社会信用代码</td> <td class="key">统一社会信用代码</td>
@@ -36,7 +37,7 @@
</tr> </tr>
<tr> <tr>
<td class="key">社会组织类型</td> <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="key">法定代表人</td>
<td class="val">{{result.legal_person?result.legal_person:"无"}}</td> <td class="val">{{result.legal_person?result.legal_person:"无"}}</td>
</tr> </tr>
@@ -53,8 +54,10 @@
<td class="val">{{result.start_time}}--{{result.end_time}}</td> <td class="val">{{result.start_time}}--{{result.end_time}}</td>
</tr> </tr>
<tr> <tr>
<td class="key">年检情况</td> <td class="key">行政处罚情况</td>
<td class="val">{{result.sec_age?result.sec_age:"无"}}</td> <td class="val">{{result.admini_punish?result.admini_punish:"无"}}</td>
<!-- <td class="key">年检情况</td>
<td class="val">{{result.sec_age?result.sec_age:"无"}}</td> -->
<td class="key">评估情况</td> <td class="key">评估情况</td>
<td class="val">{{result.assess?result.assess:"无"}}</td> <td class="val">{{result.assess?result.assess:"无"}}</td>
</tr> </tr>
@@ -74,43 +77,52 @@
</tr> </tr>
<tr> <tr>
<td class="key">行政处罚情况</td>
<td class="val">{{result.admini_punish?result.admini_punish:"无"}}</td>
<td class="key">活动异常情况</td> <td class="key">活动异常情况</td>
<td class="val">{{result.activity_unusual?result.activity_unusual:"无"}}</td> <td class="val">{{result.activity_unusual?result.activity_unusual:"无"}}</td>
</tr> <td class="key">
<tr>
<td class="key">
<div>活动异常情况时限</div> <div>活动异常情况时限</div>
</td> </td>
<td class="val"> <td class="val">
<p>{{result.activity_unusual_start}}--{{result.activity_unusual_end}}</p> <p>{{result.activity_unusual_start}}--{{result.activity_unusual_end}}</p>
</td> </td>
</tr>
<tr>
<td class="key"> <td class="key">
<p>严重失信情况</p> <p>严重失信情况</p>
</td> </td>
<td class="val"> <td class="val">
<div>{{result.break_faith?result.break_faith:"无"}}</div> <div>{{result.break_faith?result.break_faith:"无"}}</div>
</td> </td>
<td class="key">严重失信情况时限</td>
<td class="valself" style="text-align:center">{{result.break_faith_start}}--{{result.break_faith_end}}</td>
</tr> </tr>
</table> </table>
<table width=1089> <table width=1089>
<tr> <tr>
<td class="key">严重失信情况时限</td> <td class="key key1" style="display:table-cell; vertical-align:middle;">
<td class="valself">{{result.break_faith_start}}--{{result.break_faith_end}}</td> <div>年检情况</div>
</td>
<td class="valself">
<div v-for="(item,index) in result.year" :key="index" style="margin-lft:20px;float:left">{{item.year}}年年检:{{item.status=='1'?'已通过':'未通过'}}</div>
<!-- <div>{{result.sec_age?result.sec_age:"无"}}</div> -->
</td>
</tr> </tr>
<tr> <tr>
<td class="key" style="display:table-cell; vertical-align:middle">业务范围</td> <td class="key key1" style="display:table-cell; vertical-align:middle">业务范围</td>
<td class="valself">{{result.business?result.business:"无"}}</td> <td class="valself">{{result.business?result.business:"无"}}</td>
</tr> </tr>
<tr> <tr>
<td class="key" style="display:table-cell; vertical-align:middle;"> <td class="key key1" style="display:table-cell; vertical-align:middle;">
<div>变更信息</div> <div>变更信息</div>
</td> </td>
<td class="valself"> <td class="valself">
<div>{{result.change_info?result.change_info:"无"}}</div> <div>{{result.change_info?result.change_info:"无"}}</div>
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
</div> </div>
@@ -142,8 +154,8 @@ export default {
url: "v1/soc/credit", url: "v1/soc/credit",
params: { id: this.$route.query.id } params: { id: this.$route.query.id }
}).then(res => { }).then(res => {
console.log(res); console.log(res,'房间里卡什么地方撒');
this.result = res.data.data[0]; this.result = res.data.data;
}); });
}, },
methods:{ methods:{
@@ -155,6 +167,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.key1{
width:225px!important
}
.infobox { .infobox {
width: 100vw; width: 100vw;
display: flex; display: flex;
@@ -208,7 +223,7 @@ export default {
font-size: 24px; font-size: 24px;
} }
.key { .key {
width: 266px; width: 400px;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
background-color: #f7f5f6; background-color: #f7f5f6;

BIN
static/img/txt.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
static/img/yhshz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -12,7 +12,8 @@
hotOnly: false, hotOnly: false,
proxy: { proxy: {
'/url/': { '/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, ws: false,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {