save.vue
2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<template xmlns:v-bind="http://www.w3.org/1999/xhtml">
<div class="container-fluid">
<div class="page-header mt-0 mb-0">
<h4>保存词条</h4>
<breadcrumb
v-bind:items="[{text: '首页', link: '/'},{text: '词条管理', link: '/index/store/list'},{text: '保存词条', active: true}]"/>
</div>
<div class="panel panel-white">
<div class="panel-body">
<form method="post" id="j_create">
<div class="form-horizontal">
<div class="form-group">
<div>
<ueditor v-bind:value="model.details" v-bind:input_name="'details'"></ueditor>
</div>
</div>
<!--发布-->
<div class="form-group">
<div class="col-md-3">
<button class="btn btn-primary" type="submit">确认</button>
<router-link to="/index/store/list" class="btn btn-default">取消</router-link>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</template>
<script>
import 'jquery-validation'
import breadcrumb from "@/components/bootstrap/breadcrumb"
import ueditor from '@/components/ueditor'
import '../../../static/js/plugins/ueditor/ueditor.config'
import '../../../static/js/plugins/ueditor/ueditor.all'
import '../../../static/js/plugins/coralueditor/coralueditor'
export default{
data: function () {
return {
model:{
details:''
}
}
},
components: {
breadcrumb: breadcrumb,
ueditor: ueditor
},
mounted: function () {
this.$nextTick(function () {
$(function () {
coralUeditor.init({
ueditorServerUrl:'/api/jsp/controller.jsp',
localSourceUrl:'/manage/web/index.php?r=editor%2Findex',
localCategoryUrl:'/manage/web/index.php?r=editor%2Fcategory',
contentWidth:[],
localSourceBatch:{
url:'/manage/web/index.php?r=editor%2Fbatch-operation',
data:{'_manageCSRF':'v_ZhSAmN9XQpwS3zr1SgKppN3ElC01lQJu7B_otLEHv_SyqCelHwhaO5GkVhSPIB4cCqGeBXDuuVumlk21rN9g=='},
beforeOperationCallback:function (data,type) {
return data;
},
afterOperationCallback:function (res,type, dialog) {
if(res.status){
}else{
}
dialog.close(true);
}
}
},function(config){
});
})
})
},
created: function () {
},
methods: {
}
}
</script>