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' ENV = 'production'
# base api # 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", "swiper": "^5.0.2",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.0.3", "vue-router": "^3.0.3",
"vuex": "^3.0.1", "vuex": "^3.0.1"
"wangeditor": "^2.1.23"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0", "@vue/cli-plugin-babel": "^3.11.0",
@@ -37,6 +36,7 @@
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"less": "^3.0.4", "less": "^3.0.4",
"less-loader": "^5.0.0", "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> <template>
<div id="aboutUs"></div> <div ref="aboutUs"></div>
</template> </template>
<script> <script>
@@ -19,20 +19,39 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('aboutUs') phoneEditor = new E(_this.$refs.aboutUs)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('aboutUs', this.$txt.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.create()
// phoneEditor.$txt.html(this.val)
}, },
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
aboutUsVal (val) { aboutUsVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.aboutUsVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="cover"></div> <div ref="cover"></div>
</template> </template>
<script> <script>
@@ -19,20 +19,39 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('cover') phoneEditor = new E(this.$refs.cover)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('cover', this.$txt.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.create()
// phoneEditor.$txt.html(this.val)
}, },
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
coverVal (val) { coverVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.coverVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="desiredEffect"></div> <div ref="desiredEffect"></div>
</template> </template>
<script> <script>
@@ -19,11 +19,32 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('desiredEffect') phoneEditor = new E(this.$refs.desiredEffect)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('desiredEffect', this.$txt.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.create()
// phoneEditor.$txt.html(this.val) // phoneEditor.$txt.html(this.val)
}, },
@@ -31,8 +52,7 @@ export default {
computed: {}, computed: {},
watch: { watch: {
desiredEffectVal (val) { desiredEffectVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.desiredEffectVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="divisionLabor"></div> <div ref="divisionLabor"></div>
</template> </template>
<script> <script>
@@ -19,11 +19,32 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('divisionLabor') phoneEditor = new E(this.$refs.divisionLabor)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('divisionLabor', this.$txt.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.create()
// phoneEditor.$txt.html(this.val) // phoneEditor.$txt.html(this.val)
}, },
@@ -31,8 +52,7 @@ export default {
computed: {}, computed: {},
watch: { watch: {
divisionLaborVal (val) { divisionLaborVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.divisionLaborVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="existingBasis"></div> <div ref="existingBasis"></div>
</template> </template>
<script> <script>
@@ -19,20 +19,39 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('existingBasis') phoneEditor = new E(this.$refs.existingBasis)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('existingBasis', this.$txt.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.create()
// phoneEditor.$txt.html(this.val)
}, },
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
existingBasisVal (val) { existingBasisVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.existingBasisVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="methodsWay"></div> <div ref="methodsWay"></div>
</template> </template>
<script> <script>
@@ -19,20 +19,39 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('methodsWay') phoneEditor = new E(this.$refs.methodsWay)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('methodsWay', this.$txt.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.create()
// phoneEditor.$txt.html(this.val)
}, },
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
methodsWayVal (val) { methodsWayVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.methodsWayVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="projectAssessment"></div> <div ref="projectAssessment"></div>
</template> </template>
<script> <script>
@@ -19,20 +19,39 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('projectAssessment') phoneEditor = new E(this.$refs.projectAssessment)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('projectAssessment', this.$txt.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.create()
// phoneEditor.$txt.html(this.val)
}, },
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
projectAssessmentVal (val) { projectAssessmentVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.projectAssessmentVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="projectBrief"></div> <div ref="projectBrief"></div>
</template> </template>
<script> <script>
@@ -19,20 +19,39 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('projectBrief') phoneEditor = new E(this.$refs.projectBrief)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('projectBrief', this.$txt.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.create()
// phoneEditor.$txt.html(this.val)
}, },
methods: {}, methods: {},
computed: {}, computed: {},
watch: { watch: {
projectBriefVal (val) { projectBriefVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.projectBriefVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="websiteEditorElem"></div> <div ref="editor"></div>
</template> </template>
<script> <script>
@@ -19,11 +19,32 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('websiteEditorElem') phoneEditor = new E(this.$refs.editor)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('quillVal', this.$txt.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.create()
// phoneEditor.$txt.html(this.val) // phoneEditor.$txt.html(this.val)
}, },
@@ -31,8 +52,7 @@ export default {
computed: {}, computed: {},
watch: { watch: {
initialTextVal (val) { initialTextVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.initialTextVal)
} }
} }
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="scheduling"></div> <div ref="scheduling"></div>
</template> </template>
<script> <script>
@@ -19,11 +19,32 @@ export default {
created () {}, created () {},
mounted () { mounted () {
_this = this _this = this
phoneEditor = new E('scheduling') phoneEditor = new E(this.$refs.scheduling)
phoneEditor.onchange = function () { phoneEditor.customConfig.onchange = html => {
_this.$emit('scheduling', this.$txt.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.create()
// phoneEditor.$txt.html(this.val) // phoneEditor.$txt.html(this.val)
}, },
@@ -31,8 +52,7 @@ export default {
computed: {}, computed: {},
watch: { watch: {
schedulingVal (val) { schedulingVal (val) {
// console.log(val) phoneEditor.txt.html(val)
phoneEditor.$txt.html(_this.schedulingVal)
} }
} }
} }

View File

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

View File

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

View File

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