- {{$t('answer')}}
+
+
+ {{$t('answer')}}
+
+
+ {{$t('delete')}}
+
@@ -158,6 +177,7 @@
import SelectedBy from '@/components/SelectedBy/index'
import { mapGetters } from 'vuex'
import { Base64 } from 'js-base64'
+ import { deleteAction } from '../../../../api/manage'
export default {
name: 'problemKnowledgeBaseListView',
@@ -167,6 +187,8 @@
data() {
return {
visibleComment: false,
+ administrators: false,
+ userInfoQuery: {},
releaseList: [],
loading: false,
formInline: {},
@@ -205,7 +227,15 @@
}
},
mounted() {
-
+ this.administrators = false
+ this.userInfoQuery = this.userInfo()
+ if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
+ this.userInfo().userRoleList.forEach(res => {
+ if (res.roleCode == 'admin') {
+ this.administrators = true
+ }
+ })
+ }
},
methods: {
...mapGetters(['userInfo']),
@@ -229,6 +259,28 @@
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
},
+ deleteClick(item) {
+ let _this = this
+ this.$confirm({
+ content: _this.$t('ConfirmDelete'),
+ onOk() {
+ let url = ''
+ if (item.problemKnowledgeBaseId) {
+ url = '/problemKnowledgeBase/problemKnowledgeBaseCommentEO/deleteBatch'
+ } else {
+ url = '/project/problemKnowledgeBaseReplyEO/deleteBatch'
+ }
+ deleteAction(url, { ids: item.id }).then((res) => {
+ if (res.success) {
+ _this.$message.success(_this.$t('OperationSuccessful'))
+ _this.releaseData()
+ } else {
+ _this.$message.warning(res.message)
+ }
+ })
+ }
+ })
+ },
download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
},
@@ -494,22 +546,22 @@
margin-top: 10px;
.content-box-content-botton-text {
- max-width: 200px;
+ /*max-width: 200px;*/
/*min-width: 120px;*/
height: 32px;
display: inline-block;
text-align: center;
line-height: 32px;
- padding: 0 10px;
- background: #EFF1F3;
+ /*padding: 0 10px;*/
+ /*background: #EFF1F3;*/
border-radius: 4px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
- font-size: 12px;
+ font-size: 14px;
font-weight: 400;
color: #040B29;
- margin-right: 10px;
+ margin-right: 20px;
cursor: pointer;
.file-text {
@@ -517,6 +569,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ text-decoration: underline;
display: inline-block;
margin-right: 6px;
cursor: pointer;
@@ -632,6 +685,10 @@
margin-top: 6px;
}
+ .answer-text-index {
+ width: 100%;
+ }
+
.answer-text {
display: inline-block;
padding: 3px 14px;
diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue
index 67a491e01..cc029a5c3 100644
--- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue
+++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseRelease.vue
@@ -3,9 +3,9 @@
@@ -42,8 +42,10 @@
{{item.contentOne}}