提交 7b91d1d9 编写于 作者: guangjun.yang's avatar guangjun.yang

vm.$router.push({ path: 'index' })

上级 557d0c82
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
if (isNotEmptyUtils(paramMap["token"])) { if (isNotEmptyUtils(paramMap["token"])) {
vm.token = paramMap["token"] vm.token = paramMap["token"]
localStorage.setItem('storageToken', vm.token) localStorage.setItem('storageToken', vm.token)
vm.$router.push({ path: 'create-push' }) vm.$router.push({ path: 'index' })
} else { } else {
if(!localStorage.getItem('storageToken')) { if(!localStorage.getItem('storageToken')) {
window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面 window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面
......
...@@ -103,6 +103,7 @@ export default { ...@@ -103,6 +103,7 @@ export default {
vm = this; vm = this;
this.isUpdate = this.$route.query && this.$route.query.isUpdate || this.isUpdate; this.isUpdate = this.$route.query && this.$route.query.isUpdate || this.isUpdate;
this.protocolId = this.$route.query && this.$route.query.protocolId || 0; this.protocolId = this.$route.query && this.$route.query.protocolId || 0;
this.protocolType = this.$route.query && this.$route.query.protocolType
this.btnText = this.isUpdate ? '更新版本' : '创建完成'; this.btnText = this.isUpdate ? '更新版本' : '创建完成';
this.curmbFirst = this.isUpdate ? '更新协议' : '新建协议'; this.curmbFirst = this.isUpdate ? '更新协议' : '新建协议';
// vm.idType = localStorage.getItem("storageIdType"); // vm.idType = localStorage.getItem("storageIdType");
...@@ -153,6 +154,7 @@ export default { ...@@ -153,6 +154,7 @@ export default {
this.ruleForm.content = val; this.ruleForm.content = val;
if(this.isUpdate) { // 修改协议时传协议ID(protocolId) if(this.isUpdate) { // 修改协议时传协议ID(protocolId)
this.ruleForm.protocolId = this.protocolId this.ruleForm.protocolId = this.protocolId
this.ruleForm.protocolType = this.protocolType
} }
this.addOrUpdateProtocol(this.ruleForm) this.addOrUpdateProtocol(this.ruleForm)
} else { } else {
......
...@@ -195,7 +195,8 @@ ...@@ -195,7 +195,8 @@
path: '/create-protocol', path: '/create-protocol',
query: { query: {
isUpdate: true, isUpdate: true,
protocolId: row.protocolId protocolId: row.protocolId,
protocolType: row.protocolType
} }
}) })
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册