Commit 3c62b29f by lp784568205

修改跳转方式

parent 8baf4113
......@@ -184,73 +184,8 @@ export default {
this.$store.commit("user/SET_Header", this.header);
},
mounted() {
// this.hqzd();
},
methods: {
// hqzd() {
// let self = this;
// axios
// .get(`JsonData/${this.lkobj.codeTree}.json`)
// .then((res) => {
// self.$set(this.lkobj, "codeOptions", res.data.data.rows);
// })
// .catch((err) => {
// console.log(err);
// });
// axios
// .get(`JsonData/${this.ckobj.codeTree}.json`)
// .then((res) => {
// self.$set(this.ckobj, "codeOptions", res.data.data.rows);
// })
// .catch((err) => {
// console.log(err);
// });
// },
// add() {
// this.$router.push("addGzry");
// },
// edit(scope) {
// console.log(scope);
// this.$router.push({
// path: "/addGzry",
// query: { xxzjbh: scope.row.xzgzrybh },
// });
// },
// dele(scope) {
// this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(() => {
// deleteGzry({
// xzgzrybh: scope.row.xzgzrybh,
// }).then((res) => {
// if (res.success && res.code == 200) {
// this.$message({
// type: "success",
// message: "删除成功",
// });
// this.$refs.rightContent.doQuery("yes");
// }
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "已取消删除",
// });
// });
// },
// toInfor(scope) {
// console.log(scope);
// this.$router.push({
// path: "/detailGzry",
// query: {
// xxzjbh: scope.xzgzrybh,
// },
// });
// },
},
};
</script>
......
......@@ -212,51 +212,6 @@ export default {
console.log(err);
});
},
// add() {
// this.$router.push("addGzry");
// },
// edit(scope) {
// console.log(scope);
// this.$router.push({
// path: "/addGzry",
// query: { xxzjbh: scope.row.xzgzrybh },
// });
// },
// dele(scope) {
// this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(() => {
// deleteGzry({
// xzgzrybh: scope.row.xzgzrybh,
// }).then((res) => {
// if (res.success && res.code == 200) {
// this.$message({
// type: "success",
// message: "删除成功",
// });
// this.$refs.rightContent.doQuery("yes");
// }
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "已取消删除",
// });
// });
// },
// toInfor(scope) {
// console.log(scope);
// this.$router.push({
// path: "/detailGzry",
// query: {
// xxzjbh: scope.xzgzrybh,
// },
// });
// },
},
};
</script>
......
......@@ -186,51 +186,6 @@ export default {
console.log(err);
});
},
// add() {
// this.$router.push("addGzry");
// },
// edit(scope) {
// console.log(scope);
// this.$router.push({
// path: "/addGzry",
// query: { xxzjbh: scope.row.xzgzrybh },
// });
// },
// dele(scope) {
// this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
// })
// .then(() => {
// deleteGzry({
// xzgzrybh: scope.row.xzgzrybh,
// }).then((res) => {
// if (res.success && res.code == 200) {
// this.$message({
// type: "success",
// message: "删除成功",
// });
// this.$refs.rightContent.doQuery("yes");
// }
// });
// })
// .catch(() => {
// this.$message({
// type: "info",
// message: "已取消删除",
// });
// });
// },
// toInfor(scope) {
// console.log(scope);
// this.$router.push({
// path: "/detailGzry",
// query: {
// xxzjbh: scope.xzgzrybh,
// },
// });
// },
},
};
</script>
......
......@@ -83,7 +83,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryBshgj");
window.close();
window.opener.location.reload();
},
......@@ -102,7 +101,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryBshgj");
window.close();
window.opener.location.reload();
},
......
......@@ -84,7 +84,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryCase");
window.close();
window.opener.location.reload();
},
......@@ -104,7 +103,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryCase");
window.close();
window.opener.location.reload();
},
......
......@@ -77,7 +77,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryFcxx");
window.close();
window.opener.location.reload();
},
......@@ -97,7 +96,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryFcxx");
window.close();
window.opener.location.reload();
},
......
......@@ -81,7 +81,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryFwbsh");
window.close();
window.opener.location.reload();
},
......@@ -101,7 +100,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryFwbsh");
window.close();
window.opener.location.reload();
},
......
......@@ -81,7 +81,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryGlbsh");
window.close();
window.opener.location.reload();
},
......@@ -101,7 +100,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryGlbsh");
window.close();
window.opener.location.reload();
},
......
......@@ -286,7 +286,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryGzry");
this.newlyVisiable = false;
this.$refs.rightContent.doQuery("yes");
},
......
......@@ -286,7 +286,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("queryGzry");
this.newlyVisiable = false;
this.$refs.rightContent.doQuery("yes");
},
......
......@@ -325,7 +325,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailRlqbxs",
query: {
xxzjbh: scope.xxzjbh,
......
......@@ -190,10 +190,10 @@ export default {
},
methods: {
add() {
this.$router.push("adjustRlqbxs");
this.$router.pushToTab("adjustRlqbxs");
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "adjustRlqbxs",
query: {xxzjbh: scope.row.xxzjbh},
});
......
......@@ -207,10 +207,10 @@ export default {
},
methods: {
add() {
this.$router.push("adjustRlqbxs");
this.$router.pushToTab("adjustRlqbxs");
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "adjustRlqbxs",
query: { xxzjbh: scope.row.xxzjbh },
});
......@@ -243,7 +243,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailRlqbxs",
query: {
xxzjbh: scope.xxzjbh,
......
......@@ -169,10 +169,10 @@ export default {
},
methods: {
add() {
this.$router.push("adjustRlqbxs");
this.$router.pushToTab("adjustRlqbxs");
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "adjustRlqbxs",
query: { xxzjbh: scope.row.xxzjbh },
});
......@@ -205,7 +205,7 @@ export default {
});
},
toInfor(scope) {
this.$router.push({
this.$router.pushToTab({
path: "/detailRlqbxs",
query: {
xxzjbh: scope.xxzjbh,
......
......@@ -129,9 +129,9 @@ export default {
confirmButtonText: "确定",
type: "success",
callback: () => {
// sessionStorage.setItem("selectArr", []);
this.$router.push("/yjrwGl");
loading.close();
window.close();
window.opener.location.reload();
},
});
} else {
......
......@@ -339,7 +339,6 @@ export default {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/myaddZdry");
loading.close();
window.close();
window.opener.location.reload();
......@@ -358,7 +357,6 @@ export default {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/myaddZdry");
loading.close();
window.close();
window.opener.location.reload();
......
......@@ -139,10 +139,10 @@ export default {
},
methods: {
add() {
this.$router.push("addZdjyhd");
this.$router.pushToTab("addZdjyhd");
},
edit(scope) {
this.$router.push({
this.$router.pushToTab({
path: "addZdjyhd",
query: { xxzjbh: scope.row.xxzjbh },
});
......@@ -176,7 +176,7 @@ export default {
},
toInfor(data) {
console.log(data, 2222222);
this.$router.push({
this.$router.pushToTab({
path: "/detailZdjyhd",
query: {
xxzjbh: data.xxzjbh,
......
......@@ -952,9 +952,7 @@ export default {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/queryZdxx");
loading.close();
// window.close()
},
});
......@@ -972,7 +970,6 @@ export default {
confirmButtonText: "确定",
type: "success",
callback: () => {
// this.$router.push("/queryZdxx");
loading.close();
window.close();
window.opener.location.reload();
......
......@@ -523,46 +523,6 @@ export default {
selectionChange(scope) {
this.selectArr = scope;
},
// submitCKD() {
// if (this.fileArr.length <= 0) {
// this.$message.warning("请选择文件");
// } else {
// console.log(this.fileArr, this.zdXxzjbh);
// let params = new FormData();
// params.append("zdxxzjbh", this.zdXxzjbh);
// this.fileArr.forEach((i) => {
// params.append("file", i.raw);
// });
// let loading = this.$loading({
// lock: true,
// text: "正在导入...",
// spinner: "el-icon-loading",
// background: "rgba(255, 255, 255, 0.7)",
// });
// excleImport(params).then((res) => {
// if (res.code == 200 && res.success) {
// this.$message.success("导入成功");
// this.revokeVisiable = false;
// this.$router.push("queryZdjyhd");
// sessionStorage.setItem("routerPath", "queryZdjyhd");
// setTimeout(() => {
// this.$bus.$emit("routerPath");
// }, 20);
// } else {
// this.$message.error("导入失败");
// }
// loading.close();
// });
// }
// },
// drzjhd() {
// if (this.selectArr.length != 1) {
// this.$message.error("请选择一条数据后操作");
// } else {
// this.zdXxzjbh = this.selectArr[0].xxzjbh;
// this.revokeVisiable = true;
// }
// },
},
};
</script>
......
......@@ -145,7 +145,7 @@
if (res.code == 200 && res.success) {
this.$message.success("导入成功");
this.revokeVisiable = false;
this.$router.push("queryZjcl");
this.$router.pushToTab("queryZjcl");
sessionStorage.setItem("routerPath", "queryZjcl");
setTimeout(() => {
this.$bus.$emit("routerPath");
......@@ -163,14 +163,6 @@
if (fileList.length > 1) this.$message.error("只能上传一个文件!");
}
},
// edit(obj) {
// this.$router.push({
// path: "/insertZjcl",
// query: {
// asjbh: obj.row.asjbh,
// },
// });
// },
},
};
</script>
......
......@@ -76,7 +76,6 @@ export default {
type: "success",
callback: () => {
loading.close();
// this.$router.push("/queryZjcl");
window.close();
window.opener.location.reload();
},
......@@ -95,7 +94,8 @@ export default {
type: "success",
callback: () => {
loading.close();
this.$router.push("queryRyyp");
window.close();
window.opener.location.reload();
},
});
} else {
......
......@@ -103,7 +103,7 @@ export default {
},
methods: {
add() {
this.$router.push("insertJcgz");
this.$router.pushToTab("insertJcgz");
},
dele(obj) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
......@@ -132,7 +132,7 @@ export default {
});
},
toInfor(obj) {
this.$router.push({
this.$router.pushToTab({
path: "/detailJcgz",
query: {
xxzjbh: obj.xxzjbh,
......@@ -140,7 +140,7 @@ export default {
});
},
edit(obj) {
this.$router.push({
this.$router.pushToTab({
path: "/insertJcgz",
query: {
xxzjbh: obj.row.xxzjbh,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment