forked from github/dataease
fix: 编辑API数据表-设计验收问题汇总 功能button显示不对
This commit is contained in:
parent
6884d51ab5
commit
e8ad480c58
@ -17,9 +17,11 @@ export default {
|
|||||||
count: {
|
count: {
|
||||||
update: function(el, binding) {
|
update: function(el, binding) {
|
||||||
const { value, maxlength, buttonDisabled } = binding.value
|
const { value, maxlength, buttonDisabled } = binding.value
|
||||||
if (buttonDisabled) {
|
if (buttonDisabled && el.querySelector('.el-input__count')) {
|
||||||
el.removeChild(el.querySelector('.el-input__count'))
|
el.querySelector('.el-input__count').style.dispaly = 'none'
|
||||||
return
|
return
|
||||||
|
} else if (el.querySelector('.el-input__count')) {
|
||||||
|
el.querySelector('.el-input__count').style.dispaly = 'block'
|
||||||
}
|
}
|
||||||
const lg = value?.length || 0
|
const lg = value?.length || 0
|
||||||
const count = el.querySelector('.el-input__count')
|
const count = el.querySelector('.el-input__count')
|
||||||
|
@ -381,6 +381,7 @@ export default {
|
|||||||
ukey_title: 'API Keys',
|
ukey_title: 'API Keys',
|
||||||
thumbnail: 'thumbnail',
|
thumbnail: 'thumbnail',
|
||||||
confirm_delete: 'Confirm delete',
|
confirm_delete: 'Confirm delete',
|
||||||
|
delete_this_dashboard: 'Are you sure to delete this dashboard?',
|
||||||
confirm_stop: 'Confirm stop',
|
confirm_stop: 'Confirm stop',
|
||||||
stop_success: 'Stop success',
|
stop_success: 'Stop success',
|
||||||
treeselect: {
|
treeselect: {
|
||||||
|
@ -381,6 +381,7 @@ export default {
|
|||||||
ukey_title: 'API Keys',
|
ukey_title: 'API Keys',
|
||||||
thumbnail: '縮略圖',
|
thumbnail: '縮略圖',
|
||||||
confirm_delete: '確認刪除',
|
confirm_delete: '確認刪除',
|
||||||
|
delete_this_dashboard: '確認删除該儀錶板嗎?',
|
||||||
confirm_stop: '確認停止',
|
confirm_stop: '確認停止',
|
||||||
stop_success: '停止成功',
|
stop_success: '停止成功',
|
||||||
treeselect: {
|
treeselect: {
|
||||||
|
@ -380,6 +380,7 @@ export default {
|
|||||||
ukey_title: 'API Keys',
|
ukey_title: 'API Keys',
|
||||||
thumbnail: '缩略图',
|
thumbnail: '缩略图',
|
||||||
confirm_delete: '确认删除',
|
confirm_delete: '确认删除',
|
||||||
|
delete_this_dashboard: '确认删除该仪表板吗?',
|
||||||
confirm_stop: '确认停止',
|
confirm_stop: '确认停止',
|
||||||
stop_success: '停止成功',
|
stop_success: '停止成功',
|
||||||
treeselect: {
|
treeselect: {
|
||||||
|
@ -931,9 +931,12 @@ export default {
|
|||||||
options.link = this.$t('datasource.click_to_check')
|
options.link = this.$t('datasource.click_to_check')
|
||||||
options.content = this.$t('datasource.cannot_be_deleted_dataset')
|
options.content = this.$t('datasource.cannot_be_deleted_dataset')
|
||||||
options.templateDel = msgContent
|
options.templateDel = msgContent
|
||||||
|
options.confirmButtonText = undefined
|
||||||
|
options.type = 'danger'
|
||||||
|
|
||||||
|
|
||||||
options.linkTo = this.linkTo.bind(this, { queryType, id })
|
options.linkTo = this.linkTo.bind(this, { queryType, id })
|
||||||
this.withLink(options)
|
this.withLink(options, this.$t('commons.delete'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.handlerConfirm(options)
|
this.handlerConfirm(options)
|
||||||
|
@ -458,10 +458,12 @@ import { mapState } from 'vuex'
|
|||||||
import { DEFAULT_COMMON_CANVAS_STYLE_STRING } from '@/views/panel/panel'
|
import { DEFAULT_COMMON_CANVAS_STYLE_STRING } from '@/views/panel/panel'
|
||||||
import TreeSelector from '@/components/treeSelector'
|
import TreeSelector from '@/components/treeSelector'
|
||||||
import { queryAuthModel } from '@/api/authModel/authModel'
|
import { queryAuthModel } from '@/api/authModel/authModel'
|
||||||
|
import msgCfm from '@/components/msgCfm/index'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'PanelList',
|
name: 'PanelList',
|
||||||
components: { GrantAuth, LinkGenerate, EditPanel, TreeSelector },
|
components: { GrantAuth, LinkGenerate, EditPanel, TreeSelector },
|
||||||
|
mixins: [msgCfm],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lastActiveDefaultPanelId: null, // 激活的节点 在这个节点下面动态放置子节点
|
lastActiveDefaultPanelId: null, // 激活的节点 在这个节点下面动态放置子节点
|
||||||
@ -856,12 +858,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
delete(data) {
|
delete(data) {
|
||||||
this.$confirm(this.$t('panel.confirm_delete'), this.$t('panel.tips'), {
|
const params = {
|
||||||
confirmButtonText: this.$t('panel.confirm'),
|
title: 'commons.delete_this_dashboard',
|
||||||
cancelButtonText: this.$t('panel.cancel'),
|
type: 'danger',
|
||||||
type: 'warning'
|
cb: () => {
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
delGroup(data.id).then((response) => {
|
delGroup(data.id).then((response) => {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
@ -872,9 +872,9 @@ export default {
|
|||||||
this.tree()
|
this.tree()
|
||||||
this.defaultTree(false)
|
this.defaultTree(false)
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
.catch(() => {
|
}
|
||||||
})
|
this.handlerConfirm(params, this.$t('commons.delete'))
|
||||||
},
|
},
|
||||||
|
|
||||||
clearCanvas() {
|
clearCanvas() {
|
||||||
|
@ -449,7 +449,7 @@
|
|||||||
v-closePress
|
v-closePress
|
||||||
:title="api_table_title"
|
:title="api_table_title"
|
||||||
:visible.sync="edit_api_item"
|
:visible.sync="edit_api_item"
|
||||||
custom-class="api-datasource-drawer"
|
custom-class="api-datasource-drawer ds-configuration-input"
|
||||||
size="840px"
|
size="840px"
|
||||||
:before-close="closeEditItem"
|
:before-close="closeEditItem"
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
@ -1517,6 +1517,12 @@ export default {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ds-configuration-input {
|
||||||
|
.el-input__inner {
|
||||||
|
color: var(--deTextPrimary, #1F2329);
|
||||||
|
}
|
||||||
|
}
|
||||||
.checkbox-table {
|
.checkbox-table {
|
||||||
.el-checkbox {
|
.el-checkbox {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -661,7 +661,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
editDatasource(type) {
|
editDatasource(type) {
|
||||||
this.canEdit = type
|
this.$emit('update:canEdit', type)
|
||||||
this.disabled = !type
|
this.disabled = !type
|
||||||
},
|
},
|
||||||
baseInfoDisabledCheck(privileges) {
|
baseInfoDisabledCheck(privileges) {
|
||||||
|
@ -23,11 +23,13 @@
|
|||||||
<deBtn
|
<deBtn
|
||||||
v-if="privileges && canEdit"
|
v-if="privileges && canEdit"
|
||||||
secondary
|
secondary
|
||||||
|
key="cancel"
|
||||||
@click="editDatasource(false)"
|
@click="editDatasource(false)"
|
||||||
>{{ $t('commons.cancel') }}
|
>{{ $t('commons.cancel') }}
|
||||||
</deBtn>
|
</deBtn>
|
||||||
<deBtn
|
<deBtn
|
||||||
v-if="privileges && !canEdit"
|
v-if="privileges && !canEdit"
|
||||||
|
key="edit"
|
||||||
secondary
|
secondary
|
||||||
@click="editDatasource(true)"
|
@click="editDatasource(true)"
|
||||||
>{{ $t('commons.edit') }}
|
>{{ $t('commons.edit') }}
|
||||||
@ -54,7 +56,7 @@
|
|||||||
>{{ $t('commons.validate') }}
|
>{{ $t('commons.validate') }}
|
||||||
</deBtn>
|
</deBtn>
|
||||||
<deBtn
|
<deBtn
|
||||||
v-if="privileges"
|
v-if="privileges && canEdit"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="save"
|
@click="save"
|
||||||
>{{ $t('commons.save') }}
|
>{{ $t('commons.save') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user