|
@@ -14,9 +14,14 @@
|
|
|
<p>会议场所:{{ info.siteName.name }}</p>
|
|
|
<p>参会人员:{{ info.participants.name }}</p>
|
|
|
<p>附 件:<span style="color: #6892ff">活动申请书</span></p>
|
|
|
- <p>会议议题:{{ info.meetingTopics }}</p>
|
|
|
+ <!-- <p>会议议题:{{ info.meetingTopics }}</p> -->
|
|
|
+ <p>会议议题:</p>
|
|
|
+ <wang-editor
|
|
|
+ ref="subjectContentEditor"
|
|
|
+ v-model="info.meetingTopics"
|
|
|
+ />
|
|
|
</div>
|
|
|
- <van-button v-if="canAudit" type="primary" class="btn-sub">审核</van-button>
|
|
|
+ <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -25,14 +30,20 @@
|
|
|
import religiousConferenceService from "@/api/religiousConference/religiousConferenceService";
|
|
|
import UserManage from "@/api/user/UserManage";
|
|
|
import { useRoute } from "vue-router";
|
|
|
+ // 富文本编辑器
|
|
|
+ import WangEditor from "@/components/editor/WangEditor";
|
|
|
export default {
|
|
|
+ components: { WangEditor },
|
|
|
setup() {
|
|
|
- window.xm.setNavigationBarTitle({ title: '负责人会议详情'})
|
|
|
+ //window.xm.setNavigationBarTitle({ title: '负责人会议详情'})
|
|
|
let isLoading = ref(true);
|
|
|
let canAudit = ref(false);
|
|
|
// 活动信息
|
|
|
- const info = ref({
|
|
|
+ const info = ref({
|
|
|
+ meetingTopics:"",
|
|
|
});
|
|
|
+ // 富文本
|
|
|
+ let subjectContentEditor = ref(null);
|
|
|
let route = useRoute();
|
|
|
new religiousConferenceService().queryById(route.query.id).then((data) => {
|
|
|
info.value = data;
|
|
@@ -41,13 +52,30 @@
|
|
|
}else{
|
|
|
canAudit.value = false;
|
|
|
}
|
|
|
-
|
|
|
+ console.log(info.value.meetingTopics);
|
|
|
+ //这边报错
|
|
|
+ //subjectContentEditor.value.init(info.value.meetingTopics);
|
|
|
isLoading.value = false;
|
|
|
});
|
|
|
+ // 审核通过
|
|
|
+ const update = () => {
|
|
|
+ isLoading.value = true;
|
|
|
+ info.value.assessment = 1;
|
|
|
+ new religiousConferenceService().save(info.value).then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ isLoading.value = false;
|
|
|
+ window.xm.showToast({
|
|
|
+ message:"审核成功!"
|
|
|
+ })
|
|
|
+ history.back();
|
|
|
+ });
|
|
|
+ };
|
|
|
return {
|
|
|
info,
|
|
|
isLoading,
|
|
|
canAudit,
|
|
|
+ update,
|
|
|
+ subjectContentEditor,
|
|
|
};
|
|
|
},
|
|
|
};
|
|
@@ -95,4 +123,9 @@
|
|
|
text-align: center;
|
|
|
margin-top: 80px;
|
|
|
}
|
|
|
+ #editor {
|
|
|
+ width: 100%;
|
|
|
+ height: 150px;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
</style>
|