| | |
| | | "axios": "^0.18.0", |
| | | "babel-polyfill": "^6.26.0", |
| | | "classlist-polyfill": "^1.2.0", |
| | | "crypto-js": "^4.0.0", |
| | | "crypto-js": "^4.1.1", |
| | | "element-ui": "^2.15.6", |
| | | "instead": "^1.0.3", |
| | | "js-base64": "^2.5.1", |
| | |
| | | i18n: (key, value) => i18n.t(key, value) |
| | | }); |
| | | //复制插件 |
| | | import VueClipboard from 'vue-clipboard2' |
| | | Vue.use( VueClipboard ) |
| | | import VueClipboard from 'vue-clipboard2' |
| | | Vue.use( VueClipboard ) |
| | | //时间插件 |
| | | import moment from 'moment'; |
| | | Vue.prototype.$moment = moment; |
| | |
| | | import topColor from "@/page/index/top/top-color"; |
| | | import {getQueryString, getTopUrl} from "@/util/util"; |
| | | import "@/styles/login.scss"; |
| | | //解密js库 |
| | | import CryptoJS from 'crypto-js'; |
| | | import AES from 'crypto-js/aes'; |
| | | export default { |
| | | name: "login", |
| | | components: { |
| | |
| | | created() { |
| | | this.handleLogin(); |
| | | this.getTime(); |
| | | this.getPassword() |
| | | }, |
| | | mounted() { |
| | | }, |
| | |
| | | }, |
| | | props: [], |
| | | methods: { |
| | | getPassword(){ |
| | | const plaintext = 'Hello, World!'; |
| | | const key = 'This is a secret key'; |
| | | const encrypted = AES.encrypt(plaintext, key).toString(); |
| | | console.log('加密后的数据:', encrypted); |
| | | const decrypted = AES.decrypt(encrypted, key).toString(CryptoJS.enc.Utf8); |
| | | console.log('解密后的数据:', decrypted); |
| | | }, |
| | | getTime() { |
| | | setInterval(() => { |
| | | this.time = dateFormat(new Date()); |
| | |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | empower() { |
| | | batchAddSave(this.checkAll.oid, this.checkAll.id, this.ParentList).then(res => { |
| | |
| | | } |
| | | console.log(this.ParentList); |
| | | } |
| | | }else { |
| | | } else { |
| | | this.ParentList = this.ParentList.filter(res => res.classifyId !== row.classifyId); |
| | | console.log(this.ParentList); |
| | | } |