kun 2019/11/12 21:19

This commit is contained in:
沈学坤
2019-11-12 21:18:24 +08:00
parent 1929087e9c
commit 9d7c08ec3d
18 changed files with 620 additions and 1078 deletions

View File

@@ -14,12 +14,10 @@
"element-ui": "^2.12.0",
"html2canvas": "^1.0.0-rc.5",
"jspdf": "^1.5.3",
"mavon-editor": "^2.7.6",
"node-sass": "^4.12.0",
"sass-loader": "^8.0.0",
"swiper": "^5.0.2",
"vue": "^2.6.10",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.0.3",
"vuex": "^3.0.1",
"wangeditor": "^2.1.23"

View File

@@ -1,109 +0,0 @@
<template>
<div class="page">
<!-- 分页按钮 -->
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-size="pageSize"
:pager-count="5"
background
layout="prev, pager, next"
:total="totalCount"
></el-pagination>
</div>
</template>
<script>
export default {
components: {},
props: ['pageSize', 'currentPage', 'totalCount'],
data () {
return { }
},
created () {
this.currentPage = Number(localStorage.getItem('pagination')) || 1
this.getType = this.getType || Number(localStorage.getItem('getType'))
this.handleCurrentChange(this.currentPage)
},
mounted () {
console.log(this.$props)
},
beforeUpdate () {
localStorage.setItem('pagination', this.currentPage)
localStorage.setItem('getType', this.getType)
},
beforeDestroy () {
// localStorage.clear()
localStorage.setItem('pagination', this.currentPage)
localStorage.setItem('getType', this.getType)
},
destroyed () {
localStorage.setItem('pagination', 1)
localStorage.setItem('getType', this.getType)
},
methods: {
handleSizeChange (val) {
this.pageSize = val
this.getPackData()
},
handleCurrentChange (val) {
this.currentPage = val
this.getData()
this.getPackData()
},
getPackData () { }
},
computed: {},
watch: {}
}
</script>
<style lang='scss' scoped>
.page {
margin-top: 60px;
height: 36px;
display: flex;
justify-content: flex-end;
align-items: center;
/deep/ .el-pagination.is-background .el-pager li {
color: #333 !important;
}
/deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
background-color: #e60012;
color: #fff !important;
}
/deep/ .el-icon.el-icon-arrow-left::before {
content: "上一页";
font-family: "MicrosoftYaHei";
font-size: 12px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 1px;
color: #666;
}
/deep/ .el-pagination .btn-prev {
width: 80px;
}
/deep/ .el-pagination .btn-next {
width: 80px;
}
/deep/ .el-icon.el-icon-arrow-right::before {
content: "下一页";
font-family: "MicrosoftYaHei";
font-size: 12px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 1px;
color: #666;
}
}
</style>

View File

@@ -1,59 +0,0 @@
<template>
<div id="wangeditor">
<div ref="editorElem" style="text-align:left;"></div>
</div>
</template>
<script>
import E from 'wangeditor'
export default {
name: 'Editor',
data () {
return {
editor: null,
editorContent: ''
}
},
// catchData是一个类似回调函数来自父组件当然也可以自己写一个函数主要是用来获取富文本编辑器中的html内容用来传递给服务端
props: ['catchData'], // 接收父组件的方法
mounted () {
this.editor = new E(this.$refs.editorElem)
// 编辑器的事件每次改变会获取其html内容
this.editor.customConfig.onchange = html => {
this.editorContent = html
this.catchData(this.editorContent) // 把这个html通过catchData的方法传入父组件
}
this.editor.customConfig.menus = [
// 菜单配置
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
this.editor.create() // 创建富文本实例
}
}
</script>
<style lang='scss' scoped>
#wangeditor{
width: auto;
height: auto;
border:1px solid red;
}
</style>

View File

@@ -1,49 +0,0 @@
<template>
<div class="quill">
<quill-editor
v-model="content"
ref="myQuillEditor"
:options="editorOption"
@blur="onEditorBlur($event)"
@focus="onEditorFocus($event)"
@ready="onEditorReady($event)"
></quill-editor>
</div>
</template>
<script>
export default {
data () {
return {
content: '',
editorOption: {}
}
},
methods: {
onEditorBlur (val) { },
onEditorFocus (val) { },
onEditorReady (val) { },
onEditorChange ({ quill, html, text }) {
this.content = html
}
},
computed: {
editor () {
return this.$refs.myQuillEditor.quill
}
},
watch: {
content () {
this.$emit('quillVal', this.content)
}
},
mounted () { }
}
</script>
<style lang="scss" scoped>
/deep/.ql-toolbar.ql-snow + .ql-container.ql-snow {
width: 100%;
height: 138px;
}
</style>

View File

@@ -1,59 +0,0 @@
<template>
<div class="mavonEditor">
<no-ssr>
<mavon-editor :toolbars="markdownOption" v-model="handbook"/>
</no-ssr>
</div>
</template>
<script>
export default {
data () {
return {
markdownOption: {
bold: true, // 粗体
italic: true, // 斜体
header: true, // 标题
underline: true, // 下划线
strikethrough: true, // 中划线
mark: true, // 标记
superscript: true, // 上角标
subscript: true, // 下角标
quote: true, // 引用
ol: true, // 有序列表
ul: true, // 无序列表
link: true, // 链接
imagelink: true, // 图片链接
code: true, // code
table: true, // 表格
fullscreen: true, // 全屏编辑
readmodel: true, // 沉浸式阅读
htmlcode: true, // 展示html源码
help: true, // 帮助
/* 1.3.5 */
undo: true, // 上一步
redo: true, // 下一步
trash: true, // 清空
save: true, // 保存触发events中的save事件
/* 1.4.2 */
navigation: true, // 导航目录
/* 2.1.8 */
alignleft: true, // 左对齐
aligncenter: true, // 居中
alignright: true, // 右对齐
/* 2.2.1 */
subfield: true, // 单双栏模式
preview: true // 预览
},
handbook: ''
}
}
}
</script>
<style scoped>
.mavonEditor {
width: 100%;
height: 100%;
}
</style>

View File

@@ -6,14 +6,8 @@ import http from './http'
import tool from '../static/js/tool'
import ElementUI from 'element-ui'
import md5 from 'js-md5'
import VueQuillEditor from 'vue-quill-editor'
import mavonEditor from 'mavon-editor'
import htmlToPdf from './htmlToPdf'
import 'mavon-editor/dist/css/index.css'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import '../static/css/reset.css'
import '../static/css/swiper.css'
import '../static/fonts/iconfont.css'
@@ -41,8 +35,6 @@ Vue.prototype.$jP = function (url, queryters) {
}
Vue.use(htmlToPdf)
Vue.use(mavonEditor)
Vue.use(VueQuillEditor)
Vue.use(ElementUI)
Vue.config.productionTip = false

View File

