- 项目铁律:一律 MyDialog(Element 原生弹窗在本项目长期不可见) - 含用户报的 OKR 模板库「应用」弹窗(OKRTemplates.vue) - 等价适配:width 字符串 px → 数字绑定;append-to-body/destroy-on-close /top/show-close/class 等 EP 专有属性移除(MyDialog 已 teleport+卸载语义) - 新增 MyDialog 显式 import;零后端/零数据改动 - 全仓 <el-dialog> 0 命中;components.d.ts 随之移除 ElDialog 自动注册
This commit is contained in:
@@ -227,7 +227,7 @@
|
||||
</template>
|
||||
|
||||
<!-- 处理预警弹窗 -->
|
||||
<el-dialog v-model="showDialog" title="处理预警" width="500px">
|
||||
<MyDialog v-model="showDialog" title="处理预警" :width="500">
|
||||
<el-form :model="resolveForm" label-width="100px">
|
||||
<el-form-item label="预警类型">
|
||||
<el-tag :type="isTrendAlert(currentAlert?.alert_message) ? 'info' : 'primary'" size="small">
|
||||
@@ -258,10 +258,10 @@
|
||||
<el-button @click="showDialog=false">取消</el-button>
|
||||
<el-button type="primary" @click="doResolve" :loading="resolving">确认处理</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</MyDialog>
|
||||
|
||||
<!-- 编辑预警规则弹窗 -->
|
||||
<el-dialog v-model="showRuleForm" title="编辑预警规则" width="520px">
|
||||
<MyDialog v-model="showRuleForm" title="编辑预警规则" :width="520">
|
||||
<el-form :model="ruleForm" label-width="110px" size="small">
|
||||
<el-form-item label="规则类型">
|
||||
<el-select v-model="ruleForm.rule_type" style="width:100%">
|
||||
@@ -326,10 +326,10 @@
|
||||
<el-button @click="showRuleForm=false">取消</el-button>
|
||||
<el-button type="primary" @click="saveRule" :loading="savingRule">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</MyDialog>
|
||||
|
||||
<!-- 新建/编辑改善计划弹窗 -->
|
||||
<el-dialog v-model="showPlanForm" :title="editingPlan ? '编辑改善计划' : '新建改善计划'" width="550px">
|
||||
<MyDialog v-model="showPlanForm" :title="editingPlan ? '编辑改善计划' : '新建改善计划'" :width="550">
|
||||
<el-form :model="planForm" label-width="100px">
|
||||
<el-form-item label="计划名称"><el-input v-model="planForm.title" /></el-form-item>
|
||||
<el-form-item label="关联KPI">
|
||||
@@ -360,7 +360,7 @@
|
||||
<el-button @click="showPlanForm=false">取消</el-button>
|
||||
<el-button type="primary" @click="savePlan" :loading="savingPlan">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</MyDialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -372,6 +372,7 @@ import { alertApi, userApi, actionPlanApi, kpiApi, alertRulesApi } from '../api/
|
||||
import BotSourceTag from '../components/BotSourceTag.vue'
|
||||
import RiskCell from '../components/charts/RiskCell.vue'
|
||||
import { sessionEntityName } from '../utils/entity'
|
||||
import MyDialog from '../components/MyDialog.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const activeTab = ref((route.meta?.tab as string) || 'alerts')
|
||||
|
||||
Reference in New Issue
Block a user