fix(系统设置): 测试资源池引用数据较多时展示问题

--bug=1026404 --user=宋昌昌 【系统设置】测试资源池-关闭local资源池-引用接口数据较多-未显示取消和确定按钮-无法关闭 https://www.tapd.cn/55049933/s/1376496
This commit is contained in:
song-cc-rock 2023-05-29 15:04:27 +08:00 committed by fit2-zhao
parent 3c9115a2fb
commit 48c6630956

View File

@ -554,7 +554,9 @@ export default {
if (row.status === 'INVALID') { if (row.status === 'INVALID') {
this.checkHaveTestUsePool(row).then(() => { this.checkHaveTestUsePool(row).then(() => {
if (this.updatePool && this.updatePool.haveTestUsePool) { if (this.updatePool && this.updatePool.haveTestUsePool) {
this.$confirm(this.$t('test_resource_pool.update_prompt', [this.updatePool.testName]), this.$t('commons.prompt'), { let testIndex = this.updatePool.testName.indexOf(";")
let subPrompt = this.updatePool.testName.substring(0, testIndex);
this.$confirm(this.$t('test_resource_pool.update_prompt', [subPrompt]), this.$t('commons.prompt'), {
confirmButtonText: this.$t('commons.confirm'), confirmButtonText: this.$t('commons.confirm'),
cancelButtonText: this.$t('commons.cancel'), cancelButtonText: this.$t('commons.cancel'),
type: 'warning' type: 'warning'