提交 2513f474 编写于 作者: zhentian.jia's avatar zhentian.jia

Merge branch 'dev-coop-phase3-0830' into 'release'

Dev coop phase3 0830



See merge request !86
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
} }
], ],
tableData: [], tableData: [],
totalRows: 0, totalRows: 0
}; };
}, },
computed: { computed: {
...@@ -113,26 +113,26 @@ export default { ...@@ -113,26 +113,26 @@ export default {
created() { created() {
vm = this; vm = this;
this.search(); this.search();
window.onbeforeunload = function(e) { // window.onbeforeunload = function(e) {
let pathname = location.href.split("/"); // let pathname = location.href.split("/");
pathname = pathname[pathname.length - 1]; // pathname = pathname[pathname.length - 1];
// console.log(pathname); // // console.log(pathname);
if (pathname == "item-shield") { // if (pathname == "item-shield") {
e = e || window.event; // e = e || window.event;
if (e) { // if (e) {
e.returnValue = "关闭提示"; // e.returnValue = "关闭提示";
} // }
return "关闭提示"; // return "关闭提示";
} // }
}; // };
}, },
// 挂载到Dom完成时 // 挂载到Dom完成时
mounted: function() { mounted: function() {
window.onbeforeunload = function(e) { window.onbeforeunload = function(e) {
let pathname = location.href.split('/'); let pathname = location.href.split("/");
pathname = pathname[pathname.length-1]; pathname = pathname[pathname.length - 1];
console.log(pathname); console.log(pathname);
if(pathname == 'item-shield') { if (pathname == "item-shield") {
e = e || window.event; e = e || window.event;
if (e) { if (e) {
e.returnValue = "数据不会保存"; e.returnValue = "数据不会保存";
...@@ -140,7 +140,6 @@ export default { ...@@ -140,7 +140,6 @@ export default {
return "数据不会保存"; return "数据不会保存";
} }
}; };
commonUtil.resizeHeight(); commonUtil.resizeHeight();
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
...@@ -153,8 +152,7 @@ export default { ...@@ -153,8 +152,7 @@ export default {
next(false); next(false);
} }
}, },
destroyed() { destroyed() {},
},
methods: { methods: {
searchList() { searchList() {
this.formInline.pageNo = 1; this.formInline.pageNo = 1;
...@@ -180,9 +178,10 @@ export default { ...@@ -180,9 +178,10 @@ export default {
//改变 //改变
changeType(value) { changeType(value) {
console.log(value); console.log(value);
vm.searchList();
}, },
complete() { complete() {
console.log('完成'); console.log("完成");
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
...@@ -192,7 +191,7 @@ export default { ...@@ -192,7 +191,7 @@ export default {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`);
this.formInline.pageNo = val; this.formInline.pageNo = val;
this.search(); this.search();
}, }
} }
}; };
</script> </script>
......
...@@ -197,7 +197,7 @@ export default { ...@@ -197,7 +197,7 @@ export default {
showOriginal: 2, showOriginal: 2,
roleType: '', roleType: '',
formInline: { formInline: {
region: [], region: [0],
date: "", date: "",
organization: [], organization: [],
checked: false, checked: false,
...@@ -234,6 +234,7 @@ export default { ...@@ -234,6 +234,7 @@ export default {
this.projectName = vm.getUrlSearch(window.location.href, "projectName"); this.projectName = vm.getUrlSearch(window.location.href, "projectName");
this.curmbThird = vm.getUrlSearch(window.location.href, "projectName"); this.curmbThird = vm.getUrlSearch(window.location.href, "projectName");
this.getDisplay(); this.getDisplay();
this.search();
// this.getRegionOption(); // this.getRegionOption();
}, },
mounted: function() { mounted: function() {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册