Bläddra i källkod

去掉多余的console

qzyReal 2 år sedan
förälder
incheckning
64d8ecb87f
7 ändrade filer med 8 tillägg och 22 borttagningar
  1. 1 1
      index.html
  2. 3 3
      login.html
  3. 1 2
      sa-frame/com/sa-item.vue
  4. 0 2
      sa-frame/index/index.js
  5. 1 2
      sa-frame/sa-code.js
  6. 0 1
      sa-view-sp/sp-role/role-add.html
  7. 2 11
      static/sa.js

+ 1 - 1
index.html

@@ -64,7 +64,7 @@
 		<script src="sa-frame/menu-list.js"></script>
 		<script src="sa-frame/menu-list-sp.js"></script>
 		<script src="static/sa.js"></script>
-		<script src="sa-frame/sa-code.js"></script>
+		<script src="sa-frame/sa-code.js?v=112344"></script>
 
 	</body>
 </html>

+ 3 - 3
login.html

@@ -22,7 +22,7 @@
 			.logo-img{display: none;}
 			.login-button{width: 300px; border-radius: 0px; transition: all 0.2s; margin-top: 30px;}
 			.login-button:hover{background-color: #0E80eF;}
-			/* .page-title{line-height: 50px;} */
+			.page-title{font-size: 22px;}
 			.sk-rotating-plane{}
 			/* 动画相关 */
 			/* .login{background-color: rgba(0,0,0,0); } */
@@ -41,7 +41,7 @@
 			<div class="login-box">
 				<div class="login">
 					<div class="login-top">
-						<img src="" class="logo-img" alt="">
+						<!-- <img src="" class="logo-img" alt=""> -->
 						<span class="page-title">登录</span>
 					</div>
 					<div class="login-center clearfix">
@@ -79,7 +79,7 @@
 			// 你所有要改的代码全在这里   ↓↓↓↓↓
 
 			// 所有参考属性
-			var page_title = '智慧防疫 后台 - 登录';		// 页面标题
+			var page_title = '钦州码头智慧湾卡口智能防疫系统';		// 页面标题
 			var key = '';							// 默认的账号
 			var password = '';				// 默认的password
 			var logo = 'sa-frame/admin-logo.png';	// logo地址,为空字符串则不显示

+ 1 - 2
sa-frame/com/sa-item.vue

@@ -208,11 +208,10 @@
 	<!-- 分页组件 -->
 	<div class="page-box" v-else-if="type == 'page'">
 		<el-pagination background
-			layout="total, prev, pager, next, sizes, jumper" 
+			layout="total, prev, pager, next,  jumper" 
 			:current-page.sync="curr" 
 			:page-size.sync="size" 
 			:total="total" 
-			:page-sizes="sizes || [1, 10, 20, 30, 40, 50, 100]" 
 			@current-change="changePage()" 
 			@size-change="changePage()">
 		</el-pagination>

+ 0 - 2
sa-frame/index/index.js

@@ -289,7 +289,6 @@ var sa_admin = new Vue({
 		},
 		// 悬浮打开 tab 
 		xfTab: function(tab) {
-			console.log('悬浮');
 			// layer打开
 			var index = layer.open({
 				type: 2,
@@ -467,7 +466,6 @@ var sa_admin = new Vue({
 			// console.log('%c%s', 'color: green; font-size: 12px; font-weight: 400; margin-top: 4px; margin-bottom: 4px;', str);
 			var str2 = ('如在使用中发现任何bug或者疑问,请加入QQ群交流:782974737,点击加入:' + 'https://jq.qq.com/?_wv=1027&k=5DHN5Ib');
 			var s = str;// + ' \n' + str2;
-			console.log('%c%s', 'color: green; font-size: 12px; margin-top: 2px; margin-bottom: 2px;', s);
 		},
 		
 	},

+ 1 - 2
sa-frame/sa-code.js

@@ -14,14 +14,13 @@
 
 // ================================= 用户信息 和 菜单 =================================
 sa.ajax('/AccAdmin/getLoginInfo', function(res) {
-	console.log(res)
 	// 验证权限 
 	if (!(res.data.admin && res.data.perList.indexOf('in-system') > -1)) {
 		sa.$sys.setCurrUser(res.data.admin);
 		//return sa.alert('当前账号暂无进入后台权限');
 	}
 	// 配置 
-	sa_admin.title = "智慧防疫后台";
+	sa_admin.title = "钦州码头智慧湾卡口智能防疫系统";
 	sa_admin.logo = 'sa-frame/admin-logo.png'; // 设置logo图标地址 
 	sa_admin.icon = "sa-frame/admin-logo.png"; // 设置logo图标地址 
 

+ 0 - 1
sa-view-sp/sp-role/role-add.html

@@ -26,7 +26,6 @@
 					<div class="c-title">数据添加</div>
 					<el-form v-if="m">
 						<!-- no字段: m.id - id -->
-						<sa-item type="text" name="角色id" v-model="m.id" br></sa-item>
 						<sa-item type="text" name="角色昵称" v-model="m.name" br></sa-item>
 						<sa-item type="text" name="责任描述" v-model="m.info" br></sa-item>
 						<sa-item name="" class="s-ok" br>

+ 2 - 11
static/sa.js

@@ -93,9 +93,7 @@ var sa = {
 		// 将调用者的配置和默认配置合并 
 		cfg = sa.extendJson(cfg, defaultCfg);
 		
-		// 打印请求地址和参数, 以便调试 
-		console.log("请求地址:" + cfg.baseUrl + url);
-		console.log("请求参数:" + JSON.stringify(data));
+	
 		
 		// 开始显示loading图标 
 		if(cfg.msg != null){
@@ -118,7 +116,6 @@ var sa = {
 				xhr.setRequestHeader('satoken', sessionStorage.runAsToken || sessionStorage.satoken || localStorage.satoken || '');
 			},
 			success: function(res){
-				console.log('返回数据:', res);
 				setTimeout(function() {
 					sa.hideLoading();
 					// 如果相应的处理函数存在
@@ -168,15 +165,11 @@ var sa = {
 		// 开始loding 
 		sa.loading(cfg.msg);
 		
-		// 打印请求地址和参数, 以便调试 
-		console.log("======= 模拟ajax =======");
-		console.log("请求地址:" + cfg.baseUrl + url);
-		console.log("请求参数:" + JSON.stringify(data));
+
 		
 		// 模拟ajax的延时 
 		setTimeout(function() {
 			sa.hideLoading();	// 隐藏掉转圈圈 
-			console.log('返回数据:', cfg.res);
 			success200(cfg.res);
 		}, cfg.sleep)
 	};
@@ -1094,7 +1087,6 @@ var sa = {
 				if(window.layer_title_last_click_time) {
 					var cz = new Date().getTime() - window.layer_title_last_click_time;
 					if(cz < 250) {
-						console.log('双击');
 						$(this).parent().find('.layui-layer-max').click();
 					}
 				}
@@ -1140,7 +1132,6 @@ var sa = {
 	
 	// 如果未登录,则强制跳转到登录 
 	me.checkLogin = function(not_login_url){
-		console.log(me.getCurrUser());
 		if(me.getCurrUser().id == 0) {
 			location.href= not_login_url || '../../login.html';
 			throw '未登录,请先登录';