Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
ea9530c9
提交
ea9530c9
编写于
9月 23, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2.2.0二期逻辑大改
上级
c1ac002e
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
66 行增加
和
35 行删除
+66
-35
edit-manager.vue
src/views/education/edit-manager.vue
+37
-14
item-manager.vue
src/views/education/item-manager.vue
+9
-0
item-shield.vue
src/views/education/item-shield.vue
+20
-21
未找到文件。
src/views/education/edit-manager.vue
浏览文件 @
ea9530c9
...
...
@@ -2193,11 +2193,10 @@ export default {
},
selectableTableList(row, index) {
if (this.status4Flag == 1) {
if (row.status == 1) {
//console.log("
scopeReq
",this.scopeReq);
return false;
}
if(row.id == 1200) {
// if (row.status == 1) {
// return false;
// }
if (row.setFlag == false) {
return false;
}
return true;
...
...
@@ -2525,7 +2524,7 @@ export default {
initOrganizationStatus() {
let tableStatus = this.tableOrganization;
tableStatus.forEach(row => {
if (row.status == 1) {
if (row.status == 1
&& row.setFlag == true
) {
this.$nextTick(function() {
this.$refs.multipleOrganization.toggleRowSelection(row);
});
...
...
@@ -2634,16 +2633,20 @@ export default {
getOrganization() {
let req = {
projectId: this.projectId,
setKind: this.getKind("
administrative
"),
// scope: "
000
_110
",
administrativeId: '',
hospitalLevel: '',
hospitalLevel: '',
// setKind: this.getKind("
administrative
"),
scope: this.getScope("
administrative
"),
pageNum: this.formOrganization.pageNum,
pageSize: this.formOrganization.pageSize
};
if (req.setKind == 3) {
req.scope = this.getScope("
administrative
");
}
//
if (req.setKind == 3) {
//
req.scope = this.getScope("
administrative
");
//
}
openLoading(vm);
vm.POST("
portal
/
scope
/
v1
/
organization
", req).then(res => {
// vm.POST("
portal
/
scope
/
v1
/
organization
", req).then(res => {
vm.POST("
portal
/
new
/scope/
org
/
v1
/
organization
", req).then(res => {
closeLoading(vm);
if (res.code == "
000000
") {
this.tableOrganization = res.data.organizationList;
...
...
@@ -3535,14 +3538,34 @@ export default {
});
},
selectAllOrganization(selection) {
console.log('selectAll',selection)
let setList = [];
for(let i=0;i<vm.tableOrganization.length;i++) {
if(vm.tableOrganization[i].setFlag == true) {
setList.push(vm.tableOrganization[i].id)
}
}
// let = this.$refs.multipleTable.selection
console.log('selectAll',selection,setList);
},
selectOrganization(selection, row) {
console.log('select',selection,row)
let flag = false;
for(let i=0;i<selection.length;i++) {
if(selection[i].id == row.id) {
flag = true;
}
}
let req = {
ids: [
row.id
],
projectId: this.projectId,
type: flag === false ? 0 : 1
};
openLoading(vm);
vm.GET("
portal
/
new
/scope/
org
/
v1
/
organization
/
option
", req).then(res => {
closeLoading(vm);
});
},
}
};
...
...
src/views/education/item-manager.vue
浏览文件 @
ea9530c9
...
...
@@ -155,6 +155,12 @@
type=
"primary"
size=
"small"
>
删除
</el-button>
<el-button
@
click=
"toShield(scope.row)"
v-show=
"scope.row.blackModifiable == true"
type=
"primary"
size=
"small"
>
屏蔽
</el-button>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
...
...
@@ -288,6 +294,9 @@ export default {
toPage
()
{
this
.
$router
.
push
(
"add-manager"
);
},
toShield
(
row
)
{
this
.
$router
.
push
(
"item-shield?projectId="
+
row
.
id
);
},
searchList
()
{
this
.
formInline
.
pageNo
=
1
;
this
.
getProjectList
();
...
...
src/views/education/item-shield.vue
浏览文件 @
ea9530c9
...
...
@@ -206,32 +206,31 @@ export default {
},
// 挂载到Dom完成时
mounted
:
function
()
{
window
.
onbeforeunload
=
function
(
e
)
{
let
pathname
=
location
.
href
.
split
(
"/"
);
pathname
=
pathname
[
pathname
.
length
-
1
];
console
.
log
(
pathname
);
if
(
pathname
==
"item-shield"
)
{
e
=
e
||
window
.
event
;
if
(
e
)
{
e
.
returnValue
=
"数据不会保存"
;
}
return
"数据不会保存"
;
}
};
//
window.onbeforeunload = function(e) {
//
let pathname = location.href.split("/");
//
pathname = pathname[pathname.length - 1];
//
console.log(pathname);
//
if (pathname == "item-shield") {
//
e = e || window.event;
//
if (e) {
//
e.returnValue = "数据不会保存";
//
}
//
return "数据不会保存";
//
}
//
};
commonUtil
.
resizeHeight
();
},
beforeRouteLeave
(
to
,
from
,
next
)
{
const
answer
=
window
.
confirm
(
"Do you really want to leave? you have unsaved changes!"
);
if
(
answer
)
{
next
();
}
else
{
next
(
false
);
}
//
const answer = window.confirm(
//
"Do you really want to leave? you have unsaved changes!"
//
);
//
if (answer) {
//
next();
//
} else {
//
next(false);
//
}
},
destroyed
()
{},
methods
:
{
handleChange
(
value
)
{
let
areaId
=
'000'
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录