|
|
@ -7,6 +7,9 @@ import WangEditor from "@/components/WangEditor/index.vue";
|
|
|
|
import { useKnowledgeCentreStoreHooks } from "@/store/modules/knowledgeCentre";
|
|
|
|
import { useKnowledgeCentreStoreHooks } from "@/store/modules/knowledgeCentre";
|
|
|
|
import { message } from "@/utils/message";
|
|
|
|
import { message } from "@/utils/message";
|
|
|
|
import { getUserInfo, getToken } from "@/utils/auth";
|
|
|
|
import { getUserInfo, getToken } from "@/utils/auth";
|
|
|
|
|
|
|
|
import backImg from "@/assets/home/back.png";
|
|
|
|
|
|
|
|
import { useRouter } from "vue-router";
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
const ruleFormRef = ref();
|
|
|
|
const ruleFormRef = ref();
|
|
|
|
const formData = reactive({
|
|
|
|
const formData = reactive({
|
|
|
|
operate: "",
|
|
|
|
operate: "",
|
|
|
@ -186,6 +189,9 @@ const reset = () => {
|
|
|
|
refWangEditor.value.initText("");
|
|
|
|
refWangEditor.value.initText("");
|
|
|
|
refWangEditor.value.initTitle("");
|
|
|
|
refWangEditor.value.initTitle("");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const goBack = () => {
|
|
|
|
|
|
|
|
router.push("/knowledgeCentre/submission");
|
|
|
|
|
|
|
|
};
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
const obj: any = getUserInfo();
|
|
|
|
const obj: any = getUserInfo();
|
|
|
|
userInfo = JSON.parse(obj);
|
|
|
|
userInfo = JSON.parse(obj);
|
|
|
@ -225,7 +231,7 @@ onMounted(() => {
|
|
|
|
<div class="Editortext">
|
|
|
|
<div class="Editortext">
|
|
|
|
<WangEditor ref="refWangEditor" />
|
|
|
|
<WangEditor ref="refWangEditor" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="main-card">
|
|
|
|
<div class="main-card" style="padding-bottom: 0">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-form-item label="摘要" prop="excerpt">
|
|
|
|
<el-form-item label="摘要" prop="excerpt">
|
|
|
@ -291,7 +297,7 @@ onMounted(() => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="main-card">
|
|
|
|
<div class="main-card" style="padding-bottom: 0">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-form-item label="发文部门" prop="publishDeptId">
|
|
|
|
<el-form-item label="发文部门" prop="publishDeptId">
|
|
|
@ -425,6 +431,10 @@ onMounted(() => {
|
|
|
|
</el-scrollbar>
|
|
|
|
</el-scrollbar>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="footer-content">
|
|
|
|
<div class="footer-content">
|
|
|
|
|
|
|
|
<div class="back" @click="goBack">
|
|
|
|
|
|
|
|
<img :src="backImg" alt="" />
|
|
|
|
|
|
|
|
<span>返回正文</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
@click="save(2, ruleFormRef)"
|
|
|
|
@click="save(2, ruleFormRef)"
|
|
|
|
size="large"
|
|
|
|
size="large"
|
|
|
@ -512,6 +522,7 @@ onMounted(() => {
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
padding: 24px;
|
|
|
|
padding: 24px;
|
|
|
|
margin-top: 16px;
|
|
|
|
margin-top: 16px;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
.normal_btn {
|
|
|
|
.normal_btn {
|
|
|
|
width: 150px;
|
|
|
|
width: 150px;
|
|
|
|
height: 50px;
|
|
|
|
height: 50px;
|
|
|
@ -530,6 +541,20 @@ onMounted(() => {
|
|
|
|
color: #999999;
|
|
|
|
color: #999999;
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.back {
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
left: 80px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
color: #999999;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
|
|
|
width: 50px;
|
|
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.Editortext {
|
|
|
|
.Editortext {
|
|
|
|
background: #ffffff;
|
|
|
|
background: #ffffff;
|
|
|
|