补录不能修改限时/不限时

des
吕天方 7 months ago
parent e5e3296569
commit 68a951184d

@ -5,8 +5,8 @@ VUE_APP_TITLE = 金鸡湖现代服务业品牌管理系统
ENV = 'development'
# 金鸡湖现代服务业品牌管理系统/开发环境
# VUE_APP_BASE_API = 'http://192.168.0.108:9040'
VUE_APP_BASE_API = 'http://39.101.188.84:9040'
VUE_APP_BASE_API = 'http://192.168.0.105:9040'
# VUE_APP_BASE_API = 'http://39.101.188.84:9040'
# VUE_APP_BASE_API = 'https://idp.sipac.gov.cn/api'
# 路由懒加载

@ -1,6 +1,6 @@
{
"name": "ruoyi",
"version": "1.0.202406250959",
"version": "1.0.202406261414",
"description": "金鸡湖现代服务业品牌管理系统",
"author": "若依",
"license": "MIT",
@ -37,6 +37,8 @@
},
"dependencies": {
"@riophae/vue-treeselect": "0.4.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^1.0.2",
"autofit.js": "^3.1.0",
"axios": "0.24.0",
"clipboard": "2.0.8",

@ -0,0 +1,113 @@
<template>
<div style="border: 1px solid #ccc;">
<Toolbar
ref="editor"
style="border-bottom: 1px solid #ccc"
:editor="editor"
:defaultConfig="toolbarConfig"
:mode="mode"
/>
<Editor
style="height: 500px; overflow-y: hidden;"
v-loading="Loading"
v-model="html"
:defaultConfig="editorConfig"
:mode="mode"
@onCreated="onCreated"
@onChange="onChange"
/>
</div>
</template>
<script>
import "@wangeditor/editor/dist/css/style.css"
import { DomEditor } from '@wangeditor/editor'
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
import { getToken } from "@/utils/auth";
export default {
components: { Editor, Toolbar },
data() {
return {
editor: null,
html: '',
Loading: false,
toolbarConfig: {
excludeKeys: [
'group-video',
'insertImage',
'emotion',
],
},
editorConfig: {
placeholder: '请输入内容...',
MENU_CONF: {
uploadImage:{
//
server: process.env.VUE_APP_BASE_API + '/common/upload',
fieldName: "file",
headers: {
Authorization: "Bearer " + getToken()
},
customInsert(res,insertFn){
// console.log(res);
// console.log(insertFn);
insertFn(res.url,res.originalFilename,res.url)
// console.log("=======customInsert=======");
},
onBeforeUpload(file){
console.log(this.Loading);
// console.log("=======onBeforeUpload=======");
},
// onSuccess(file,res){
// console.log('onSuccessFile',file);
// console.log('onSuccessRes',res);
// console.log("=======onSuccess=======");
// },
}
},
},
mode: 'default', // or 'simple'
}
},
props: {
/* 编辑器的内容 */
value: {
type: String,
default: "",
},
},
watch: {
value: {
handler(val) {
this.html = val
},
immediate: true,
},
},
methods:{
onCreated(editor) {
this.editor = Object.seal(editor) // Object.seal()
this.$nextTick(()=>{
const toolbar = DomEditor.getToolbar(editor)
const curToolbarConfig = toolbar.getConfig()
// console.log( curToolbarConfig.toolbarKeys ) //
})
},
onChange(editor){
let html = editor.getHtml();
// console.log("html", html);
this.$emit('input',html);
// console.log('content', editor.children)
},
destroy() {
const editor = this.editor
if (editor == null) return
editor.destroy() //
},
},
mounted() {
},
}
</script>
<style lang="scss" scoped>
</style>

@ -192,7 +192,7 @@
</el-col>
<el-col :span="24">
<el-form-item label="是否限时" prop="isTime">
<el-radio-group v-model="form.isTime">
<el-radio-group v-model="form.isTime" :disabled="isReplace">
<el-radio :label="0">限时</el-radio>
<el-radio :label="1">不限时</el-radio>
</el-radio-group>

@ -143,7 +143,7 @@
<el-row>
<el-col :span="24">
<el-form-item label="发文内容:" class="importFormItem" prop="enterContent">
<Editor :height="200" v-model="addFrom.enterContent"></Editor>
<myEditor v-if="openEditor" :height="200" v-model="addFrom.enterContent"></myEditor>
</el-form-item>
</el-col>
</el-row>
@ -179,9 +179,10 @@
<script>
import myPagination from "@/views/components/Pagination/index.vue"
import myDialog from "@/views/components/myDialog/index.vue"
import myEditor from "@/views/components/myEditor/index.vue"
import { getJPolicyFile, jPolicyFileNew, jPolicyFileChange, jPolicyFileId, jPolicyFileDel } from "@/api/jin_ji_hu/policyDocument"
export default {
components:{myPagination, myDialog},
components:{myPagination, myDialog, myEditor},
dicts: ['jjh_project_type', 'bms_level'],
data() {
return {
@ -198,17 +199,7 @@ export default {
enterUnit:"",
policyLevel:"",
},
tableData:[
{
projectName:"苏财建[2021]101号 关于下达2021年江苏省级现代服务业发展 专项资金(现代服务业项目)的通知",
project:"全方位生物大分子药定制研发生产CDMO服务平台",
unit:"苏财政",
grade:"市级",
issueTime:"2023-03-19",
user:"张珊",
uploadingTime:"2023-05-11 14:00",
}
],
tableData:[],
tabHeader: undefined,
addFrom: {
name:"",
@ -236,6 +227,7 @@ export default {
},
title:"新增发文",
infoVisible:false,
openEditor:false,
}
},
mounted() {
@ -290,14 +282,16 @@ export default {
}
return '';
},
//
//
importBtn(){
this.title = "新增发文";
this.$refs.importProject.open();
this.openEditor = true;
},
//
importClose(){
this.$nextTick(()=>{
this.openEditor = false;
this.$refs.importFrom.resetFields();
this.$refs.importProject.close();
this.addFrom = {
@ -328,6 +322,7 @@ export default {
this.title = "修改发文"
jPolicyFileId(row.id).then((res)=>{
if(res.code == 200) {
this.openEditor = true;
this.addFrom = res.data;
this.addFrom.joinProject = this.addFrom.joinProject + ''
this.$refs.importProject.open();

Loading…
Cancel
Save