Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
45a2ec8d
提交
45a2ec8d
编写于
8月 16, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
上架后可以改变顺序
上级
7d9cec23
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
25 行删除
+41
-25
package-lock.json
package-lock.json
+2
-2
fetch.js
src/utils/fetch.js
+1
-1
add-manager.vue
src/views/education/add-manager.vue
+26
-20
item-role.vue
src/views/system/item-role.vue
+12
-2
未找到文件。
package-lock.json
浏览文件 @
45a2ec8d
...
@@ -2568,7 +2568,7 @@
...
@@ -2568,7 +2568,7 @@
},
},
"extract-text-webpack-plugin"
:
{
"extract-text-webpack-plugin"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
"resolved"
:
"http
s://registry.npmjs.org
/extract-text-webpack-plugin/-/extract-text-webpack-plugin-1.0.1.tgz"
,
"resolved"
:
"http
://192.168.110.93:4873
/extract-text-webpack-plugin/-/extract-text-webpack-plugin-1.0.1.tgz"
,
"integrity"
:
"sha1-yVvzy6rEnclvHcbgclSfu2VMzSw="
,
"integrity"
:
"sha1-yVvzy6rEnclvHcbgclSfu2VMzSw="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
...
@@ -9121,7 +9121,7 @@
...
@@ -9121,7 +9121,7 @@
},
},
"webpack-sources"
:
{
"webpack-sources"
:
{
"version"
:
"0.1.5"
,
"version"
:
"0.1.5"
,
"resolved"
:
"http
s://registry.npmjs.org
/webpack-sources/-/webpack-sources-0.1.5.tgz"
,
"resolved"
:
"http
://192.168.110.93:4873
/webpack-sources/-/webpack-sources-0.1.5.tgz"
,
"integrity"
:
"sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A="
,
"integrity"
:
"sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
...
...
src/utils/fetch.js
浏览文件 @
45a2ec8d
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
...
@@ -54,7 +54,7 @@ service.interceptors.request.use(config => {
}
}
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
config
.
headers
[
'token'
]
=
'
75E66BEF653E4DFB9F54209901EA76AD
'
;
config
.
headers
[
'token'
]
=
'
D2E29BE9FF794703A482518A04D344E2
'
;
}
else
{
}
else
{
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
}
}
...
...
src/views/education/add-manager.vue
浏览文件 @
45a2ec8d
...
@@ -1389,6 +1389,7 @@ export default {
...
@@ -1389,6 +1389,7 @@ export default {
this.getDepartment();
this.getDepartment();
} else if (active == 2) {
} else if (active == 2) {
this.stepData = [false, false, true];
this.stepData = [false, false, true];
this.tagDrop();
}
}
},
},
//点击暂存
//点击暂存
...
@@ -1491,11 +1492,11 @@ export default {
...
@@ -1491,11 +1492,11 @@ export default {
//点击完成
//点击完成
complete() {
complete() {
//type 1:暂存 2:完成
//type 1:暂存 2:完成
if (this.status4Flag == 1) {
//
if (this.status4Flag == 1) {
vm.$message.info("
完成
");
//
vm.$message.info("
完成
");
vm.$router.push({ path: "
item
-
manager
" });
//
vm.$router.push({ path: "
item
-
manager
" });
return;
//
return;
}
//
}
let formName = "
formComponent
";
let formName = "
formComponent
";
let completeState = this.submitForm(formName);
let completeState = this.submitForm(formName);
let certificateState = this.checkCertificate();
let certificateState = this.checkCertificate();
...
@@ -1571,6 +1572,7 @@ export default {
...
@@ -1571,6 +1572,7 @@ export default {
if (res.code == "
000000
") {
if (res.code == "
000000
") {
this.active++;
this.active++;
this.stepData = [false, false, true];
this.stepData = [false, false, true];
this.tagDrop();
}
}
}
}
);
);
...
@@ -1620,6 +1622,7 @@ export default {
...
@@ -1620,6 +1622,7 @@ export default {
if(statusMove === 0) {
if(statusMove === 0) {
this.active++;
this.active++;
this.stepData = [false, false, true];
this.stepData = [false, false, true];
this.tagDrop();
} else {
} else {
console.log('不能改变范围status:'+res.data.status)
console.log('不能改变范围status:'+res.data.status)
}
}
...
@@ -1669,6 +1672,7 @@ export default {
...
@@ -1669,6 +1672,7 @@ export default {
if(statusMove === 0) {
if(statusMove === 0) {
this.active++;
this.active++;
this.stepData = [false, false, true];
this.stepData = [false, false, true];
this.tagDrop();
} else {
} else {
console.log('不能改变范围status:'+res.data.status)
console.log('不能改变范围status:'+res.data.status)
}
}
...
@@ -3135,9 +3139,7 @@ export default {
...
@@ -3135,9 +3139,7 @@ export default {
}
}
}
}
//console.log('this.tagsComponent',this.tagsComponent);
//console.log('this.tagsComponent',this.tagsComponent);
if(vm.tagsComponent.length > 0) {
vm.tagDrop();
vm.tagDrop();
}
},
},
initTags(value) {
initTags(value) {
//console.log('value',value,'optionsComponent',this.optionsComponent);
//console.log('value',value,'optionsComponent',this.optionsComponent);
...
@@ -3154,9 +3156,9 @@ export default {
...
@@ -3154,9 +3156,9 @@ export default {
}
}
}
}
//console.log('this.tagsComponent',this.tagsComponent);
//console.log('this.tagsComponent',this.tagsComponent);
if(vm.tagsComponent.length > 0) {
//
if(vm.tagsComponent.length > 0) {
vm.tagDrop();
//
vm.tagDrop();
}
//
}
},
},
//选择组件数据绑定
//选择组件数据绑定
handleCloseComponent(tag) {
handleCloseComponent(tag) {
...
@@ -3370,15 +3372,19 @@ export default {
...
@@ -3370,15 +3372,19 @@ export default {
vm.visibleName = false;
vm.visibleName = false;
},
},
tagDrop() {
tagDrop() {
const ele = document.querySelector('.check-component .el-col-20');
this.$nextTick(function() {
// console.log('ele',ele);
if(vm.tagsComponent.length > 0) {
// Sortable.create(ele,{});
const ele = document.querySelector('.check-component .el-col-20');
Sortable.create(ele, {
// console.log('ele',ele);
onEnd({ newIndex, oldIndex }) {
// Sortable.create(ele,{});
const currRow = vm.tagsComponent.splice(oldIndex, 1)[0]
Sortable.create(ele, {
vm.tagsComponent.splice(newIndex, 0, currRow)
onEnd({ newIndex, oldIndex }) {
}
const currRow = vm.tagsComponent.splice(oldIndex, 1)[0]
})
vm.tagsComponent.splice(newIndex, 0, currRow)
}
})
}
});
},
},
}
}
};
};
...
...
src/views/system/item-role.vue
浏览文件 @
45a2ec8d
...
@@ -109,12 +109,22 @@
...
@@ -109,12 +109,22 @@
></el-pagination>
></el-pagination>
</div>
</div>
<el-dialog
title
:visible
.
sync=
"dialog.show"
width=
"30%"
center
>
<el-dialog
title
:visible
.
sync=
"dialog.show"
width=
"30%"
center
>
<p
v-if=
"numL3 > 1"
class=
"dialog-p"
>
<
!-- <
p v-if="numL3 > 1" class="dialog-p">
确认将{{ dialog.role }}
确认将{{ dialog.role }}
<span class="user-name">"{{ dialog.name }}"</span>
<span class="user-name">"{{ dialog.name }}"</span>
{{ dialog.option }}吗?"
{{ dialog.option }}吗?"
</p>
</p>
<p
v-else
>
该用户为此机构仅有的次级负责人,确认需要降级吗?
</p>
<p v-else >该用户为此机构仅有的次级负责人,确认需要降级吗?</p> -->
<p
v-if=
"numL3 <= 1 && scopeRow.projeceRole == 'L3'"
class=
"dialog-p"
>
该用户为此机构仅有的次级负责人,确认需要降级吗?
</p>
<p
v-else
>
确认将{{ dialog.role }}
<span
class=
"user-name"
>
"{{ dialog.name }}"
</span>
{{ dialog.option }}吗?"
</p>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"default"
size=
"small"
@
click=
"dialog.show = false"
>
取消
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"dialog.show = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"changeRole()"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"changeRole()"
>
确定
</el-button>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录