11wqe1 2 kuukautta sitten
vanhempi
commit
6f95fc2caa
1 muutettua tiedostoa jossa 78 lisäystä ja 12 poistoa
  1. 78 12
      src/components/dialog/permissionSettingDialog.vue

+ 78 - 12
src/components/dialog/permissionSettingDialog.vue

@@ -1347,6 +1347,32 @@
 										>
 											修改
 										</button>
+										<button
+											v-if="form.admin.CampusF.feature.length > 1"
+											@click="delFe(scope.$index,0)"
+											style="
+												color: red;
+												background: none;
+												border: none;
+												cursor: pointer;
+												margin-left: 25px;
+											"
+										>
+											删除
+										</button>
+										<button
+											v-if="scope.$index == form.admin.CampusF.feature.length - 1"
+											@click="addCon(0)"
+											style="
+												color: #308fff;
+												background: none;
+												border: none;
+												cursor: pointer;
+												margin-left: 25px;
+											"
+										>
+											添加
+										</button>
 									</template>
 								</el-table-column>
 							</el-table>
@@ -1407,6 +1433,32 @@
 										>
 											修改
 										</button>
+										<button
+											v-if="form.admin.CampusF.teacherN.list.length > 1"
+											@click="delFe(scope.$index,1)"
+											style="
+												color: red;
+												background: none;
+												border: none;
+												cursor: pointer;
+												margin-left: 25px;
+											"
+										>
+											删除
+										</button>
+										<button
+											v-if="scope.$index == form.admin.CampusF.teacherN.list.length - 1"
+											@click="addCon(1)"
+											style="
+												color: #308fff;
+												background: none;
+												border: none;
+												cursor: pointer;
+												margin-left: 25px;
+											"
+										>
+											添加
+										</button>
 									</template>
 								</el-table-column>
 							</el-table>
@@ -1576,9 +1628,32 @@ export default {
 					},
 				},
 			},
+
 		};
 	},
 	methods: {
+		delFe(index,type){
+			if (type == 0) {
+                this.form.admin.CampusF.feature.splice(index,1)
+            }else{
+                this.form.admin.CampusF.teacherN.list.splice(index,1)
+            }
+		},
+		addCon(type){
+			
+			if (type == 0) {
+				
+				this.CampusNum = this.form.admin.CampusF.feature.length
+				this.CampusType = type
+				this.$refs.addCampusDialogRef.open({bri:'',icon:'',name:''}, type);
+			}else{
+				
+				this.CampusNum = this.form.admin.CampusF.teacherN.list.length
+				this.CampusType = type
+				this.$refs.addCampusDialogRef.open({bri:'',name:''}, type);
+			}
+			
+		},
 		// 修改 0办学特色 1师资力量
 		editRunS(index,val,type){
 			this.CampusData = val
@@ -1609,21 +1684,12 @@ export default {
 						GroupBri:'',
 						feature:[
 							{icon:'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/tese1745913146000.svg',
-							name:'智能教育',bri:'引入AI技术,打造智能化学习环境,提供个性化教学服务。'},
-							{icon:'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/tese1745913146000.svg',
-							name:'小班教学',bri:'采用小班制教学模式,确保每个学生都能得到充分关注。'},
-							{icon:'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/tese1745913146000.svg',
-							name:'国际视野',bri:'开展国际交流项目,培养学生国际化视野和跨文化交际能力'},
-							{icon:'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/tese1745913146000.svg',
-							name:'艺术教育',bri:'引入AI技术,打造智能化学习环境,提供个性化教学服务。'}
+							name:'默认标题',bri:'暂无简介'},
 						],
 						teacherN:{
 							teaBri:'',
 							list: [
-								{name:'专职教师',bri:'120+'},
-								{name:'硕士及以上',bri:'90%'},
-								{name:'市级奖项',bri:'30+'},
-								{name:'特级教师',bri:'15+'},
+								{name:'默认标题',bri:'暂无简介'}
 							],
 						},
 						appList: [],
@@ -2395,7 +2461,7 @@ export default {
 				_max = 4;
 			} else if (this.tagType == "admin-feature") {
 				_list = this.form.admin.CampusF.appList ? this.form.admin.CampusF.appList : [];
-				_max = 3;
+				_max = 8;
 			}
 			this.$refs.selectAppDialogRef.open({
 				select: _list,