提交 04a845c2 authored 作者: 宋雄's avatar 宋雄

更新

上级 2abf71a5
NODE_ENV=development NODE_ENV=development
# VUE_APP_API_BASE_URL='http://220.203.25.212:9998' VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_API_BASE_URL='http://192.168.0.100:9999' # VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999' # VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
......
NODE_ENV=production NODE_ENV=production
VUE_APP_API_BASE_URL=http://220.203.25.212:9998 VUE_APP_API_BASE_URL=http://220.203.25.212:9999
VUE_APP_CAS_BASE_URL=http://localhost:8888/cas VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
\ No newline at end of file
{
"i18n-ally.localesPaths": [
"public/tinymce/langs"
]
}
\ No newline at end of file
...@@ -134,6 +134,7 @@ ...@@ -134,6 +134,7 @@
}, },
openModal(){ openModal(){
this.$refs.innerDepartSelectModal.show() this.$refs.innerDepartSelectModal.show()
console.log('11111111')
}, },
handleOK(rows) { handleOK(rows) {
if (!rows && rows.length <= 0) { if (!rows && rows.length <= 0) {
......
...@@ -69,7 +69,9 @@ ...@@ -69,7 +69,9 @@
}, },
watch:{ watch:{
departId(){ departId(){
this.initDepartComponent() console.log('departId变化')
console.log(this.departId)
// this.initDepartComponent()
}, },
visible: { visible: {
handler(newV) { handler(newV) {
...@@ -113,7 +115,7 @@ ...@@ -113,7 +115,7 @@
let arr = [...res.result] let arr = [...res.result]
this.reWriterWithSlot(arr) this.reWriterWithSlot(arr)
this.treeData = arr this.treeData = arr
this.initDepartComponent() // this.initDepartComponent()
if(this.rootOpened){ if(this.rootOpened){
this.initExpandedKeys(res.result) this.initExpandedKeys(res.result)
} }
...@@ -208,8 +210,11 @@ ...@@ -208,8 +210,11 @@
if(!this.checkedKeys || this.checkedKeys.length==0){ if(!this.checkedKeys || this.checkedKeys.length==0){
this.$emit("ok",'') this.$emit("ok",'')
}else{ }else{
let checkRow = this.getCheckedRows(this.checkedKeys) let arr = this.checkedKeys.filter((item, index) => this.checkedKeys.findIndex(row=>row === item) === index)
let keyStr = this.checkedKeys.join(",") let checkRow = this.getCheckedRows(arr)
console.log(this.checkedKeys)
console.log(arr)
let keyStr = arr.join(",")
this.$emit("ok", checkRow, keyStr) this.$emit("ok", checkRow, keyStr)
} }
this.handleClear() this.handleClear()
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
:options="rolesOptions" :options="rolesOptions"
placeholder="请选择角色"> placeholder="请选择角色">
</j-multi-select-tag> --> </j-multi-select-tag> -->
<a-select v-model="model.selectedroles"> <a-select v-model="model.selectedroles" placeholder="请选择角色" :getPopupContainer= "(target) => target.parentNode">
<a-select-option <a-select-option
v-for="(item,index) in rolesOptions" v-for="(item,index) in rolesOptions"
:key="index" :key="index"
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
//根据屏幕宽度自适应抽屉宽度 //根据屏幕宽度自适应抽屉宽度
this.resetScreenSize(); this.resetScreenSize();
that.userId = record.id; that.userId = record.id;
that.model = Object.assign({},{selectedroles:'',selecteddeparts:''}, record); that.model = Object.assign({},{selecteddeparts:''}, record);
//身份为上级显示负责部门,否则不显示 //身份为上级显示负责部门,否则不显示
if(this.model.userIdentity==2){ if(this.model.userIdentity==2){
this.departIdShow=true; this.departIdShow=true;
...@@ -292,8 +292,7 @@ ...@@ -292,8 +292,7 @@
getUserRoles(userid){ getUserRoles(userid){
queryUserRole({userid:userid}).then((res)=>{ queryUserRole({userid:userid}).then((res)=>{
if(res.success){ if(res.success){
this.model.selectedroles = res.result.join(","); this.model['selectedroles'] = res.result.join(",");
console.log('that.model.selectedroles=',this.model.selectedroles)
} }
}); });
}, },
...@@ -318,8 +317,6 @@ ...@@ -318,8 +317,6 @@
}) })
}, },
backDepartInfo(info) { backDepartInfo(info) {
console.log(info)
return
this.model.departIds = this.model.selecteddeparts; this.model.departIds = this.model.selecteddeparts;
this.nextDepartOptions = info.map((item,index,arr)=>{ this.nextDepartOptions = info.map((item,index,arr)=>{
let c = {label:item.text, value: item.value+""} let c = {label:item.text, value: item.value+""}
...@@ -353,9 +350,9 @@ ...@@ -353,9 +350,9 @@
let obj; let obj;
if(!this.model.id){ if(!this.model.id){
this.model.id = this.userId; this.model.id = this.userId;
obj=addUser(this.model); obj=addUser({...this.model, orgCode: this.model.departIds});
}else{ }else{
obj=editUser(this.model); obj=editUser({...this.model, orgCode: this.model.departIds});
} }
obj.then((res)=>{ obj.then((res)=>{
if(res.success){ if(res.success){
...@@ -441,16 +438,20 @@ ...@@ -441,16 +438,20 @@
} }
}, },
validateUsername(rule, value, callback){ validateUsername(rule, value, callback){
var params = { if(this.model.id) {
userName: value, callback()
}; } else {
checkOnlyUserName(params).then((res) => { var params = {
if (res.success) { userName: value,
callback() };
} else { checkOnlyUserName(params).then((res) => {
callback("用户名已存在!") if (res.success) {
} callback()
}) } else {
callback("用户名已存在!")
}
})
}
}, },
validateWorkNo(rule, value, callback){ validateWorkNo(rule, value, callback){
var params = { var params = {
...@@ -518,6 +519,7 @@ ...@@ -518,6 +519,7 @@
padding: 10px 16px; padding: 10px 16px;
text-align: right; text-align: right;
left: 0; left: 0;
z-index: 9;
background: #fff; background: #fff;
border-radius: 0 0 2px 2px; border-radius: 0 0 2px 2px;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论