|
|
|
@ -81,6 +81,7 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {Train} from '@/api/server.js'; |
|
|
|
|
export default { |
|
|
|
|
name: 'case-list', |
|
|
|
|
data() { |
|
|
|
@ -104,55 +105,6 @@ |
|
|
|
|
this.initList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
setDefaultUserName(loginId) { |
|
|
|
|
this.$util.setCookie('userLoginId', loginId); |
|
|
|
|
}, |
|
|
|
|
gotoDb: function (row) { |
|
|
|
|
let self = this; |
|
|
|
|
let userType = this.$store.state.app.user.userType; |
|
|
|
|
let customerManager = JSON.parse(self.$util.getCookie("customerManager")); |
|
|
|
|
self.$store.commit('startLoading'); |
|
|
|
|
self.$http.post('/pmtapi/base_Account/login', { |
|
|
|
|
username: customerManager.userName, |
|
|
|
|
password: customerManager.password, |
|
|
|
|
caseId: row.id, |
|
|
|
|
captchaCode: "yyyf", |
|
|
|
|
}).then(function (response) { |
|
|
|
|
self.$store.commit('loginIn', { |
|
|
|
|
appKey: response.appKey, |
|
|
|
|
userId: response.userId, |
|
|
|
|
userLoginId: response.userLoginId, |
|
|
|
|
userDisplayName: response.userDisplayName, |
|
|
|
|
userMobile: response.userMobile, |
|
|
|
|
userType: userType, |
|
|
|
|
showSearchDiv: 0, |
|
|
|
|
currentRole:0 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
self.$store.commit('endLoading'); |
|
|
|
|
|
|
|
|
|
self.setDefaultUserName(customerManager.userName); |
|
|
|
|
|
|
|
|
|
let toPath = null; |
|
|
|
|
if (!toPath || self.$router.currentRoute.name == 'login' || self.$router.currentRoute.name == '404') { |
|
|
|
|
toPath = "/"; |
|
|
|
|
} |
|
|
|
|
self.$router.push({ |
|
|
|
|
path: toPath |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
self.$message({ |
|
|
|
|
message: '成功进入', |
|
|
|
|
type: 'success', |
|
|
|
|
onClose: function () { |
|
|
|
|
$("body").removeClass("el-loading-parent--hidden").removeClass("el-loading-parent--relative"); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}).catch(function (error) { |
|
|
|
|
self.$store.commit('endLoading'); |
|
|
|
|
self.$message.error(error); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
initList(searchObj) { |
|
|
|
|
this.searchObj.selfIsAdmin = this.$store.state.app.user.userType == 1 ? 0 : 1; |
|
|
|
|
this.$http.post('/authapi/bs_projectManage/getProjectPagedList', { |
|
|
|
|