AiDialogBtn升级到UI库
This commit is contained in:
@@ -104,11 +104,10 @@
|
||||
import {mapState} from "vuex";
|
||||
import EnterpriseDialog from "../../../components/enterpriseDialog";
|
||||
import PersonCreditReport from "../../../components/personCreditReport";
|
||||
import AiDialogBtn from "../../../components/AiDialogBtn";
|
||||
|
||||
export default {
|
||||
name: "loanDetail",
|
||||
components: {AiDialogBtn, PersonCreditReport, EnterpriseDialog},
|
||||
components: {PersonCreditReport, EnterpriseDialog},
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
|
||||
@@ -58,11 +58,10 @@
|
||||
import {mapState} from "vuex";
|
||||
import EnterpriseDialog from "../../../components/enterpriseDialog";
|
||||
import PersonCreditReport from "../../../components/personCreditReport";
|
||||
import AiDialogBtn from "../../../components/AiDialogBtn";
|
||||
|
||||
export default {
|
||||
name: "needsDetail",
|
||||
components: {AiDialogBtn, PersonCreditReport, EnterpriseDialog},
|
||||
components: {PersonCreditReport, EnterpriseDialog},
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
|
||||
@@ -84,12 +84,11 @@
|
||||
import {mapState} from "vuex";
|
||||
import EnterpriseDialog from "../../../components/enterpriseDialog";
|
||||
import PersonCreditReport from "../../../components/personCreditReport";
|
||||
import AiDialogBtn from "../../../components/AiDialogBtn";
|
||||
|
||||
|
||||
export default {
|
||||
name: "grabDetail",
|
||||
components: {AiDialogBtn, PersonCreditReport, EnterpriseDialog},
|
||||
components: {PersonCreditReport, EnterpriseDialog},
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
|
||||
@@ -302,7 +302,6 @@ import moment from 'dayjs'
|
||||
import {mapState} from "vuex";
|
||||
import Viewer from 'v-viewer'
|
||||
import Vue from 'vue'
|
||||
import AiDialogBtn from "../../../../components/AiDialogBtn";
|
||||
import PersonCreditReport from "../../../../components/personCreditReport";
|
||||
import EnterpriseDialog from "../../../../components/enterpriseDialog";
|
||||
|
||||
@@ -310,7 +309,7 @@ Vue.use(Viewer)
|
||||
|
||||
export default {
|
||||
name: "approvalDetail",
|
||||
components: {EnterpriseDialog, PersonCreditReport, AiDialogBtn},
|
||||
components: {EnterpriseDialog, PersonCreditReport},
|
||||
inject: ['approval'],
|
||||
props: {
|
||||
instance: Function,
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
<template>
|
||||
<section class="AiDialogBtn">
|
||||
<div @click="dialog=true">
|
||||
<slot v-if="$scopedSlots.btn" name="btn"/>
|
||||
<el-button type="text">{{ text }}</el-button>
|
||||
</div>
|
||||
<ai-dialog :visible.sync="dialog" :title="dialogTitle" width="1200px" customFooter>
|
||||
<slot/>
|
||||
<template #footer>
|
||||
<el-button @click="dialog=false">关闭</el-button>
|
||||
</template>
|
||||
</ai-dialog>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AiDialogBtn",
|
||||
props: {
|
||||
text: {default: "点击弹窗"},
|
||||
dialogTitle: {default: "展示信息"}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialog: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AiDialogBtn {
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user