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