样式
This commit is contained in:
@@ -25,14 +25,13 @@ export default {
|
|||||||
.toast-wrap
|
.toast-wrap
|
||||||
position fixed
|
position fixed
|
||||||
z-index 10001
|
z-index 10001
|
||||||
width 100%
|
width 90%
|
||||||
height 48px
|
min-height 48px
|
||||||
text-align center
|
text-align center
|
||||||
left 50%
|
left 50%
|
||||||
top 50%
|
top 50%
|
||||||
transform translate(-50%, -50%)
|
transform translate(-50%, -50%)
|
||||||
.text
|
.text
|
||||||
height 48px
|
|
||||||
line-height 18px
|
line-height 18px
|
||||||
display inline-block
|
display inline-block
|
||||||
width auto
|
width auto
|
||||||
|
|||||||
@@ -119,9 +119,7 @@ export const paramEdit = (id, code, name, value, remark) => post('api/param/edit
|
|||||||
remark: remark
|
remark: remark
|
||||||
})
|
})
|
||||||
// 1.4 删除参数
|
// 1.4 删除参数
|
||||||
export const paramDelete = (paramsIds) => post('api/param/delete', {
|
export const paramDelete = (paramsIds) => post('api/param/delete', paramsIds)
|
||||||
paramsIds: paramsIds
|
|
||||||
})
|
|
||||||
|
|
||||||
// 修改密码
|
// 修改密码
|
||||||
export const updatePass = (newPass, oldPass) => post('api/users/updatePass', {
|
export const updatePass = (newPass, oldPass) => post('api/users/updatePass', {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="login-setup-wraper">
|
<div class="login-setup-wraper">
|
||||||
<div class="setup-info pointer" @click="toSetup">配置信息</div>
|
<div class="setup-info pointer" @click="toSetup">配置信息</div>
|
||||||
<router-link to="/home">忘记密码</router-link>
|
<!-- <router-link to="/home">忘记密码</router-link> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="login-buttons-wraper">
|
<div class="login-buttons-wraper">
|
||||||
<button class="button button--primary button-login" :disabled="disabled" @click="saveLogin">登录</button>
|
<button class="button button--primary button-login" :disabled="disabled" @click="saveLogin">登录</button>
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ export default {
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '~@style/mixin'
|
@import '~@style/mixin'
|
||||||
.tabs_container
|
.tabs_container
|
||||||
|
_wh(100%,100%)
|
||||||
background #fff
|
background #fff
|
||||||
border 1px solid #dcdfe6
|
border 1px solid #dcdfe6
|
||||||
box-shadow 0 2px 4px 0 rgba(0,0,0,.12), 0 0 6px 0 rgba(0,0,0,.04)
|
box-shadow 0 2px 4px 0 rgba(0,0,0,.12), 0 0 6px 0 rgba(0,0,0,.04)
|
||||||
@@ -169,9 +170,14 @@ export default {
|
|||||||
border-right-color: #dcdfe6;
|
border-right-color: #dcdfe6;
|
||||||
border-left-color: #dcdfe6;
|
border-left-color: #dcdfe6;
|
||||||
.tabs_content
|
.tabs_content
|
||||||
|
_wh(100%, calc(100% - 39px))
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
.tab_pane
|
.tab_pane
|
||||||
|
_wh(100%,100%)
|
||||||
_font(16px, 28px, #323232,,)
|
_font(16px, 28px, #323232,,)
|
||||||
|
white-space pre-line
|
||||||
|
word-break break-all
|
||||||
|
overflow-y auto
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -254,6 +254,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
toSave () {
|
toSave () {
|
||||||
|
if (!this.pkId) {
|
||||||
|
return
|
||||||
|
}
|
||||||
let arr = this.$refs.tree.getCheckedKeys()
|
let arr = this.$refs.tree.getCheckedKeys()
|
||||||
let arr1 = []
|
let arr1 = []
|
||||||
arr.map(el => {
|
arr.map(el => {
|
||||||
|
|||||||
@@ -13,7 +13,9 @@
|
|||||||
_wh(100%, 100%)
|
_wh(100%, 100%)
|
||||||
.iframe
|
.iframe
|
||||||
position absolute
|
position absolute
|
||||||
top -70px
|
top -160px
|
||||||
left 0
|
left 0
|
||||||
_wh(100%, 100%)
|
_wh(100%, 100%)
|
||||||
|
>>>.body-conatiner
|
||||||
|
padding-top 0
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="state_wrap">
|
<div class="state_wrap">
|
||||||
<div class="state_tip">传感器状态</div>
|
<div class="state_tip">传感器状态</div>
|
||||||
<div class="state_content">
|
<div class="state_content state_content__h2">
|
||||||
<div class="state_item_2" :class="result1.stopButton_status === '0' ? 'site_btn_disabled' : 'site_btn_active'">
|
<div class="state_item_2" :class="result1.stopButton_status === '0' ? 'site_btn_disabled' : 'site_btn_active'">
|
||||||
<span class="state_item_2_dot"></span>
|
<span class="state_item_2_dot"></span>
|
||||||
<span class="state_item_2_txt">急停按钮</span>
|
<span class="state_item_2_txt">急停按钮</span>
|
||||||
@@ -163,4 +163,11 @@ export default {
|
|||||||
opacity 1
|
opacity 1
|
||||||
.state_item_2_dot
|
.state_item_2_dot
|
||||||
background-color #00c852
|
background-color #00c852
|
||||||
|
.state_content__h2
|
||||||
|
height auto
|
||||||
|
.state_item_3_txt1
|
||||||
|
width 170px
|
||||||
|
.state_item_3_txt2
|
||||||
|
width calc(100% - 170px)
|
||||||
|
word-break break-all
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
<div class="state-item">运行</div>
|
<div class="state-item">运行</div>
|
||||||
<div class="state-line"></div>
|
<div class="state-line"></div>
|
||||||
<div class="state-item">自动</div>
|
<div class="state-item">自动</div>
|
||||||
<div class="state-line"></div>
|
<!-- <div class="state-line"></div> -->
|
||||||
<div class="state-item">中文 <i class="icon_dropdown"></i></div>
|
<!-- <div class="state-item">中文 <i class="icon_dropdown"></i></div> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header_user_wraper">
|
<div class="header_user_wraper">
|
||||||
@@ -94,6 +94,7 @@
|
|||||||
import jxTime from '@components/time.vue'
|
import jxTime from '@components/time.vue'
|
||||||
import jxDialog from '@components/dialog.vue'
|
import jxDialog from '@components/dialog.vue'
|
||||||
import { updatePass } from '@config/getData2.js'
|
import { updatePass } from '@config/getData2.js'
|
||||||
|
import {encrypt} from '../../../main.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
jxTime,
|
jxTime,
|
||||||
@@ -282,7 +283,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await updatePass(this.newpassword1, this.oldpassword)
|
let res = await updatePass(encrypt(this.newpassword1), encrypt(this.oldpassword))
|
||||||
this.toast(res.desc)
|
this.toast(res.desc)
|
||||||
this.$refs.child.active = false
|
this.$refs.child.active = false
|
||||||
this.$refs.child.disabled = false
|
this.$refs.child.disabled = false
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as types from '../types'
|
import * as types from '../types'
|
||||||
import { getStore, setStore } from '@config/utils.js'
|
import { getStore, setStore } from '@config/utils.js'
|
||||||
|
|
||||||
const baseUrl = process.env.NODE_ENV === 'development' ? 'http://43.139.166.161:8018' : 'http://43.139.166.16:8018'
|
const baseUrl = process.env.NODE_ENV === 'development' ? 'http://43.139.166.161:8018' : 'http://43.139.166.161:8018'
|
||||||
const setTime = '5000'
|
const setTime = '5000'
|
||||||
const state = {
|
const state = {
|
||||||
baseUrl: getStore('baseUrl') || baseUrl,
|
baseUrl: getStore('baseUrl') || baseUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user