Parcourir la source

修改校区特色

11wqe1 il y a 3 semaines
Parent
commit
b132354f2a

+ 3 - 0
src/assets/kanban/djj.svg

@@ -0,0 +1,3 @@
+<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M5.79406 0H8.23366V5.76634H14V8.20594H8.23366V14H5.79406V8.20594H0V5.76634H5.79406V0Z" fill="#0663FE"/>
+</svg>

+ 11 - 0
src/assets/kanban/lj.svg

@@ -0,0 +1,11 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_1533_2388)">
+<path d="M7 7H6C5.46957 7 4.96086 7.21071 4.58579 7.58579C4.21071 7.96086 4 8.46957 4 9V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H15C15.5304 20 16.0391 19.7893 16.4142 19.4142C16.7893 19.0391 17 18.5304 17 18V17" stroke="#3681FC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+<path d="M16 5.00011L19 8.00011M20.385 6.58511C20.7788 6.19126 21.0001 5.65709 21.0001 5.10011C21.0001 4.54312 20.7788 4.00895 20.385 3.61511C19.9912 3.22126 19.457 3 18.9 3C18.343 3 17.8088 3.22126 17.415 3.61511L9 12.0001V15.0001H12L20.385 6.58511Z" stroke="#3681FC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+</g>
+<defs>
+<clipPath id="clip0_1533_2388">
+<rect width="24" height="24" fill="white"/>
+</clipPath>
+</defs>
+</svg>

+ 68 - 40
src/views/kanBan/components/AschoolFeature.vue

@@ -65,7 +65,15 @@
 							v-for="(i, index) in CampusF.GroupImgList"
 							:key="index"
 						>
-							<img
+
+						<el-image 
+							style="width: 100%;
+								object-fit: contain;
+								border-radius: 10px;"
+							:src="i" 
+							:preview-src-list="CampusF.GroupImgList">
+						</el-image>
+							<!-- <img
 								style="
 									width: 100%;
 									height: 100%;
@@ -74,7 +82,7 @@
 								"
 								:src="i"
 								alt=""
-							/>
+							/> -->
 						</el-carousel-item>
 					</el-carousel>
 				</div>
@@ -237,7 +245,7 @@
 
                 <div>
                     <div style="display: flex;justify-content: space-between;gap: 30px;">
-                        <div class="diaFea" style="height: 122px;width: 30%;min-width: 200px;max-width: 300px;">
+                        <div class="diaFea" @click="openNewWindow(item)" style="height: 122px;width: 30%;min-width: 200px;max-width: 300px;cursor: pointer;">
                             <img v-if="editIndex == index" style="border:1px #0663fe solid;padding: 3px;box-sizing: border-box;" class="diaFeaImgT" @click="uploadisBtn(3,index)" :src="item.setIcon ? item.setIcon : item.json.icon" alt="">
                             <img v-else class="diaFeaImgT"  :src="item.setIcon ? item.setIcon : item.json.icon" alt="">
                             
@@ -277,13 +285,13 @@
                         style="padding: 0"
                         v-if="editIndex == index"
                     >
-                        <span @click="feaClo(index)">取消</span>
+                        <span style="color: #000;" @click="feaClo(index)">取消</span>
                         <span
                             style="
                                 background: #fff;
-                                border: 1px #0663fe solid;
-                                color: #0663fe;
                             "
+							:style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
+							color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
                             @click="setJsonL(index)"
                             >保存</span
                         >
@@ -291,7 +299,7 @@
                 </div>
             </div>
            <div class="FedialogJIa" style="display: flex;" @click="lookMore()">
-                <div style="width: 100%;">
+                <div style="width: 100%;border: 1px #000 dashed;cursor: pointer;">
                     <img src="../../../assets/kanban/jia.svg" alt="" />
                 </div>
             </div>
@@ -363,6 +371,7 @@
 					>
 						<div
 							class="diaFea"
+							:style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
 							v-for="(i, index) in CampusF.feature"
 							:key="index + 'b'"
 						>
@@ -370,7 +379,7 @@
 								<el-input
 									v-if="editIndex == index"
 									resize="none"
-									style="border-radius: 10px"
+									style="border-radius: 10px;"
 									placeholder="请输入内容"
 									v-model="i.name"
 								>
@@ -387,7 +396,7 @@
 									<img
 										@click="editFea(index)"
 										class="topTitEdit"
