Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
7d9cec23
提交
7d9cec23
编写于
8月 12, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
拖拽排序实现
上级
4cec5577
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
23 行增加
和
7 行删除
+23
-7
operation.js
src/utils/operation.js
+7
-0
add-manager.vue
src/views/education/add-manager.vue
+16
-7
未找到文件。
src/utils/operation.js
浏览文件 @
7d9cec23
...
...
@@ -572,3 +572,10 @@ export function getAvgTime(data) {
}
return
list
;
}
export
function
getComponent
(
data
)
{
let
list
=
[];
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
list
.
push
(
data
[
i
].
value
);
}
return
list
;
}
\ No newline at end of file
src/views/education/add-manager.vue
浏览文件 @
7d9cec23
...
...
@@ -593,7 +593,7 @@
:rules=
"rulesComponent"
>
<el-form-item
label=
"选择组件:"
prop=
"component"
>
<el-col
:span=
"
2
0"
>
<el-col
:span=
"
1
0"
>
<el-select
v-model=
"formComponent.component"
multiple
...
...
@@ -626,10 +626,12 @@
</el-col>
</el-form-item>
<el-form-item
label=
"配置证书:"
>
<el-radio-group
v-model=
"formComponent.configure"
:disabled=
"projectStatus == 3 || projectStatus == 4 || projectStatus == 5 || projectStatus == 6"
>
<el-col
:span=
"10"
>
<el-radio-group
class=
"el-configure"
v-model=
"formComponent.configure"
:disabled=
"projectStatus == 3 || projectStatus == 4 || projectStatus == 5 || projectStatus == 6"
>
<el-radio
:label=
"1"
>
是
</el-radio>
<el-radio
:label=
"2"
>
否
</el-radio>
</el-radio-group>
</el-col>
</el-form-item>
<!--
<el-form-item
v-show=
"formComponent.configure == 1"
label=
"选择证书:"
>
<el-col
:span=
"20"
>
...
...
@@ -765,7 +767,7 @@ export default {
curmbSecond: "
新建项目
",
//页面展示位置
stepData: [true, false, false],
active:
2
,
active:
0
,
activeName: "
first
",
//基层信息 数据
uploadImgMessage: false,
...
...
@@ -1318,6 +1320,7 @@ export default {
}
this.optionsComponent = optionsComponent;
this.optionsCertificate = optionsCertificate;
this.organizationContent = res.data.creatorOrganizationName;
}
this.editManager();
});
...
...
@@ -1325,7 +1328,8 @@ export default {
//项目组件信息 暂存/完成
componentDraft(type) {
let param = {
componentIds: this.formComponent.component,
// componentIds: this.formComponent.component,
componentIds: operationData.getComponent(vm.tagsComponent),
// certificateId: this.formComponent.certificate,
certificateId: [],
projectId: this.projectId,
...
...
@@ -1334,6 +1338,7 @@ export default {
certificateType: this.formExam.certificateType,
getCertificateRule: [],
};
// console.log('排序后',vm.tagsComponent,'param',param);
if(this.formComponent.configure == 1) {
// 2.多证书有规
if(this.formExam.certificateType == 2) {
...
...
@@ -3365,9 +3370,9 @@ export default {
vm.visibleName = false;
},
tagDrop() {
const ele = document.querySelector('.
el-form-item__content .el-col-20')
console.log('ele',ele);
const _this = this
const ele = document.querySelector('.
check-component .el-col-20');
//
console.log('ele',ele);
// Sortable.create(ele,{});
Sortable.create(ele, {
onEnd({ newIndex, oldIndex }) {
const currRow = vm.tagsComponent.splice(oldIndex, 1)[0]
...
...
@@ -3605,11 +3610,15 @@ export default {
top
:
0px
;
left
:
550px
;
position
:
absolute
;
z-index
:
999
;
}
.el-tag
{
margin-top
:
5px
;
display
:
table
;
}
.el-configure
{
width
:
200px
;
}
}
}
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录