system-clients 3.2.43 → 3.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.43",
3
+ "version": "3.2.45",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,24 +1,24 @@
1
- <template>
2
- <app-base class="bg">
3
- <div class='flex'>
4
- <article>
5
- <!--<route :comp="{name: 'check-model'}"></route>-->
6
- <!--<route :comp="{name: 'vender-management'}"></route>-->
7
- <route :comp="{name: 'login'}"></route>
8
- <!-- <route :comp="{name: 'load-data'}"></route> -->
9
- <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
- <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
- </article>
12
- </div>
13
- </app-base>
14
- </template>
15
-
16
- <script>
17
- // import cardListen from './plugins/CardListen'
18
-
19
- export default {
20
- // ready () {
21
- // cardListen.startListen()
22
- // }
23
- }
24
- </script>
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <!--<route :comp="{name: 'check-model'}"></route>-->
6
+ <!--<route :comp="{name: 'vender-management'}"></route>-->
7
+ <route :comp="{name: 'login'}"></route>
8
+ <!-- <route :comp="{name: 'load-data'}"></route> -->
9
+ <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
+ <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
+ </article>
12
+ </div>
13
+ </app-base>
14
+ </template>
15
+
16
+ <script>
17
+ // import cardListen from './plugins/CardListen'
18
+
19
+ export default {
20
+ // ready () {
21
+ // cardListen.startListen()
22
+ // }
23
+ }
24
+ </script>
Binary file
@@ -3,7 +3,11 @@
3
3
  <div class="login-title" >
4
4
  <div class="row auto">
5
5
  <marquee style="width:80%;margin-top:25px"><span style="font-size: 1.8rem;color: white;">{{notice}}</span></marquee>
6
- <div class="login-title-chi" style="white-space: nowrap;margin-right:-5%">
6
+ <div class="login-title-chi" style="white-space: nowrap;margin-right:0">
7
+ <button class="my_button_search button_spacing" style="margin-right: 5px" title="点击清除浏览器缓存" @click.stop="delCookie">
8
+ <img
9
+ src="../../assets/clear-cookie.png" style="height: 25px; width: 95px;margin-bottom: 3px;">
10
+ </button>
7
11
  <span>构建时间:{{ vTime }}</span>
8
12
  <div v-if="titleShow">
9
13
  <img src="../../../static/newStyle/login-info.png"/>
@@ -519,7 +523,33 @@ export default {
519
523
  this.model.password = ''
520
524
  this.login = false
521
525
  $('form').fadeIn(500)
526
+ },
527
+ delCookie() {
528
+ let cookies = document.cookie.split(";");
529
+ console.log("点击触发了")
530
+ for (let i = 0; i < cookies.length; i++) {
531
+ let cookie = cookies[i];
532
+ let eqPos = cookie.indexOf("=");
533
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
534
+ document.cookie =
535
+ name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
536
+ }
537
+ if (cookies.length > 0) {
538
+ for (let i = 0; i < cookies.length; i++) {
539
+ let cookie = cookies[i];
540
+ let eqPos = cookie.indexOf("=");
541
+ let name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
542
+ let domain = location.host.substr(location.host.indexOf("."));
543
+ document.cookie =
544
+ name +
545
+ "=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=" +
546
+ domain;
547
+ }
548
+ }
549
+ localStorage.clear()
550
+ sessionStorage.clear()
522
551
  }
552
+
523
553
  },
524
554
  watch: {
525
555
  'modifyPwShow' (val){
@@ -532,4 +562,6 @@ export default {
532
562
  </script>
533
563
 
534
564
  <style>
565
+ .my_button_search{width: 100px; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background:rgba(0,0,0,0); border-radius: 4px; border:none; font-family: PingFang; font-size: 15px}
566
+ .my_button_search:hover img{ filter: opacity(0.8);}
535
567
  </style>