修改禅道已知bug
对接我的收藏的问题知识库
This commit is contained in:
+6
@@ -228,6 +228,9 @@
|
|||||||
id: this.queryForm.praiseEO ? this.queryForm.praiseEO.id : undefined
|
id: this.queryForm.praiseEO ? this.queryForm.praiseEO.id : undefined
|
||||||
}
|
}
|
||||||
putAction('/problemKnowledgeBase/problemKnowledgeBasePraiseEO/edit', query).then((res) => {
|
putAction('/problemKnowledgeBase/problemKnowledgeBasePraiseEO/edit', query).then((res) => {
|
||||||
|
if (!this.queryForm.collectEO || !this.queryForm.collectEO.id) {
|
||||||
|
this.queryById()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
starClick() {
|
starClick() {
|
||||||
@@ -247,6 +250,9 @@
|
|||||||
id: this.queryForm.collectEO ? this.queryForm.collectEO.id : undefined
|
id: this.queryForm.collectEO ? this.queryForm.collectEO.id : undefined
|
||||||
}
|
}
|
||||||
putAction('/problemKnowledgeBase/problemKnowledgeBaseCollectEO/edit', query).then((res) => {
|
putAction('/problemKnowledgeBase/problemKnowledgeBaseCollectEO/edit', query).then((res) => {
|
||||||
|
if (!this.queryForm.collectEO || !this.queryForm.collectEO.id) {
|
||||||
|
this.queryById()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
|
|||||||
+7
-7
@@ -35,9 +35,9 @@
|
|||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<a-checkbox-group style="width: 100%" :defaultChecked="checkboxText"
|
<a-checkbox-group style="width: 100%" :defaultChecked="checkboxText"
|
||||||
@change="checkboxTextChange" v-model="checkboxText">
|
@change="checkboxTextChange" v-model="checkboxText">
|
||||||
<div v-for="item in conList" :key="item.id">
|
<div v-for="item in conList" :key="item.collectEO.id">
|
||||||
<div style="margin-bottom: 10px;position: relative">
|
<div style="margin-bottom: 10px;position: relative">
|
||||||
<a-checkbox :value="item.id" class="checkbox-left"></a-checkbox>
|
<a-checkbox :value="item.collectEO.id" class="checkbox-left"></a-checkbox>
|
||||||
<div class="text-text-right"
|
<div class="text-text-right"
|
||||||
@click="checkedClick(item)"
|
@click="checkedClick(item)"
|
||||||
:class="{ 'null-input':item.checked }">
|
:class="{ 'null-input':item.checked }">
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
if (value.length > 0) {
|
if (value.length > 0) {
|
||||||
this.conList.forEach(val => {
|
this.conList.forEach(val => {
|
||||||
value.forEach(res => {
|
value.forEach(res => {
|
||||||
if (res === val.id) {
|
if (res === val.collectEO.id) {
|
||||||
val.checked = true
|
val.checked = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
this.$confirm({
|
this.$confirm({
|
||||||
content: _this.$t('confirmCancelCollection'),
|
content: _this.$t('confirmCancelCollection'),
|
||||||
onOk() {
|
onOk() {
|
||||||
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
deleteAction(_this.url.deleteBatch, { ids: val.collectEO.id }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
_this.getList()
|
_this.getList()
|
||||||
@@ -216,13 +216,13 @@
|
|||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.getInfoList, query).then((res) => {
|
getAction(this.url.getInfoList, query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success && res.result) {
|
||||||
if (res.result.current > 1 && res.result.records.length == 0) {
|
if (res.result.current > 1 && res.result.records.length == 0) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.conList = res.result.records
|
this.conList = res.result ? res.result.records : []
|
||||||
if (this.conList && this.conList.length > 0) {
|
if (this.conList && this.conList.length > 0) {
|
||||||
this.conList.forEach(val => {
|
this.conList.forEach(val => {
|
||||||
if (val.content) {
|
if (val.content) {
|
||||||
@@ -233,7 +233,7 @@
|
|||||||
if (this.checkboxList && this.checkboxList.length > 0) {
|
if (this.checkboxList && this.checkboxList.length > 0) {
|
||||||
let contentList = []
|
let contentList = []
|
||||||
for (let j = 0; j < this.conList.length; j++) {
|
for (let j = 0; j < this.conList.length; j++) {
|
||||||
contentList.push(this.conList[j].id)
|
contentList.push(this.conList[j].collectEO.id)
|
||||||
}
|
}
|
||||||
this.checkboxList = this.checkboxList.filter(val => {
|
this.checkboxList = this.checkboxList.filter(val => {
|
||||||
return !contentList.join(',').includes(val)
|
return !contentList.join(',').includes(val)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
ref="table"
|
ref="table"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: true}"
|
:scroll="{x: '100%'}"
|
||||||
:data-source="dataSource"
|
:data-source="dataSource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
>
|
>
|
||||||
@@ -41,31 +41,36 @@
|
|||||||
title: this.$t('OperationContent'),
|
title: this.$t('OperationContent'),
|
||||||
dataIndex: 'taskDefinitionKeyName',
|
dataIndex: 'taskDefinitionKeyName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('opinion'),
|
title: this.$t('opinion'),
|
||||||
dataIndex: 'approvalOpinion',
|
dataIndex: 'approvalOpinion',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('Operator'),
|
title: this.$t('Operator'),
|
||||||
dataIndex: 'createBy',
|
dataIndex: 'createBy',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('role'),
|
title: this.$t('role'),
|
||||||
dataIndex: 'operatorRoleName',
|
dataIndex: 'operatorRoleName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%'
|
width: '20%',
|
||||||
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('OperationTime'),
|
title: this.$t('OperationTime'),
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '20%',
|
width: '20%',
|
||||||
|
ellipsis: true,
|
||||||
customRender: function(t, r, index) {
|
customRender: function(t, r, index) {
|
||||||
return moment(t).format('YYYY-MM-DD HH:mm:ss')
|
return moment(t).format('YYYY-MM-DD HH:mm:ss')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
</div>
|
</div>
|
||||||
<regulatoryCirculationHistory v-if="$route.query.prcType == '5' || $route.query.prcType == '6'"/>
|
<regulatoryCirculationHistory :isTrue="isTrue"
|
||||||
|
v-if="$route.query.prcType == '5' || $route.query.prcType == '6'"/>
|
||||||
<circulationHistory v-else/>
|
<circulationHistory v-else/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,7 +34,8 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
processStep: null
|
processStep: null,
|
||||||
|
isTrue: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -41,6 +43,11 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.processNum()
|
this.processNum()
|
||||||
|
if (this.$route.query.prcType == '6') {
|
||||||
|
this.isTrue = true
|
||||||
|
} else {
|
||||||
|
this.isTrue = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
back() {
|
back() {
|
||||||
|
|||||||
Reference in New Issue
Block a user