Commit 5beb8907 authored by FE-安焕焕's avatar FE-安焕焕 👣

Merge branch 'deploy' of http://git.quantgroup.cn/ui/recruiting-management into ckeditor

Conflicts:
	src/components/home.vue
	src/page/resume/allResume.vue
	src/page/resume/channel.vue
parents f4250c06 7fd9511d
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
</body> </body>
<script src="static/ckeditor/ckeditor.js" type="text/javascript" charset="utf-8"></script> <script src="/static/ckeditor/ckeditor.js" type="text/javascript" charset="utf-8"></script>
<script> <script>
// window.CKEDITOR_BASEPATH = 'http://example.com/static/'; // window.CKEDITOR_BASEPATH = 'http://example.com/static/';
</script> </script>
......
...@@ -116,7 +116,7 @@ export function uploadimage() { ...@@ -116,7 +116,7 @@ export function uploadimage() {
// 发送邮件 // 发送邮件
export function sendEmail(parmars) { export function sendEmail(parmars) {
return axios.post(`${sapi}/api/sendMail/sendEmailTemplate`,parmars,{headers: { return axios.post(`${sapi}/api/sendMail/sendEmailTemplate`,parmars,{headers: {
// 'Content-Type':'multipart/form-data', 'Content-Type':'multipart/form-data',
// 'Content-Disposition':'multipart/form-data' // 'Content-Disposition':'multipart/form-data'
// 'Content-Type':'application/json' // 'Content-Type':'application/json'
}}) }})
......
<template> <template>
<div> <div>
<textarea id="editor" rows="10" cols="80" v-model="editorValue"></textarea> <textarea id="editor" rows="10" cols="80"></textarea>
</div> </div>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
...@@ -31,21 +31,23 @@ ...@@ -31,21 +31,23 @@
}, },
data() { data() {
return { return {
editorValue : this.value isInit: false
}; };
}, },
watch: {
value:{
deep: true,
immediate:true,
handler(value) {
this.isInit&&this.editor.setData(value.value)
}
}
},
mounted() { mounted() {
this.init() this.init()
console.log(3, this.value)
}, },
beforeDestroy() { beforeDestroy() {
}, },
computed: {},
watch: {
value:function (value) {
this.editor.setData()
}
},
methods: { methods: {
init () { init () {
CKEDITOR.replace('editor', { CKEDITOR.replace('editor', {
...@@ -57,15 +59,12 @@ ...@@ -57,15 +59,12 @@
filebrowserUploadMethod: 'form' filebrowserUploadMethod: 'form'
}); });
this.editor = CKEDITOR.instances.editor; this.editor = CKEDITOR.instances.editor;
this.editor.on( 'change', ( evt ) =>{ setTimeout(()=> {
// getData() returns CKEditor's HTML content. this.isInit = true
this.$emit('getValue', evt.editor.getData()) }, 1000)
});
},
}, },
watch:{ getValue(){
value: function(value) { return this.editor.getData()
this.editor.setData(value)
} }
}, },
components: {} components: {}
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<Icon :type="menu.icon" style="font-size:20px;font-weight:bold"/> <Icon :type="menu.icon" style="font-size:20px;font-weight:bold"/>
{{menu.item}} {{menu.item}}
</template> </template>
<MenuItem v-for="child in menu.child" :key="child.name" :name="child.name" @click="go" :active-name="levelThreeName">{{child.item}}</MenuItem> <MenuItem v-for="(child,index) in menu.child" :key="index" :name="child.name" @click="go" :active-name="levelThreeName">{{child.item}}</MenuItem>
</Submenu> </Submenu>
</template> </template>
</Menu> </Menu>
...@@ -54,7 +54,7 @@ import localstorage from '../service/localstorage.service.js' ...@@ -54,7 +54,7 @@ import localstorage from '../service/localstorage.service.js'
xiabiao:'', xiabiao:'',
itemSelect:'', itemSelect:'',
type:'', type:'',
levelOneName: '', levelOneName: '1',
levelTwoName: ['1-1', '2-1', '3-1', '4-1'], levelTwoName: ['1-1', '2-1', '3-1', '4-1'],
levelThreeName: '1-1-1', levelThreeName: '1-1-1',
menuList: [ menuList: [
...@@ -164,15 +164,15 @@ import localstorage from '../service/localstorage.service.js' ...@@ -164,15 +164,15 @@ import localstorage from '../service/localstorage.service.js'
selectMenu(name, refesh) { selectMenu(name, refesh) {
// // refesh是否为刷新页面 // // refesh是否为刷新页面
this.levelOneName = name this.levelOneName = name
const menus = this.menuList.filter(v => name === v.name)[0] const menus = this.menuList.filter(v => name === v.name)
this.childMenu = menus&&menus.child ? menus.child : this.menuList[0].child this.childMenu = menus.length >0? menus[0].child : this.menuList[0].child
if (!refesh) { // 点击菜单默认展示第一个菜单 if (!refesh) { // 点击菜单默认展示第一个菜单
this.levelTwoName = [] this.levelTwoName = []
let initName = this.getInitName(name, menus) let initName = this.getInitName(name, menus[0])
this.levelTwoName.push(initName.levelTwoName) this.levelTwoName.push(initName.levelTwoName)
this.levelThreeName = initName.levelThreeName this.levelThreeName = initName.levelThreeName
} }
if (menus&&menus.loadMenu) { // 简历管理模块需要加载渠道简历 if (menus[0].loadMenu) { // 简历管理模块需要加载渠道简历
this.getChannelMenu() this.getChannelMenu()
} }
if (refesh&&this.$route.path.indexOf('channel') > -1) { if (refesh&&this.$route.path.indexOf('channel') > -1) {
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
<div class="login_content"> <div class="login_content">
<Form ref="formInline" :model="formInline" :rules="ruleInline" style="height:161px"> <Form ref="formInline" :model="formInline" :rules="ruleInline" style="height:161px">
<FormItem prop="user" style="height:60px"> <FormItem prop="user" style="height:60px">
<Input type="text" v-model="formInline.user" placeholder="请输入11位默认手机号" class="wordStyle" size="large"> <Input type="text" v-model="formInline.user" placeholder="请输入号" class="wordStyle" size="large">
<Icon type="ios-person-outline" slot="prepend" ></Icon> <Icon type="ios-person-outline" slot="prepend" ></Icon>
</Input> </Input>
</FormItem> </FormItem>
<FormItem prop="password"> <FormItem prop="password">
<Input type="password" v-model="formInline.password" placeholder="请输入默认密码" class="wordStyle" @keyup.enter.native='login' size="large"> <Input type="password" v-model="formInline.password" placeholder="请输入密码" class="wordStyle" @keyup.enter.native='login' size="large">
<Icon type="ios-lock-outline" slot="prepend"></Icon> <Icon type="ios-lock-outline" slot="prepend"></Icon>
</Input> </Input>
<span style="color:red;margin-top;5px" v-show="noteconTime==true">{{notecontent}}</span> <span style="color:red;margin-top;5px" v-show="noteconTime==true">{{notecontent}}</span>
......
This diff is collapsed.
This diff is collapsed.
...@@ -137,11 +137,14 @@ export default { ...@@ -137,11 +137,14 @@ export default {
reList:[], reList:[],
downresume:'', downresume:'',
detialID:'', detialID:'',
showBtn:'',
} }
}, },
methods: { methods: {
getDETAIL(){ getDETAIL(){
this.detialID=this.$route.query.id this.detialID=this.$route.query.id
// this.showBtn=this.$router.query.noShowBtn
// console.log(this.showBtn)
let parmars={ let parmars={
resumeId:this.$route.query.id resumeId:this.$route.query.id
} }
......
export function _debounce (fn, delay) {
let timer = null
delay = delay || 200
return function () {
let args = arguments
if (timer) {
clearTimeout(timer)
}
timer = setTimeout(function () {
timer = null
fn.apply(this, args)
}.bind(this), delay)
}
}
export function _throttle (fn, interval) {
let last = null
let timer = null
interval = interval || 200
return function () {
let self = this
let args = arguments
let now = +new Date()
if (last && now - last < interval) {
clearTimeout(timer)
timer = setTimeout(function () {
last = now
fn.apply(self, args)
}, interval)
} else {
last = now
fn.apply(self, args)
}
}
}
\ No newline at end of file
...@@ -10,7 +10,6 @@ CKEDITOR.editorConfig = function( config ) { ...@@ -10,7 +10,6 @@ CKEDITOR.editorConfig = function( config ) {
config.toolbarGroups = [ config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'styles', groups: [ 'styles' ] }, { name: 'styles', groups: [ 'styles' ] },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'forms', groups: [ 'forms' ] }, { name: 'forms', groups: [ 'forms' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] }, { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
...@@ -20,11 +19,12 @@ CKEDITOR.editorConfig = function( config ) { ...@@ -20,11 +19,12 @@ CKEDITOR.editorConfig = function( config ) {
{ name: 'tools', groups: [ 'tools' ] }, { name: 'tools', groups: [ 'tools' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'others', groups: [ 'others' ] }, { name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] } { name: 'about', groups: [ 'about' ] },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
]; ];
config.removeButtons = 'Cut,Copy,Paste,PasteText,PasteFromWord,Source,Save,Templates,NewPage,Preview,Print,About,ShowBlocks,Flash,PageBreak,Iframe,Anchor,SelectAll,BidiLtr,BidiRtl,Language,CreateDiv,Superscript,Subscript,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Find,Replace;Smiley,Smiley,Replace'; config.removeButtons = 'Cut,Copy,Paste,PasteText,PasteFromWord,Save,Templates,NewPage,Preview,Print,About,ShowBlocks,Flash,PageBreak,Iframe,Anchor,SelectAll,BidiLtr,BidiRtl,Language,CreateDiv,Superscript,Subscript,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Find,Replace;Smiley,Smiley,Replace';
config.removeDialogTabs = 'image:advanced;link:advanced'; config.removeDialogTabs = 'image:advanced;link:advanced;flash:advanced;editdiv:advanced; creatediv:advanced;';
config.removePlugins = 'elementspath,resize'; // 移除编辑器底部状态栏显示的元素路径和调整编辑器大小的按钮 config.removePlugins = 'elementspath,resize'; // 移除编辑器底部状态栏显示的元素路径和调整编辑器大小的按钮
config.image_previewText = ' '; // 图片信息面板预览区内容的文字内容,默认显示CKEditor自带的内容 config.image_previewText = ' '; // 图片信息面板预览区内容的文字内容,默认显示CKEditor自带的内容
config.removeDialogTabs = 'image:advanced;image:Link'; // 移除图片上传页面的'高级','链接'页签 config.removeDialogTabs = 'image:advanced;image:Link'; // 移除图片上传页面的'高级','链接'页签
...@@ -32,3 +32,4 @@ CKEDITOR.editorConfig = function( config ) { ...@@ -32,3 +32,4 @@ CKEDITOR.editorConfig = function( config ) {
config.removePlugins = 'image,elementspath,resize';// 移除编辑器底部状态栏显示的元素路径和调整编辑器大小的按钮,基础图片插件 config.removePlugins = 'image,elementspath,resize';// 移除编辑器底部状态栏显示的元素路径和调整编辑器大小的按钮,基础图片插件
}; };
// creatediv:advanced;
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment