Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
6b7a6563
提交
6b7a6563
编写于
3月 19, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
项目组件id更新
上级
5d34dd3a
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
23 行增加
和
14 行删除
+23
-14
add-manager.vue
src/views/education/add-manager.vue
+20
-12
item-manager.vue
src/views/education/item-manager.vue
+3
-2
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
6b7a6563
...
...
@@ -527,6 +527,7 @@ export default {
certificate
:
""
},
tagsComponent
:
[],
projectStatus
:
''
,
//校验工具 数据
rulesComponent
:
{
component
:
[
...
...
@@ -600,7 +601,7 @@ export default {
this
.
$nextTick
(
function
()
{
this
.
getComponentInfo
();
this
.
getDepartment
();
//
this.getDepartment();
});
},
methods
:
{
...
...
@@ -654,12 +655,12 @@ export default {
let
componentEdit
=
[];
let
certificateEdit
=
0
;
for
(
let
i
=
0
;
i
<
editData
.
componentData
.
length
;
i
++
)
{
componentEdit
.
push
(
editData
.
componentData
[
i
].
i
d
);
componentEdit
.
push
(
editData
.
componentData
[
i
].
relevanceI
d
);
}
this
.
formComponent
.
component
=
componentEdit
;
if
(
editData
.
certificateData
.
length
>
0
)
{
this
.
formComponent
.
configure
=
1
;
this
.
formComponent
.
certificate
=
editData
.
componentData
[
0
].
i
d
;
this
.
formComponent
.
certificate
=
editData
.
componentData
[
0
].
relevanceI
d
;
}
},
//编辑管理
...
...
@@ -671,6 +672,7 @@ export default {
if
(
res
.
code
==
"000000"
&&
res
.
data
.
projectData
!=
null
)
{
let
editData
=
res
.
data
;
this
.
setEditData
(
editData
);
this
.
projectStatus
=
res
.
data
.
projectData
.
projectStatus
;
}
else
{
console
.
log
(
res
);
}
...
...
@@ -731,6 +733,11 @@ export default {
vm
.
POST
(
"portalInfo/insertOrUpdate"
,
postData
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
);
this
.
active
++
;
this
.
stepData
=
[
false
,
true
,
false
];
this
.
projectId
=
res
.
data
.
id
;
this
.
initRange
();
this
.
getDepartment
();
}
});
},
...
...
@@ -767,7 +774,8 @@ export default {
componentIds
:
this
.
formComponent
.
component
,
certificateId
:
this
.
formComponent
.
certificate
,
projectId
:
parseInt
(
vm
.
getUrlSearch
(
window
.
location
.
href
,
"projectId"
)),
type
:
type
type
:
type
,
status
:
this
.
projectStatus
,
};
vm
.
POST
(
"portalInfo/componentDraft"
,
param
).
then
(
res
=>
{
console
.
log
(
res
);
...
...
@@ -851,9 +859,9 @@ export default {
if
(
res
.
code
==
"000000"
)
{
//移动到第二页 选择范围
this
.
insertOrUpdate
(
"add"
);
this
.
active
++
;
this
.
stepData
=
[
false
,
true
,
false
];
this
.
initRange
();
//
this.active++;
//
this.stepData = [false, true, false];
//
this.initRange();
//this.checkAllTable();
}
else
{
this
.
$message
.
error
(
"项目名称"
+
res
.
message
);
...
...
@@ -862,9 +870,9 @@ export default {
}
else
{
//编辑
this
.
insertOrUpdate
(
"edit"
);
this
.
active
++
;
this
.
stepData
=
[
false
,
true
,
false
];
this
.
initRange
();
//
this.active++;
//
this.stepData = [false, true, false];
//
this.initRange();
}
}
}
else
if
(
this
.
active
==
1
)
{
...
...
@@ -1035,7 +1043,7 @@ export default {
},
//第二步 选择范围 初始化
initRange
()
{
let
projectId
=
vm
.
getUrlSearch
(
window
.
location
.
href
,
"projectId"
)
;
let
projectId
=
this
.
projectId
;
if
(
projectId
==
null
)
{
//新建
}
else
{
...
...
@@ -1495,7 +1503,7 @@ export default {
//获取科室信息
getDepartment
()
{
let
req
=
{
projectId
:
vm
.
getUrlSearch
(
window
.
location
.
href
,
"projectId"
)
projectId
:
this
.
projectId
,
};
vm
.
GET
(
"scope/v1/department"
,
req
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
...
...
src/views/education/item-manager.vue
浏览文件 @
6b7a6563
...
...
@@ -46,7 +46,6 @@
</el-form-item>
</el-form>
<el-table
v-loading=
"loading"
:data=
"tableData"
:header-cell-style=
"
{background:'#FAFAFA',color:'#000'}"
>
...
...
@@ -145,6 +144,7 @@
import
BreadCrumb
from
"../../components/breadcrumb.vue"
;
import
{
create
}
from
"domain"
;
import
{
returnData
}
from
"../mock"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
let
vm
=
null
;
export
default
{
components
:
{
...
...
@@ -237,11 +237,12 @@ export default {
getProjectList
()
{
let
req
=
{};
req
=
this
.
setParam
(
this
.
formInline
);
openLoading
(
vm
);
vm
.
GET
(
"portalInfo/getProjectList"
,
req
).
then
(
res
=>
{
closeLoading
(
vm
);
if
(
res
.
code
==
"000000"
)
{
vm
.
tableData
=
res
.
data
.
data
;
vm
.
totalRows
=
res
.
data
.
totalRows
;
this
.
loading
=
false
;
}
});
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录