|
|
@@ -2,12 +2,12 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div style="height:32px">
|
|
|
- <div class="tags-box" :class="{'tags-box-disabled':!disabled,'tags-box-mini':size === 'mini'}" @click="showDialog">
|
|
|
- <el-tag type="success" :size="size" v-for="v in currentTempList" :key="v.id">{{ v.shortName }}</el-tag>
|
|
|
+ <div class="tags-box" :class="{'tags-box-disabled':disabled,'tags-box-mini':size === 'mini'}" @click="showDialog">
|
|
|
+ <el-tag type="success" :size="size" v-for="v in currentTempList" :key="v.id">{{ v.shortName }}</el-tag>
|
|
|
</div>
|
|
|
<div class="tags_last" >
|
|
|
<span v-show="currentTempList.length > 0" class="tags-num">{{ currentTempList.length }}</span>
|
|
|
- <i v-if="currentTempList.length > 0 && !disabled" class="el-icon-circle-close close-icon" @click.stop="clear"></i>
|
|
|
+ <i v-if="currentTempList.length > 0 && !disabled" class="el-icon-circle-close close-icon" @click.stop="clear"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
<DialogCom
|
|
|
@@ -245,7 +245,7 @@ export default {
|
|
|
trigger: {
|
|
|
type: String,
|
|
|
default: 'click',
|
|
|
- },
|
|
|
+ },
|
|
|
//组件禁用
|
|
|
disabled: {
|
|
|
type: Boolean,
|
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
{
|
|
|
this.orgTree();
|
|
|
}
|
|
|
- this.reSetLeftOrgType();
|
|
|
+ this.reSetLeftOrgType();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
@@ -358,7 +358,7 @@ export default {
|
|
|
orgTree() {
|
|
|
console.log("orgTree",22,this.left)
|
|
|
//获取所有机构列表
|
|
|
- if(!this.orgs || this.orgs.length==0){
|
|
|
+ if(!this.orgs || this.orgs.length==0){
|
|
|
this.getAllOrgs();
|
|
|
}
|
|
|
this.initHistorySelectOrg();
|
|
|
@@ -419,7 +419,7 @@ export default {
|
|
|
else{
|
|
|
this.left.condition.orgType=null;
|
|
|
this.left.condition.isleftOrgTypeDisabled=false;
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
initHistorySelectOrg()
|
|
|
{
|
|
|
@@ -465,7 +465,7 @@ export default {
|
|
|
this.left.condition.isleftOrgTypeDisabled = this.limitOrgType? true:false;
|
|
|
this.right.condition.orgType = null;
|
|
|
this.left.condition.orgName = null;
|
|
|
- this.right.condition.orgName = null;
|
|
|
+ this.right.condition.orgName = null;
|
|
|
},
|
|
|
leftTreeSelect(node) {
|
|
|
this.left.condition.orgId = node.id;
|
|
|
@@ -528,10 +528,10 @@ export default {
|
|
|
|
|
|
|
|
|
},
|
|
|
- getAllOrgs() {
|
|
|
+ getAllOrgs() {
|
|
|
selectOrgList({orgId:this.$store.getters.orgId,checkSub:true,time:new Date()}).then((result) => {
|
|
|
- this.orgs = result;
|
|
|
- this.initHistorySelectOrg();
|
|
|
+ this.orgs = result;
|
|
|
+ this.initHistorySelectOrg();
|
|
|
});
|
|
|
},
|
|
|
leftSearch() {
|
|
|
@@ -578,7 +578,7 @@ export default {
|
|
|
this.$emit("selectNodeId", this.boundOrgIds);
|
|
|
// console.log("onOK",this.boundOrgIds);
|
|
|
this.value=this.boundOrgIds;
|
|
|
- this.$emit("input", this.boundOrgIds);
|
|
|
+ this.$emit("input", this.boundOrgIds);
|
|
|
this.hideDialog();
|
|
|
},
|
|
|
},
|
|
|
@@ -683,7 +683,7 @@ export default {
|
|
|
.tags_last{
|
|
|
height: 100%;
|
|
|
right: 0px;
|
|
|
- transition: all .3s;
|
|
|
+ transition: all .3s;
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
text-align: right;
|