Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
clearable
|
clearable
|
||||||
|
filterable
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
style="height: 100%; overflow: auto;"
|
style="height: 100%; overflow: auto;"
|
||||||
class="filter-tree tree-line"
|
class="filter-tree tree-line"
|
||||||
:class="treeClass"
|
:class="treeClass"
|
||||||
|
@check-change="checkChange"
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
:default-checked-keys="nodeList"
|
:default-checked-keys="nodeList"
|
||||||
@@ -116,15 +117,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
checkChange (row, type, c) {
|
||||||
|
if (!type) {
|
||||||
|
if (this.nodeList.length > 0) {
|
||||||
|
for (let a = 0; a < this.nodeList.length; a ++) {
|
||||||
|
if (row.id === this.nodeList[a]) {
|
||||||
|
this.nodeList.splice(a, 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
treeClass () {
|
treeClass () {
|
||||||
|
|
||||||
},
|
},
|
||||||
handleTreeDrawerCancel () {
|
handleTreeDrawerCancel () {
|
||||||
this.filterText = ''
|
this.filterText = ''
|
||||||
this.isVisible2 = false
|
this.isVisible2 = false
|
||||||
},
|
},
|
||||||
saveUserInfo () {
|
saveUserInfo () {
|
||||||
if (this.nodeList.length) {
|
if (this.nodeList.length > 0) {
|
||||||
let ids = ''
|
let ids = ''
|
||||||
this.nodeList.forEach(item => {
|
this.nodeList.forEach(item => {
|
||||||
if (ids.length > 0) {
|
if (ids.length > 0) {
|
||||||
@@ -134,18 +145,27 @@
|
|||||||
ids = item
|
ids = item
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let oldList = []
|
|
||||||
this.$http.get('SarInstitution/institution/getNextById', {
|
this.$http.get('SarInstitution/institution/getNextById', {
|
||||||
ids: ids
|
ids: ids
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
oldList = res
|
let oldList2 = res.concat(this.roleList)
|
||||||
|
let result = []
|
||||||
|
let obj = {}
|
||||||
|
for(let i = 0; i < oldList2.length; i++){
|
||||||
|
if(!obj[oldList2[i].id]){
|
||||||
|
result.push(oldList2[i]);
|
||||||
|
obj[oldList2[i].id] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.isVisible2 = false
|
||||||
|
this.$emit('checkedRole', result)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.isVisible2 = false
|
||||||
|
this.$emit('checkedRole', this.roleList)
|
||||||
}
|
}
|
||||||
this.isVisible2 = false
|
|
||||||
this.$emit('checkedRole', this.roleList)
|
|
||||||
},
|
},
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
if (this.checkBox) {
|
if (this.checkBox) {
|
||||||
|
|||||||
@@ -3024,7 +3024,13 @@
|
|||||||
this.$refs['relatedTermsSelect'].handleSubmit(() => {
|
this.$refs['relatedTermsSelect'].handleSubmit(() => {
|
||||||
this.selectSarStandItems()
|
this.selectSarStandItems()
|
||||||
this.btnLoading = false
|
this.btnLoading = false
|
||||||
|
this.$message({
|
||||||
|
message: '关联成功',
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
closeRelatedTermsDrawer() {
|
closeRelatedTermsDrawer() {
|
||||||
this.$refs['relatedTermsDrawer'].closeDrawer()
|
this.$refs['relatedTermsDrawer'].closeDrawer()
|
||||||
|
|||||||
@@ -659,7 +659,8 @@
|
|||||||
:disabled="formdisableflag"
|
:disabled="formdisableflag"
|
||||||
></custom-textarea>
|
></custom-textarea>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="field.attrType === 'SEL_OPTION'">
|
<!-- 起草单位-->
|
||||||
|
<template v-else-if="field.attrType === 'SEL_OPTION' || field.attrType === 'SEL_OPTS' ">
|
||||||
<template>
|
<template>
|
||||||
<custom-select
|
<custom-select
|
||||||
:key="field.attrField"
|
:key="field.attrField"
|
||||||
|
|||||||
Reference in New Issue
Block a user