mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-06 17:36:44 +08:00
fix:新增项目时校验取消选修课数量
This commit is contained in:
@@ -34,6 +34,7 @@ app.config.warnHandler = () => null;
|
||||
// locale: zhCn,
|
||||
// })
|
||||
|
||||
// Cookies.set('token', "eyJ0eXBlIjoidG9rZW4iLCJhbGciOiJIUzI1NiJ9.eyJjb21wYW55Q29kZSI6IkMwMDEiLCJ1SWQiOiI5NjUzNDIwMjc0OTc2MDcxNjgiLCJjb21wYW55SWQiOiIxMDQxNjczOTc3Mzc5OTQ2NDk2IiwibG9naW5JZCI6IjE5MzgwNTQ2NDY2OTAxNzcwMjYiLCJpc3MiOiJodHRwOi8vdS5ib2UuY29tIiwiR2l2ZW5OYW1lIjoiYm9ldSIsImV4cCI6MTc1MDkxMDQwOTc0NiwidXNlck5hbWUiOiLmnY7njonlhrAiLCJ1c2VySWQiOiI2QjA0OUZBRi1DMzE0LTdDQ0YtMEQyOC0wRDIzRjRDNDI1MzEifQ==.7f03d1ce991253197f0e733ba554496e8de715595b169b505bed8831ede565a9", 1)
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
// if (!getCookieForName("token")) {
|
||||
// window.location.href = process.env.VUE_APP_LOGIN_URL + encodeURIComponent(window.location.protocol + process.env.VUE_APP_BOE_API_URL + process.env.VUE_APP_BASE + router.currentRoute.value.fullPath)
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="name">
|
||||
<div v-if="isNewEmployee" class="name">
|
||||
<div class="namebox" style="width: 157px; margin-left: -38px">
|
||||
<img
|
||||
class="nameimg"
|
||||
@@ -251,7 +251,7 @@
|
||||
</a-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
<div class="name">
|
||||
<div v-if="isNewEmployee" class="name">
|
||||
<div class="namebox" style="width: 157px; margin-left: -38px">
|
||||
<img
|
||||
class="nameimg"
|
||||
@@ -548,7 +548,13 @@ export default {
|
||||
pageSize: 10, //每页10条数据
|
||||
totalPages: 0, //总页数
|
||||
viewDetail: null,
|
||||
projectInfo: { id: "", validated: 0, boeFlag: 0 },
|
||||
projectInfo: {
|
||||
id: "",
|
||||
validated: 0,
|
||||
boeFlag: 0,
|
||||
bpmApprovalRequired: 1,
|
||||
allowSelfRegistration: 1,
|
||||
},
|
||||
projectPic: [],
|
||||
memberParam: {
|
||||
pageNo: 1,
|
||||
@@ -615,6 +621,9 @@ export default {
|
||||
getTemplate();
|
||||
state.ptojectType = routers.query.ptojectType;
|
||||
console.log("获取封面图", state.projectPic);
|
||||
if (!state.isNewEmployee) {
|
||||
delete errorMsgs.electiveCourseCount;
|
||||
}
|
||||
});
|
||||
|
||||
// 设置编辑器内容
|
||||
@@ -646,7 +655,7 @@ export default {
|
||||
const handleOnChange = (editor) => {
|
||||
const html = editor.getHtml();
|
||||
const contentLength = calculateWordCount(html);
|
||||
const maxLength = 500; // 最大字数限制
|
||||
const maxLength = 1000; // 最大字数限制
|
||||
if (contentLength > maxLength) {
|
||||
// 截断超出的内容
|
||||
const truncatedHtml = truncateHtmlContent(editor, maxLength);
|
||||
|
||||
Reference in New Issue
Block a user