解绑字典工具类和vuex的强绑定,字典类可单独使用
This commit is contained in:
@@ -18,7 +18,6 @@ Vue.config.productionTip = false;
|
|||||||
Vue.prototype.$axios = axios;
|
Vue.prototype.$axios = axios;
|
||||||
Vue.prototype.formatContent = (val) => val.replace(/(\r\n)|(\n)/g, '<br>');
|
Vue.prototype.formatContent = (val) => val.replace(/(\r\n)|(\n)/g, '<br>');
|
||||||
Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e]));
|
Object.keys(utils).map((e) => (Vue.prototype[e] = utils[e]));
|
||||||
utils.$store.init(store);
|
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
|
|||||||
@@ -77,25 +77,7 @@ export default {
|
|||||||
this.activeName = this.$route.query?.type
|
this.activeName = this.$route.query?.type
|
||||||
this.areaId = JSON.parse(JSON.stringify(this.user.info.areaId))
|
this.areaId = JSON.parse(JSON.stringify(this.user.info.areaId))
|
||||||
this.dict.load('residentType', "sex", "faithType", "fileStatus",
|
this.dict.load('residentType', "sex", "faithType", "fileStatus",
|
||||||
"legality",
|
"legality", "education", "maritalStatus", "politicsStatus", "householdName", "nation", "liveReason", "certificateType", "job", "militaryStatus", "householdRelation", "logoutReason", "nation", "registerStatus", "residentTipType", "liveCategory", "livePeriod", "language", "nationality");
|
||||||
"education",
|
|
||||||
"maritalStatus",
|
|
||||||
"politicsStatus",
|
|
||||||
"householdName",
|
|
||||||
"nation",
|
|
||||||
"liveReason",
|
|
||||||
"certificateType",
|
|
||||||
"job",
|
|
||||||
"militaryStatus",
|
|
||||||
"householdRelation",
|
|
||||||
"logoutReason",
|
|
||||||
"nation",
|
|
||||||
"registerStatus",
|
|
||||||
"residentTipType",
|
|
||||||
"liveCategory",
|
|
||||||
"livePeriod",
|
|
||||||
"language",
|
|
||||||
"nationality");
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
32
packages/meta/AppResident/components/AiEditCard.vue
Normal file
32
packages/meta/AppResident/components/AiEditCard.vue
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<template>
|
||||||
|
<section class="AiEditCard">
|
||||||
|
<ai-card v-bind="{...$props,...$attrs}">
|
||||||
|
<template #content>
|
||||||
|
<slot name="edit"/>
|
||||||
|
<slot/>
|
||||||
|
</template>
|
||||||
|
</ai-card>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "AiEditCard",
|
||||||
|
props: {
|
||||||
|
editable:{default:false}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
editable: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
created() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.AiEditCard {
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user