对接问题知识库的转发
This commit is contained in:
@@ -48,10 +48,10 @@
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: {}
|
default: {}
|
||||||
},
|
},
|
||||||
title:{
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default:''
|
default: ''
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -102,7 +102,12 @@
|
|||||||
this.visibleTree = false
|
this.visibleTree = false
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$emit('SelectedByForm',this.userIds.join(','))
|
if (this.userIds && this.userIds.length > 0) {
|
||||||
|
this.submitLoading = true
|
||||||
|
this.$emit('SelectedByForm', this.userIds.join(','))
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onSearch(e) {
|
onSearch(e) {
|
||||||
this.gData = []
|
this.gData = []
|
||||||
@@ -171,7 +176,7 @@
|
|||||||
.drawer-bootom-button {
|
.drawer-bootom-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index:100;
|
z-index: 100;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-top: 1px solid #e8e8e8;
|
border-top: 1px solid #e8e8e8;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
|
|||||||
+20
-5
@@ -3,9 +3,9 @@
|
|||||||
<div class="doc-detail-wrap">
|
<div class="doc-detail-wrap">
|
||||||
<div class="doc-detail-header" style="position: fixed;top: 0">
|
<div class="doc-detail-header" style="position: fixed;top: 0">
|
||||||
<div class="doc-detail-title">
|
<div class="doc-detail-title">
|
||||||
<!-- <span style="line-height: 66px;display: inline-block;float: left">-->
|
<!-- <span style="line-height: 66px;display: inline-block;float: left">-->
|
||||||
<!-- <a-icon type="arrow-left" @click="back" style="margin-right: 6px;"/>-->
|
<!-- <a-icon type="arrow-left" @click="back" style="margin-right: 6px;"/>-->
|
||||||
<!-- </span>-->
|
<!-- </span>-->
|
||||||
{{queryForm.title}}
|
{{queryForm.title}}
|
||||||
</div>
|
</div>
|
||||||
<div class="doc-detail-right">
|
<div class="doc-detail-right">
|
||||||
@@ -156,8 +156,23 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
SelectedByForm() {
|
SelectedByForm(userIds) {
|
||||||
|
let query = {
|
||||||
|
userIds: userIds,
|
||||||
|
departIds: userIds,
|
||||||
|
problemKnowledgeBaseId: this.queryForm.id,
|
||||||
|
problemKnowledgeBaseTitle: this.queryForm.title
|
||||||
|
}
|
||||||
|
postAction('/problemKnowledgeBase/problemKnowledgeBaseEO/forward', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.$refs.SelectedByRef.visible = false
|
||||||
|
this.$refs.SelectedByRef.submitLoading = false
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.$refs.SelectedByRef.submitLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
queryById() {
|
queryById() {
|
||||||
let query = {
|
let query = {
|
||||||
|
|||||||
Reference in New Issue
Block a user