对接问题知识库
This commit is contained in:
+10
-6
@@ -96,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<countryCardReleaseModel ref="countryCardReleaseModelRef"/>
|
<countryCardReleaseModel ref="countryCardReleaseModelRef"/>
|
||||||
<countryCardReleaseAdd ref="countryCardReleaseAddRef"/>
|
<countryCardReleaseAdd ref="countryCardReleaseAddRef" @countryCardReleaseAddForm="countryCardReleaseAddForm"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -128,13 +128,13 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('applicableMarket'),
|
title: this.$t('applicableMarket'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'applicableMarket',
|
dataIndex: 'applyMarket',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('releaseStatus'),
|
title: this.$t('releaseStatus'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
dataIndex: 'releaseStatus',
|
dataIndex: 'releaseStatus_dictText',
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -165,11 +165,15 @@
|
|||||||
this.pageNo = page
|
this.pageNo = page
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
SizeChange(page,pageSize) {
|
SizeChange(page, pageSize) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
this.pageSize = pageSize
|
this.pageSize = pageSize
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
countryCardReleaseAddForm() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
let queryParam = JSON.parse(JSON.stringify(this.queryParam))
|
||||||
Object.keys(queryParam).forEach(val => {
|
Object.keys(queryParam).forEach(val => {
|
||||||
@@ -224,8 +228,8 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
edit() {
|
edit(record) {
|
||||||
this.$refs.countryCardReleaseAddRef.edit()
|
this.$refs.countryCardReleaseAddRef.edit(JSON.parse(JSON.stringify(record)))
|
||||||
},
|
},
|
||||||
subscribe(record) {
|
subscribe(record) {
|
||||||
let _this = this
|
let _this = this
|
||||||
|
|||||||
+68
-20
@@ -43,25 +43,26 @@
|
|||||||
:loading="loading">
|
:loading="loading">
|
||||||
<span slot="content" slot-scope="text,record,index">
|
<span slot="content" slot-scope="text,record,index">
|
||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-if="false"
|
v-if="record.lableType == 8"
|
||||||
v-model="record.problemLabel"
|
v-model="record.content"
|
||||||
:placeholder="$t('PleaseEnter')"/>
|
:placeholder="$t('PleaseEnter')"/>
|
||||||
<a-select :placeholder="$t('PleaseSelect')"
|
<a-select :placeholder="$t('PleaseSelect')"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-if="false"
|
v-else-if="record.lableType == 3"
|
||||||
v-model="record.projectNameId">
|
v-model="record.content">
|
||||||
<a-select-option v-for="(item, key) in record.projectNameList"
|
<a-select-option v-for="(item, key) in record.countryCardTempItemEOList"
|
||||||
:key="key"
|
:key="key"
|
||||||
:value="item.id">
|
:value="item.id">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.projectName ">
|
<span style="display: inline-block;width: 100%" :title=" item.itemText ">
|
||||||
{{ item.projectName}}
|
{{ item.itemText}}
|
||||||
</span>
|
</span>
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<a-button type="primary" class="button-text"
|
<a-button type="primary" class="button-text"
|
||||||
@click="clickButtonToUpload('verifyDeliverableTemplate',index)">
|
v-else-if="record.lableType == 7"
|
||||||
{{ (record.verifyDeliverableTemplate === 'null' || record.verifyDeliverableTemplate === '' ||
|
@click="clickButtonToUpload('content',index)">
|
||||||
record.verifyDeliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
{{ (record.content === 'null' || record.content === '' ||
|
||||||
|
record.content == null) ? $t('clickUpload') : $t('viewUploadedFiles')
|
||||||
}}
|
}}
|
||||||
</a-button>
|
</a-button>
|
||||||
</span>
|
</span>
|
||||||
@@ -89,8 +90,10 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: {
|
url: {
|
||||||
list: '',
|
list: '/problemKnowledgeBase/countryCardTempEO/list',
|
||||||
deleteOne: ''
|
deleteOne: '',
|
||||||
|
add: '/problemKnowledgeBase/countryCardManageReleaseEO/add',
|
||||||
|
edit: '/problemKnowledgeBase/countryCardManageReleaseDetailEO/editBatch'
|
||||||
},
|
},
|
||||||
title: '',
|
title: '',
|
||||||
formInline: {},
|
formInline: {},
|
||||||
@@ -98,7 +101,7 @@
|
|||||||
applyMarket: [
|
applyMarket: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: this.$t('LabelType') + this.$t('cannotEmpty'),
|
message: this.$t('applicableMarket') + this.$t('cannotEmpty'),
|
||||||
trigger: 'change'
|
trigger: 'change'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -113,21 +116,23 @@
|
|||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('LabelName'),
|
title: this.$t('LabelName'),
|
||||||
dataIndex: 'LabelName',
|
dataIndex: 'lableName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
ellipsis: true
|
ellipsis: true,
|
||||||
|
width: 220
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('describe'),
|
title: this.$t('describe'),
|
||||||
dataIndex: 'describe',
|
dataIndex: 'description',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 260,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('content'),
|
title: this.$t('content'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 180,
|
width: 260,
|
||||||
scopedSlots: { customRender: 'content' }
|
scopedSlots: { customRender: 'content' }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -139,11 +144,13 @@
|
|||||||
add() {
|
add() {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.title = this.$t('newlyAdded')
|
this.title = this.$t('newlyAdded')
|
||||||
|
this.replacePage()
|
||||||
this.getApplyMarketList()
|
this.getApplyMarketList()
|
||||||
},
|
},
|
||||||
edit() {
|
edit(row) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.title = this.$t('edit')
|
this.title = this.$t('edit')
|
||||||
|
this.editReplacePage(row)
|
||||||
this.getApplyMarketList()
|
this.getApplyMarketList()
|
||||||
},
|
},
|
||||||
getApplyMarketList() {
|
getApplyMarketList() {
|
||||||
@@ -186,13 +193,54 @@
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
let url = ''
|
||||||
|
if (this.title == this.$t('newlyAdded')) {
|
||||||
|
url = this.url.add
|
||||||
|
} else {
|
||||||
|
url = this.url.edit
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
|
let content = []
|
||||||
|
this.dataList.forEach(res => {
|
||||||
|
content.push({
|
||||||
|
countryCardTempId: res.id,
|
||||||
|
description: res.description,
|
||||||
|
content: res.content
|
||||||
|
})
|
||||||
|
})
|
||||||
|
let query = {
|
||||||
|
countryCardManageReleaseDetailEOList: content,
|
||||||
|
applyMarket: this.formInline.applyMarket
|
||||||
|
}
|
||||||
|
postAction(url, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$emit('countryCardReleaseAddForm')
|
||||||
|
} else {
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
replacePage() {
|
replacePage() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
postAction(this.url.list, {}).then((res) => {
|
getAction(this.url.list, {}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.dataList = res.result || []
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.dataList = []
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
editReplacePage(row) {
|
||||||
|
this.loading = true
|
||||||
|
getAction('/problemKnowledgeBase/countryCardManageReleaseDetailEO/list', { editReplacePage: row.id }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataList = res.result || []
|
this.dataList = res.result || []
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
+2
-2
@@ -124,7 +124,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAction, postAction, downloadFile,deleteAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||||
import optionMaintenance from './optionMaintenance'
|
import optionMaintenance from './optionMaintenance'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -289,7 +289,7 @@
|
|||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
if (this.formInline.lableType == 3) {
|
if (this.formInline.lableType == 3 && !this.formInline.id) {
|
||||||
deleteAction(this.url.deleteOne, { countryCardTempId: this.dropDownOptionsId }).then((res) => {
|
deleteAction(this.url.deleteOne, { countryCardTempId: this.dropDownOptionsId }).then((res) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user