|
@@ -2,8 +2,8 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="main-div" style="height: 100%">
|
|
<div class="main-div" style="height: 100%">
|
|
|
<div class="notice-page">
|
|
<div class="notice-page">
|
|
|
- <!--知识库内容-->
|
|
|
|
|
- <div v-html="agcontent" class="notice-content"/>
|
|
|
|
|
|
|
+ <!--协议内容-->
|
|
|
|
|
+ <div v-html="agcontent" class="ql-editor" style="padding: 0 20%"/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -11,6 +11,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
|
|
import {indexMixin} from '@/mixins'
|
|
import {indexMixin} from '@/mixins'
|
|
|
|
|
+import "quill/dist/quill.core.css"
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'knowledge-view',
|
|
name: 'knowledge-view',
|
|
@@ -23,11 +24,9 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- // const vConsole = new VConsole();
|
|
|
|
|
console.log('this.$route.query', this.$route.query)
|
|
console.log('this.$route.query', this.$route.query)
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
- let id = this.$route.query.agId
|
|
|
|
|
- this.excuteNoParam(this.$service.agreementService, this.$service.agreementService.selectById, [id],false).then(res => {
|
|
|
|
|
|
|
+ this.excuteNoParam(this.$service.agreementService, this.$service.agreementService.selectById, [this.$route.query.agId],false).then(res => {
|
|
|
// 通过id查询
|
|
// 通过id查询
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
this.agcontent = res.data.agContent
|
|
this.agcontent = res.data.agContent
|
|
@@ -49,8 +48,4 @@ export default {
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.notice-content{
|
|
|
|
|
- padding: 0 20%;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
</style>
|
|
</style>
|