| | |
| | | prop="chk_value" |
| | | label="数值" |
| | | /> |
| | | <el-table-column |
| | | prop="remark" |
| | | label="备注" |
| | | show-tooltip-when-overflow |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="remark"--> |
| | | <!-- label="备注"--> |
| | | <!-- show-tooltip-when-overflow--> |
| | | <!-- />--> |
| | | </el-table> |
| | | </div> |
| | | |
| | |
| | | prop="maint_value" |
| | | label="数值" |
| | | /> |
| | | <el-table-column |
| | | prop="remark" |
| | | label="备注" |
| | | show-tooltip-when-overflow |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="remark"--> |
| | | <!-- label="备注"--> |
| | | <!-- show-tooltip-when-overflow--> |
| | | <!-- />--> |
| | | </el-table> |
| | | </div> |
| | | |
| | |
| | | </span> |
| | | </el-form-item> |
| | | |
| | | <el-checkbox v-model="checkedPassword">记住密码</el-checkbox> |
| | | |
| | | <el-button |
| | | :loading="loading" |
| | | type="primary" |
| | |
| | | }, |
| | | loading: false, |
| | | passwordType: 'password', |
| | | checkedPassword: false, |
| | | redirect: undefined, |
| | | focus1: false, |
| | | focus2: false, |
| | |
| | | this.redirect = route.query && route.query.redirect |
| | | }, |
| | | immediate: true |
| | | } |
| | | }, |
| | | mounted() { |
| | | const account = localStorage.getItem('account') |
| | | if (account) { |
| | | this.loginForm.username = localStorage.getItem('account') |
| | | this.loginForm.password = localStorage.getItem('password') |
| | | this.checkedPassword = true |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | if (getCookie('code') === '302') { |
| | | this.dialogVisible = true |
| | | } else { |
| | | if (this.checkedPassword) { |
| | | localStorage.setItem('account', this.loginForm.username) |
| | | localStorage.setItem('password', this.loginForm.password) |
| | | } else { |
| | | localStorage.removeItem('account') |
| | | localStorage.removeItem('password') |
| | | } |
| | | |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | // ButtonData().then(res => { |
| | | // localStorage.setItem('ButtonData', JSON.stringify(res.data)) |
| | |
| | | } |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | | isExpandForm: true, |
| | | isExpandForm: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |