This commit is contained in:
宋伟佳
2021-06-16 13:39:34 +08:00
6 changed files with 9 additions and 14 deletions
+3 -3
View File
@@ -67,8 +67,8 @@ export default {
loginUser (userName, PWD) { loginUser (userName, PWD) {
this.loading = true this.loading = true
// 用户名密码加密 // 用户名密码加密
userName = this.$base64(userName) // userName = this.$base64(userName)
PWD = this.$base64(PWD) // PWD = this.$base64(PWD)
this.$http.post('login', this.$http.post('login',
{ {
username: userName, username: userName,
@@ -85,9 +85,9 @@ export default {
this.$message.warning('未分配组织机构,请联系管理员分配后重新登录') this.$message.warning('未分配组织机构,请联系管理员分配后重新登录')
return return
} }
// debugger
let Base64 = require('js-base64').Base64 let Base64 = require('js-base64').Base64
let userInfoStr = Base64.decode(res.data) let userInfoStr = Base64.decode(res.data)
// debugger
let userInfo2 = decodeURIComponent(userInfoStr) let userInfo2 = decodeURIComponent(userInfoStr)
let userInfoObj = JSON.parse(userInfo2) let userInfoObj = JSON.parse(userInfo2)
this.setToken(userInfoObj.usid) // vuex存储token this.setToken(userInfoObj.usid) // vuex存储token
@@ -7,7 +7,7 @@
<el-button <el-button
type="warning" type="warning"
icon="el-icon-edit-outline" icon="el-icon-edit-outline"
round size="small"
class="common-button-warning" class="common-button-warning"
@click="handleOnLineEdit" @click="handleOnLineEdit"
v-if="showEdit">在线编辑</el-button> v-if="showEdit">在线编辑</el-button>
@@ -22,7 +22,7 @@
<!-- 委托</el-button>--> <!-- 委托</el-button>-->
<el-button <el-button
type="primary" type="primary"
size="mini" size="small"
class="common-button-primary" class="common-button-primary"
icon="el-icon-message" icon="el-icon-message"
@click="handleSendEmail" @click="handleSendEmail"
@@ -31,7 +31,7 @@
>发送邮件</el-button> >发送邮件</el-button>
<el-button <el-button
type="danger" type="danger"
size="mini" size="small"
class="common-button-danger" class="common-button-danger"
icon="el-icon-close" icon="el-icon-close"
@click="handleOver" @click="handleOver"
@@ -59,7 +59,7 @@
{{ backBTNText }}</el-button> {{ backBTNText }}</el-button>
<el-button <el-button
type="primary" type="primary"
size="mini" size="small"
class="common-button-primary" class="common-button-primary"
icon="el-icon-check" icon="el-icon-check"
@click="handleSubmit" @click="handleSubmit"
@@ -17,7 +17,6 @@
class="label-input-form" class="label-input-form"
label-width="210px" label-width="210px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
</ProcessTitle> </ProcessTitle>
@@ -142,7 +142,6 @@
v-model="textarea"> v-model="textarea">
</el-input> </el-input>
</div> </div>
<div>文件需求日期应从该申请单审批完成后2日开始计算日翻译量10000字符可以每页700-800字符估算周末及节假日除外</div>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
</div> </div>
@@ -467,7 +467,6 @@
v-model="textarea"> v-model="textarea">
</el-input> </el-input>
</div> </div>
<div>文件需求日期应从该申请单审批完成后2日开始计算日翻译量10000字符可以每页700-800字符估算周末及节假日除外</div>
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
</div> </div>
@@ -164,11 +164,9 @@ export default {
this.active = name this.active = name
}, },
handleSave() {}, handleSave() {},
handleSubmit() { handleSubmit() {}
}
}, },
mounted () { mounted () {}
}
} }
</script> </script>