diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index b2c9554..f211f49 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -1,63 +1,105 @@ \ No newline at end of file diff --git a/src/views/match/manage/matchRank.vue b/src/views/match/manage/matchRank.vue index e202a41..43b470d 100644 --- a/src/views/match/manage/matchRank.vue +++ b/src/views/match/manage/matchRank.vue @@ -618,11 +618,11 @@ export default { } else { try { // 取消定时发布的接口跟取消普通发布的接口不一样 - if (this.timeId) { - await this.$post(`${this.api.cancelCompetitionStageRankingTime}?releaseId=${this.timeId}`) - } else { - await this.$post(`${this.api.cancelRanking}?competitionId=${this.id}&isOverallRanking=${this.active ? 0 : 1}&${this.active ? 'stageIds=' + this.active : query.join('&')}`) - } + // if (this.timeId) { + await this.$post(`${this.api.cancelCompetitionStageRankingTime}?competitionId=${this.id}&releaseId=${this.timeId}&isOverallRanking=${this.active ? 0 : 1}&stageId=${this.active || this.stageId}`) + // } else { + await this.$post(`${this.api.cancelRanking}?competitionId=${this.id}&isOverallRanking=${this.active ? 0 : 1}&${this.active ? 'stageIds=' + this.active : query.join('&')}`) + // } this.sourceType = '' this.type = 0 this.getData() diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index 26d8b7b..23895b0 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -2858,6 +2858,7 @@ export default { }, // 发货信息弹框提交 submitShip () { + if (this.shipContent.length > 300) return this.$message.error('请填写300个字以内!') this.curRow.shipContent = this.shipContent this.shipVisible = false }, diff --git a/src/views/serve/addModel.vue b/src/views/serve/addModel.vue index c73f306..48fac84 100644 --- a/src/views/serve/addModel.vue +++ b/src/views/serve/addModel.vue @@ -61,9 +61,9 @@ export default { components: { codemirror }, data () { return { - categoryId: Number(this.$route.query.categoryId), - id: Number(this.$route.query.id), - postStatus: Number(this.$route.query.postStatus), + categoryId: +this.$route.query.categoryId, + id: +this.$route.query.id, + postStatus: +this.$route.query.postStatus, isSchool: this.$route.query.isSchool == 1 ? true : false, // 是否院校创建 isDetail: Boolean(this.$route.query.show), // 是否是查看 isModel: Boolean(this.$route.query.model), // 是否是从模型列表进来的,模型和源模型查询详情的接口不一样 @@ -107,19 +107,21 @@ export default { modelDemo } this.handleId(this.categoryList, categoryId) + console.log("🚀 ~ file: addModel.vue:112 ~ getData ~ codeKey:", this.categoryIdCus) this.codeKey++ }, // 处理id handleId (list, id, parentId = []) { - list.map(e => { + for (const e of list) { // 取得父级id跟子级id的集合 if (id === e.id) { - parentId.shift() // 全部的id要去掉 + // parentId.shift() // 全部的id要去掉 this.categoryIdCus = [...parentId, e.id] + break } else { e.children && this.handleId(e.children, id, [...parentId, e.id]) } - }) + } }, // 获取分类 getType () { @@ -140,7 +142,7 @@ export default { if (this.id) { this.getData() } else { - this.handleId(data, this.categoryId) + this.handleId(data[0].children, this.categoryId) } }).catch(res => { }) }, diff --git a/src/views/serve/backstage/index.vue b/src/views/serve/backstage/index.vue index faef260..7f550f3 100644 --- a/src/views/serve/backstage/index.vue +++ b/src/views/serve/backstage/index.vue @@ -1,57 +1,65 @@ diff --git a/src/views/serve/backstage/modelType.vue b/src/views/serve/backstage/modelType.vue index 6a7e689..083522a 100644 --- a/src/views/serve/backstage/modelType.vue +++ b/src/views/serve/backstage/modelType.vue @@ -10,7 +10,8 @@ 同步原始模型列表 - 添加
- +
+ 内置模型 +
+
+ 院校创建 +
+ + + + -
院校创建
+
全部
{ this.orgList = data - this.$parent.categories = data + if (data.length) this.$parent.categories = data[0].children data.length && this.$nextTick(() => { const { categoryId, school } = this.$route.query - if (school == 1) { - this.schoolActive = +school - } else { + if (school == 0) { this.$refs.tree.setCurrentKey(categoryId || data[0].id) } this.$router.push({ @@ -107,9 +118,20 @@ export default { }) }).catch(res => { }) }, + // 分类类型选择回调 + changeModelType (val) { + this.$router.push({ + path: 'backstage', + query: { + ...this.$route.query, + categoryId: '', + school: val + } + }).catch(err => { }) + this.$emit('initData', val) + }, // 分类点击回调 getSingle () { - this.schoolActive = false this.$router.push({ path: 'backstage', query: { @@ -123,7 +145,6 @@ export default { // 院校创建点击回调 schoolClick () { this.$refs.tree.setCurrentKey(null) - this.schoolActive = true this.$router.push({ path: 'backstage', query: {