|
@@ -418,7 +418,7 @@
|
|
|
<div style="width:100%;margin:0 auto;margin-bottom:30px;position: absolute;bottom: 0px;text-align: center; ">
|
|
|
<el-button type="primary" @click="submitInsert">{{ $t('save') }}</el-button>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</el-scrollbar>
|
|
|
</el-col>
|
|
|
</div>
|
|
@@ -856,6 +856,7 @@ export default {
|
|
|
this.getProjectList()
|
|
|
this.getDepartment()
|
|
|
this.getAuditWorkflow();
|
|
|
+ this.getUsers()
|
|
|
},
|
|
|
methods: {
|
|
|
// 自定义事件
|
|
@@ -1655,8 +1656,8 @@ export default {
|
|
|
var list = res.data , list1 = JSON.parse(JSON.stringify(res.data));
|
|
|
this.sdata = list;
|
|
|
this.soption = [
|
|
|
- {value: 1 , label : this.$t('lable.department') , children : this.changeArr(list1)},
|
|
|
- {value: 2 , label : this.$t('designatedpersonnel'),children : this.susers}
|
|
|
+ {value: 1 , label : this.$t('lable.department') , children : this.changeArr(list1), type: 'dep'},
|
|
|
+ {value: 2 , label : this.$t('designatedpersonnel'),children : this.susers, type: 'user'}
|
|
|
]
|
|
|
} else {
|
|
|
this.$message({
|
|
@@ -1783,7 +1784,14 @@ export default {
|
|
|
this.dialogVisible = false;
|
|
|
if (this.curDeptId == null) return;
|
|
|
|
|
|
- var node = this.user.userNameNeedTranslate != '1' ? this.vueCasaderItem : this.$refs.deptCascader.getCheckedNodes()[0];
|
|
|
+ // var node = this.user.userNameNeedTranslate != '1' ? this.vueCasaderItem : this.$refs.deptCascader.getCheckedNodes()[0];
|
|
|
+ var node = ''
|
|
|
+ if(this.user.userNameNeedTranslate != 1) {
|
|
|
+ // node = this.user.userNameNeedTranslate != '1' ? this.vueCasaderItem : this.$refs.deptCascader.getCheckedNodes()[0];
|
|
|
+ node = this.$refs.deptCascader.getCheckedNodes()[0];
|
|
|
+ } else {
|
|
|
+ node = this.addNodeObj
|
|
|
+ }
|
|
|
|
|
|
// var node = this.$refs.deptCascader.getCheckedNodes()[0];
|
|
|
if (this.isAdd) {
|
|
@@ -1818,12 +1826,6 @@ export default {
|
|
|
|
|
|
|
|
|
getUsers() {
|
|
|
- // this.http.post(this.port.manage.list, {
|
|
|
- // departmentId: -1,
|
|
|
- // pageIndex: 1,
|
|
|
- // // pageSize: 99999
|
|
|
- // pageSize: -1
|
|
|
- // },
|
|
|
this.http.post('/user/getSimpleActiveUserList', {},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
@@ -1831,7 +1833,8 @@ export default {
|
|
|
// this.users = res.data.records;
|
|
|
this.users = res.data;
|
|
|
for (let i = 0; i < this.users.length; i++) {
|
|
|
- this.susers.push({value:this.users[i].id,label:this.users[i].name})
|
|
|
+ // this.susers.push({value:this.users[i].id,label:this.users[i].name})
|
|
|
+ this.susers.push({value:this.users[i].id,label:this.users[i].name,type: 'user'})
|
|
|
}
|
|
|
// if (this.user.role == 0) {
|
|
|
// this.editItemForm.ownerId = this.user.id;
|
|
@@ -1922,6 +1925,16 @@ export default {
|
|
|
}
|
|
|
);
|
|
|
},
|
|
|
+ vueCasader(obj) {
|
|
|
+ if(obj.distinction == 1) {
|
|
|
+ let arr = []
|
|
|
+ arr.push(obj.id)
|
|
|
+ this.curDeptId = arr
|
|
|
+ this.vueCasaderItem = obj.item
|
|
|
+ this.addNodeObj = obj.item
|
|
|
+ console.log(obj, '选中的')
|
|
|
+ }
|
|
|
+ }
|
|
|
//获取项目列表
|
|
|
// getProjectList() {
|
|
|
// this.listLoading = true;
|