- 项目铁律:一律 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:
@@ -71,7 +71,7 @@
|
||||
</el-row>
|
||||
|
||||
<!-- 回款登记弹窗 -->
|
||||
<el-dialog v-model="paymentVisible" title="登记回款" width="420px" append-to-body>
|
||||
<MyDialog v-model="paymentVisible" title="登记回款" :width="420">
|
||||
<el-form label-width="90px">
|
||||
<el-form-item label="客户">{{ currentRow?.name }}</el-form-item>
|
||||
<el-form-item label="应收金额">¥{{ currentRow?.amount }}万</el-form-item>
|
||||
@@ -86,7 +86,7 @@
|
||||
<el-button @click="paymentVisible = false">取消</el-button>
|
||||
<el-button type="primary" :loading="paying" @click="submitPayment">确认回款</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</MyDialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -95,6 +95,7 @@ import { ref, computed, onMounted, nextTick } from 'vue'
|
||||
import * as echarts from 'echarts'
|
||||
import api from '@/api'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import MyDialog from '../components/MyDialog.vue'
|
||||
|
||||
const items = ref<any[]>([])
|
||||
const owners = ref<string[]>([])
|
||||
|
||||
Reference in New Issue
Block a user