kun 191126 1730

This commit is contained in:
沈学坤
2019-11-26 17:29:35 +08:00
parent 5d70595d17
commit 9d888a5b26
15 changed files with 284 additions and 90 deletions

View File

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

View File

@@ -19,8 +19,7 @@
"swiper": "^5.0.2",
"vue": "^2.6.10",
"vue-router": "^3.0.3",
"vuex": "^3.0.1",
"wangeditor": "^2.1.23"
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
@@ -37,6 +36,7 @@
"js-md5": "^0.7.3",
"less": "^3.0.4",
"less-loader": "^5.0.0",
"vue-template-compiler": "^2.6.10"
"vue-template-compiler": "^2.6.10",
"wangeditor": "^3.1.1"
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="aboutUs"></div>
<div ref="aboutUs"></div>
</template>
<script>
@@ -19,20 +19,39 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('aboutUs')
phoneEditor.onchange = function () {
_this.$emit('aboutUs', this.$txt.html())
phoneEditor = new E(_this.$refs.aboutUs)
phoneEditor.customConfig.onchange = html => {
_this.$emit('aboutUs', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
aboutUsVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.aboutUsVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="cover"></div>
<div ref="cover"></div>
</template>
<script>
@@ -19,20 +19,39 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('cover')
phoneEditor.onchange = function () {
_this.$emit('cover', this.$txt.html())
phoneEditor = new E(this.$refs.cover)
phoneEditor.customConfig.onchange = html => {
_this.$emit('cover', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
coverVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.coverVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="desiredEffect"></div>
<div ref="desiredEffect"></div>
</template>
<script>
@@ -19,11 +19,32 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('desiredEffect')
phoneEditor.onchange = function () {
_this.$emit('desiredEffect', this.$txt.html())
phoneEditor = new E(this.$refs.desiredEffect)
phoneEditor.customConfig.onchange = html => {
_this.$emit('desiredEffect', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
@@ -31,8 +52,7 @@ export default {
computed: {},
watch: {
desiredEffectVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.desiredEffectVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="divisionLabor"></div>
<div ref="divisionLabor"></div>
</template>
<script>
@@ -19,11 +19,32 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('divisionLabor')
phoneEditor.onchange = function () {
_this.$emit('divisionLabor', this.$txt.html())
phoneEditor = new E(this.$refs.divisionLabor)
phoneEditor.customConfig.onchange = html => {
_this.$emit('divisionLabor', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
@@ -31,8 +52,7 @@ export default {
computed: {},
watch: {
divisionLaborVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.divisionLaborVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="existingBasis"></div>
<div ref="existingBasis"></div>
</template>
<script>
@@ -19,20 +19,39 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('existingBasis')
phoneEditor.onchange = function () {
_this.$emit('existingBasis', this.$txt.html())
phoneEditor = new E(this.$refs.existingBasis)
phoneEditor.customConfig.onchange = html => {
_this.$emit('existingBasis', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
existingBasisVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.existingBasisVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="methodsWay"></div>
<div ref="methodsWay"></div>
</template>
<script>
@@ -19,20 +19,39 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('methodsWay')
phoneEditor.onchange = function () {
_this.$emit('methodsWay', this.$txt.html())
phoneEditor = new E(this.$refs.methodsWay)
phoneEditor.customConfig.onchange = html => {
_this.$emit('methodsWay', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
methodsWayVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.methodsWayVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="projectAssessment"></div>
<div ref="projectAssessment"></div>
</template>
<script>
@@ -19,20 +19,39 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('projectAssessment')
phoneEditor.onchange = function () {
_this.$emit('projectAssessment', this.$txt.html())
phoneEditor = new E(this.$refs.projectAssessment)
phoneEditor.customConfig.onchange = html => {
_this.$emit('projectAssessment', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
projectAssessmentVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.projectAssessmentVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="projectBrief"></div>
<div ref="projectBrief"></div>
</template>
<script>
@@ -19,20 +19,39 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('projectBrief')
phoneEditor.onchange = function () {
_this.$emit('projectBrief', this.$txt.html())
phoneEditor = new E(this.$refs.projectBrief)
phoneEditor.customConfig.onchange = html => {
_this.$emit('projectBrief', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
methods: {},
computed: {},
watch: {
projectBriefVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.projectBriefVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="websiteEditorElem"></div>
<div ref="editor"></div>
</template>
<script>
@@ -19,11 +19,32 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('websiteEditorElem')
phoneEditor.onchange = function () {
_this.$emit('quillVal', this.$txt.html())
phoneEditor = new E(this.$refs.editor)
phoneEditor.customConfig.onchange = html => {
_this.$emit('quillVal', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
@@ -31,8 +52,7 @@ export default {
computed: {},
watch: {
initialTextVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.initialTextVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div id="scheduling"></div>
<div ref="scheduling"></div>
</template>
<script>
@@ -19,11 +19,32 @@ export default {
created () {},
mounted () {
_this = this
phoneEditor = new E('scheduling')
phoneEditor.onchange = function () {
_this.$emit('scheduling', this.$txt.html())
phoneEditor = new E(this.$refs.scheduling)
phoneEditor.customConfig.onchange = html => {
_this.$emit('scheduling', html)
}
phoneEditor.customConfig.menus = [
'head', // 标题
'bold', // 粗体
'fontSize', // 字号
'fontName', // 字体
'italic', // 斜体
'underline', // 下划线
'strikeThrough', // 删除线
'foreColor', // 文字颜色
'backColor', // 背景颜色
// 'link', // 插入链接
// 'list', // 列表
'justify', // 对齐方式
// 'quote', // 引用
// 'emoticon', // 表情
// 'image', // 插入图片
'table', // 表格
// 'video', // 插入视频
// 'code', // 插入代码
'undo', // 撤销
'redo' // 重复
]
phoneEditor.create()
// phoneEditor.$txt.html(this.val)
},
@@ -31,8 +52,7 @@ export default {
computed: {},
watch: {
schedulingVal (val) {
// console.log(val)
phoneEditor.$txt.html(_this.schedulingVal)
phoneEditor.txt.html(val)
}
}
}

View File

@@ -501,7 +501,7 @@
</h3>
<p>1.项目实施的已有基础</p>
<article>
(说明:包括但不限于项目实施已有的相关经验或有助于项目实施的资源支持等)
(说明包括但不限于项目实施已有的相关经验或有助于项目实施的资源支持等)
</article>
<div class="rich">
<existing-basis
@@ -518,7 +518,7 @@
></textarea> -->
<p>2.具体方法和途径</p>
<article>
(说明:包括项目实施的具体方式途径明确项目的具体组成内容(子项目各类服务等),每类每次活动的具体内容形式对象次数人数等)
(说明包括项目实施的具体方式途径明确项目的具体组成内容子项目各类服务等每类每次活动的具体内容形式对象次数人数等)
</article>
<div class="rich">
<methods-way
@@ -535,7 +535,7 @@
></textarea> -->
<p>3.进度安排</p>
<article>
(说明:可单独作为一部分,也可与具体方法和途径一并细化到子项目中说明建议时间单元为月,不建议简单表述为年内上半年下半年*季度)
(说明可单独作为一部分也可与具体方法和途径一并细化到子项目中说明建议时间单元为月不建议简单表述为年内上半年下半年*季度)
</article>
<div class="rich">
<scheduling
@@ -552,7 +552,7 @@
></textarea> -->
<p>4.预期效果</p>
<article>
(说明:具体明确项目实施所要达到的目标或预期的效果以及)
(说明具体明确项目实施所要达到的目标或预期的效果)
</article>
<div class="rich">
<desired-effect
@@ -568,7 +568,7 @@
></textarea> -->
<p>5.项目团队及分工</p>
<article>
(说明:包括项目实施的组织管理机构组成,各子项目或各项服务活动的具体承接单位和负责人,各有关协作单位等如有以主责单位名义申报的综合性联合性项目,要细化各子项目的组织实施体系如有涉及到委托管理(如财务委托管理),要在组织架构中予以说明要把可能引起转包怀疑的所有事项交代清楚,避免在检查审计和评估中产生误解)
(说明包括项目实施的组织管理机构组成各子项目或各项服务活动的具体承接单位和负责人各有关协作单位等要把可能引起转包怀疑的所有事项交代清楚避免在检查审计和评估中产生误解)
</article>
<div class="rich">
<division-labor
@@ -910,7 +910,7 @@ export default {
this.prodemotwo === '' ||
this.funds === ''
) {
alert('以上内容不可为空')
alert('请认真核对填写内容完整性')
return false
} else if (this.aterm > this.fterm) {
alert('截止日期应比申请日期晚')

View File

@@ -189,9 +189,9 @@
@click="downloadTxt(zData.proimages,'fileName')"
>
<span>下载</span>
</a>-->
</a>
&nbsp;|&nbsp;
<span @click="preview()">预览</span>
<span @click="preview()">预览</span>-->
</span>
</p>
</div>

View File

@@ -1,4 +1,4 @@
module.exports = {
module.exports = {
publicPath: './',
outputDir: 'dist',
assetsDir: 'static',
@@ -12,7 +12,7 @@ module.exports = {
hotOnly: false,
proxy: {
'/url/': {
target: 'http://cyteam.org.cn/api/',
target: 'http://chaoyang.yulongcode.com/api/',
ws: false,
changeOrigin: true,
pathRewrite: {