登录、home、工单管理

This commit is contained in:
2023-04-07 17:41:38 +08:00
parent c47cc6a357
commit 6917835ce2
15 changed files with 521 additions and 241 deletions

View File

@@ -7,18 +7,31 @@ import store from './vuex/store'
import '@style/reset.css'
import '@style/layout.styl'
import fastClick from 'fastclick'
import { DatePicker } from 'element-ui'
import { DatePicker, Select, Option } from 'element-ui'
import '@config/rem.js'
import {post} from '@config/http.js'
import { Dialog, toast } from '@config/utils.js'
import JSEncrypt from 'jsencrypt'
fastClick.attach(document.body)
Vue.use(DatePicker)
Vue.use(Select)
Vue.use(Option)
Vue.prototype.$post = post
Vue.prototype.Dialog = Dialog
Vue.prototype.toast = toast
Vue.config.productionTip = false
const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' +
'2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ=='
// 加密
export function encrypt (txt) {
const encryptor = new JSEncrypt()
encryptor.setPublicKey(publicKey) // 设置公钥
return encryptor.encrypt(txt) // 对需要加密的数据进行加密
}
/* eslint-disable no-new */
new Vue({
el: '#app',