Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f167bf7fe3 | ||
|
|
48fcda77e8 |
@@ -2,4 +2,6 @@
|
||||
ENV = 'production'
|
||||
|
||||
# base api
|
||||
VUE_APP_BASE_API = http://chaoyang.nxers.com/api/
|
||||
#VUE_APP_BASE_API = http://chaoyang.nxers.com/api/
|
||||
VUE_APP_BASE_API = http://cyteam.org.cn/api/
|
||||
#http://chaoyang.nxers.com/api/
|
||||
@@ -26,7 +26,7 @@ export default {
|
||||
mounted () {
|
||||
let t = this
|
||||
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))
|
||||
let phoneEditor = this.phoneEditor
|
||||
phoneEditor.customConfig.pasteFilterStyle = false
|
||||
|
||||
@@ -73,8 +73,8 @@ export default {
|
||||
|
||||
<style lang='scss' scoped>
|
||||
#wrapper {
|
||||
min-width: 1280px;
|
||||
// width: 100%;
|
||||
// min-width: 1280px;
|
||||
width: 100%;
|
||||
height: 389px;
|
||||
box-sizing: border-box;
|
||||
background-repeat: no-repeat;
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
justify-content: center;
|
||||
|
||||
img {
|
||||
// width: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: default;
|
||||
|
||||
|
||||
@@ -52,8 +52,11 @@ export default {
|
||||
'redo' // 重复
|
||||
]
|
||||
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: {},
|
||||
computed: {},
|
||||
|
||||
@@ -30,23 +30,23 @@ export default {
|
||||
let pageHeight = (contentWidth / 592.28) * 841.89
|
||||
let leftHeight = contentHeight
|
||||
let position = 0
|
||||
let imgWidth = 595.28
|
||||
// let imgWidth = 595.28
|
||||
let imgWidth = 595.28
|
||||
let imgHeight = (597.28/ contentWidth) * contentHeight
|
||||
let pageData = canvas.toDataURL('image/jpeg', 0.4)
|
||||
// var d1 = document.getElementsByTagName("body")[0];
|
||||
// var img = document.createElement("img");
|
||||
// img.src=pageData
|
||||
// d1.appendChild(img);
|
||||
let PDF = new JsPDF('', 'pt', 'a4')
|
||||
let PDF = new JsPDF('', 'pt', 'a3')
|
||||
if (leftHeight < pageHeight) {
|
||||
PDF.addImage(pageData, 'JPEG', 0, 0, imgWidth, imgHeight)
|
||||
} else {
|
||||
while (leftHeight > 0) {
|
||||
PDF.addImage(pageData, 'JPEG', 0, position, imgWidth, imgHeight)
|
||||
PDF.addImage(pageData, 'JPEG', 132, position, imgWidth, imgHeight)
|
||||
leftHeight -= pageHeight
|
||||
// position -= 841.89
|
||||
position -= 841.89
|
||||
// position -= 11541.89
|
||||
if (leftHeight > 0) {
|
||||
PDF.addPage()
|
||||
}
|
||||
|
||||
@@ -16,7 +16,8 @@ Vue.prototype.$axios = axios
|
||||
Vue.prototype.$md5 = md5
|
||||
Vue.prototype.$tool = tool
|
||||
Vue.prototype.$http = http
|
||||
Vue.prototype.$upload = 'http://chaoyang.nxers.com/api/v1/file/files'
|
||||
// Vue.prototype.$upload = 'http://chaoyang.nxers.com/api/v1/file/files'//'http://chaoyang.nxers.com/api/v1/file/files'
|
||||
Vue.prototype.$upload = 'http://cyteam.org.cn/api/v1/file/files'//'http://chaoyang.nxers.com/api/v1/file/files'
|
||||
Vue.prototype.$jump = function (url) {
|
||||
this.$router.push({
|
||||
name: url
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
<div class="excute_con">
|
||||
<h3>一、项目申报书</h3>
|
||||
<p>
|
||||
<a :href="centers.probook?centers.probook:''" >{{centers.probook?(centers.probook.split('/')[8]).split('_')[0]:''}}</a>
|
||||
<a :href="centers.probook?centers.probook:''" >{{probook?(probook.split('.')[0]).split('_')[0]+'.'+probook.split('.')[1]:""}}</a>
|
||||
<!-- <a :href="centers.probook?centers.probook:''" target="_blank">预览</a> -->
|
||||
<a :href="centers.probook" target="_blank">{{centers.probook.split('/')[8].split('.')[1] == 'pdf'||centers.probook.split('/')[8].split('.')[1] == 'jpeg'||centers.probook.split('/')[8].split('.')[1] == 'png'||centers.probook.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
</p>
|
||||
<h3>二、项目实施方案</h3>
|
||||
<!-- probook -->
|
||||
<p>
|
||||
<a :href="centers.fangan?centers.fangan:''" >{{centers.fangan?((centers.fangan.split('/')[8]).split('_')[0]?(centers.fangan.split('/')[8]).split('_')[0]:centers.fangan.split('/')[8]):''}}</a>
|
||||
<a :href="centers.fangan?centers.fangan:''" >{{fangan?(fangan.split('.')[0]).split('_')[0]+'.'+fangan.split('.')[1]:""}}</a>
|
||||
<!-- <a :href="centers.fangan?centers.fangan:''" target="_blank">预览</a> -->
|
||||
<a :href="centers.fangan" target="_blank">{{centers.fangan.split('/')[8].split('.')[1] == 'pdf'||centers.fangan.split('/')[8].split('.')[1] == 'jpeg'||centers.fangan.split('/')[8].split('.')[1] == 'png'||centers.fangan.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
</p>
|
||||
@@ -61,7 +61,7 @@
|
||||
</div>
|
||||
<div style="margin-bottom:15px;position:relative;right:94px">
|
||||
<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
|
||||
v-model="zDatc.month"
|
||||
type="date"
|
||||
@@ -79,10 +79,11 @@
|
||||
<div style="margin-bottom:15px">
|
||||
<label style="font-size:20px;white-space:nowrap;margin-left:6px">项目执行团队人员构成及分工:</label>
|
||||
<span style="font-size:15px;margin-left:20px">{{zDatc.people}}</span>
|
||||
<div class="rich">
|
||||
<!-- <team @team1="team1" :teamVal="teamval"></team> -->
|
||||
<p v-html="centers.people"></p>
|
||||
<!-- <div class="rich">
|
||||
<team @team1="team1" :teamVal="teamval"></team>
|
||||
<aboutUs @aboutUs="inform2" :aboutUsVal="centers.people" :writeable="!ifupdate"></aboutUs>
|
||||
</div>
|
||||
</div>-->
|
||||
<!-- <el-input
|
||||
v-model="zDatc.people"
|
||||
name="name"
|
||||
@@ -102,37 +103,41 @@
|
||||
</aside>
|
||||
<h3>2、发展性状况</h3>
|
||||
<div class="rich">
|
||||
<ProjectBrief
|
||||
<p v-html="centers.develop"></p>
|
||||
<!-- <ProjectBrief
|
||||
@projectBrief="inform"
|
||||
:projectBriefVal="centers.develop"
|
||||
:writeable="!ifupdate"
|
||||
></ProjectBrief>
|
||||
></ProjectBrief> -->
|
||||
</div>
|
||||
<!-- <p>我国仍处于井将长期处于社会主义初级阶段,是最大的国情和实际。“我们开展各项工作,要一切从实际出发,牢牢立足这个最大国情和实际,不要超越阶段。从能源来看,我国當富煤少油缺气?的资源禀赋,决定了煤炭在较长一个时期内作为我国主体能源的地位不会发玍变化,这就婓求我们坚持从煤炭资源丰富的囯情出发,切实抓好煤炭清洁高效利用。”章建华</p> -->
|
||||
<h3>3、项目实施情况</h3>
|
||||
<div class="rich">
|
||||
<ProjectAssessment
|
||||
<p v-html="centers.pro_condition"></p>
|
||||
<!-- <ProjectAssessment
|
||||
@projectAssessment="goals"
|
||||
:projectAssessmentVal="centers.pro_condition"
|
||||
:writeable="!ifupdate"
|
||||
></ProjectAssessment>
|
||||
></ProjectAssessment> -->
|
||||
|
||||
</div>
|
||||
<h3>4、项目取得的成就</h3>
|
||||
<div class="rich">
|
||||
<ExistingBasis
|
||||
<p v-html="centers.result"></p>
|
||||
<!-- <ExistingBasis
|
||||
@existingBasis="effect"
|
||||
:existingBasisVal="centers.result"
|
||||
:writeable="!ifupdate"
|
||||
></ExistingBasis>
|
||||
></ExistingBasis> -->
|
||||
</div>
|
||||
<h3>5、对项目实施至今的情况总结</h3>
|
||||
<div class="rich">
|
||||
<MethodsWay
|
||||
<p v-html="centers.summary"></p>
|
||||
<!-- <MethodsWay
|
||||
@methodsWay="plement"
|
||||
:methodsWayVal="centers.summary"
|
||||
:writeable="!ifupdate"
|
||||
></MethodsWay>
|
||||
></MethodsWay> -->
|
||||
</div>
|
||||
<!-- <p>{{ centers.summary }}</p> -->
|
||||
<h3>
|
||||
@@ -168,7 +173,9 @@
|
||||
<p v-if='centers.ziliao[0].name ==""' style='color:blue;font-size:14px;'>暂未上传</p>
|
||||
<h3 v-for="(i,j) in centers.ziliao" :key="j" v-if='centers.ziliao[0].name !==""'>
|
||||
<p>活动名称{{j+1}}:{{i.name}}</p>
|
||||
<a𡭔:href="i.elereport?i.elereport:''" style="margin-left:-1px">{{i.elereport?(i.elereport.split('/')[8]).split('_')[0]:''}}</a>
|
||||
<!-- {{i.elereport.split('/')[8].split('_')}} -->
|
||||
<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" >
|
||||
<!-- <a :href="i.elereport" download 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,
|
||||
sub: 0,
|
||||
name: " ",
|
||||
probook:'',
|
||||
fangan:'',
|
||||
info: ["1"],
|
||||
zDatc: [],
|
||||
zDatb: [],
|
||||
@@ -289,6 +298,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.GetListImg();
|
||||
this.getCenter()
|
||||
},
|
||||
methods: {
|
||||
inform(data) {
|
||||
@@ -347,29 +357,42 @@ export default {
|
||||
})
|
||||
.then(res => {
|
||||
if (res.data.data.code === 200) {
|
||||
let data = res.data.data.data[0];
|
||||
this.centers = data;
|
||||
console.log(this.centers);
|
||||
this.caiwu = this.centers.fina.substring(
|
||||
this.centers.fina.lastIndexOf("/") + 1
|
||||
);
|
||||
this.dianzi = this.centers.elereport.substring(
|
||||
this.centers.elereport.lastIndexOf("/") + 1
|
||||
);
|
||||
this.shenqing = this.centers.adjust.substring(
|
||||
this.centers.adjust.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
|
||||
);
|
||||
console.log(res.data.data.data[0].status)
|
||||
if(res.data.data.data[0].status == 1000){
|
||||
let data = res.data.data.data[0];
|
||||
this.centers = data;
|
||||
console.log(this.centers);
|
||||
this.probook = this.centers.probook.substring(
|
||||
this.centers.probook.lastIndexOf("/") + 1
|
||||
);
|
||||
this.fangan = this.centers.fangan.substring(
|
||||
this.centers.fangan.lastIndexOf("/") + 1
|
||||
);
|
||||
this.caiwu = this.centers.fina.substring(
|
||||
this.centers.fina.lastIndexOf("/") + 1
|
||||
);
|
||||
this.dianzi = this.centers.elereport.substring(
|
||||
this.centers.elereport.lastIndexOf("/") + 1
|
||||
);
|
||||
this.shenqing = this.centers.adjust.substring(
|
||||
this.centers.adjust.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 {
|
||||
alert(res.data.data.msg);
|
||||
this.$message.error("当前页面未提交暂时无法查看!");
|
||||
// this.$jParams("schedule", { id: this.id, mid_sub: 1 });
|
||||
this.$router.push({path: `/schedule${this.id}`});
|
||||
}
|
||||
|
||||
@@ -8,42 +8,66 @@
|
||||
<p>
|
||||
<a :href="over.probook">{{over.probook?over.probook.split('/')[8]:'未上传'}}</a>
|
||||
<!-- <a :href="over.probook" target="_blank" v-if="over.probook">预览</a> -->
|
||||
<a v-if="over.probook" :href="over.probook" target="_blank">{{over.probook.split('/')[8].split('.')[1] == 'pdf'||over.probook.split('/')[8].split('.')[1] == 'jpeg'||over.probook.split('/')[8].split('.')[1] == 'png'||over.probook.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
<a
|
||||
v-if="over.probook"
|
||||
:href="over.probook"
|
||||
target="_blank"
|
||||
>{{over.probook?(over.probook.split('/')[8].split('.')[1] == 'pdf'||over.probook.split('/')[8].split('.')[1] == 'jpeg'||over.probook.split('/')[8].split('.')[1] == 'png'||over.probook.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'):''}}</a>
|
||||
</p>
|
||||
|
||||
<h3>二、立项批复文件</h3>
|
||||
<p>
|
||||
<a :href="over.fangan">{{over.fangan?over.fangan.split('/')[8]:'未上传'}}</a>
|
||||
<a :href="over.pifu">{{over.pifu?over.pifu.split('/')[8]:'未上传'}}</a>
|
||||
<!-- <a :href="over.fangan" target="_blank" v-if="over.fangan">预览</a> -->
|
||||
<a v-if="over.fangan" :href="over.fangan" target="_blank">{{over.fangan.split('/')[8].split('.')[1] == 'pdf'||over.fangan.split('/')[8].split('.')[1] == 'jpeg'||over.fangan.split('/')[8].split('.')[1] == 'png'||over.fangan.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
<a
|
||||
v-if="over.pifu"
|
||||
:href="over.pifu"
|
||||
target="_blank"
|
||||
>{{over.pifu.split('/')[8].split('.')[1] == 'pdf'||over.pifu.split('/')[8].split('.')[1] == 'jpeg'||over.pifu.split('/')[8].split('.')[1] == 'png'||over.pifu.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
</p>
|
||||
|
||||
<h3>三、实施方案</h3>
|
||||
<p>
|
||||
<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 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>
|
||||
<!-- <h3>四、街道(地区办事处)关于2019年社会建设资金购买社会组织服务结项材料的说明</h3>
|
||||
<h3>
|
||||
<!-- <span style="color:red;margin-right:10px;position:relative;right:3px">*</span> -->
|
||||
四、街道(地区办事处)关于2019年社会建设资金购买社会组织服务结项材料的说明
|
||||
</h3>
|
||||
<p>
|
||||
<span>
|
||||
<a href="#">下载</a> |
|
||||
<a href="#">预览</a>
|
||||
</span>
|
||||
</p> -->
|
||||
<h3>四、项目实施各阶段情况报告(月度报告)</h3>
|
||||
<a :href="over.explain">{{over.explain?over.explain.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.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>
|
||||
<DivisionLabor
|
||||
<a :href="over.location">{{over.location?over.location.split('/')[8]:'未上传'}}</a>
|
||||
|
||||
<a
|
||||
v-if="over.location"
|
||||
:href="over.location"
|
||||
target="_blank"
|
||||
>{{over.location.split('/')[8].split('.')[1] == 'pdf'||over.location.split('/')[8].split('.')[1] == 'jpeg'||over.location.split('/')[8].split('.')[1] == 'png'||over.location.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
<!-- <DivisionLabor
|
||||
@divisionLabor="plement"
|
||||
:divisionLaborVal="over.pro_condition"
|
||||
:writeable="false"
|
||||
></DivisionLabor>
|
||||
></DivisionLabor>-->
|
||||
<!-- <a href="#">未上传</a> -->
|
||||
|
||||
<!-- <a :href="over.pro_condition">{{over.pro_condition?over.pro_condition.split('/')[8]:'未上传'}}</a>
|
||||
|
||||
<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> -->
|
||||
<!-- <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>
|
||||
<!-- <h3>六、中期评估报告</h3>
|
||||
<p>
|
||||
@@ -51,8 +75,23 @@
|
||||
<a href="#">下载</a> |
|
||||
<a href="#">预览</a>
|
||||
</span>
|
||||
</p> -->
|
||||
<h3>五、结项报告(绩效报告)</h3>
|
||||
</p>-->
|
||||
|
||||
<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>
|
||||
<aside>
|
||||
<div class="baseinfo">
|
||||
@@ -61,11 +100,13 @@
|
||||
</div>
|
||||
<div class="baseinfo">
|
||||
<label class="left">机构名称:</label>
|
||||
<p class="right">{{over.company}}</p>
|
||||
<p class="right">{{over.company}}</p>
|
||||
</div>
|
||||
<div class="baseinfo">
|
||||
<label class="left">申请日期:</label>
|
||||
<p class="right">{{over.aterm}}</p>
|
||||
<p
|
||||
class="right"
|
||||
>{{new Date(over.aterm*1000).getFullYear()+'-'+(new Date(over.aterm*1000).getMonth()+1)+'-'+new Date(over.aterm*1000).getDate()}}--{{new Date(over.fterm*1000).getFullYear()+'-'+(new Date(over.fterm*1000).getMonth()+1)+'-'+new Date(over.fterm*1000).getDate()}}</p>
|
||||
</div>
|
||||
<div>
|
||||
<label class="left" style="font-size:20px">项目执行团队人员构成及分工:</label>
|
||||
@@ -77,112 +118,156 @@
|
||||
required
|
||||
disabled
|
||||
class="division"
|
||||
/> -->
|
||||
<DivisionLabor
|
||||
@divisionLabor="plement"
|
||||
:divisionLaborVal="over.people"
|
||||
:writeable="false"
|
||||
></DivisionLabor>
|
||||
<!-- <p v-html="over.people"></p> -->
|
||||
/>-->
|
||||
<!-- <DivisionLabor
|
||||
@divisionLabor="plement"
|
||||
:divisionLaborVal="over.people"
|
||||
:writeable="false"
|
||||
></DivisionLabor> -->
|
||||
<p v-html="over.people"></p>
|
||||
</div>
|
||||
</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> -->
|
||||
<!-- <p></p> -->
|
||||
<!-- <h3>3、项目实施情况</h3> -->
|
||||
<!-- <p>{{over.pro_condition}}</p> -->
|
||||
<!-- <p v-html="over.pro_condition"></p> -->
|
||||
<!-- <DivisionLabor
|
||||
<p v-html="over.pro_condition"></p>
|
||||
<!-- <DivisionLabor
|
||||
@divisionLabor="plement"
|
||||
:divisionLaborVal="over.pro_condition"
|
||||
:writeable="false"
|
||||
></DivisionLabor> -->
|
||||
></DivisionLabor>-->
|
||||
|
||||
<h3>1、项目取得的成就</h3>
|
||||
<!-- <p>{{over.result}}</p> -->
|
||||
<!-- <p v-html="over.result"></p> -->
|
||||
<DivisionLabor
|
||||
@divisionLabor="plement"
|
||||
:divisionLaborVal="over.result"
|
||||
:writeable="false"
|
||||
></DivisionLabor>
|
||||
<h3>2、对项目实施至今的情况总结</h3>
|
||||
<h3>4、项目取得的成就</h3>
|
||||
<p v-html="over.result"></p>
|
||||
<!-- <DivisionLabor @divisionLabor="plement" :divisionLaborVal="over.result" :writeable="false"></DivisionLabor> -->
|
||||
|
||||
<h3>5、对项目实施至今的情况总结</h3>
|
||||
<!-- <p>{{ over.summary }}</p> -->
|
||||
<!-- <p v-html="over.summary"></p> -->
|
||||
<DivisionLabor
|
||||
@divisionLabor="plement"
|
||||
:divisionLaborVal="over.summary"
|
||||
:writeable="false"
|
||||
></DivisionLabor>
|
||||
<p v-html="over.summary"></p>
|
||||
<!-- <DivisionLabor @divisionLabor="plement" :divisionLaborVal="over.summary" :writeable="false"></DivisionLabor> -->
|
||||
<h3>
|
||||
3、项目财务报告
|
||||
6、项目财务报告
|
||||
<span class="download">
|
||||
<!-- {{over.fina}} -->
|
||||
<a :href="over.fina">{{over.fina?over.fina.split('/')[8]:'未上传'}}</a>
|
||||
<a :href="over.fina">{{over.fina?over.fina.split('/')[8]:'未上传'}}</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
|
||||
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" target="_blank" v-if="over.fina">预览</a> -->
|
||||
<a :href="over.fina" target="_blank" v-if="over.fina">预览</a>-->
|
||||
</span>
|
||||
</h3>
|
||||
<h3>
|
||||
4、结项电子报告
|
||||
7、结项电子报告
|
||||
<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>
|
||||
|
||||
<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" target="_blank" v-if="over.elereport">预览</a> -->
|
||||
<a :href="over.elereport" target="_blank" v-if="over.elereport">预览</a>-->
|
||||
</span>
|
||||
</h3>
|
||||
<h3>
|
||||
六、项目调整申请表及批复意见表
|
||||
8、项目调整申请表及批复意见表
|
||||
<span class="download">
|
||||
<a :href="over.adjust">{{over.adjust?over.adjust.split('/')[8]:'未上传'}}</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
|
||||
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" target="_blank" v-if="over.adjust">预览</a> -->
|
||||
<a :href="over.adjust" target="_blank" v-if="over.adjust">预览</a>-->
|
||||
</span>
|
||||
</h3>
|
||||
<!-- JSON.parse() -->
|
||||
<h3>七、会议活动相关资料(通知、议程、参加人员名单及签到表、现场照片或视频、会议纪要、活动总结报告、媒体报道、满意度测评表及报告等)</h3>
|
||||
<span class="download" v-for="(item,index) in over.ziliao" :key="index" style="display:block;margin: 20px 0">
|
||||
<h3>八、会议活动相关资料(通知、议程、参加人员名单及签到表、现场照片或视频、会议纪要、活动总结报告、媒体报道、满意度测评表及报告等)</h3>
|
||||
<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}}: {{item.name}}</span>
|
||||
<a :href="item.elereport">{{item.elereport?item.elereport.split('/')[8]:'未上传'}}</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
|
||||
v-if="item.elereport"
|
||||
:href="item.elereport"
|
||||
target="_blank"
|
||||
>{{item.elereport.split('/')[8].split('.')[1] == 'pdf'||item.elereport.split('/')[8].split('.')[1] == 'jpeg'||item.elereport.split('/')[8].split('.')[1] == 'png'||item.elereport.split('/')[8].split('.')[1] == 'jpg'?'预览':'下载'}}</a>
|
||||
<!-- <a :href="item.elereport" download v-if="item.elereport">下载 |</a>
|
||||
<a :href="item.elereport" target="_blank" v-if="item.elereport">预览</a> -->
|
||||
<a :href="item.elereport" target="_blank" v-if="item.elereport">预览</a>-->
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<h3>
|
||||
八、反映项目实施效果的相关资料
|
||||
九、反映项目实施效果的相关资料
|
||||
(媒体报道、获奖情况、文字成果、案例等)
|
||||
<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>
|
||||
|
||||
<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" target="_blank" v-if="over.pro_result">预览</a> -->
|
||||
<a :href="over.pro_result" target="_blank" v-if="over.pro_result">预览</a>-->
|
||||
</span>
|
||||
</h3>
|
||||
<h3>
|
||||
九、财务管理制度
|
||||
十、财务管理制度
|
||||
<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>
|
||||
|
||||
<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" target="_blank" v-if="over.manage">预览</a> -->
|
||||
<a :href="over.manage" target="_blank" v-if="over.manage">预览</a>-->
|
||||
</span>
|
||||
</h3>
|
||||
<h3>
|
||||
十、项目经费表、决算表
|
||||
十一、项目经费表、决算表
|
||||
<span class="download">
|
||||
<a :href="over.money">{{over.money?over.money.split('/')[8]:'未上传'}}</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
|
||||
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" target="_blank" v-if="over.money">预览</a>-->
|
||||
</span>
|
||||
</span>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
@@ -190,8 +275,8 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import HeaderNav from '../../components/HeaderNav'
|
||||
import FooterNav from '../../components/FooterNav'
|
||||
import HeaderNav from "../../components/HeaderNav";
|
||||
import FooterNav from "../../components/FooterNav";
|
||||
const path = require("path");
|
||||
const files = require.context("@/components", false, /\.vue$/);
|
||||
const modules = {};
|
||||
@@ -200,103 +285,111 @@ files.keys().forEach(key => {
|
||||
modules[names] = files(key).default || files(key);
|
||||
});
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
var preD = function (e) {
|
||||
e.preventDefault()
|
||||
}
|
||||
var preD = function(e) {
|
||||
e.preventDefault();
|
||||
};
|
||||
export default {
|
||||
components: modules,
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
index_num: 2,
|
||||
sub: 0,
|
||||
name: ' ',
|
||||
info: ['1'],
|
||||
name: " ",
|
||||
info: ["1"],
|
||||
zDatc: [],
|
||||
zDatb: [],
|
||||
dataFile: null,
|
||||
id: null,
|
||||
fileName: null,
|
||||
over: null,
|
||||
probook:""
|
||||
}
|
||||
over: {},
|
||||
probook: ""
|
||||
};
|
||||
},
|
||||
created () {
|
||||
this.GetListImg()
|
||||
created() {
|
||||
this.GetListImg();
|
||||
},
|
||||
methods: {
|
||||
plement(){},
|
||||
aterm () { },
|
||||
fterm () { },
|
||||
getData () {
|
||||
plement() {},
|
||||
aterm() {},
|
||||
fterm() {},
|
||||
getData() {
|
||||
this.$http({
|
||||
method: 'post',
|
||||
url: 'v1/project/details',
|
||||
method: "post",
|
||||
url: "v1/project/details",
|
||||
data: {
|
||||
id: this.id
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res, 234568)
|
||||
console.log(res, 234568);
|
||||
|
||||
if (res.data.data.code === 200) {
|
||||
this.zDatc = res.data.data.data.ProjectDetails
|
||||
console.log(this.zDatc, 256)
|
||||
this.zDatc = res.data.data.data.ProjectDetails;
|
||||
console.log(this.zDatc, 256);
|
||||
} else {
|
||||
alert('请求失败!')
|
||||
alert("请求失败!");
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
console.log(err);
|
||||
});
|
||||
},
|
||||
getOver () {
|
||||
getOver() {
|
||||
this.$http({
|
||||
method: 'get',
|
||||
url: 'v1/pro/center',
|
||||
method: "get",
|
||||
url: "v1/pro/center",
|
||||
params: {
|
||||
// id: 83,
|
||||
id:this.$route.query.id,
|
||||
category: 'over'
|
||||
id: this.$route.query.id,
|
||||
category: "over"
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
// console.log(res,500)
|
||||
if (res.data.data.code === 200) {
|
||||
let data = res.data.data.data[0]
|
||||
this.over = data
|
||||
console.log(this.over.probook.split('/')[8],500)
|
||||
console.log(res.data.data.data[0].status)
|
||||
if(res.data.data.data[0].status == 1000){
|
||||
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 filetype = file.response.data.url.substr(index + 1);
|
||||
} else {
|
||||
alert(res.data.data.msg)
|
||||
this.$router.push({path: `/schedule${this.id}`});
|
||||
this.$message.error("当前页面未提交暂时无法查看!");
|
||||
this.$router.push({ path: `/schedule${this.id}` });
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
},
|
||||
// eslint-disable-next-line no-dupe-keys
|
||||
created () {
|
||||
this.id = this.$route.query.id
|
||||
this.getData()
|
||||
this.getOver()
|
||||
created() {
|
||||
this.id = this.$route.query.id;
|
||||
this.getData();
|
||||
this.getOver();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.baseinfo{
|
||||
.baseinfo {
|
||||
// min-width:180px;
|
||||
display: flex;
|
||||
.right{
|
||||
.right {
|
||||
margin-left: 15px;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
}
|
||||
.left{
|
||||
margin-left:29px;
|
||||
.left {
|
||||
margin-left: 29px;
|
||||
}
|
||||
}
|
||||
#excute_box {
|
||||
@@ -318,10 +411,10 @@ export default {
|
||||
font-size: 14px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
p{
|
||||
font-size: 14px!important;
|
||||
p {
|
||||
font-size: 14px !important;
|
||||
margin-left: 33px;
|
||||
line-height: 33px!important;
|
||||
line-height: 33px !important;
|
||||
}
|
||||
label {
|
||||
// margin-left: 16px;
|
||||
|
||||
@@ -70,8 +70,10 @@
|
||||
:on-preview="handlePreview"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -96,7 +98,7 @@
|
||||
>{{filename? filename.split('_')[0]+''+(filename.split('_')[0].includes('.')?'':'.'+filename.split('.')[1]):""}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<!-- v-if="imageUrl" -->
|
||||
<div @click="beforeRemove1(filename,'imageUrl')" class="close" v-if="imageUrl">
|
||||
<div @click="beforeRemove1(filename,'imageUrl')" class="close" v-if="imageUrl&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
|
||||
@@ -112,8 +114,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -141,7 +144,7 @@
|
||||
@click="beforeRemove1(filename1,'imageUrl1')"
|
||||
class="close"
|
||||
style="left:52px"
|
||||
v-if="imageUrl1"
|
||||
v-if="imageUrl1&&getpros.over.status!=1000"
|
||||
>
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
@@ -156,7 +159,7 @@
|
||||
@click="dialogTableVisible = true"
|
||||
style="color:rgb(116, 113, 239);cursor:pointer"
|
||||
>+月工作报表</p>
|
||||
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible">
|
||||
<el-dialog title="上传月工作报表" :visible.sync="dialogTableVisible" @close="toclose">
|
||||
<aside>
|
||||
<div>
|
||||
<label>一、项目名称:</label>
|
||||
@@ -231,6 +234,7 @@
|
||||
:limit="10"
|
||||
:on-exceed="handleExceed"
|
||||
:file-list="fileLists"
|
||||
:title="filename"
|
||||
>
|
||||
<el-button
|
||||
size="small"
|
||||
@@ -331,9 +335,9 @@
|
||||
<div class="statistics" v-show="num == 0">
|
||||
<table>
|
||||
<tr style="color:white">
|
||||
<th>月份</th>
|
||||
<th>提交情况</th>
|
||||
<th>月报文件</th>
|
||||
<th style="border-right:1px solid #fff">月份</th>
|
||||
<th style="border-right:1px solid #fff">提交情况</th>
|
||||
<th style="border-right:1px solid #fff">月报文件</th>
|
||||
<th>提交时间</th>
|
||||
</tr>
|
||||
<tr
|
||||
@@ -341,20 +345,70 @@
|
||||
:key="index"
|
||||
:class="{ on: index % 2 == 0, off: index % 2 != 0 }"
|
||||
>
|
||||
<td>{{new Date(names.month*1000).getMonth()+1}}</td>
|
||||
<td>{{names.type}}</td>
|
||||
<td style="vertical-align:middle;">{{new Date(names.month*1000).getFullYear()}}-{{new Date(names.month*1000).getMonth()+1}}</td>
|
||||
<td style="vertical-align:middle;">{{names.type}}</td>
|
||||
<td class="td_tooltip" style>
|
||||
<el-tooltip
|
||||
<div v-for="(item,index) in (JSON.parse(names.elereport))" :key="index">
|
||||
<div v-if="JSON.parse(names.elereport).length>1" style="display:flex;flex-wrap:nowrap;text-align:left">
|
||||
<!-- {{item}} -->
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="item.name? item.name:'未上传'"
|
||||
placement="top"
|
||||
>
|
||||
|
||||
<a
|
||||
:href="item.url"
|
||||
target="view_window"
|
||||
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
|
||||
>{{item.name}}</a>
|
||||
</el-tooltip>
|
||||
|
||||
<a
|
||||
:href="item.url?item.url:''"
|
||||
target="view_window"
|
||||
style="width:50px;color:#7471ef"
|
||||
v-if="names.elereport"
|
||||
>下载</a>
|
||||
</div>
|
||||
<div v-else style="display:flex;flex-wrap:nowrap;">
|
||||
<!-- {{JSON.parse(info.elereport).names}} -->
|
||||
<!-- {{item}} -->
|
||||
<el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="JSON.parse(names.elereport)[0].names+'.'+JSON.parse(names.elereport)[0].extension"
|
||||
placement="top"
|
||||
>
|
||||
|
||||
<a
|
||||
:href="JSON.parse(names.elereport)[0].url"
|
||||
target="view_window"
|
||||
style="width:180px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
|
||||
>{{JSON.parse(names.elereport)[0].names+'.'+JSON.parse(names.elereport)[0].extension}}</a>
|
||||
</el-tooltip>
|
||||
|
||||
<a
|
||||
:href="names.elereport?JSON.parse(names.elereport)[0].url:''"
|
||||
target="view_window"
|
||||
style="width:50px;color:#7471ef"
|
||||
v-if="names.elereport"
|
||||
>下载</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- {{names.elereport}} -->
|
||||
<!-- <el-tooltip
|
||||
class="item"
|
||||
effect="dark"
|
||||
:content="names.elereport?(JSON.parse(names.elereport).names.split('_')[0]?JSON.parse(names.elereport).names.split('_')[0]:JSON.parse(names.elereport).names) + (JSON.parse(names.elereport).extension == undefined ? '' : '.' + JSON.parse(names.elereport).extension):''"
|
||||
:content="names.elereport?(JSON.parse(names.elereport)[0].names.split('_')[0]?JSON.parse(names.elereport)[0].names.split('_')[0]:JSON.parse(names.elereport)[0].names) + (JSON.parse(names.elereport)[0].extension == undefined ? '' : '.' + JSON.parse(names.elereport)[0].extension):''"
|
||||
placement="top"
|
||||
>
|
||||
<a
|
||||
:href="names.elereport?JSON.parse(names.elereport).url:''"
|
||||
target="view_window"
|
||||
style="width:82%;float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis"
|
||||
>{{names.elereport?(JSON.parse(names.elereport).names.split('_')[0]?JSON.parse(names.elereport).names.split('_')[0]:JSON.parse(names.elereport).names) + (JSON.parse(names.elereport).extension == undefined ? '' : '.' + JSON.parse(names.elereport).extension):''}}</a>
|
||||
>{{names.elereport?(JSON.parse(names.elereport)[0].names.split('_')[0]?JSON.parse(names.elereport)[0].names.split('_')[0]:JSON.parse(names.elereport)[0].names) + (JSON.parse(names.elereport)[0].extension == undefined ? '' : '.' + JSON.parse(names.elereport)[0].extension):''}}</a>
|
||||
</el-tooltip>
|
||||
|
||||
<a
|
||||
@@ -362,12 +416,12 @@
|
||||
target="view_window"
|
||||
style="width:18%;color:#7471ef"
|
||||
>下载</a>
|
||||
</td>
|
||||
</td> -->
|
||||
<!-- <td>
|
||||
<a :href="names.elereport">{{names.name}}</a>
|
||||
</td>-->
|
||||
<!-- <td>{{new Date(names.month*1000).getFullYear()+'/'+new Date(names.month*1000).getMonth()+1+'/'+new Date(names.month*1000).getDate()}}</td> -->
|
||||
<td>{{new Date(names.month*1000).getFullYear()+'-'+parseInt(new Date(names.month*1000).getMonth()+1)+'-'+new Date(names.month*1000).getDate()}}</td>
|
||||
<td style="vertical-align:middle;">{{new Date(names.month*1000).getFullYear()+'-'+parseInt(new Date(names.month*1000).getMonth()+1)+'-'+new Date(names.month*1000).getDate()}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -385,8 +439,10 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -402,7 +458,7 @@
|
||||
</el-upload>
|
||||
<a class="filename" :href="fileurl2">{{filename2?filename2:''}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1(filename2,'imageUrl2')" class="close" v-if="imageUrl2">
|
||||
<div @click="beforeRemove1(filename2,'imageUrl2')" class="close" v-if="imageUrl2&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -477,7 +533,7 @@
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
style="margin-left:25px"
|
||||
style="margin-left:25px;"
|
||||
></el-date-picker>
|
||||
</div>
|
||||
</div>
|
||||
@@ -581,8 +637,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -601,7 +658,7 @@
|
||||
:href="fileurl4"
|
||||
>{{filename4? filename4.split('_')[0]+''+(filename4.split('_')[0].includes('.')?'':'.'+filename4.split('.')[1]):""}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1(filename4,'imageUrl4')" class="close" v-if="imageUrl4">
|
||||
<div @click="beforeRemove1(filename4,'imageUrl4')" class="close" v-if="imageUrl4&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -616,8 +673,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -636,7 +694,7 @@
|
||||
:href="fileurl5"
|
||||
>{{filename5? filename5.split('_')[0]+''+(filename5.split('_')[0].includes('.')?'':'.'+filename5.split('.')[1]):""}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1(filename5,'imageUrl5')" class="close" v-if="imageUrl5">
|
||||
<div @click="beforeRemove1(filename5,'imageUrl5')" class="close" v-if="imageUrl5&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -651,8 +709,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -674,7 +733,7 @@
|
||||
<div
|
||||
@click="beforeRemove1(filename6,'imageUrl6')"
|
||||
class="close"
|
||||
v-if="imageUrl6"
|
||||
v-if="imageUrl6&&getpros.over.status!=1000"
|
||||
style="left:75px;top:-60"
|
||||
>
|
||||
<i class="el-icon-close close"></i>
|
||||
@@ -689,8 +748,9 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
style="height:40px;margin-top:51px;position: relative;top: 85px;left: -160px;z-index:999"
|
||||
class="button_add"
|
||||
@click="add"
|
||||
v-if="getpros.over.status !=1000"
|
||||
>添加</el-button>
|
||||
</div>
|
||||
|
||||
@@ -708,6 +768,7 @@
|
||||
icon="el-icon-delete"
|
||||
circle
|
||||
style="margin-left:64px"
|
||||
v-if="getpros.over.status !=1000"
|
||||
@click="delactive(j)"
|
||||
></el-button>
|
||||
<!-- <input type="text" name="activity" value v-model="name[j]" required class="midsion" /> -->
|
||||
@@ -719,8 +780,9 @@
|
||||
:show-file-list="false"
|
||||
style="margin-left:3px;position:relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -744,7 +806,7 @@
|
||||
<div
|
||||
@click="beforeRemove1('','imageUrl7',j)"
|
||||
class="close"
|
||||
v-if="i.length"
|
||||
v-if="i.length&&getpros.over.status!=1000"
|
||||
style="left:-9px;top:-65px"
|
||||
>
|
||||
<i class="el-icon-close close" style="left:140px;top:-107"></i>
|
||||
@@ -763,8 +825,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -783,7 +846,7 @@
|
||||
:href="fileurl8"
|
||||
>{{filename8? filename8.split('_')[0]+''+(filename8.split('_')[0].includes('.')?'':'.'+filename8.split('.')[1]):""}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1(filename8,'imageUrl8')" class="close" v-if="imageUrl8">
|
||||
<div @click="beforeRemove1(filename8,'imageUrl8')" class="close" v-if="imageUrl8&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -798,8 +861,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -818,7 +882,7 @@
|
||||
:href="fileurl9"
|
||||
>{{filename9? filename9.split('_')[0]+''+(filename9.split('_')[0].includes('.')?'':'.'+filename9.split('.')[1]):""}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1(filename9,'imageUrl9')" class="close" v-if="imageUrl9">
|
||||
<div @click="beforeRemove1(filename9,'imageUrl9')" class="close" v-if="imageUrl9&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -833,8 +897,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
: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]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -853,7 +918,7 @@
|
||||
:href="fileurl10"
|
||||
>{{filename10? filename10.split('_')[0]+''+(filename10.split('_')[0].includes('.')?'':'.'+filename10.split('.')[1]):""}}</a>
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1(filename10,'imageUrl10')" class="close" v-if="imageUrl10">
|
||||
<div @click="beforeRemove1(filename10,'imageUrl10')" class="close" v-if="imageUrl10&&getpros.over.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -865,7 +930,7 @@
|
||||
|
||||
<!-- :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-item>
|
||||
@@ -1026,6 +1091,11 @@ export default {
|
||||
},
|
||||
// model:{},
|
||||
methods: {
|
||||
toclose(){
|
||||
this.month = ''
|
||||
this.fileLists=[]
|
||||
// this.fileLists2=[]
|
||||
},
|
||||
uploadfile(f) {
|
||||
console.log(f);
|
||||
let formdata = new FormData();
|
||||
@@ -1713,18 +1783,35 @@ export default {
|
||||
this.fileid = file.response.data.id;
|
||||
this.filename = file.response.data.name;
|
||||
this.fileurl = file.response.data.url;
|
||||
this.fileLists[0] = file.response.data;
|
||||
this.fileLists.push(file.response.data)
|
||||
//this.fileLists[0] = file.response.data;
|
||||
console.log(file);
|
||||
},
|
||||
handlePreview(file) {
|
||||
console.log(file);
|
||||
this.previewinfo = file;
|
||||
if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
||||
alert("推荐谷歌进行文件预览");
|
||||
} else {
|
||||
window.open(file.url); //blob格式地址
|
||||
}
|
||||
},
|
||||
handleRemove(file, fileList) {
|
||||
this.picture.forEach(element => {
|
||||
// this.picture.forEach(element => {
|
||||
// if (file.name === element.name) {
|
||||
// this.picture.splice(element, 1);
|
||||
// }
|
||||
// });
|
||||
this.fileLists.forEach(element => {
|
||||
console.log(file,element)
|
||||
if (file.name === element.name) {
|
||||
this.picture.splice(element, 1);
|
||||
console.log(this.fileLists.lastIndexOf(element),"del")
|
||||
|
||||
this.fileLists.splice(this.fileLists.lastIndexOf(element), 1);
|
||||
}
|
||||
});
|
||||
console.log(this.fileLists)
|
||||
return;
|
||||
},
|
||||
subBtn() {
|
||||
// console.log(this.zData.id, this.month)
|
||||
@@ -1737,29 +1824,42 @@ export default {
|
||||
// let datefin1=datefin.substr(0,datefin.length-2)
|
||||
// console.log(datefin1)
|
||||
if (this.fileLists.length) {
|
||||
this.$http({
|
||||
method: "post",
|
||||
url: "v1/pro/mon",
|
||||
data: {
|
||||
project_id: this.id,
|
||||
month: Math.round(this.month / 1000),
|
||||
pid: this.fileLists[0].id,
|
||||
name: this.fileLists[0].name,
|
||||
elereport: JSON.stringify(this.fileLists[0])
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
if (res.data.data.code === 200) {
|
||||
console.log(res, 15656);
|
||||
this.dialogTableVisible = false;
|
||||
this.getPostData();
|
||||
} else {
|
||||
alert("请求失败!");
|
||||
if(this.month){
|
||||
this.$http({
|
||||
method: "post",
|
||||
url: "v1/pro/mon",
|
||||
data: {
|
||||
project_id: this.id,
|
||||
month: Math.round(this.month / 1000),
|
||||
pid: this.fileLists[0].id,
|
||||
name: this.fileLists[0].name,
|
||||
elereport: JSON.stringify(this.fileLists),
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
.then(res => {
|
||||
if (res.data.data.code === 200) {
|
||||
console.log(res, 15656);
|
||||
this.dialogTableVisible = false;
|
||||
this.month = "";
|
||||
this.getPro();
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: "操作成功"
|
||||
});
|
||||
this.fileLists=[]
|
||||
} else {
|
||||
alert("请求失败!");
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}else{
|
||||
this.$message({
|
||||
type: "error",
|
||||
message: "请选择日期"
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.$message({
|
||||
type: "error",
|
||||
@@ -1839,7 +1939,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl = "/static/img/txt.png";
|
||||
this.imageUrl = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename = res.name; // res.name + "." + res.extension;
|
||||
// console.log(file);
|
||||
@@ -1892,7 +1992,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl1 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl1 = "/static/img/txt.png";
|
||||
this.imageUrl1 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename1 = res.name; // res.name + "." + res.extension;
|
||||
// console.log(file);
|
||||
@@ -1934,7 +2034,7 @@ export default {
|
||||
if (houzui == "doc" || houzui == "docx") {
|
||||
this.imageUrl2 = "/static/img/word.png";
|
||||
} else if (houzui == "pptx" || houzui == "ppt") {
|
||||
this.imageUrl1 = "/static/img/ppt.png";
|
||||
this.imageUrl2 = "/static/img/ppt.png";
|
||||
} else if (houzui == "pdf") {
|
||||
this.imageUrl2 = "/static/img/pdf.jpg";
|
||||
} else if (houzui == "xls" || houzui == "xlsx") {
|
||||
@@ -1944,7 +2044,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl2 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl2 = "/static/img/txt.png";
|
||||
this.imageUrl2 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename2 = res.name; // res.name + "." + res.extension;
|
||||
|
||||
@@ -2008,7 +2108,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl3 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl3 = "/static/img/txt.png";
|
||||
this.imageUrl3 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename3 = file.response.data.name;
|
||||
// this.imageUrl = URL.createObjectURL(file.raw)
|
||||
@@ -2032,7 +2132,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl4 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl4 = "/static/img/txt.png";
|
||||
this.imageUrl4 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename4 = res.name; // res.name + "." + res.extension;
|
||||
// console.log(file);
|
||||
@@ -2084,7 +2184,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl5 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl5 = "/static/img/txt.png";
|
||||
this.imageUrl5 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename5 = res.name; //res.name + "." + res.extension;
|
||||
|
||||
@@ -2137,7 +2237,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl6 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl6 = "/static/img/txt.png";
|
||||
this.imageUrl6 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename6 = res.name; //res.name + "." + res.extension;
|
||||
// console.log(file);
|
||||
@@ -2192,7 +2292,7 @@ export default {
|
||||
// this.imageUrl7[i] = "/static/img/pdf.jpg";
|
||||
this.$set(this.imageUrl7, i, "/static/img/pdf.jpg");
|
||||
} else if (this.filetype[i] == "txt") {
|
||||
this.$set(this.imageUrl7, i, "/static/img/txt.png");
|
||||
this.$set(this.imageUrl7, i, "/static/img/txt.jpg");
|
||||
} else if (this.filetype[i] == "xls" || this.filetype[i] == "xlsx") {
|
||||
// this.imageUrl7[i] = "/static/img/excel.png";
|
||||
this.$set(this.imageUrl7, i, "/static/img/excel.png");
|
||||
@@ -2283,7 +2383,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl8 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl8 = "/static/img/txt.png";
|
||||
this.imageUrl8 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename8 = res.name; // res.name + "." + res.extension;
|
||||
|
||||
@@ -2336,7 +2436,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl9 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl9 = "/static/img/txt.png";
|
||||
this.imageUrl9 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename9 = res.name; // res.name + "." + res.extension;
|
||||
// console.log(file);
|
||||
@@ -2388,7 +2488,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl10 = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this.imageUrl10 = "/static/img/txt.png";
|
||||
this.imageUrl10 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename10 = res.name; //res.name + "." + res.extension;
|
||||
|
||||
@@ -2465,37 +2565,49 @@ export default {
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res.data.data, 88888);
|
||||
// console.log(res.data.data, 88888);
|
||||
if (res.data.data.code == 0) {
|
||||
alert(res.data.data.message);
|
||||
this.$router.push({ path: "schedule" + this.id });
|
||||
// this.before()
|
||||
} else {
|
||||
console.log(res, 100);
|
||||
// console.log(res, 100);
|
||||
this.c = res.data.data;
|
||||
this.getpros = res.data.data;
|
||||
|
||||
console.log(this.getpros, "aaaa");
|
||||
// console.log(this.getpros, "aaaa");
|
||||
// this.getpros.prodemofg=""
|
||||
let shili = res.data.data.probook;
|
||||
this.shili = shili.substring(shili.lastIndexOf("/") + 1);
|
||||
|
||||
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;
|
||||
this.shili2 = shili2.substring(shili2.lastIndexOf("/") + 1);
|
||||
if(shili2){
|
||||
this.shili2 = shili2.substring(shili2.lastIndexOf("/") + 1);
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
this.shili4 = shili.substring(shili.lastIndexOf("/") + 1);
|
||||
if(shili4){
|
||||
this.shili4 = shili.substring(shili.lastIndexOf("/") + 1);
|
||||
}
|
||||
|
||||
this.$set(this, "visitDate", [
|
||||
res.data.data.aterm,
|
||||
res.data.data.fterm
|
||||
]);
|
||||
console.log(res.data.data.over, 4455);
|
||||
// console.log(res.data.data.over, 4455);
|
||||
this.getpros.prodemofg ='';
|
||||
if (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)
|
||||
if (arrlist.length) {
|
||||
console.log(arrlist.length)
|
||||
// console.log(arrlist.length)
|
||||
this.ziliaoarr=[]
|
||||
for(let i in arrlist){
|
||||
let url = arrlist[i].elereport;
|
||||
@@ -2597,7 +2709,7 @@ export default {
|
||||
this.$set(this.filenamearr, i, filename);
|
||||
this.ziliaoarr.push(1)
|
||||
let houzhui=this.filenamearr[i].substring(filename.lastIndexOf(".")+1)
|
||||
console.log(houzhui,'10810')
|
||||
// console.log(houzhui,'10810')
|
||||
if(houzhui=='rar'||houzhui=='zip'){
|
||||
this.ziliaoarr[i] = "/static/img/zip.png";
|
||||
}else if(houzhui=='doc'||houzhui=='docx'){
|
||||
@@ -2616,7 +2728,7 @@ export default {
|
||||
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";
|
||||
// } else if (uurl.split('/')[8].split('.')[2] == "txt") {
|
||||
// // "/static/img/pdf.jpg"
|
||||
// this.ziliaoarr[i] = "/static/img/txt.png";
|
||||
// this.ziliaoarr[i] = "/static/img/txt.jpg";
|
||||
// } else if (
|
||||
// url.split('/')[8].split('.')[2] == "jpg" ||
|
||||
// url.split('/')[8].split('.')[2] == "jpeg" ||
|
||||
@@ -2732,8 +2844,8 @@ export default {
|
||||
});
|
||||
},
|
||||
fileloading(e, f, g, m) {
|
||||
let houzui = e.split(".")[3];
|
||||
console.log(houzui);
|
||||
let houzui = e.substring(e.lastIndexOf(".")+1)//e.split(".")[3];
|
||||
// console.log(houzui);
|
||||
if (houzui == "doc" || houzui == "docx") {
|
||||
// console.log(g,'klll')
|
||||
this[g] = "/static/img/word.png";
|
||||
@@ -2748,11 +2860,11 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this[g] = "/static/img/zip.png";
|
||||
} else if (houzui == "txt") {
|
||||
this[g] = "/static/img/txt.png";
|
||||
this[g] = "/static/img/txt.jpg";
|
||||
}
|
||||
this[f] = e.split("/")[8];
|
||||
this[m] = e;
|
||||
console.log(e.split("/"));
|
||||
// console.log(e.split("/"));
|
||||
},
|
||||
getSubmis() {
|
||||
this.$http({
|
||||
@@ -2817,8 +2929,8 @@ export default {
|
||||
fina: this.fileurl4,
|
||||
elereport: this.fileurl5,
|
||||
adjust: this.fileurl6,
|
||||
ziliao: this.fileurl7,
|
||||
// ziliao: JSON.stringify(this.fileurl7),
|
||||
// ziliao: this.fileurl7,
|
||||
ziliao: JSON.stringify(this.fileurl7),
|
||||
pro_result: this.fileurl8,
|
||||
manage: this.fileurl9,
|
||||
money: this.fileurl10
|
||||
@@ -2828,12 +2940,16 @@ export default {
|
||||
console.log(res);
|
||||
if (res.data.data.code == 200) {
|
||||
this.$message({
|
||||
message: res.data.data.msg,
|
||||
message: '保存成功!',
|
||||
type: "success"
|
||||
});
|
||||
this.$router.push({
|
||||
name: "project"
|
||||
});
|
||||
// this.$router.push({
|
||||
// name: "project"
|
||||
// });
|
||||
this.$router.go(-1)
|
||||
// let id = this.id;
|
||||
// console.log(id)
|
||||
// $jParams('schedule', { id: id })
|
||||
} else {
|
||||
this.$message.error(res.data.data.msg);
|
||||
// this.$router.push({ path: `/schedule${this.id}` });
|
||||
@@ -2850,7 +2966,6 @@ export default {
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
let procondition = this.stateText;
|
||||
|
||||
for (let i in this.ziliaoarr) {
|
||||
this.fileurl7[i] = { name: "", elereport: "" };
|
||||
if (this.name[i]) {
|
||||
@@ -2861,6 +2976,7 @@ export default {
|
||||
}
|
||||
}
|
||||
console.log(this.getpros, 666);
|
||||
|
||||
this.$http({
|
||||
method: "post",
|
||||
url: "v1/test/end-sub",
|
||||
@@ -2879,8 +2995,8 @@ export default {
|
||||
fina: this.fileurl4,
|
||||
elereport: this.fileurl5,
|
||||
adjust: this.fileurl6,
|
||||
ziliao:this.fileurl7,
|
||||
// ziliao: JSON.stringify(this.fileurl7),
|
||||
// ziliao:this.fileurl7,
|
||||
ziliao: JSON.stringify(this.fileurl7),
|
||||
pro_result: this.fileurl8,
|
||||
manage: this.fileurl9,
|
||||
money: this.fileurl10
|
||||
@@ -2890,15 +3006,14 @@ export default {
|
||||
console.log(res);
|
||||
if (res.data.data.code == 200) {
|
||||
this.$message({
|
||||
message: res.data.data.msg,
|
||||
message: '提交成功!',
|
||||
type: "success"
|
||||
});
|
||||
this.$router.push({
|
||||
name: "project"
|
||||
});
|
||||
//
|
||||
this.$router.go(-1)
|
||||
} else {
|
||||
this.$message.error(res.data.data.msg);
|
||||
this.$router.push({ path: `/schedule${this.id}` });
|
||||
// this.$router.push({ path: `/schedule${this.id}` });
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
@@ -2914,7 +3029,22 @@ export default {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.el-picker-panel {
|
||||
z-index: 99999 !important;
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.button_add{
|
||||
height:40px;
|
||||
margin-top:51px;
|
||||
position: relative;
|
||||
top: 85px;
|
||||
left: -160px;
|
||||
z-index:999
|
||||
}
|
||||
// .upload-demo /deep/ .el-upload-list__item-status-label .el-icon-upload-success{
|
||||
// display: none !important;
|
||||
|
||||
@@ -2981,12 +3111,13 @@ label {
|
||||
height: 320px;
|
||||
}
|
||||
#excute_box {
|
||||
width: 92%;
|
||||
width: 1300px;
|
||||
margin: 0 auto;
|
||||
margin-top: 40px;
|
||||
background: white;
|
||||
.excute_con {
|
||||
min-width: 1200px;
|
||||
// min-width: 1200px;
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 30px;
|
||||
margin-bottom: 51px;
|
||||
@@ -3221,4 +3352,14 @@ label {
|
||||
padding: 10px 0;
|
||||
}
|
||||
}
|
||||
// @media screen and (min-width: 1600px) {
|
||||
// .button_add{
|
||||
// height:40px;
|
||||
// margin-top:51px;
|
||||
// position: relative;
|
||||
// top: 38px;
|
||||
// left: -260px;
|
||||
// z-index:999
|
||||
// }
|
||||
// }
|
||||
</style>
|
||||
|
||||
@@ -195,8 +195,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile2"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -211,10 +212,11 @@
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</el-upload>
|
||||
<!-- <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>
|
||||
|
||||
<div @click="beforeRemove1(filename,'imageUrl')" v-if="imageUrl">
|
||||
<div @click="beforeRemove1(filename,'imageUrl')" v-if="imageUrl&&subdata.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -230,8 +232,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile1"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -245,10 +248,11 @@
|
||||
<img v-if="imageUrl1" :src="imageUrl1" class="avatar" />
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</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>
|
||||
<!--文件上传-->
|
||||
<div @click="beforeRemove1(filename1,'imageUrl1')" v-if="imageUrl1">
|
||||
<div @click="beforeRemove1(filename1,'imageUrl1')" v-if="imageUrl1&&subdata.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
</div>
|
||||
@@ -263,8 +267,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -278,9 +283,10 @@
|
||||
<img v-if="imageUrl2" :src="imageUrl2" class="avatar" />
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</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>
|
||||
<div @click="beforeRemove1(filename2,'imageUrl2')" v-if="imageUrl2">
|
||||
<div @click="beforeRemove1(filename2,'imageUrl2')" v-if="imageUrl2&&subdata.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -310,6 +316,7 @@
|
||||
right: 168px;
|
||||
z-index:999"
|
||||
@click="add"
|
||||
v-if="subdata.status!=1000"
|
||||
>添加</el-button>
|
||||
</div>
|
||||
|
||||
@@ -336,6 +343,7 @@
|
||||
circle
|
||||
style="margin-left:64px"
|
||||
@click="delactive(j)"
|
||||
v-if="subdata.status!=1000"
|
||||
></el-button>
|
||||
<div @click="active1(j)">
|
||||
<el-upload
|
||||
@@ -344,8 +352,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile6"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<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> -->
|
||||
<p class="tip">点击上方图标可上传文件</p>
|
||||
<div @click="beforeRemove1('','imageUrl3',j)" v-if="i.length">
|
||||
<div @click="beforeRemove1('','imageUrl3',j)" v-if="i.length&&subdata.status!=1000">
|
||||
<i class="el-icon-close close" style="left:120px;top:-150px"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -381,8 +390,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile3"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -396,9 +406,10 @@
|
||||
<img v-if="imageUrl4" :src="imageUrl4" class="avatar" />
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</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>
|
||||
<div @click="beforeRemove1(filename4,'imageUrl4')" v-if="imageUrl4">
|
||||
<div @click="beforeRemove1(filename4,'imageUrl4')" v-if="imageUrl4&&subdata.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -414,8 +425,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile4"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -429,9 +441,10 @@
|
||||
<img v-if="imageUrl5" :src="imageUrl5" class="avatar" />
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</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>
|
||||
<div @click="beforeRemove1(filename5,'imageUrl5')" v-if="imageUrl5">
|
||||
<div @click="beforeRemove1(filename5,'imageUrl5')" v-if="imageUrl5&&subdata.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!--文件上传-->
|
||||
@@ -447,8 +460,9 @@
|
||||
:show-file-list="false"
|
||||
style="position: relative"
|
||||
:http-request="uploadfile5"
|
||||
:disabled="subdata.status == 1000"
|
||||
>
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:10px;top:42px">
|
||||
<div style="position: absolute;z-index:9999;width:80px;left:9px;top:42px">
|
||||
<!-- {{uploadname[2]}} -->
|
||||
<!-- -->
|
||||
<el-progress
|
||||
@@ -462,11 +476,13 @@
|
||||
<img v-if="imageUrl6" :src="imageUrl6" class="avatar" />
|
||||
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
||||
</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>
|
||||
<div @click="beforeRemove1(filename6,'imageUrl6')" v-if="imageUrl6">
|
||||
<div @click="beforeRemove1(filename6,'imageUrl6')" v-if="imageUrl6&&subdata.status!=1000">
|
||||
<i class="el-icon-close close"></i>
|
||||
</div>
|
||||
<!-- -->
|
||||
<!--文件上传-->
|
||||
</div>
|
||||
<!-- <div class="ll">
|
||||
@@ -480,6 +496,7 @@
|
||||
label-width="100px"
|
||||
class="demo-ruleForm"
|
||||
>
|
||||
<!-- -->
|
||||
<el-form-item v-if="subdata.status!=1000">
|
||||
<button type="button" @click="before">返回</button>
|
||||
<button type="button" @click="postApply(0)">保存</button>
|
||||
@@ -1076,10 +1093,10 @@ export default {
|
||||
console.log(data, "data");
|
||||
this.teamtext = data;
|
||||
},
|
||||
inform(data) {
|
||||
console.log(data,44444);
|
||||
this.infomrText = data;
|
||||
},
|
||||
// inform(data) {
|
||||
// console.log(data,44444);
|
||||
// this.infomrText = data;
|
||||
// },
|
||||
inform2(data) {
|
||||
console.log(data, "111111e");
|
||||
this.team = data;
|
||||
@@ -1106,7 +1123,7 @@ export default {
|
||||
this.plementText = data;
|
||||
},
|
||||
fileloading(e,f,g,m){
|
||||
let houzui =e.split('.')[3]
|
||||
let houzui = e.substring(e.lastIndexOf(".")+1)//e.split('.')[3]
|
||||
console.log(houzui)
|
||||
if (houzui == "doc" || houzui == "docx") {
|
||||
this[g] = "/static/img/word.png";
|
||||
@@ -1121,7 +1138,7 @@ export default {
|
||||
}else if (houzui == "zip" || houzui == "rar") {
|
||||
this[g] = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this[g] = "/static/img/txt.png";
|
||||
this[g] = "/static/img/txt.jpg";
|
||||
}
|
||||
this[f]=e.split('/')[8]
|
||||
this[m]=e
|
||||
@@ -1148,7 +1165,7 @@ export default {
|
||||
}else if(houzui == "zip" || houzui == "rar"){
|
||||
this.imageUrl = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl = "/static/img/txt.png";
|
||||
this.imageUrl = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename = res.names+'.'+res.extension;
|
||||
// this.fileurl = file.response.data.url;
|
||||
@@ -1198,7 +1215,7 @@ export default {
|
||||
}else if(houzui == "zip" || houzui == "rar"){
|
||||
this.imageUrl1 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl1 = "/static/img/txt.png";
|
||||
this.imageUrl1 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename1 = res.names+'.'+res.extension;
|
||||
// this.fileurl1 = file.response.data.url;
|
||||
@@ -1250,7 +1267,7 @@ export default {
|
||||
}else if(houzui == "zip" || houzui == "rar"){
|
||||
this.imageUrl2 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl2 = "/static/img/txt.png";
|
||||
this.imageUrl2 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename2 = res.names+'.'+res.extension;
|
||||
},
|
||||
@@ -1289,7 +1306,7 @@ export default {
|
||||
}else if(this.filetype[i] == "zip" || this.filetype[i] == "rar"){
|
||||
this.imageUrl3[i] = "/static/img/zip.png";
|
||||
}else if(this.filetype[i] == "txt"){
|
||||
this.imageUrl3[i] = "/static/img/txt.png";
|
||||
this.imageUrl3[i] = "/static/img/txt.jpg";
|
||||
}
|
||||
|
||||
else if (
|
||||
@@ -1333,7 +1350,7 @@ export default {
|
||||
}else if(houzui == "zip" || houzui == "rar"){
|
||||
this.imageUrl4 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl4 = "/static/img/txt.png";
|
||||
this.imageUrl4 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename4 = res.names+'.'+res.extension;
|
||||
},
|
||||
@@ -1356,7 +1373,7 @@ export default {
|
||||
}else if(houzui == "zip" || houzui == "rar"){
|
||||
this.imageUrl5 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl5 = "/static/img/txt.png";
|
||||
this.imageUrl5 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename5 = res.names+'.'+res.extension;
|
||||
},
|
||||
@@ -1379,7 +1396,7 @@ export default {
|
||||
}else if(houzui == "zip" || houzui == "rar"){
|
||||
this.imageUrl6 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl6 = "/static/img/txt.png";
|
||||
this.imageUrl6 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename6 = res.names+'.'+res.extension;
|
||||
},
|
||||
@@ -1432,7 +1449,7 @@ export default {
|
||||
},
|
||||
getSubmis() {
|
||||
let t = this;
|
||||
console.log(t.$route.query.id, "aa");
|
||||
//console.log(t.$route.query.id, "aa");
|
||||
this.$http({
|
||||
method: "get",
|
||||
url: "v1/test/center",
|
||||
@@ -1442,7 +1459,7 @@ export default {
|
||||
})
|
||||
.then(res => {
|
||||
// console.log(res.data.code)
|
||||
console.log(res, 888);
|
||||
// console.log(res, 888);
|
||||
if (res.data.data.code === 200) {
|
||||
|
||||
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)
|
||||
: date.getMonth() + 1) + "-";
|
||||
let D = date.getDate() + " ";
|
||||
console.log(Y + M + D);
|
||||
console.log(this.getsubs);
|
||||
// console.log(Y + M + D);
|
||||
// console.log(this.getsubs);
|
||||
this.visitDate[0] = Y + M + D;
|
||||
|
||||
var date1 = new Date(parseInt(this.getsubs.fterm) * 1000);
|
||||
@@ -1465,24 +1482,25 @@ export default {
|
||||
? "0" + (date1.getMonth() + 1)
|
||||
: date1.getMonth() + 1) + "-";
|
||||
let D1 = date1.getDate() + " ";
|
||||
console.log(Y1 + M1 + D1);
|
||||
console.log(this.getsubs);
|
||||
// console.log(Y1 + M1 + D1);
|
||||
// console.log(this.getsubs);
|
||||
this.visitDate[1] = Y1 + M1 + D1;
|
||||
|
||||
let shili = res.data.data.data.optimize.probook;
|
||||
|
||||
console.log(shili)
|
||||
|
||||
// var filename = shili.substring(shili.lastIndexOf('/')+1);
|
||||
// console.log(filename)
|
||||
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;
|
||||
this.shili1 = shili1.substring(shili.lastIndexOf("/") + 1);
|
||||
// console.log(this.team,121222)s
|
||||
this.team=res.data.data.data.center.people
|
||||
this.infomrText=res.data.data.data.center.develop
|
||||
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.plementText=res.data.data.data.center.summary
|
||||
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.adjust,'filename2','imageUrl2','fileurl2')
|
||||
let arrlist = JSON.parse(res.data.data.data.center.ziliao)
|
||||
console.log(arrlist.length)
|
||||
// console.log(arrlist.length)
|
||||
if (arrlist.length) {
|
||||
|
||||
this.ziliaoarr=[]
|
||||
@@ -1503,7 +1521,7 @@ export default {
|
||||
this.$set(this.filenamearr, i, filename);
|
||||
this.ziliaoarr.push(1)
|
||||
let houzhui=this.filenamearr[i].substring(filename.lastIndexOf(".")+1)
|
||||
console.log(houzhui,'10810')
|
||||
// console.log(houzhui,'10810')
|
||||
if(houzhui=='rar'||houzhui=='zip'){
|
||||
this.ziliaoarr[i] = "/static/img/zip.png";
|
||||
}else if(houzhui=='doc'||houzhui=='docx'){
|
||||
@@ -1522,7 +1540,7 @@ export default {
|
||||
this.ziliaoarr[i] = url;
|
||||
}
|
||||
|
||||
console.log(this.filenamearr)
|
||||
// console.log(this.filenamearr)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1542,7 +1560,7 @@ export default {
|
||||
},
|
||||
postApply(index) {
|
||||
if (index == 0) {
|
||||
this.$confirm("此操作将保存当前填写的内容, 是否继续??", "提示", {
|
||||
this.$confirm("此操作将保存当前填写的内容, 是否继续?", "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
@@ -1557,7 +1575,42 @@ export default {
|
||||
}
|
||||
}
|
||||
// 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({
|
||||
method: "post",
|
||||
url: "v1/test/cent-sub",
|
||||
@@ -1587,17 +1640,19 @@ export default {
|
||||
message: res.data.data.msg,
|
||||
type: "success"
|
||||
});
|
||||
this.$router.push({
|
||||
name: "project"
|
||||
});
|
||||
this.$router.go(-1)
|
||||
// this.$router.push({
|
||||
// name: "project"
|
||||
// });
|
||||
} else {
|
||||
this.$message.error(res.data.data.msg);
|
||||
this.$router.push({path: `/schedule${this.id}`});
|
||||
// this.$router.push({path: `/schedule${this.id}`});
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
});
|
||||
} else if (index == 1) {
|
||||
this.$confirm("请确认是否提交中期评审材料,提交后不可修改!", "提示", {
|
||||
@@ -1614,7 +1669,43 @@ export default {
|
||||
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",
|
||||
url: "v1/test/cent-sub",
|
||||
data: {
|
||||
@@ -1643,17 +1734,20 @@ export default {
|
||||
message: res.data.data.msg,
|
||||
type: "success"
|
||||
});
|
||||
this.$router.push({
|
||||
name: "project"
|
||||
});
|
||||
this.$router.go(-1)
|
||||
|
||||
// this.$router.push({
|
||||
// name: "project"
|
||||
// });
|
||||
} else {
|
||||
this.$message.error(res.data.data.msg);
|
||||
this.$router.push({path: `/schedule${this.id}`});
|
||||
// this.$router.push({path: `/schedule${this.id}`});
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1667,6 +1761,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
.tip {
|
||||
color: gray !important;
|
||||
font-size: 12px !important;
|
||||
@@ -1703,7 +1798,7 @@ export default {
|
||||
// // margin-left: 45px;
|
||||
// }
|
||||
.rich {
|
||||
z-index: 10;
|
||||
// z-index: 10;
|
||||
width: 100%;
|
||||
// margin: 30px auto 0px;
|
||||
margin-bottom: 30px;
|
||||
@@ -1861,3 +1956,8 @@ export default {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style >
|
||||
.el-message-box__wrapper{
|
||||
z-index: 990221!important;
|
||||
}
|
||||
</style>
|
||||
@@ -238,7 +238,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
statuschange(){
|
||||
this.$axios({
|
||||
if(sessionStorage.getItem("party_id")){
|
||||
this.$axios({
|
||||
url: "v1/news/list?org_id="+sessionStorage.getItem("party_id"),//805
|
||||
method: "get",
|
||||
|
||||
@@ -254,8 +255,21 @@ export default {
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
|
||||
this.$axios({
|
||||
url: "v1/news/du?id="+res.data.data[0].id,
|
||||
method: "get",
|
||||
// nol: 45,
|
||||
// headers: { "Content-Type": "multipart/form-data" },
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
type: "info",
|
||||
message: "已取消"
|
||||
});
|
||||
});
|
||||
}
|
||||
}else{
|
||||
// this.$message({
|
||||
@@ -264,6 +278,8 @@ export default {
|
||||
// });
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
details (id) {
|
||||
let routeUrl = this.$router.resolve({
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<!-- end -->
|
||||
</div>
|
||||
<div class="pages">
|
||||
<div class="pages" v-if="collect.length>0">
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
|
||||
@@ -12,10 +12,11 @@
|
||||
<div class="box" :key="index">
|
||||
<!-- <span class="iconfont icon-changyongtubiao-mianxing-"></span> -->
|
||||
<aside>
|
||||
<span class="span1">{{list.content}}</span>
|
||||
<span class="span1">问题:{{list.content}}</span>
|
||||
<!-- <span class="span2">来源板块:{{list.society_name}}</span> -->
|
||||
</aside>
|
||||
<p>
|
||||
<span>回复:</span>
|
||||
{{list.reply}}
|
||||
</p>
|
||||
</div>
|
||||
@@ -27,7 +28,7 @@
|
||||
|
||||
<!-- end -->
|
||||
</div>
|
||||
<div class="pages">
|
||||
<div class="pages" v-if="list.length>0">
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
<el-option
|
||||
v-for="(i,j) in bgValue.type"
|
||||
:key="j"
|
||||
style="text-align:center"
|
||||
:label="bgValue.type[j]"
|
||||
:value="j"
|
||||
></el-option>
|
||||
@@ -90,6 +91,7 @@
|
||||
<el-option
|
||||
v-for="(i,j) in bgValue.status"
|
||||
:key="j"
|
||||
style="text-align:center"
|
||||
:label="bgValue.status[j]"
|
||||
:value="j"
|
||||
></el-option>
|
||||
@@ -105,6 +107,7 @@
|
||||
<el-option
|
||||
v-for="(i,j) in bgValue.area"
|
||||
:key="j"
|
||||
style="text-align:center"
|
||||
:label="bgValue.area[j]"
|
||||
:value="j"
|
||||
></el-option>
|
||||
@@ -249,7 +252,7 @@ export default {
|
||||
watch: {},
|
||||
methods: {
|
||||
/** 筛选函数 */
|
||||
prolist(time0, time1, type, area, status, currentPage) {
|
||||
prolist(currentPage) {
|
||||
this.$http({
|
||||
method: "get",
|
||||
url: "v1/project/list",
|
||||
@@ -260,7 +263,7 @@ export default {
|
||||
area: this.areaval,
|
||||
status: this.statusval,
|
||||
page: currentPage ? currentPage : 0,
|
||||
num: 6
|
||||
num: 4
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
@@ -383,15 +386,14 @@ export default {
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.currentPage = val;
|
||||
this.getDataTwo();
|
||||
this.getPackData();
|
||||
this.prolist(val)
|
||||
// this.getDataTwo();
|
||||
},
|
||||
getPackData() {}
|
||||
},
|
||||
created() {
|
||||
this.currentPage = Number(localStorage.getItem("page")) || 1;
|
||||
this.handleCurrentChange(this.currentPage);
|
||||
this.getDataOne();
|
||||
this.prolist(this.currentPage)
|
||||
},
|
||||
mounted() {
|
||||
this.sendMsgToParent();
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<template>
|
||||
<div class="wrapper" v-if="types">
|
||||
<header-nav :index_num="index_num"></header-nav>
|
||||
<div id="box">
|
||||
<h3>项目信息优化</h3>
|
||||
<!-- 导航 -->
|
||||
<div class="box">
|
||||
<div id="box">
|
||||
<h3>项目信息优化</h3>
|
||||
<div class="box">
|
||||
<div
|
||||
:class="sub == 0 ? 'color' : ''"
|
||||
:style="{
|
||||
@@ -22,7 +21,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form">
|
||||
<el-form
|
||||
<el-form
|
||||
:model="ruleForm"
|
||||
:rules="rules"
|
||||
ref="ruleForm"
|
||||
@@ -173,7 +172,8 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
<el-form
|
||||
|
||||
<el-form
|
||||
:model="ruleForm1"
|
||||
:rules="rules1"
|
||||
ref="ruleForm1"
|
||||
@@ -181,7 +181,7 @@
|
||||
class="demo-ruleForm"
|
||||
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-form-item>
|
||||
<div style="display:flex">
|
||||
@@ -215,7 +215,7 @@
|
||||
<el-form-item label="办公电话" prop="respoophone" style="margin-right:-69px">
|
||||
<el-input v-model="ruleForm1.respoophone" style="width:150px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="手机" prop="respoptel" style="margin-right:-69px">
|
||||
<el-form-item label="手机" prop="respoptel2" style="margin-right:-69px">
|
||||
<!-- ruleForm.region -->
|
||||
<el-input v-model="ruleForm1.respoptel" style="width:150px"></el-input>
|
||||
</el-form-item>
|
||||
@@ -232,12 +232,13 @@
|
||||
<el-form-item label="办公电话" prop="respocophone" style="margin-right:-69px">
|
||||
<el-input v-model="ruleForm1.respocophone" style="width:150px"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="手机" prop="respoctel" style="margin-right:-69px">
|
||||
<el-form-item label="手机" prop="respoctel2" style="margin-right:-69px">
|
||||
<!-- ruleForm.region -->
|
||||
<el-input v-model="ruleForm1.respoctel" style="width:150px"></el-input>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="xx">
|
||||
|
||||
<div class="xx">
|
||||
<h5>二、申报单位简介</h5>
|
||||
<div class="rich">
|
||||
<aboutUs @aboutUs="aboutUs" :aboutUsVal="ruleForm.decldes" :writeable="true"></aboutUs>
|
||||
@@ -334,14 +335,15 @@
|
||||
<label>我们确认项目申报内容的真实性,并愿意承担相应的责任</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="xxx">
|
||||
|
||||
<div class="xxx">
|
||||
<h5 style="font-size:20px">七、项目主责单位意见</h5>
|
||||
<p
|
||||
<!-- <p
|
||||
class="yulantext"
|
||||
@click="yulana1(fileLists[0])"
|
||||
style="left:401px;top:95px"
|
||||
v-if="fileLists.length"
|
||||
>预览</p>
|
||||
>预览</p> -->
|
||||
<div class="xxxx">
|
||||
<template>
|
||||
<el-upload
|
||||
@@ -356,12 +358,14 @@
|
||||
:on-exceed="handleExceed"
|
||||
:file-list="fileLists"
|
||||
>
|
||||
<!-- :title="fileLists?(fileLists.length?fileLists[0].name:''):''" -->
|
||||
<el-button size="small" type="primary">上传文件</el-button>
|
||||
<!-- <span slot="tip" class="el-upload__tip">只能上传一张不同的图片</span> -->
|
||||
</el-upload>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mid_box">
|
||||
<template>
|
||||
<div class="el-icon-close close" @click="del" v-if="filename"></div>
|
||||
@@ -634,7 +638,8 @@
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<div class="ll">
|
||||
<button type="button" @click="next(0)" 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 @click="resetForm('ruleForm')">重置</el-button>-->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
<footer-nav class="footer"></footer-nav>
|
||||
</div>
|
||||
</template>
|
||||
@@ -904,6 +909,7 @@ export default {
|
||||
xa: require("../../../static/img/xa.png")
|
||||
},
|
||||
fileLists: [],
|
||||
hrefurl:'',
|
||||
popupStatus: false,
|
||||
first_levels: [],
|
||||
types: [],
|
||||
@@ -1021,12 +1027,25 @@ export default {
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
// this.imageUrl = res.data.data
|
||||
if (this.uploadname[0] === 100) {
|
||||
if(res.data.code == 200){
|
||||
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);
|
||||
}
|
||||
}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 => {
|
||||
console.log(error);
|
||||
@@ -1060,12 +1079,25 @@ export default {
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
// this.imageUrl = res.data.data
|
||||
if (this.uploadname[1] === 100) {
|
||||
if(res.data.code == 200){
|
||||
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);
|
||||
}
|
||||
}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 => {
|
||||
console.log(error);
|
||||
@@ -1099,12 +1131,25 @@ export default {
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
// this.imageUrl = res.data.data
|
||||
if (this.uploadname[2] === 100) {
|
||||
if(res.data.code == 200){
|
||||
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);
|
||||
}
|
||||
}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 => {
|
||||
console.log(error);
|
||||
@@ -1138,12 +1183,25 @@ export default {
|
||||
}
|
||||
})
|
||||
.then(res => {
|
||||
// this.imageUrl = res.data.data
|
||||
if (this.uploadname[3] === 100) {
|
||||
if(res.data.code == 200){
|
||||
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);
|
||||
}
|
||||
}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 => {
|
||||
console.log(error);
|
||||
@@ -1178,11 +1236,24 @@ export default {
|
||||
})
|
||||
.then(res => {
|
||||
// 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.handleAvatarSuccess4(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 => {
|
||||
console.log(error);
|
||||
@@ -1257,7 +1328,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl = "/static/img/txt.png";
|
||||
this.imageUrl = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename = res.name//res.name//res.name+'.'+res.extension;
|
||||
|
||||
@@ -1284,7 +1355,19 @@ export default {
|
||||
name: file.name,
|
||||
url: file.response.data.url
|
||||
});
|
||||
this.fileLists.push({
|
||||
name: file.name,
|
||||
url: file.response.data.url
|
||||
});
|
||||
console.log(this.fileLists,1900)
|
||||
//this.hrefurl = file.response.data.url
|
||||
},
|
||||
// successUpload(response, file, fileList) {
|
||||
// this.picture.push({
|
||||
// name: file.name,
|
||||
// url: file.response.data.url
|
||||
// });
|
||||
// },
|
||||
successUploadTwo(response, file, fileList) {
|
||||
this.fileid = file.response.data.id;
|
||||
this.filename = file.response.data.name;
|
||||
@@ -1297,13 +1380,13 @@ export default {
|
||||
this.fileurl = file.response.data.url;
|
||||
console.log(file);
|
||||
},
|
||||
handleRemove(file, fileList) {
|
||||
this.picture.forEach(element => {
|
||||
if (file.name === element.name) {
|
||||
this.picture.splice(element, 1);
|
||||
}
|
||||
});
|
||||
},
|
||||
// handleRemove(file, fileList) {
|
||||
// this.picture.forEach(element => {
|
||||
// if (file.name === element.name) {
|
||||
// this.picture.splice(element, 1);
|
||||
// }
|
||||
// });
|
||||
// },
|
||||
handlePreview(file) {
|
||||
console.log(file);
|
||||
if (!!window.ActiveXObject || "ActiveXObject" in window) {
|
||||
@@ -1341,7 +1424,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl1 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl1 = "/static/img/txt.png";
|
||||
this.imageUrl1 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename1 =res.name// res.name+'.'+res.extension;
|
||||
|
||||
@@ -1390,7 +1473,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl2 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl2 = "/static/img/txt.png";
|
||||
this.imageUrl2 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename2 =res.name// res.name+'.'+res.extension;
|
||||
|
||||
@@ -1439,7 +1522,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl3 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl3 = "/static/img/txt.png";
|
||||
this.imageUrl3 = "/static/img/txt.jpg";
|
||||
}
|
||||
console.log(res.name);
|
||||
this.filename3 =res.name// res.name+'.'+res.extension;
|
||||
@@ -1488,7 +1571,7 @@ export default {
|
||||
} else if (houzui == "zip" || houzui == "rar") {
|
||||
this.imageUrl4 = "/static/img/zip.png";
|
||||
}else if(houzui == "txt"){
|
||||
this.imageUrl4 = "/static/img/txt.png";
|
||||
this.imageUrl4 = "/static/img/txt.jpg";
|
||||
}
|
||||
this.filename4 =res.name// res.name+'.'+res.extension;
|
||||
|
||||
@@ -1563,18 +1646,18 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
successUpload(response, file, fileList) {
|
||||
this.picture.push({
|
||||
name: file.name,
|
||||
url: file.response.data.url
|
||||
});
|
||||
},
|
||||
|
||||
handleRemove(file, fileList) {
|
||||
this.picture.forEach(element => {
|
||||
if (file.name === element.name) {
|
||||
this.picture.splice(element, 1);
|
||||
}
|
||||
});
|
||||
this.fileLists.forEach(element => {
|
||||
if (file.name === element.name) {
|
||||
this.fileLists.splice(this.fileLists.lastIndexOf(element), 1);
|
||||
}
|
||||
});
|
||||
},
|
||||
// handlePreview(file) {
|
||||
// console.log(file);
|
||||
@@ -1743,8 +1826,153 @@ export default {
|
||||
for (let m in this.ruleForm1) {
|
||||
this.ruleForm[m] = this.ruleForm1[m];
|
||||
}
|
||||
console.log(this.ruleForm);
|
||||
this.submitYes(index);
|
||||
console.log(this.ruleForm.prodemo.length);
|
||||
//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 {
|
||||
this.$message({
|
||||
type: "info",
|
||||
@@ -1807,8 +2035,97 @@ export default {
|
||||
for (let m in this.ruleForm1) {
|
||||
this.ruleForm[m] = this.ruleForm1[m];
|
||||
}
|
||||
console.log(this.ruleForm);
|
||||
this.submitYes(index);
|
||||
console.log(this.ruleForm.prodes.length);
|
||||
// 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 {
|
||||
this.$message({
|
||||
type: "info",
|
||||
@@ -1861,13 +2178,13 @@ export default {
|
||||
} else {
|
||||
this.$message({
|
||||
type: "info",
|
||||
message: res.data.data.msg
|
||||
message: res.data.data.message
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.$message({
|
||||
type: "info",
|
||||
message: res.data.data.msg
|
||||
message: res.data.data.message
|
||||
});
|
||||
}
|
||||
})
|
||||
@@ -2161,7 +2478,7 @@ export default {
|
||||
} else if (filetype == "zip" || filetype == "rar") {
|
||||
this.imageUrl = "/static/img/zip.png";
|
||||
}else if (filetype == "txt") {
|
||||
this.imageUrl = "/static/img/txt.png";
|
||||
this.imageUrl = "/static/img/txt.jpg";
|
||||
}
|
||||
}
|
||||
if (this.ruleForm.fangan) {
|
||||
@@ -2188,7 +2505,7 @@ export default {
|
||||
}else if (filetype == "zip" || filetype == "rar") {
|
||||
this.imageUrl1 = "/static/img/zip.png";
|
||||
}else if (filetype == "txt") {
|
||||
this.imageUrl1 = "/static/img/txt.png";
|
||||
this.imageUrl1 = "/static/img/txt.jpg";
|
||||
}
|
||||
}
|
||||
if (this.ruleForm.pifu) {
|
||||
@@ -2214,7 +2531,7 @@ export default {
|
||||
}else if (filetype == "zip" || filetype == "rar") {
|
||||
this.imageUrl2 = "/static/img/zip.png";
|
||||
}else if (filetype == "txt") {
|
||||
this.imageUrl2 = "/static/img/txt.png";
|
||||
this.imageUrl2 = "/static/img/txt.jpg";
|
||||
}
|
||||
}
|
||||
if (this.ruleForm.pact) {
|
||||
@@ -2240,7 +2557,7 @@ export default {
|
||||
}else if (filetype == "zip" || filetype == "rar") {
|
||||
this.imageUrl3 = "/static/img/zip.png";
|
||||
}else if (filetype == "txt") {
|
||||
this.imageUrl3 = "/static/img/txt.png";
|
||||
this.imageUrl3 = "/static/img/txt.jpg";
|
||||
}
|
||||
}
|
||||
if (this.ruleForm.promise) {
|
||||
@@ -2266,29 +2583,32 @@ export default {
|
||||
}else if (filetype == "zip" || filetype == "rar") {
|
||||
this.imageUrl4 = "/static/img/zip.png";
|
||||
}else if (filetype == "txt") {
|
||||
this.imageUrl4 = "/static/img/txt.png";
|
||||
this.imageUrl4 = "/static/img/txt.jpg";
|
||||
}
|
||||
}
|
||||
this.filename = this.bgData.probook.substring(
|
||||
if(this.bgData){
|
||||
this.filename =this.bgData.probook? this.bgData.probook.substring(
|
||||
this.bgData.probook.lastIndexOf("/") + 1
|
||||
);
|
||||
):'';
|
||||
//sconsole.log(this.filename)
|
||||
this.filename1 = this.bgData.fangan.substring(
|
||||
this.filename1 =this.bgData.fangan? this.bgData.fangan.substring(
|
||||
this.bgData.fangan.lastIndexOf("/") + 1
|
||||
);
|
||||
this.filename2 = this.bgData.pifu.substring(
|
||||
):'';
|
||||
this.filename2 = this.bgData.pifu?this.bgData.pifu.substring(
|
||||
this.bgData.pifu.lastIndexOf("/") + 1
|
||||
);
|
||||
this.filename3 = this.bgData.pact.substring(
|
||||
):'';
|
||||
this.filename3 =this.bgData.pact? this.bgData.pact.substring(
|
||||
this.bgData.pact.lastIndexOf("/") + 1
|
||||
);
|
||||
this.filename4 = this.bgData.promise.substring(
|
||||
):'';
|
||||
this.filename4 = this.bgData.promise?this.bgData.promise.substring(
|
||||
this.bgData.promise.lastIndexOf("/") + 1
|
||||
);
|
||||
):'';
|
||||
|
||||
let imgs = JSON.parse(this.bgData.proimages);
|
||||
this.fileLists = imgs;
|
||||
this.picture = this.fileLists;
|
||||
}
|
||||
|
||||
// this.assignment(this.bgData);
|
||||
} else {
|
||||
alert("请求失败!");
|
||||
@@ -2303,12 +2623,18 @@ export default {
|
||||
this.company = sessionStorage.name;
|
||||
},
|
||||
mounted() {
|
||||
this.status();
|
||||
//this.status();
|
||||
this.getData();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.el-upload-list__item-name{
|
||||
width: 310px;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
// .el-upload-list__item .el-icon-close-tip
|
||||
.filenames {
|
||||
width: 155px;
|
||||
|
||||
@@ -347,7 +347,7 @@
|
||||
</div>
|
||||
<div class="xxx">
|
||||
<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">
|
||||
<template>
|
||||
<el-upload
|
||||
@@ -363,7 +363,7 @@
|
||||
:file-list="fileLists"
|
||||
>
|
||||
<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>
|
||||
</template>
|
||||
</div>
|
||||
@@ -1063,8 +1063,18 @@ export default {
|
||||
for (let m in this.ruleForm1) {
|
||||
this.ruleForm[m] = this.ruleForm1[m];
|
||||
}
|
||||
console.log(this.ruleForm);
|
||||
this.submitYes(index);
|
||||
console.log(this.ruleForm.proimages);
|
||||
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 {
|
||||
this.$message({
|
||||
type: "info",
|
||||
@@ -1089,13 +1099,23 @@ export default {
|
||||
if (this.ruleForm.thff) {
|
||||
this.ruleForm.party_id = sessionStorage.getItem("party_id");
|
||||
this.ruleForm.proimages = JSON.stringify(this.picture);
|
||||
console.log(this.picture,'picture')
|
||||
console.log(this.fileLists);
|
||||
for (let m in this.ruleForm1) {
|
||||
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);
|
||||
this.submitYes(index);
|
||||
} else {
|
||||
this.$message({
|
||||
type: "info",
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
<el-option
|
||||
v-for="(i,j) in bgValue.type"
|
||||
:key="j"
|
||||
style="padding:0 57px"
|
||||
:label="bgValue.type[j]"
|
||||
:value="j"
|
||||
></el-option>
|
||||
@@ -91,10 +92,11 @@
|
||||
</template>
|
||||
</select>-->
|
||||
|
||||
<el-select v-model="statusval" placeholder=" 请选择项目状态" clearable @change="prolist">
|
||||
<el-select v-model="statusval" placeholder=" 请选择项目状态" clearable @change="prolist">
|
||||
<el-option
|
||||
v-for="(i,j) in bgValue.status"
|
||||
:key="j"
|
||||
style="padding:0 20px"
|
||||
:label="bgValue.status[j]"
|
||||
:value="j"
|
||||
></el-option>
|
||||
@@ -117,6 +119,7 @@
|
||||
v-for="(i,j) in bgValue.area"
|
||||
:key="j"
|
||||
:label="bgValue.area[j]"
|
||||
style="padding:0 87px"
|
||||
:value="j"
|
||||
></el-option>
|
||||
</el-select>
|
||||
@@ -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.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.yjx"
|
||||
v-else-if="item.tid == 110"
|
||||
style="width:120px;height:90px"
|
||||
/>
|
||||
<img :src="imgUrl.yjx" v-else-if="item.tid == 110" style="width:120px;height:90px" />
|
||||
<img :src="imgUrl.yhshz" v-else-if="item.status == '项目优化信息待审核'" style="width:120px;height:90px" />
|
||||
<img :src="imgUrl.shz" style="width:120px;height:90px" v-else />
|
||||
<!-- <img
|
||||
:src="imgUrl.yjx"
|
||||
@@ -247,6 +247,7 @@ export default {
|
||||
tg: require("../../../static/img/tg.png"),
|
||||
btg: require("../../../static/img/btg.png"),
|
||||
shz: require("../../../static/img/shz.png"),
|
||||
yhshz: require("../../../static/img/yhshz.png"),
|
||||
zxz: require("../../../static/img/zxz.png"),
|
||||
wtj: require("../../../static/img/wtj.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
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
3040
src/views/project/fuzhi2.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -21,12 +21,13 @@
|
||||
|
||||
<tr>
|
||||
<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="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==3">待审核</td>
|
||||
<td class="val" v-if="result.status==3">待审核</td> -->
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="key">统一社会信用代码</td>
|
||||
@@ -36,7 +37,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="key">社会组织类型</td>
|
||||
<td class="val">{{result.society_type == 0?"非企业单位":"社会团体"}}</td>
|
||||
<td class="val">{{result.society_type == 0?"民办非企业单位":"社会团体"}}</td>
|
||||
<td class="key">法定代表人</td>
|
||||
<td class="val">{{result.legal_person?result.legal_person:"无"}}</td>
|
||||
</tr>
|
||||
@@ -53,8 +54,10 @@
|
||||
<td class="val">{{result.start_time}}--{{result.end_time}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="key">年检情况</td>
|
||||
<td class="val">{{result.sec_age?result.sec_age:"无"}}</td>
|
||||
<td class="key">行政处罚情况</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="val">{{result.assess?result.assess:"无"}}</td>
|
||||
</tr>
|
||||
@@ -74,43 +77,52 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="key">行政处罚情况</td>
|
||||
<td class="val">{{result.admini_punish?result.admini_punish:"无"}}</td>
|
||||
|
||||
<td class="key">活动异常情况</td>
|
||||
<td class="val">{{result.activity_unusual?result.activity_unusual:"无"}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="key">
|
||||
<td class="key">
|
||||
<div>活动异常情况时限</div>
|
||||
</td>
|
||||
<td class="val">
|
||||
<p>{{result.activity_unusual_start}}--{{result.activity_unusual_end}}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td class="key">
|
||||
<p>严重失信情况</p>
|
||||
</td>
|
||||
<td class="val">
|
||||
<div>{{result.break_faith?result.break_faith:"无"}}</div>
|
||||
</td>
|
||||
<td class="key">严重失信情况时限</td>
|
||||
<td class="valself" style="text-align:center">{{result.break_faith_start}}--{{result.break_faith_end}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width=1089>
|
||||
<tr>
|
||||
<td class="key">严重失信情况时限</td>
|
||||
<td class="valself">{{result.break_faith_start}}--{{result.break_faith_end}}</td>
|
||||
<tr>
|
||||
<td class="key key1" style="display:table-cell; vertical-align:middle;">
|
||||
<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>
|
||||
<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>
|
||||
</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>
|
||||
</td>
|
||||
<td class="valself">
|
||||
<div>{{result.change_info?result.change_info:"无"}}</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -142,8 +154,8 @@ export default {
|
||||
url: "v1/soc/credit",
|
||||
params: { id: this.$route.query.id }
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
this.result = res.data.data[0];
|
||||
console.log(res,'房间里卡什么地方撒');
|
||||
this.result = res.data.data;
|
||||
});
|
||||
},
|
||||
methods:{
|
||||
@@ -155,6 +167,9 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.key1{
|
||||
width:225px!important
|
||||
}
|
||||
.infobox {
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
@@ -208,7 +223,7 @@ export default {
|
||||
font-size: 24px;
|
||||
}
|
||||
.key {
|
||||
width: 266px;
|
||||
width: 400px;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
background-color: #f7f5f6;
|
||||
|
||||
BIN
static/img/txt.jpg
Normal file
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
BIN
static/img/yhshz.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -12,7 +12,8 @@
|
||||
hotOnly: false,
|
||||
proxy: {
|
||||
'/url/': {
|
||||
target: 'http://chaoyang.nxers.com/api/',
|
||||
target: 'http://cyteam.org.cn/api/',//http://chaoyang.nxers.com/api/',
|
||||
// target: 'http://chaoyang.nxers.com/api/',//http://chaoyang.nxers.com/api/',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
|
||||
Reference in New Issue
Block a user