kun 19/10/14 22:32
This commit is contained in:
@@ -462,7 +462,7 @@ export default {
|
||||
},
|
||||
/** 下一步 */
|
||||
btn(index) {
|
||||
let regd = /(\d3,4|\d{3,4}-|\s)?\d{8}/
|
||||
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
|
||||
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
|
||||
let s = this.sub;
|
||||
s = index;
|
||||
@@ -536,6 +536,10 @@ export default {
|
||||
},
|
||||
/** 保存和提交 */
|
||||
submit(index) {
|
||||
let regd = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
|
||||
let regs = /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
|
||||
|
||||
|
||||
if (this.sub == 1) {
|
||||
if (this.prespo == '' || this.respoadd == '' || this.respopcode == '' ||
|
||||
this.respomail == '' || this.respopname == '' ||
|
||||
@@ -548,6 +552,12 @@ export default {
|
||||
) {
|
||||
alert('以上内容不可为空!')
|
||||
return
|
||||
} else if (!regd.test(this.respoophone) || !regd.test(this.respocophone)) {
|
||||
alert('请填写正确的电话号码!')
|
||||
return
|
||||
} if (!regs.test(this.respoptel) || !regs.test(this.respoctel)) {
|
||||
alert('请填写正确的手机号码!')
|
||||
return
|
||||
} else if (this.thff == false) {
|
||||
alert('请同意:申报单位承诺')
|
||||
return
|
||||
@@ -592,7 +602,7 @@ export default {
|
||||
plcode: _this.plcode,
|
||||
pname: _this.pname,
|
||||
poster: _this.poster,
|
||||
poffice_tel: _this.poffice_tel,
|
||||
respoophone: _this.poffice_tel,
|
||||
aphone: _this.aphone,
|
||||
cname: _this.cname,
|
||||
cpost: _this.cpost,
|
||||
|
||||
@@ -94,8 +94,13 @@
|
||||
</div>
|
||||
<!-- 主题内容 -->
|
||||
<div class="cc">
|
||||
<template v-for="(item,index) in bgData.info">
|
||||
<div class="list" :key="index" @click="$jParams('schedule',{id:item.id})">
|
||||
<template v-if="cd > 0">
|
||||
<div
|
||||
class="list"
|
||||
v-for="(item,index) in bgData.info"
|
||||
:key="index"
|
||||
@click="$jParams('schedule',{id:item.id})"
|
||||
>
|
||||
<div class="div">
|
||||
<div class="bb">
|
||||
<h3>{{item.name}}</h3>
|
||||
@@ -128,6 +133,9 @@
|
||||
</dl>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span>您搜索的内容暂无!</span>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 分页按钮 -->
|
||||
@@ -228,6 +236,7 @@ export default {
|
||||
if (res.data.code === 200) {
|
||||
_this.bgData = res.data.data.data
|
||||
_this.totalCount = _this.bgData.allPage
|
||||
_this.cd = _this.bgData.info.length
|
||||
} else {
|
||||
_this.$message.error('请求数据有问题!')
|
||||
}
|
||||
@@ -430,7 +439,7 @@ export default {
|
||||
.block-k {
|
||||
width: 288px;
|
||||
display: inline-block;
|
||||
/* overflow: hidden;*/
|
||||
/* overflow: hidden;*/
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -543,7 +552,7 @@ export default {
|
||||
.block {
|
||||
/deep/.el-range-editor.el-input__inner {
|
||||
width: 325px;
|
||||
background: url("../../../static/img/xa.png") 280px center no-repeat;
|
||||
background: url("../../../static/img/xa.png") 90% center no-repeat;
|
||||
background-color: #f9f8f8;
|
||||
}
|
||||
|
||||
@@ -578,16 +587,17 @@ export default {
|
||||
}
|
||||
|
||||
.one {
|
||||
padding-left: 30px;
|
||||
// padding-left: 30px;
|
||||
box-sizing: border-box;
|
||||
/* 清除默认的箭头样式 */
|
||||
appearance: none;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
/* 右侧添加小箭头的背景图 */
|
||||
background: url("../../../static/img/xa.png") 280px center no-repeat;
|
||||
background: url("../../../static/img/xa.png") 90% center no-repeat;
|
||||
background-size: 14px 8px;
|
||||
width: 325px;
|
||||
// width: 325px;
|
||||
padding: 0px 30px;
|
||||
height: 38px;
|
||||
background-color: #f9f8f8;
|
||||
border-radius: 4px;
|
||||
@@ -598,17 +608,18 @@ export default {
|
||||
}
|
||||
|
||||
.two {
|
||||
padding-left: 30px;
|
||||
padding-right: 48px;
|
||||
// padding-left: 30px;
|
||||
// padding-right: 48px;
|
||||
box-sizing: border-box;
|
||||
/* 清除默认的箭头样式 */
|
||||
appearance: none;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
/* 右侧添加小箭头的背景图 */
|
||||
background: url("../../../static/img/xa.png") 90px center no-repeat;
|
||||
background: url("../../../static/img/xa.png") 90% center no-repeat;
|
||||
background-size: 14px 8px;
|
||||
width: 134px;
|
||||
// width: 134px;
|
||||
padding: 0px 30px;
|
||||
height: 38px;
|
||||
background-color: #f9f8f8;
|
||||
border-radius: 4px;
|
||||
@@ -616,6 +627,7 @@ export default {
|
||||
outline: none;
|
||||
font-size: 18px;
|
||||
color: #666;
|
||||
text-align: center
|
||||
}
|
||||
|
||||
.three {
|
||||
@@ -636,6 +648,7 @@ export default {
|
||||
outline: none;
|
||||
font-size: 18px;
|
||||
color: #666;
|
||||
text-align: center
|
||||
}
|
||||
span {
|
||||
display: inline-block;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<img :src="imgUrl.btg" v-if="state == 1" />
|
||||
<img :src="imgUrl.shz" v-if="state == 2" />
|
||||
<img :src="imgUrl.zxz" v-if="state == 3" />
|
||||
</div> -->
|
||||
</div>-->
|
||||
<!-- 项目流程 -->
|
||||
<div class="bobb" v-if="sub == 0">
|
||||
<div class="left">
|
||||
@@ -24,7 +24,6 @@
|
||||
<template v-for="(time,index) in zDate.date">
|
||||
<span v-if="index < 5" :key="index">{{time}}</span>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
<div class="jdt">
|
||||
<!-- 已申报 -->
|
||||
@@ -100,7 +99,7 @@
|
||||
<li>一级项目方向:{{zData.first_level}}</li>
|
||||
<li>二级项目方向:{{zData.secondary}}</li>
|
||||
<li>项目服务领域:{{zData.fieldeara}}</li>
|
||||
<li>项目有效期:{{zData.aterm + '-' + zData.fterm}}</li>
|
||||
<li>项目有效期: {{zData.aterm + '至' + zData.fterm}}</li>
|
||||
<li>申报单位属性:{{zData.attribute}}</li>
|
||||
<li>通讯地址:{{zData.postaladdress}}</li>
|
||||
<li>电子信箱:{{zData.pmail}}</li>
|
||||
@@ -179,7 +178,7 @@
|
||||
</div>
|
||||
<h3>六、申报单位承诺:</h3>
|
||||
<div class="one-e">
|
||||
<p>我们确认项目中报内容的真实性,并愿意承担相应的责任</p>
|
||||
<p>{{msg}}</p>
|
||||
</div>
|
||||
<h3>七、项目主责单位意见 :</h3>
|
||||
<div class="one-e">
|
||||
@@ -232,6 +231,7 @@ export default {
|
||||
d0: require("../../../static/img/d0.png"),
|
||||
d1: require("../../../static/img/d1.png")
|
||||
},
|
||||
msg: '我们确认项目中报内容的真实性,并愿意承担相应的责任',
|
||||
state: 0,
|
||||
zt: 2,
|
||||
popupStatus: false,
|
||||
@@ -243,7 +243,8 @@ export default {
|
||||
"第五步:立项结果查询"
|
||||
],
|
||||
zData: [],
|
||||
zDate:[]
|
||||
zDate: [],
|
||||
id: Number
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
@@ -272,13 +273,13 @@ export default {
|
||||
s = index;
|
||||
this.sub = s;
|
||||
},
|
||||
getData(id) {
|
||||
getData() {
|
||||
let _this = this
|
||||
this.$http({
|
||||
method: 'post',
|
||||
url: 'v1/project/details',
|
||||
data: {
|
||||
id: id
|
||||
id: _this.id
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.data.data.code === 200) {
|
||||
@@ -296,10 +297,19 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
let id = this.$route.params.id
|
||||
this.getData(id)
|
||||
this.id = this.$route.params.id;
|
||||
this.getData()
|
||||
},
|
||||
mounted() { }
|
||||
mounted() { },
|
||||
// beforeUpdate() {
|
||||
// localStorage.setItem('schedule', this.id)
|
||||
// },
|
||||
// beforeDestroy() {
|
||||
// localStorage.setItem('schedule', this.id)
|
||||
// },
|
||||
// destroyed() {
|
||||
// localStorage.setItem('schedule', this.id)
|
||||
// }
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -323,7 +333,7 @@ export default {
|
||||
|
||||
.tc-text {
|
||||
width: 350px;
|
||||
height: 600px;
|
||||
height: auto;
|
||||
background-color: #fff;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
|
||||
Reference in New Issue
Block a user