[update] 修改企标级别映射和友情链接管理自测bug
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
<div slot="action" slot-scope="{text, record}" class="action-span-cell">
|
||||
<a v-if="record.level === 1 || record.level === 2" @click="handleEdit(record)" class="table-ope-btn" v-has="'sys:enterpriseLevelMap:edit'">{{ $t('edit') }}</a>
|
||||
<a v-else>{{ global.emptyLine }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</div>
|
||||
|
||||
<!-- <template v-slot:action="{text, record}">-->
|
||||
@@ -70,7 +70,7 @@ export default {
|
||||
scopedSlots: { customRender: 'action' },
|
||||
align: 'center',
|
||||
fixed: 'right',
|
||||
width: 100
|
||||
width: 200
|
||||
}
|
||||
],
|
||||
url: {
|
||||
|
||||
@@ -165,10 +165,14 @@ export default {
|
||||
this.$message.warning(this.$t('system.friendshipLink.shelfWarn'))
|
||||
return
|
||||
}
|
||||
record.grounding = record.grounding === true ? '1' : '0'
|
||||
postAction(this.url.edit, record).then(res => {
|
||||
console.log(record)
|
||||
const param = Object.assign({}, record)
|
||||
param.grounding = record.grounding === true ? '1' : '0'
|
||||
postAction(this.url.edit, param).then(res => {
|
||||
if (res.success) {
|
||||
this.loadData()
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
this.confirmLoading = true
|
||||
const param = Object.assign({}, values)
|
||||
param.id = this.model.id
|
||||
param.grounding = this.model.grounding ? '1' : '0'
|
||||
param.grounding = param.grounding ? '1' : '0'
|
||||
const url = this.url.edit
|
||||
postAction(url, param).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user