@@ -1,18 +1,6 @@
import Vue from 'vue'
import Router from 'vue-router'
/** 头部导航 */
import HeaderNav from './components/HeaderNav'
/** 尾部导航 */
import FooterNav from './components/FooterNav'
/** 分页器 */
import PagingDevice from './components/PagingDevice'
/** 富文本 */
import RichText from './components/RichText'
import RichTextOne from './components/RichTextOne'
import RichTextTwo from './components/RichTextTwo'
import RichTextFour from './components/RichTextFour'
/** 首页 */
import HomePage from './views/home/HomePage'
/** 党组织申请 */
@@ -50,55 +38,11 @@ export default new Router({
mode: 'hash',
base: process.env.BASE_URL,
routes: [
/** 头部导航 */
{
path: '/headerNav',
name: 'headerNav',
component: HeaderNav
},
/** 富文本零 */
{
path: '/richText',
name: 'richText',
component: RichText
},
/** 富文本er */
{
path: '/richTextTwo',
name: 'richTextTwo',
component: RichTextTwo
},
/** 富文本er */
{
path: '/richTextOne',
name: 'richTextOne',
component: RichTextOne
},
/** 富文本er */
{
path: '/richTextFour',
name: 'richTextFour',
component: RichTextFour
},
/** 尾部导航 */
{
path: '/footerNav',
name: 'footerNav',
component: FooterNav
},
/** 分页器 */
{
path: '/pagingDevice',
name: 'pagingDevice',
component: PagingDevice
},
/** 信息查询 */
{
path: '/informationQuery',
name: 'informationQuery',
component: InformationQuery
},
/** 修改密码 */
{
path: '/modify',
name: 'modify',
@@ -107,7 +51,6 @@ export default new Router({
},
component: Modify
},
/** 项目申报 */
{
path: '/declare',
name: 'declare',
@@ -116,7 +59,6 @@ export default new Router({
},
component: Declare
},
/** 我的收藏 */
{
path: '/collection',
name: 'collection',
@@ -125,7 +67,6 @@ export default new Router({
},
component: Collection
},
/** 党组织申请 */
{
path: '/apply',
name: 'apply',
@@ -134,7 +75,6 @@ export default new Router({
},
component: Apply
},
/** 个人中心 */
{
path: '/personalZte',
name: 'personalZte',
@@ -143,7 +83,6 @@ export default new Router({
},
component: PersonalZte
},
/** 项目创建 */
{
path: '/application',
name: 'application',
@@ -152,7 +91,6 @@ export default new Router({
},
component: Application
},
/** 项目进度 */
{
path: '/schedule:id',
name: 'schedule',
@@ -161,7 +99,6 @@ export default new Router({
},
component: Schedule
},
/** 项目管理 */
{
path: '/project',
name: 'project',
@@ -170,31 +107,26 @@ export default new Router({
},
component: Project
},
/** 注册 */
{
path: '/registered',
name: 'registered',
component: Registered
},
/** 登录 */
{
path: '/login',
name: 'login',
component: Login
},
/** 新闻列表 */
{
path: '/newsList',
name: 'newsList',
component: NewsList
},
/** 新闻详情 */
{
path: '/newsDetails',
name: 'newsDetails',
component: NewsDetails
},
/** 党组织申请 */
{
path: '/applyFor',
name: 'applyFor',
@@ -203,7 +135,6 @@ export default new Router({
},
component: ApplyFor
},
/** 首页 */
{
path: '/',
name: 'homePage',

View File

@@ -125,10 +125,8 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../components/FooterNav";
import HeaderNav from '../components/HeaderNav'
import FooterNav from '../components/FooterNav'
export default {
components: {
@@ -136,22 +134,22 @@ export default {
FooterNav
},
props: {},
data() {
data () {
return {
index_num: 1,
text: ["全部", "异常名录", "信用良好名录"],
text: ['全部', '异常名录', '信用良好名录'],
sub: 0,
imgUrl: {
xa: require("../../static/img/xa.png")
xa: require('../../static/img/xa.png')
},
searchVal: "",
searchVal: '',
searchValue: [],
record: [],
types: [],
years: "",
year_status: "年检结果",
type_value: "组织类型",
year_value: "年检时间",
years: '',
year_status: '年检结果',
type_value: '组织类型',
year_value: '年检时间',
bgData: [],
arr1: [],
arr0: [],
@@ -159,8 +157,8 @@ export default {
pageSize: 1,
currentPage: 1,
totalCount: 1,
status: ""
};
status: ''
}
},
computed: {},
watch: {
@@ -168,14 +166,14 @@ export default {
},
methods: {
/** 筛选函数 */
scree() {
this.currentPage = 1;
if (this.sub == 0) {
this.sub = "";
} else if (this.sub == 1) {
this.sub = 0;
scree () {
this.currentPage = 1
if (this.sub === 0) {
this.sub = ''
} else if (this.sub === 1) {
this.sub = 0
} else {
this.sub = 1;
this.sub = 1
}
this.getData(
this.searchVal,
@@ -184,13 +182,13 @@ export default {
this.year_status,
this.sub,
this.currentPage
);
if (this.sub == "") {
this.sub = 0;
} else if (this.sub == 0) {
this.sub = 1;
)
if (this.sub === '') {
this.sub = 0
} else if (this.sub === 0) {
this.sub = 1
} else {
this.sub = 2;
this.sub = 2
}
},
/** 删除单条数据 */
@@ -202,11 +200,11 @@ export default {
// this.getSearch(str)
// },
/** 名单切换 */
btn(index) {
let s = this.sub;
s = index;
this.sub = s;
this.currentPage = 1;
btn (index) {
let s = this.sub
s = index
this.sub = s
this.currentPage = 1
switch (this.sub) {
case 0:
this.getData(
@@ -214,9 +212,9 @@ export default {
this.type_value,
this.years[this.year_value],
this.year_status,
(this.status = "")
);
break;
(this.status = '')
)
break
case 1:
this.getData(
this.searchVal,
@@ -224,8 +222,8 @@ export default {
this.years[this.year_value],
this.year_status,
(this.status = 0)
);
break;
)
break
case 2:
this.getData(
this.searchVal,
@@ -233,12 +231,12 @@ export default {
this.years[this.year_value],
this.year_status,
(this.status = 1)
);
break;
)
break
}
},
/** 获取后台数据 */
getData(
getData (
name = this.searchVal,
type = this.type_value,
year = this.years[this.year_value],
@@ -246,25 +244,25 @@ export default {
status = this.status,
page = this.currentPage
) {
if (type == "组织类型") {
type = "";
if (type === '组织类型') {
type = ''
// this.type_value = ''
}
if (year == "年检时间") {
year = "";
if (year === '年检时间') {
year = ''
// this.years[this.year_value] = ''
}
if (yearStatus == "年检结果") {
yearStatus = "";
if (yearStatus === '年检结果') {
yearStatus = ''
// this.year_status = ''
}
let _this = this;
let _this = this
this.$http({
method: "post",
url: "v1/society/society",
method: 'post',
url: 'v1/society/society',
data: {
name: name,
type: type,
@@ -276,131 +274,75 @@ export default {
})
.then(res => {
if (res.data.data.code !== 200) {
return;
return
}
// if (this.page == 1) {
if (res.data.data.data.info.length == 0) {
alert("您所查询的数据暂时没有!");
return;
if (res.data.data.data.info.length === 0) {
alert('您所查询的数据暂时没有!')
return
} else {
_this.conversion = res.data.data.data.info;
_this.totalCount = res.data.data.data.allPage;
_this.conversion = res.data.data.data.info
_this.totalCount = res.data.data.data.allPage
// console.log(_this.conversion);
}
_this.page++;
_this.page++
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
// console.log(this.type_value);
if (this.type_value === "") {
this.type_value = "组织类型";
if (this.type_value === '') {
this.type_value = '组织类型'
}
if (this.years[this.year_value] === "") {
this.year_value = "年检时间";
if (this.years[this.year_value] === '') {
this.year_value = '年检时间'
}
if (this.year_status === "") {
this.year_status = "年检结果";
if (this.year_status === '') {
this.year_status = '年检结果'
}
},
/** 获取类型 */
getDataG() {
let _this = this;
getDataG () {
let _this = this
this.$http({
method: "get",
url: "v1/society/get-type",
method: 'get',
url: 'v1/society/get-type',
params: {}
})
.then(res => {
if (res.data.code !== 200) {
return;
return
}
_this.types = res.data.data.type;
_this.years = res.data.data.year;
_this.types = res.data.data.type
_this.years = res.data.data.year
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
},
/** 本页搜索函数 */
getSearchThisPage() {
this.searchValue = [];
// if (this.searchVal === "" && str !== "" && str !== undefined && str !== null && str !== 'null') {
// this.searchVal = str
// } else if (this.searchVal === "") {
// this.$message.warning("请输入搜索内容");
// return;
// }
if (this.searchVal == "") {
this.$message.warning("请输入搜索内容");
return;
}
let searchData = this.$tool.setSearch(this.bgData, this.searchVal);
console.log(searchData, this.bgData, this.searchVal);
return false;
if (searchData) {
this.searchValue = searchData;
this.searchVal = "";
} else {
this.$message("您搜索的内容暂无~");
}
},
/** 全局搜索 */
globalSearch(name = this.searchVal, page = this.currentPage) {
this.$http({
method: "post",
url: "v1/society/society",
data: {
name: name,
page: page
}
})
.then(res => {
if (res.data.data.code !== 200) {
return;
}
if (res.data.data.data.info.length == 0) {
alert("您所查询的数据暂时没有!");
return;
} else {
this.searchValue = res.data.data.data.info;
this.totalCount = res.data.data.data.allPage;
// console.log(res);
}
this.page++;
console.log(err)
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
},
handleSizeChange(val) {
this.pageSize = val;
this.getPackData();
handleSizeChange (val) {
this.pageSize = val
this.getPackData()
},
handleCurrentChange(val) {
this.currentPage = val;
this.getData();
this.getPackData();
handleCurrentChange (val) {
this.currentPage = val
this.getData()
this.getPackData()
},
getPackData() {}
getPackData () {}
},
created() {
this.getDataG();
this.getData();
created () {
this.getDataG()
this.getData()
},
mounted() {}
};
mounted () {}
}
</script>
<style lang="scss" scoped>

View File

@@ -1,10 +1,8 @@
<template>
<div class="wrapper">
<img :src="imgUrl.login" id="img" />
<!-- :style="{'background-image':'url('+imgUrl.login+')'}" -->
<div class="box">
<div class="box-o">
<!-- <h3> </h3> -->
<h3> </h3>
<div class="input">
<input type="text" v-model="account" name="account" placeholder="组织名称" />
@@ -59,7 +57,6 @@ export default {
if (res.data.data.code === 200) {
this.$message.success('登陆成功')
this.$router.push('/')
// 全局存储token
window.sessionStorage['id'] = res.data.data.data.id
window.sessionStorage['name'] = res.data.data.data.name
window.sessionStorage['party_id'] = res.data.data.data.party_id

View File

@@ -222,10 +222,8 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
export default {
components: {
@@ -233,14 +231,14 @@ export default {
FooterNav
},
props: {},
data() {
data () {
return {
imgUrl: {
bg0: require("../../../static/img/bg0.png"),
bg1: require("../../../static/img/bg1.png"),
succeed: require("../../../static/img/succeed.png")
bg0: require('../../../static/img/bg0.png'),
bg1: require('../../../static/img/bg1.png'),
succeed: require('../../../static/img/succeed.png')
},
text: ["1 填写基本信息", "2 填写党组织信息", "3 提交审核"],
text: ['1 填写基本信息', '2 填写党组织信息', '3 提交审核'],
sub: 0,
index_num: 0,
types: [],
@@ -265,34 +263,34 @@ export default {
is_choice_instructor: '',
year_money: '',
active_year: ''
};
}
},
computed: {},
watch: {},
methods: {
btn(n) {
let regz = /^(0|\+?[1-9][0-9]*)$/
let s = this.sub;
s = n;
if (s == 1) {
if (this.type == '' || this.flow_party_person == '' || this.party_person == '' || this.work_person == '' ||
this.party_name == '' || this.is_reg_party == '' || this.is_reg_fun_party == '' ||
this.reg_manage == '' || this.supervisor == '' || this.party_pname == ''
btn (n) {
// let regz = /^(0|\+?[1-9][0-9]*)$/
let s = this.sub
s = n
if (s === 1) {
if (this.type === '' || this.flow_party_person === '' || this.party_person === '' || this.work_person === '' ||
this.party_name === '' || this.is_reg_party === '' || this.is_reg_fun_party === '' ||
this.reg_manage === '' || this.supervisor === '' || this.party_pname === ''
) {
alert('以上内容不可为空!')
} else {
if (this.flow_party_person < 0 || this.party_person < 0 || this.work_person < 0) {
alert('不能出现负数呦!')
} else {
this.sub = s;
this.sub = s
}
}
}
if (s == 2) {
if (this.sec_name == '' || this.sec_sex == '' || this.sec_age == '' || this.sec_job == '' ||
this.sec_study == '' || this.near_party_person == '' || this.is_reg_group == '' ||
this.major_party_person == '' || this.is_choice_instructor == '' || this.year_money == '' ||
this.active_year == ''
if (s === 2) {
if (this.sec_name === '' || this.sec_sex === '' || this.sec_age === '' || this.sec_job === '' ||
this.sec_study === '' || this.near_party_person === '' || this.is_reg_group === '' ||
this.major_party_person === '' || this.is_choice_instructor === '' || this.year_money === '' ||
this.active_year === ''
) {
alert('以上内容不可为空!')
} else if (isNaN(this.sec_age) || isNaN(this.sec_study) || isNaN(this.near_party_person) ||
@@ -349,11 +347,9 @@ export default {
console.log(err)
})
}
}
},
getData() {
getData () {
let _this = this
this.$http({
method: 'post',
@@ -372,12 +368,12 @@ export default {
})
}
},
created() {
created () {
this.name = sessionStorage.name
this.getData()
},
mounted() { }
};
mounted () { }
}
</script>
<style lang='scss' scoped>

View File

@@ -178,11 +178,9 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from '../../components/HeaderNav';
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import Swiper from 'swiper';
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
import Swiper from 'swiper'
export default {
components: {
@@ -190,30 +188,30 @@ export default {
FooterNav
},
props: {},
data() {
data () {
return {
index_num: 0,
leftPos: 0,
imgUrl: {
lb: require("../../../static/img/lb.png"),
gq: require("../../../static/img/gq.png"),
ws: require("../../../static/img/ws.png"),
dh: require("../../../static/img/dh.png"),
zz: require("../../../static/img/zz.png"),
wjx: require("../../../static/img/wjx.png"),
img3: require("../../../static/img/img3.png"),
right: require("../../../static/img/right.png"),
left: require("../../../static/img/left.png"),
moren: require('../../../static/img/default.jpg'),
lb: require('../../../static/img/lb.png'),
gq: require('../../../static/img/gq.png'),
ws: require('../../../static/img/ws.png'),
dh: require('../../../static/img/dh.png'),
zz: require('../../../static/img/zz.png'),
wjx: require('../../../static/img/wjx.png'),
img3: require('../../../static/img/img3.png'),
right: require('../../../static/img/right.png'),
left: require('../../../static/img/left.png'),
moren: require('../../../static/img/default.jpg')
},
bgData: [],
loading: true,
fullscreenLoading: true
};
}
},
computed: {},
watch: {
bgData() {
bgData () {
// this.openFullScreen()
// setTimeout(() => {
// this.loading = false
@@ -221,29 +219,30 @@ export default {
}
},
methods: {
details(id) {
details (id) {
let routeUrl = this.$router.resolve({
path: "/newsDetails",
path: '/newsDetails',
query: { id: id }
});
window.open(routeUrl.href, '_blank');
})
window.open(routeUrl.href, '_blank')
},
openFullScreen() {
openFullScreen () {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
})
setTimeout(() => {
loading.close();
}, 200);
loading.close()
}, 200)
},
link(href) {
link (href) {
window.location.href = href
},
initSwiper() {
var swiper = new Swiper(".swiper-one", {
initSwiper () {
// eslint-disable-next-line no-new
new Swiper('.swiper-one', {
loop: true,
autoplayDisableOnInteraction: false,
autoplay: {
@@ -251,41 +250,41 @@ export default {
},
pagination: {
el: '.swiper-pagination',
el: '.swiper-pagination'
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev'
}
});
})
},
scrollFeeds: function (btn) {
let feeds = document.querySelector(".f-row");
if (btn === "left") {
this.leftPos += 240;
let scrollAmount = 0;
let feeds = document.querySelector('.f-row')
if (btn === 'left') {
this.leftPos += 240
let scrollAmount = 0
var slideTimer = setInterval(function () {
feeds.scrollLeft -= 10;
scrollAmount += 10;
feeds.scrollLeft -= 10
scrollAmount += 10
if (scrollAmount >= 240) {
window.clearInterval(slideTimer);
window.clearInterval(slideTimer)
}
}, 25);
}, 25)
} else {
this.leftPos -= 240;
let scrollAmount = 0;
this.leftPos -= 240
let scrollAmount = 0
// eslint-disable-next-line no-redeclare
var slideTimer = setInterval(function () {
feeds.scrollLeft += 10;
scrollAmount += 10;
feeds.scrollLeft += 10
scrollAmount += 10
if (scrollAmount >= 240) {
window.clearInterval(slideTimer);
window.clearInterval(slideTimer)
}
}, 25);
}, 25)
}
},
getData() {
getData () {
let _this = this
this.$http({
method: 'get',
@@ -294,7 +293,7 @@ export default {
}).then(res => {
if (res.data.code === 200) {
_this.bgData = res.data.data
_this.$nextTick(() => { //修改数据之后立即使用这个方法,获取更新后的 DOM
_this.$nextTick(() => { // 修改数据之后立即使用这个方法,获取更新后的 DOM
_this.initSwiper()
})
} else {
@@ -307,13 +306,13 @@ export default {
})
}
},
created() {
created () {
this.getData()
},
mounted() {
mounted () {
this.initSwiper()
}
};
}
</script>
<style lang='scss' scoped>

View File

@@ -52,41 +52,40 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
data () {
return {
index_num: 0,
coll: Number,
imgUrl: {
img4: require("../../../static/img/img4.png"),
moren: require("../../../static/img/default.jpg"),
img5: require("../../../static/img/img5.png"),
wjx: require("../../../static/img/wjx.png")
img4: require('../../../static/img/img4.png'),
moren: require('../../../static/img/default.jpg'),
img5: require('../../../static/img/img5.png'),
wjx: require('../../../static/img/wjx.png')
},
bgData: [],
bgDataZ: [],
id: Number
};
}
},
computed: {},
watch: {},
methods: {
news(new_id) {
news (newId) {
let _this = this
this.$http({
method: 'post',
url: 'v1/article/details',
data: {
id: new_id
id: newId
}
}).then(res => {
if (res.data.data.code === 200) {
@@ -102,10 +101,10 @@ export default {
console.log(err)
})
},
collection(article_id) {
collection (articleId) {
if (!sessionStorage.id) {
alert('请先登录~')
return;
return
}
let _this = this
this.$http({
@@ -113,11 +112,11 @@ export default {
url: 'v1/article/collection',
data: {
sid: _this.id,
article_id: article_id
article_id: articleId
}
}).then(res => {
if (res.data.data.code === 200) {
_this.coll = _this.coll == 1 ? 0 : 1
_this.coll = _this.coll === 1 ? 0 : 1
} else {
_this.$message.error('请求数据有问题!')
}
@@ -127,7 +126,7 @@ export default {
console.log(err)
})
},
getData(id) {
getData (id) {
let _this = this
this.$http({
method: 'post',
@@ -150,17 +149,17 @@ export default {
})
}
},
created() {
created () {
// this.id = this.$route.params.id
// let type = this.$route.params.type
// this.getData(this.id)
},
mounted() {
mounted () {
this.id = this.$route.query.id
// let type = this.$route.query.type
this.getData(this.id)
}
};
}
</script>
<style lang='scss' scoped>

View File

@@ -43,32 +43,31 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
data () {
return {
moren: require('../../../static/img/default.jpg'),
index_num: 0,
pageSize: 1,/** 每页的条数 */
currentPage: 1,/** 当前页数 */
totalCount: 1,/** 总页数 */
pageSize: 1, /** 每页的条数 */
currentPage: 1, /** 当前页数 */
totalCount: 1, /** 总页数 */
bgData: [],
getType: null,
cd:Number
};
cd: Number
}
},
computed: {},
watch: {},
methods: {
getData() {
getData () {
let _this = this
this.$http({
method: 'get',
@@ -91,39 +90,38 @@ export default {
console.log(err)
})
},
handleSizeChange(val) {
this.pageSize = val;
this.getPackData();
handleSizeChange (val) {
this.pageSize = val
this.getPackData()
},
handleCurrentChange(val) {
this.currentPage = val;
handleCurrentChange (val) {
this.currentPage = val
this.getData()
this.getPackData();
this.getPackData()
},
getPackData() { }
getPackData () { }
},
created() {
created () {
this.getType = this.$route.params.type
this.currentPage = Number(localStorage.getItem("pagination")) || 1;
this.getType = this.getType || Number(localStorage.getItem("getType"));
this.handleCurrentChange(this.currentPage);
this.currentPage = Number(localStorage.getItem('pagination')) || 1
this.getType = this.getType || Number(localStorage.getItem('getType'))
this.handleCurrentChange(this.currentPage)
},
mounted() { },
beforeUpdate() {
mounted () { },
beforeUpdate () {
localStorage.setItem('pagination', this.currentPage)
localStorage.setItem('getType', this.getType)
},
beforeDestroy() {
beforeDestroy () {
// localStorage.clear()
localStorage.setItem('pagination', this.currentPage)
localStorage.setItem('getType', this.getType)
},
destroyed() {
destroyed () {
localStorage.setItem('pagination', 1)
localStorage.setItem('getType', this.getType)
}
};
}
</script>
<style lang='scss' scoped>

View File

@@ -132,7 +132,7 @@
<div class="div">
<div class="bb">
<h3>{{ item.name }}</h3>
<h5>活动</h5>
<h5>项目</h5>
</div>
<time>{{ item.protime }}</time>
</div>
@@ -222,9 +222,7 @@ export default {
methods: {
/** 筛选函数 */
bolting () {
// eslint-disable-next-line camelcase
this.start_time = this.value_date[0]
// eslint-disable-next-line camelcase
this.end_time = this.value_date[1]
this.getDataTwo(
this.start_time,

View File

@@ -26,14 +26,12 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import Apply from "./Apply";
import Collection from "./Collection";
import Declare from "./Declare";
import Modify from "./Modify";
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
import Apply from './Apply'
import Collection from './Collection'
import Declare from './Declare'
import Modify from './Modify'
export default {
components: {
@@ -45,30 +43,30 @@ export default {
Modify
},
props: {},
data() {
data () {
return {
index_num: 3,
// text: ["党组织申请", "我的收藏", "项目申报", "个人中心-修改密码"],
text: ["党组织申请", "项目申报", "个人中心-修改密码"],
text: ['党组织申请', '项目申报', '个人中心-修改密码'],
sub: 0,
heightVal: 1050
};
}
},
computed: {},
watch: {},
methods: {
showMsgFromChild(data) {
this.heightVal = data;
showMsgFromChild (data) {
this.heightVal = data
},
btn(index) {
let s = this.sub;
s = index;
this.sub = s;
btn (index) {
let s = this.sub
s = index
this.sub = s
}
},
created() {},
mounted() {}
};
created () {},
mounted () {}
}
</script>
<style lang='scss' scoped>

View File

@@ -117,18 +117,10 @@
<div>
<label>申请日期:</label>
<input type="date" name="aterm" v-model="aterm" value required />
<!-- <select name="aterm">
<option value>2019-01-31</option>
<option value>2019-01-20</option>
</select>-->
</div>
<div>
<label>截止日期:</label>
<input type="date" name="fterm" v-model="fterm" value required />
<!-- <select name="fterm">
<option value>2019-01-31</option>
<option value>2019-01-20</option>
</select>-->
</div>
</aside>
<!-- end -->
@@ -611,16 +603,12 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import RichTextOne from "../../components/RichTextOne";
// import RegisteredVue from '../Registered.vue';
const T_T = new Date();
var preD = function(e) {
e.preventDefault();
};
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
import RichTextOne from '../../components/RichTextOne'
var preD = function (e) {
e.preventDefault()
}
export default {
components: {
HeaderNav,
@@ -628,265 +616,262 @@ export default {
RichTextOne
},
props: {},
data() {
data () {
return {
index_num: 2,
sub: 0,
bgData: null,
initialTextVal: "",
initialText: "",
initialTextVal: '',
initialText: '',
thff: false,
imgUrl: {
bg0: require("../../../static/img/bg0.png"),
bg1: require("../../../static/img/bg1.png"),
xa: require("../../../static/img/xa.png")
bg0: require('../../../static/img/bg0.png'),
bg1: require('../../../static/img/bg1.png'),
xa: require('../../../static/img/xa.png')
},
fileLists: [],
popupStatus: false,
first_levels: [],
types: [],
area: [],
name: "",
company: "",
tid: "",
rid: "",
first_level: "",
secondary: "",
fieldeara: "",
attribute: "",
aterm: "",
fterm: "",
postaladdress: "",
postalcode: "",
pmail: "",
fax_tel: "",
plegal: "",
plcode: "",
pname: "",
poster: "",
poffice_tel: "",
aphone: "",
cname: "",
cpost: "",
coffice_tel: "",
cphone: "",
prespo: "",
respoadd: "",
respopcode: "",
respomail: "",
respophone: "",
respoctel: "",
respopname: "",
respopost: "",
respoophone: "",
respoptel: "",
respocname: "",
respocpost: "",
respocophone: "",
decldes: "",
prodes: "",
prodemo: "",
prodemojc: "",
prodemotj: "",
prodemojd: "",
prodemoxg: "",
prodemofg: "",
prodemotwo: "",
funds: "",
proimages: "",
name: '',
company: '',
tid: '',
rid: '',
first_level: '',
secondary: '',
fieldeara: '',
attribute: '',
aterm: '',
fterm: '',
postaladdress: '',
postalcode: '',
pmail: '',
fax_tel: '',
plegal: '',
plcode: '',
pname: '',
poster: '',
poffice_tel: '',
aphone: '',
cname: '',
cpost: '',
coffice_tel: '',
cphone: '',
prespo: '',
respoadd: '',
respopcode: '',
respomail: '',
respophone: '',
respoctel: '',
respopname: '',
respopost: '',
respoophone: '',
respoptel: '',
respocname: '',
respocpost: '',
respocophone: '',
decldes: '',
prodes: '',
prodemo: '',
prodemojc: '',
prodemotj: '',
prodemojd: '',
prodemoxg: '',
prodemofg: '',
prodemotwo: '',
funds: '',
proimages: '',
subStatus: 0,
picture: []
};
}
},
computed: {},
watch: {
popupStatus(val) {
popupStatus (val) {
if (val) {
document.body.style.overflow = "hidden";
document.addEventListener("touchmove", preD, {
document.body.style.overflow = 'hidden'
document.addEventListener('touchmove', preD, {
passive: false
}); /** 禁止页面滑动 */
}) /** 禁止页面滑动 */
} else {
document.body.style.overflow = ""; /**出现滚动条 */
document.removeEventListener("touchmove", preD, { passive: false });
document.body.style.overflow = '' /** 出现滚动条 */
document.removeEventListener('touchmove', preD, { passive: false })
}
}
},
methods: {
successUpload(response, file, fileList) {
successUpload (response, file, fileList) {
this.picture.push({
name: file.name,
url: file.response.data.url
});
})
},
handleRemove(file, fileList) {
console.log(file, fileList);
handleRemove (file, fileList) {
console.log(file, fileList)
},
handlePreview(file) {
console.log(file);
handlePreview (file) {
console.log(file)
},
handleExceed(files, fileList) {
handleExceed (files, fileList) {
this.$message.warning(
`当前限制选择 10 个文件,本次选择了 ${
files.length
} 个文件,共选择了 ${files.length + fileList.length} 个文件`
);
)
},
beforeRemove(file, fileList) {
return this.$confirm(`确定移除 ${file.name} ?`);
beforeRemove (file, fileList) {
return this.$confirm(`确定移除 ${file.name} ?`)
},
/** 获取富文本内容 */
quillVal(data) {
this.initialText = data;
quillVal (data) {
this.initialText = data
},
/** 申报单位承诺 */
thf() {
this.thff = !this.thff;
thf () {
this.thff = !this.thff
},
/** 下一步 */
btn(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}$/;
let s = this.sub;
s = index;
btn (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}$/
let s = this.sub
s = index
if (s == 0) {
this.sub = s;
if (s === 0) {
this.sub = s
}
// this.sub = s
let aterm = new Date(this.aterm).getTime();
let fterm = new Date(this.fterm).getTime();
if (s == 1) {
if (s === 1) {
if (
this.name == "" ||
this.company == "" ||
this.tid == "" ||
this.rid === "" ||
this.first_level == "" ||
this.secondary == "" ||
this.fieldeara == "" ||
this.attribute == "" ||
this.aterm == "" ||
this.fterm == "" ||
this.postaladdress == "" ||
this.postalcode == "" ||
this.pmail == "" ||
this.plegal == "" ||
this.plcode == "" ||
this.pname == "" ||
this.poster == "" ||
this.poffice_tel == "" ||
this.aphone == "" ||
this.cname == "" ||
this.cpost == "" ||
this.coffice_tel == "" ||
this.cphone == ""
this.name === '' ||
this.company === '' ||
this.tid === '' ||
this.rid === '' ||
this.first_level === '' ||
this.secondary === '' ||
this.fieldeara === '' ||
this.attribute === '' ||
this.aterm === '' ||
this.fterm === '' ||
this.postaladdress === '' ||
this.postalcode === '' ||
this.pmail === '' ||
this.plegal === '' ||
this.plcode === '' ||
this.pname === '' ||
this.poster === '' ||
this.poffice_tel === '' ||
this.aphone === '' ||
this.cname === '' ||
this.cpost === '' ||
this.coffice_tel === '' ||
this.cphone === ''
) {
alert("以上内容不可为空!");
return;
alert('以上内容不可为空!')
return false
} else if (this.aterm > this.fterm) {
alert("截止日期应比申请日期晚");
return;
alert('截止日期应比申请日期晚')
return false
} else if (
!regd.test(this.poffice_tel) ||
!regd.test(this.coffice_tel)
) {
alert("请填写正确的电话号码!");
return;
alert('请填写正确的电话号码!')
return false
}
if (!regs.test(this.aphone) || !regs.test(this.cphone)) {
alert("请填写正确的手机号码!");
return;
alert('请填写正确的手机号码!')
} else {
this.sub = s;
this.sub = s
}
}
},
/** 保存和提交 */
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}$/;
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}$/
let text = this.funds;
text = this.initialText;
this.funds = text;
let text = this.funds
text = this.initialText
this.funds = text
this.proimages = [...this.fileLists, ...this.picture];
this.proimages = [...this.fileLists, ...this.picture]
if (this.sub == 1) {
if (this.sub === 1) {
if (
this.prespo == "" ||
this.respoadd == "" ||
this.respopcode == "" ||
this.respomail == "" ||
this.respopname == "" ||
this.respopost == "" ||
this.respoophone == "" ||
this.respocname == "" ||
this.respocpost == "" ||
this.respocophone == "" ||
this.decldes == "" ||
this.prodes == "" ||
this.prodemo == "" ||
this.prodemojc == "" ||
this.prodemotj == "" ||
this.prodemojd == "" ||
this.prodemoxg == "" ||
this.prodemofg == "" ||
this.prodemotwo == "" ||
this.funds == ""
this.prespo === '' ||
this.respoadd === '' ||
this.respopcode === '' ||
this.respomail === '' ||
this.respopname === '' ||
this.respopost === '' ||
this.respoophone === '' ||
this.respocname === '' ||
this.respocpost === '' ||
this.respocophone === '' ||
this.decldes === '' ||
this.prodes === '' ||
this.prodemo === '' ||
this.prodemojc === '' ||
this.prodemotj === '' ||
this.prodemojd === '' ||
this.prodemoxg === '' ||
this.prodemofg === '' ||
this.prodemotwo === '' ||
this.funds === ''
) {
alert("以上内容不可为空!");
return;
alert('以上内容不可为空!')
return
} else if (
!regd.test(this.respoophone) ||
!regd.test(this.respocophone)
) {
alert("请填写正确的电话号码!");
return;
} else if (this.thff == false) {
alert("请同意:申报单位承诺");
return;
} else if (this.proimages.length == 0) {
alert("未上传文件!");
return;
alert('请填写正确的电话号码!')
return false
} else if (this.thff === false) {
alert('请同意:申报单位承诺')
return false
} else if (this.proimages.length === 0) {
alert('未上传文件!')
return false
}
} else {
alert("数据出错!");
return;
alert('数据出错!')
return
}
if (this.respoptel != "" && !regs.test(this.respoptel)) {
alert("请填写正确的手机号码!");
return false;
if (this.respoptel !== '' && !regs.test(this.respoptel)) {
alert('请填写正确的手机号码!')
return false
}
if (this.respoctel != "" && !regs.test(this.respoctel)) {
alert("请填写正确的手机号码!");
return false;
if (this.respoctel !== '' && !regs.test(this.respoctel)) {
alert('请填写正确的手机号码!')
return false
}
let s = this.subStatus;
s = index;
this.subStatus = s;
let val = this.proimages;
val = JSON.stringify(this.proimages);
this.proimages = val;
let s = this.subStatus
s = index
this.subStatus = s
let val = this.proimages
val = JSON.stringify(this.proimages)
this.proimages = val
if (this.proimages == "") {
alert("文件还未上传!");
return;
if (this.proimages === '') {
alert('文件还未上传!')
return
}
this.popupStatus = true;
this.popupStatus = true
},
/** 申报项目 */
submitYes() {
this.popupStatus = false;
let _this = this;
submitYes () {
this.popupStatus = false
let _this = this
this.$http({
method: "post",
url: "v1/project/apply",
method: 'post',
url: 'v1/project/apply',
data: {
subStatus: _this.subStatus,
name: _this.name,
@@ -940,181 +925,179 @@ export default {
}
})
.then(res => {
console.log(res);
if (res.data.code === 200) {
if (res.data.data.code === 200) {
alert(res.data.data.msg);
_this.proimages = "";
alert(res.data.data.msg)
_this.proimages = ''
_this.$router.push({
name: "project"
});
name: 'project'
})
} else {
alert(res.data.data.msg);
alert(res.data.data.msg)
}
} else {
alert(res.data.message);
alert(res.data.message)
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
},
/** 获取下拉框的数据 */
getData() {
let _this = this;
getData () {
let _this = this
this.$http({
method: "get",
url: "v1/project/get-info",
method: 'get',
url: 'v1/project/get-info',
data: {}
})
.then(res => {
if (res.data.code === 200) {
_this.types = res.data.data.type;
_this.area = res.data.data.area;
_this.first_levels = res.data.data.first_level;
_this.types = res.data.data.type
_this.area = res.data.data.area
_this.first_levels = res.data.data.first_level
if (this.$route.query.id) {
let id = this.$route.query.id;
this.getDataDetails(id);
let id = this.$route.query.id
this.getDataDetails(id)
}
} else {
_this.$message.error("请求数据有问题!");
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
},
/** 判断是否有权限进行项目申报 */
status() {
let id = sessionStorage.id;
let _this = this;
status () {
let id = sessionStorage.id
let _this = this
this.$http({
method: "post",
url: "v1/society/get-status",
method: 'post',
url: 'v1/society/get-status',
data: { id: id }
})
.then(res => {
if (res.data.code === 200) {
if (res.data.data.status === 0) {
alert("您当前社会组织状态为:活动异常,请与主管单位联系审核!");
alert('您当前社会组织状态为:活动异常,请与主管单位联系审核!')
_this.$router.push({
name: "project"
});
name: 'project'
})
} else if (res.data.data.status === 3) {
alert("您当前社会组织状态为:活动异常,请与主管单位联系审核!");
alert('您当前社会组织状态为:活动异常,请与主管单位联系审核!')
_this.$router.push({
name: "project"
});
name: 'project'
})
} else {
_this.getData();
_this.getData()
}
} else {
_this.$message.error("请求数据有问题!");
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
},
/** 为提交时的赋值操作 */
assignment(data) {
this.name = data.name;
this.company = data.company;
assignment (data) {
this.name = data.name
this.company = data.company
for (var prop in this.types) {
if (data.tid == this.types[prop]) {
this.tid = prop;
if (data.tid === this.types[prop]) {
this.tid = prop
}
}
this.area.forEach((item, index) => {
if (data.rid == item) {
this.rid = parseInt(index);
if (data.rid === item) {
this.rid = parseInt(index)
}
});
for (var prop in this.first_levels) {
if (data.first_level == this.first_levels[prop]) {
this.first_level = prop;
})
for (let prop in this.first_levels) {
if (data.first_level === this.first_levels[prop]) {
this.first_level = prop
}
}
this.secondary = data.secondary;
this.fieldeara = data.fieldeara;
this.attribute = data.attribute;
this.attribute = data.attribute;
this.fterm = data.fterm;
this.postaladdress = data.postaladdress;
this.postalcode = data.postalcode;
this.pmail = data.pmail;
this.fax_tel = data.fax_tel;
this.plegal = data.plegal;
this.plcode = data.plcode;
this.pname = data.pname;
this.poster = data.poster;
this.poffice_tel = data.poffice_tel;
this.aphone = data.aphone;
this.cname = data.cname;
this.cpost = data.cpost;
this.coffice_tel = data.coffice_tel;
this.cphone = data.cphone;
this.prespo = data.prespo;
this.respoadd = data.respoadd;
this.respopcode = data.respopcode;
this.respomail = data.respomail;
this.respophone = data.respophone;
this.respopname = data.respopname;
this.respopost = data.respopost;
this.respoophone = data.respoophone;
this.respoptel = data.respoptel;
this.respocname = data.respocname;
this.respocpost = data.respocpost;
this.respocophone = data.respocophone;
this.respoctel = data.respoctel;
this.decldes = data.decldes;
this.prodes = data.prodes;
this.prodemo = data.prodemo;
this.prodemojc = data.prodemojc;
this.prodemotj = data.prodemotj;
this.prodemojd = data.prodemojd;
this.prodemoxg = data.prodemoxg;
this.prodemofg = data.prodemofg;
this.prodemotwo = data.prodemotwo;
this.prodemojc = data.prodemojc;
this.initialTextVal = data.funds;
this.initialText = data.funds;
this.secondary = data.secondary
this.fieldeara = data.fieldeara
this.attribute = data.attribute
this.attribute = data.attribute
this.fterm = data.fterm
this.postaladdress = data.postaladdress
this.postalcode = data.postalcode
this.pmail = data.pmail
this.fax_tel = data.fax_tel
this.plegal = data.plegal
this.plcode = data.plcode
this.pname = data.pname
this.poster = data.poster
this.poffice_tel = data.poffice_tel
this.aphone = data.aphone
this.cname = data.cname
this.cpost = data.cpost
this.coffice_tel = data.coffice_tel
this.cphone = data.cphone
this.prespo = data.prespo
this.respoadd = data.respoadd
this.respopcode = data.respopcode
this.respomail = data.respomail
this.respophone = data.respophone
this.respopname = data.respopname
this.respopost = data.respopost
this.respoophone = data.respoophone
this.respoptel = data.respoptel
this.respocname = data.respocname
this.respocpost = data.respocpost
this.respocophone = data.respocophone
this.respoctel = data.respoctel
this.decldes = data.decldes
this.prodes = data.prodes
this.prodemo = data.prodemo
this.prodemojc = data.prodemojc
this.prodemotj = data.prodemotj
this.prodemojd = data.prodemojd
this.prodemoxg = data.prodemoxg
this.prodemofg = data.prodemofg
this.prodemotwo = data.prodemotwo
this.prodemojc = data.prodemojc
this.initialTextVal = data.funds
this.initialText = data.funds
let imgs = JSON.parse(data.proimages);
this.fileLists = imgs;
let imgs = JSON.parse(data.proimages)
this.fileLists = imgs
// console.log(this.fileLists);
},
getDataDetails(id) {
getDataDetails (id) {
this.$http({
method: "post",
url: "v1/project/details",
method: 'post',
url: 'v1/project/details',
data: {
id: id
}
})
.then(res => {
if (res.data.data.code === 200) {
this.bgData = res.data.data.data.ProjectDetails;
this.assignment(this.bgData);
this.bgData = res.data.data.data.ProjectDetails
this.assignment(this.bgData)
} else {
alert("请求失败!");
alert('请求失败!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
}
},
created() {},
mounted() {
this.status();
created () {},
mounted () {
this.status()
}
};
}
</script>
<style lang="scss" scoped>

View File

@@ -135,7 +135,7 @@
<div class="div">
<div class="bb">
<h3>{{ item.name }}</h3>
<h5>活动</h5>
<h5>项目</h5>
</div>
<time>{{ item.protime }}</time>
</div>
@@ -193,50 +193,48 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
export default {
components: {
HeaderNav,
FooterNav
},
props: {},
data() {
data () {
return {
index_num: 2,
pageSize: 1,
currentPage: 1,
totalCount: 1,
imgUrl: {
xlb: require("../../../static/img/xlb.png"),
tg: require("../../../static/img/tg.png"),
btg: require("../../../static/img/btg.png"),
shz: require("../../../static/img/shz.png"),
zxz: require("../../../static/img/zxz.png"),
wtj: require("../../../static/img/wtj.png")
xlb: require('../../../static/img/xlb.png'),
tg: require('../../../static/img/tg.png'),
btg: require('../../../static/img/btg.png'),
shz: require('../../../static/img/shz.png'),
zxz: require('../../../static/img/zxz.png'),
wtj: require('../../../static/img/wtj.png')
},
// text: ["全部", "项目初筛", "项目立项"],
text: ["全部"],
text: ['全部'],
sub: 0,
bgData: [],
bgValue: [],
type_value: "项目类型",
status_value: "项目状态",
area_value: "落地区域",
value_date: "",
start_time: "",
end_time: "",
type_value: '项目类型',
status_value: '项目状态',
area_value: '落地区域',
value_date: '',
start_time: '',
end_time: '',
cd: Number
};
}
},
computed: {},
watch: {},
methods: {
/** 筛选函数 */
bolting() {
this.start_time = this.value_date[0];4
bolting () {
this.start_time = this.value_date[0]
this.end_time = this.value_date[1]
this.getDataTwo(
this.start_time,
@@ -244,33 +242,33 @@ export default {
this.type_value,
this.status_value,
this.area_value
);
)
},
/** 获取项目列表 */
getDataTwo(
getDataTwo (
start_time = this.start_time,
end_time = this.end_time,
type = this.type_value,
status = this.status_value,
area = this.area_value
) {
if (type === "项目类型") {
this.type_value = "";
type = "";
if (type === '项目类型') {
this.type_value = ''
type = ''
}
if (status === "项目状态") {
this.status_value = "";
status = "";
if (status === '项目状态') {
this.status_value = ''
status = ''
}
if (area === "落地区域") {
this.area_value = "";
area = "";
if (area === '落地区域') {
this.area_value = ''
area = ''
}
let _this = this;
let _this = this
this.$http({
method: "get",
url: "v1/project/list",
method: 'get',
url: 'v1/project/list',
params: {
start_time: start_time,
end_time: end_time,
@@ -283,81 +281,81 @@ export default {
})
.then(res => {
if (res.data.code === 200) {
_this.bgData = res.data.data.data;
_this.totalCount = _this.bgData.allPage;
_this.cd = _this.bgData.info.length;
_this.bgData = res.data.data.data
_this.totalCount = _this.bgData.allPage
_this.cd = _this.bgData.info.length
} else {
_this.$message.error("请求数据有问题!");
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
if (this.type_value === "") {
this.type_value = "项目类型";
if (this.type_value === '') {
this.type_value = '项目类型'
}
if (this.status_value === "") {
this.status_value = "项目状态";
if (this.status_value === '') {
this.status_value = '项目状态'
}
if (this.area_value === "") {
this.area_value = "落地区域";
if (this.area_value === '') {
this.area_value = '落地区域'
}
},
/** 获取下拉框数据 */
getDataOne() {
let _this = this;
getDataOne () {
let _this = this
this.$http({
method: "get",
url: "v1/project/get-info",
method: 'get',
url: 'v1/project/get-info',
data: {}
})
.then(res => {
if (res.data.code === 200) {
_this.bgValue = res.data.data;
_this.cd = _this.bgValue.announcement.length;
_this.bgValue = res.data.data
_this.cd = _this.bgValue.announcement.length
} else {
_this.$message.error("请求数据有问题!");
_this.$message.error('请求数据有问题!')
}
})
// eslint-disable-next-line handle-callback-err
.catch(err => {
console.log(err);
});
console.log(err)
})
},
btn(index) {
let s = this.sub;
s = index;
this.sub = s;
btn (index) {
let s = this.sub
s = index
this.sub = s
},
handleSizeChange(val) {
this.pageSize = val;
this.getPackData();
handleSizeChange (val) {
this.pageSize = val
this.getPackData()
},
handleCurrentChange(val) {
this.currentPage = val;
this.getDataTwo();
this.getPackData();
handleCurrentChange (val) {
this.currentPage = val
this.getDataTwo()
this.getPackData()
},
getPackData() {}
getPackData () {}
},
created() {
this.currentPage = Number(localStorage.getItem("page")) || 1;
this.handleCurrentChange(this.currentPage);
this.getDataOne();
created () {
this.currentPage = Number(localStorage.getItem('page')) || 1
this.handleCurrentChange(this.currentPage)
this.getDataOne()
},
mounted() {},
beforeUpdate() {
localStorage.setItem("page", this.currentPage);
mounted () {},
beforeUpdate () {
localStorage.setItem('page', this.currentPage)
},
beforeDestroy() {
localStorage.setItem("page", 1);
beforeDestroy () {
localStorage.setItem('page', 1)
},
destroyed() {
localStorage.removeItem("page");
destroyed () {
localStorage.removeItem('page')
}
};
}
</script>
<style lang="scss" scoped>

View File

@@ -214,10 +214,8 @@
</template>
<script>
/* eslint-disable */
import HeaderNav from "../../components/HeaderNav";
/* eslint-disable */
import FooterNav from "../../components/FooterNav";
import HeaderNav from '../../components/HeaderNav'
import FooterNav from '../../components/FooterNav'
var preD = function (e) {
e.preventDefault()
}
@@ -227,48 +225,48 @@ export default {
FooterNav
},
props: {},
data() {
data () {
return {
index_num: 2,
sub: 0,
imgUrl: {
tg: require("../../../static/img/tg.png"),
btg: require("../../../static/img/btg.png"),
shz: require("../../../static/img/shz.png"),
zxz: require("../../../static/img/zxz.png"),
sx0: require("../../../static/img/sx0.png"),
sx1: require("../../../static/img/sx1.png"),
d0: require("../../../static/img/d0.png"),
d1: require("../../../static/img/d1.png")
tg: require('../../../static/img/tg.png'),
btg: require('../../../static/img/btg.png'),
shz: require('../../../static/img/shz.png'),
zxz: require('../../../static/img/zxz.png'),
sx0: require('../../../static/img/sx0.png'),
sx1: require('../../../static/img/sx1.png'),
d0: require('../../../static/img/d0.png'),
d1: require('../../../static/img/d1.png')
},
msg: '我们确认项目申报内容的真实性,并愿意承担相应的责任',
state: 0,
zt: 2,
popupStatus: false,
text: [
"第一步:填写并提交项目申报书",
"第二步:线上初筛审核",
"第三步:项目初筛结果查询",
"第四步:线下立项评审",
"第五步:立项结果查询"
'第一步:填写并提交项目申报书',
'第二步:线上初筛审核',
'第三步:项目初筛结果查询',
'第四步:线下立项评审',
'第五步:立项结果查询'
],
zData: [],
zDate: [],
dataFile: null,
id: Number,
fileName: null
};
}
},
computed: {},
watch: {
popupStatus(val) {
popupStatus (val) {
if (val) {
document.body.style.overflow = 'hidden'
document.addEventListener('touchmove', preD, {
passive: false
}) /** 禁止页面滑动 */
} else {
document.body.style.overflow = '' /**出现滚动条 */
document.body.style.overflow = '' /** 出现滚动条 */
document.removeEventListener('touchmove', preD, { passive: false })
}
}
@@ -289,18 +287,18 @@ export default {
// window.location.href = o; // 本窗口打开下载
// window.open(centent, '_blank'); // 新开窗口下载
// },
download() {
download () {
this.getPdf('pdfDom', '项目申请书')
},
preview() {
preview () {
this.popupStatus = !this.popupStatus
},
btn(index) {
let s = this.sub;
s = index;
this.sub = s;
btn (index) {
let s = this.sub
s = index
this.sub = s
},
getData() {
getData () {
let _this = this
this.$http({
method: 'post',
@@ -315,9 +313,9 @@ export default {
let arr = JSON.parse(_this.zData.proimages)
let newArr = arr.map(element => {
return ({ name: element.name, url: element.url })
});
})
_this.dataFile = newArr
console.log(_this.dataFile);
// console.log(_this.dataFile)
// let index = _this.zData.proimages.lastIndexOf("\/")
// _this.fileName = _this.zData.proimages.substring(index+1,_this.zData.proimages.length)
} else {
@@ -330,21 +328,12 @@ export default {
})
}
},
created() {
this.id = this.$route.params.id;
created () {
this.id = this.$route.params.id
this.getData()
},
mounted() { },
// beforeUpdate() {
// localStorage.setItem('schedule', this.id)
// },
// beforeDestroy() {
// localStorage.setItem('schedule', this.id)
// },
// destroyed() {
// localStorage.setItem('schedule', this.id)
// }
};
mounted () { }
}
</script>
<style lang='scss' scoped>