-										:src="editIndex == index ? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/feaB.svg')"
+										:src="editIndex == index ? editBtnType == 1? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/lj.svg') : require('../../../assets/kanban/feaB.svg')"
 										alt=""
 									/>
 									<img
@@ -399,12 +408,11 @@
 								</div>
 							</div>
 							<div>
-								<i
-									v-if="!i.icon"
-									style="height: 30px; width: 30px"
-									@click="uploadisBtn(isBtn, index)"
-									class="el-icon-picture-outline"
-								></i>
+								<div v-if="!i.icon"
+								class="djjC"
+								@click="uploadisBtn(isBtn, index)">
+									<img src="../../../assets/kanban/djj.svg" alt="">
+								</div>
 								<img
 									style="cursor: pointer"
 									v-else-if="editIndex == index"
@@ -419,7 +427,8 @@
 								<el-input
 									:disabled="editIndex != index"
 									resize="none"
-									style="border-radius: 10px"
+									:style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
+									style="border-radius: 10px;overflow: hidden;"
 									type="textarea"
 									:rows="4"
 									placeholder="请输入内容"
@@ -431,13 +440,13 @@
 									style="padding: 0"
 									v-if="editIndex == index"
 								>
-									<span @click="feaClo(index)">取消</span>
+									<span style="color: #000;" @click="feaClo(index)">取消</span>
 									<span
 										style="
 											background: #fff;
-											border: 1px #0663fe solid;
-											color: #0663fe;
 										"
+										:style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
+										color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
 										@click="setJsonL(0)"
 										>保存</span
 									>
@@ -451,7 +460,7 @@
 						style="display: flex; flex-direction: column; gap: 10px"
 						v-if="isBtn === 2"
 					>
-                        <div class="diaFea">
+                        <div class="diaFea" :style="{border: editIndex == 'bri' ? '1px dashed #3681FC' :''}">
 							<div style="display: flex; justify-content: space-between">
                                 <div></div>
 								<div
@@ -464,7 +473,7 @@
 									<img
 										@click="editFea('bri')"
 										class="topTitEdit"
-										:src="editIndex == 'bri' ? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/feaB.svg')"
+										:src="editIndex == 'bri' ? editBtnType == 1  ? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/lj.svg') : require('../../../assets/kanban/feaB.svg')"
 										alt=""
 									/>
 								</div>
@@ -473,9 +482,10 @@
 								<el-input
 									:disabled="editIndex != 'bri'"
 									resize="none"
-									style="border-radius: 10px"
+									style="border-radius: 10px;overflow: hidden;"
 									type="textarea"
 									:rows="4"
+									:style="{border: editIndex == 'bri' ? '1px dashed #3681FC' :''}"
 									placeholder="请输入内容"
 									v-model="CampusF.teacherN.teaBri"
 								>
@@ -485,13 +495,13 @@
 									style="padding: 0"
 									v-if="editIndex == 'bri'"
 								>
-									<span @click="feaClo()">取消</span>
+									<span style="color: #000;" @click="feaClo()">取消</span>
 									<span
 										style="
 											background: #fff;
-											border: 1px #0663fe solid;
-											color: #0663fe;
 										"
+										:style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
+										color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
 										@click="setJsonL(0)"
 										>保存</span
 									>
@@ -500,6 +510,7 @@
 						</div>
 						<div
 							class="diaFea"
+							:style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
 							v-for="(i, index) in CampusF.teacherN.list"
 							:key="index + 'b'"
 						>
@@ -524,7 +535,7 @@
 									<img
 										@click="editFea(index)"
 										class="topTitEdit"
-										:src="editIndex == index ? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/feaB.svg')"
+										:src="editIndex == index ? editBtnType == 1? require('../../../assets/kanban/bz.svg') : require('../../../assets/kanban/lj.svg') : require('../../../assets/kanban/feaB.svg')"
 										alt=""
 									/>
 									<img
@@ -539,7 +550,8 @@
 								<el-input
 									:disabled="editIndex != index"
 									resize="none"
-									style="border-radius: 10px"
+									:style="{border: editIndex == index ? '1px dashed #3681FC' :''}"
+									style="border-radius: 10px;overflow: hidden;"
 									type="textarea"
 									:rows="4"
 									placeholder="请输入内容"
@@ -551,13 +563,13 @@
 									style="padding: 0"
 									v-if="editIndex == index"
 								>
