From 354171d454c82d0835f966060ffb1fb3dab14a78 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Mon, 4 Sep 2023 17:52:04 +0800
Subject: [PATCH] =?UTF-8?q?markdown=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/quill/index.vue | 30 +-
src/setting.js | 2 +-
src/views/customer/AddCustomer.vue | 19 +-
src/views/match/manage/matchInfo.vue | 1231 ++++++++++++++------------
src/views/serve/projectAdd.vue | 12 +-
5 files changed, 706 insertions(+), 588 deletions(-)
diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue
index 33a7a17..3f80027 100644
--- a/src/components/quill/index.vue
+++ b/src/components/quill/index.vue
@@ -2,13 +2,13 @@
- 富文本
- markdown
+ 富文本
+ markdown
-
@@ -26,7 +26,7 @@
{
this.submiting = false
})
@@ -1136,14 +1135,24 @@ export default {
this.form.customerName = ''
},
// 获取学校/客户名称
- getSchoolData () {
+ getSchoolData (schoolId) {
let data = {
schoolName: '',
provinceId: '',
cityId: ''
}
- this.$get(this.api.querySchoolData).then(res => {
- this.schoolList = res.list
+ this.$get(this.api.querySchoolData).then(({ list }) => {
+ this.schoolList = list
+ // 有传schoolId,则需要找到这个学校然后赋值表单
+ if (schoolId) {
+ const item = list.find(e => e.schoolId == schoolId)
+ if (item) {
+ this.form.schoolId = schoolId
+ this.form.provinceId = item.provinceId
+ this.getCityData()
+ this.form.cityId = item.cityId
+ }
+ }
}).catch(res => { });
},
// 查询客户是否存在
diff --git a/src/views/match/manage/matchInfo.vue b/src/views/match/manage/matchInfo.vue
index 6753b31..1510baf 100644
--- a/src/views/match/manage/matchInfo.vue
+++ b/src/views/match/manage/matchInfo.vue
@@ -1,627 +1,714 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
- 团队名称: |
-
-
- |
- 团队邀请码: |
-
-
- |
-
-
-
- {{ editing ? '保存' : '编辑' }}
-
-
-
-
-
- 姓名: |
- {{ info.person.userName }} |
-
-
- 学号: |
- {{ info.person.workNumber }} |
-
-
- 学校: |
- {{ info.person.schoolName }} |
-
-
-
-
-
- 队长: |
- {{ info.caption.userName }}{{ info.caption.schoolName && ',' + info.caption.schoolName }}{{ info.caption.workNumber && ',' + info.caption.workNumber }} |
-
-
- 团队成员: |
-
- {{ item.userName }}
- |
-
-
-
+
+
+
+
+ 团队名称: |
+
+
+ |
+ 团队邀请码: |
+
+
+ |
+
+
+
+ {{ editing ? '保存' : '编辑' }}
+
+
+
+
+
+ 姓名: |
+ {{ info.person.userName }} |
+
+
+ 学号: |
+ {{ info.person.workNumber }} |
+
+
+ 学校: |
+ {{ info.person.schoolName }} |
+
+
+
+
- 指导老师: |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
+ 队长: |
+ {{ info.caption.userName }}{{ info.caption.schoolName && ',' + info.caption.schoolName }}{{ info.caption.workNumber && ',' + info.caption.workNumber }} |
- 竞赛阶段: |
+ 团队成员: |
-
-
- 序号 |
- 赛项阶段名称 |
-
- 参赛人数限制 |
- 允许参赛人员 |
-
- 总分 |
- 竞赛成绩 |
-
-
-
- {{ i + 1 }} |
- {{ item.stageName }} |
-
- {{ item.teamNumLimit || '不限制' }} |
-
-
-
- {{tag.name}}
-
-
- 无
-
- |
-
- {{ info.totalScore }} |
-
- 分数{{item.score}}
- 查看成绩详情
- |
-
-
-
- 暂无数据 |
-
-
-
-
+ {{ item.userName }}
|
-
-
-
- 团队成员
-
-
队长:{{ info.caption.userName }}
-
转让队长
+
+
+
+ 指导老师: |
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- 踢出团队
+ |
+
+
+ 竞赛阶段: |
+
+
+
+ 序号 |
+ 赛项阶段名称 |
+
+ 参赛人数限制 |
+ 允许参赛人员 |
+
+ 总分 |
+ 竞赛成绩 |
+
+
+
+ {{ i + 1 }} |
+ {{ item.stageName }} |
+
+ {{ item.teamNumLimit || '不限制' }} |
+
+
+
+ {{tag.name}}
+
+
+ 无
+
+ |
-
-
-
-
-
-
-
- {{ item.userName }}
-
-
-
-
-
- {{ item.userName }}
-
- 注:当前阶段限制{{ curRow.teamNumLimit }}人参赛,且此竞赛每个成员只能参加一个阶段赛项。
-
-
-
- 团队名称:{{ members[0].teamName }} 阶段名称:{{ curRow.stageName }}
-
-
- 序号 |
- 姓名 |
- 学校 |
- 用时 |
- 分数 |
- 得分详情 |
-
-
-
- {{ i + 1 }} |
- {{ item.userName }} |
- {{ item.schoolName }} |
- {{ item.timeSum }}min |
- {{ item.score }} |
-
- 查看
- |
+ {{ info.totalScore }} |
+
+ 分数{{item.score}}
+ 查看成绩详情
+ |
+
+
+
+ 暂无数据 |
+
+
+
+
+
+
+
+
+ 团队成员
+
+ 队长:{{ info.caption.userName }}
+ 转让队长
+
+
+
+
+
+
+
+
+ 踢出团队
-
- 暂无数据 |
-
- |
-
-
-
+
+
+
+
+
+
+
+ {{ item.userName }}
+
+
+
+
+
+ {{ item.userName }}
+
+ 注:当前阶段限制{{ curRow.teamNumLimit }}人参赛,且此竞赛每个成员只能参加一个阶段赛项。
+
+
+
+ 团队名称:{{ members[0].teamName }} 阶段名称:{{ curRow.stageName }}
+
+
+ 序号 |
+ 姓名 |
+ 学校 |
+ 用时 |
+ 分数 |
+ 得分详情 |
+
+
+
+ {{ i + 1 }} |
+ {{ item.userName }} |
+ {{ item.schoolName }} |
+ {{ item.timeSum }}min |
+ {{ item.score }} |
+
+ 查看
+ |
+
+
+
+ 暂无数据 |
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue
index cca07b6..626df56 100644
--- a/src/views/serve/projectAdd.vue
+++ b/src/views/serve/projectAdd.vue
@@ -70,6 +70,7 @@
@@ -90,6 +91,7 @@
@@ -241,6 +243,7 @@
@@ -337,7 +340,10 @@ export default {
state: 0, // 状态(0、草稿箱 1、已发布)
isOpen: 0, // 是否开启(0开启 1未开启 默认0)
ztOpen: 0, // 是否开启(0开启 1未开启 默认0)
- isDel: 0 // 是否删除(0、未删除 1、已删除 默认0)
+ isDel: 0, // 是否删除(0、未删除 1、已删除 默认0)
+ experimentTargetType: '0',
+ experimentDescriptionType: '0',
+ experimentHintType: '0',
},
projectJudgmentData: [], //实验任务(项目判分点)
oriPer: '', // 原始项目用途,用于保存的时候对比是否有修改该值,如果有,要调另一个接口查询提示
@@ -431,6 +437,9 @@ export default {
this.$get(`${this.api.getProjectDetail}?projectId=${this.projectId}`).then(res => {
let { projectManage, projectJudgmentVos } = res;
if (!projectManage.remark) projectManage.remark = projectManage.projectName // 如果没有备注,则直接显示项目名称
+ if (!projectManage.experimentDescriptionType) projectManage.experimentDescriptionType = '0'
+ if (!projectManage.experimentHintType) projectManage.experimentHintType = '0'
+ if (!projectManage.experimentTargetType) projectManage.experimentTargetType = '0'
this.projectManage = projectManage;
this.projectJudgmentData = projectJudgmentVos;
this.oriPer = projectManage.permissions
@@ -529,6 +538,7 @@ export default {
this.submiting = true
this.$store.dispatch("setSystemId", this.projectManage.systemId);
this.projectManage.state = state;
+ console.log("🚀 ~ file: projectAdd.vue:537 ~ handleSubmit ~ this.projectManage:", this.projectManage)
this.projectManage.ztOpen = state ? 0 : 1
let { systemId } = this.projectManage;
if (this.projectId) {