-									<span @click="feaClo(index)">取消</span>
+									<span style="color: #000;" @click="feaClo(index)">取消</span>
 									<span
 										style="
 											background: #fff;
-											border: 1px #0663fe solid;
-											color: #0663fe;
 										"
+										:style="{border: editBtnType==1 ? '1px #9747FF solid':'1px #0663fe solid',
+										color: editBtnType==1 ? '#9747FF' : '#0663fe'}"
 										@click="setJsonL(0)"
 										>保存</span
 									>
@@ -569,6 +581,7 @@
 				</div>
 				<div
 					v-if="isBtn === 1 || isBtn === 2"
+					@click="additem()"
 					style="
 						display: flex;
 						align-items: center;
@@ -578,10 +591,10 @@
 					"
 				>
 					<img src="../../../assets/kanban/feaJ.svg" alt="" />
-					<span @click="additem()" style="color: #0560fd">添加</span>
+					<span style="color: #0560fd">添加</span>
 				</div>
-				<div class="diaBtn">
-					<span @click="handleClose">取 消</span>
+				<div class="diaBtn" style="padding-bottom: 10px !important;">
+					<span style="color: #000;" @click="handleClose"> {{isBtn === 0?'返 回':'取 消' }}</span>
 					<span
 						type="primary"
 						style="background: #0663fe; color: #fff"
@@ -621,7 +634,7 @@
                     </div>
                 </div>
             </div>
-            <div class="diaBtn" style="height: 5%;">
+            <div class="diaBtn" style="height: 5%;padding-bottom: 10px;">
                 <span @click="dialogVisible = false">取 消</span>
                 <span
                     type="primary"
@@ -656,6 +669,8 @@ export default {
 		return {
             dialogVisible:false,
 
+			// 0默认颜色 1编辑 2添加
+			editBtnType:0,
 			// 添加与编辑弹框显示
 			editVisible: false,
             // app应用列表 
@@ -753,6 +768,7 @@ export default {
         },
         // 添加数据
 		additem() {
+			this.editBtnType = 2
 			if (this.isBtn == 1) {
 				this.CampusF.feature.push({ bri: "", icon: "", name: "" });
 				this.editIndex = this.CampusF.feature.length - 1;
@@ -787,6 +803,7 @@ export default {
 		},
 		// 编辑弹框数据条中的图片
 		editFea(ind) {
+			this.editBtnType = 1
 			this.CampusF = JSON.parse(JSON.stringify(this.Alldata.admin.CampusF));
 			this.editIndex = ind;
 		},
@@ -889,6 +906,7 @@ export default {
 		},
 		// 办学特色取消
 		feaClo(ind) {
+			this.editBtnType = 0
 			this.editIndex = null;
 
             let data = JSON.parse(
@@ -993,7 +1011,7 @@ export default {
 				.then(async (res) => {
 					let _data = res.data;
 					if (_data == 1) {
-						this.$message.success("修改权限成功");
+						this.$message.success("修改成功");
 
 						this.getSchFacility();
 
@@ -1589,11 +1607,11 @@ export default {
 	display: flex;
 	justify-content: flex-end;
 	gap: 10px;
-	height: 40px;
+	/* height: 40px; */
 	align-items: center;
-	padding: 0 20px;
+	padding: 10px 20px 0 !important;
 	box-sizing: border-box;
-	min-height: 60px;
+	/* min-height: 60px; */
 }
 .diaBtn > span {
 	background: #e7e7e7;
@@ -1630,6 +1648,7 @@ export default {
 }
 .imgBoc {
 	position: relative;
+	border: none !important;
 }
 .imgBoc > .el-icon-circle-close {
 	position: absolute;
@@ -1661,8 +1680,8 @@ export default {
 }
 
 .diaFeaImg {
-	height: 30px;
-	width: 30px;
+	height: 40px;
+	width: 40px;
 	object-fit: contain;
 	border-radius: 5px;
 	border: 1px solid #0663fe;
@@ -1738,4 +1757,13 @@ export default {
     overflow: hidden;
     text-overflow: ellipsis;
 }
+.djjC{
+	display: flex;align-items: center;justify-content: center;
+	width: 40px;
+	height: 40px;
+	border-radius: 8px;
+	border-width: 1px;
+	cursor: pointer;
+	border: 1px dashed #3681FC;
+}
 </style>