master
lion 1 year ago
parent 93c2240541
commit 33c445e75f

@ -88,7 +88,7 @@
<div v-for="item in showData" class='catalog_item' @click="clickIn(item)"> <div v-for="item in showData" class='catalog_item' @click="clickIn(item)">
<div> <div>
<div class="catalog_count" v-if="!(item.children&&item.children.length>0)">{{item.records_total}}</div> <div class="catalog_count" v-if="!(item.children&&item.children.length>0)">{{item.records_total}}</div>
<div class="catalog_count" v-else>{{item.sub_records_total}}</div>
<i :class="item.children&&item.children.length>0?'el-icon-folder-opened':'el-icon-document-copy'"></i> <i :class="item.children&&item.children.length>0?'el-icon-folder-opened':'el-icon-document-copy'"></i>
<div>{{item.name}}</div> <div>{{item.name}}</div>
</div> </div>

@ -168,7 +168,7 @@
} }
}, },
created() { created() {
this.getAreaList()
}, },
methods: { methods: {
async getAreaList() { async getAreaList() {
@ -298,7 +298,8 @@
}, },
}, },
watch: { watch: {
isShow(newVal) { isShow(newVal) {
this.getAreaList()
if (newVal) { if (newVal) {
if (this.type === 'editor') { if (this.type === 'editor') {
this.getDetail() this.getDetail()

@ -72,7 +72,7 @@
<template <template
v-if="scope.row.id_fill_datas_fill_id_relation && scope.row.id_fill_datas_fill_id_relation.length>0"> v-if="scope.row.id_fill_datas_fill_id_relation && scope.row.id_fill_datas_fill_id_relation.length>0">
<template v-for="item in scope.row.id_fill_datas_fill_id_relation"> <template v-for="item in scope.row.id_fill_datas_fill_id_relation">
<div class="product-item">{{item.business_type.name}}</div> <div class="product-item">{{item.business_type?item.business_type.name:''}}</div>
</template> </template>
</template> </template>
</template> </template>
@ -82,7 +82,7 @@
<template <template
v-if="scope.row.id_fill_datas_fill_id_relation && scope.row.id_fill_datas_fill_id_relation.length>0"> v-if="scope.row.id_fill_datas_fill_id_relation && scope.row.id_fill_datas_fill_id_relation.length>0">
<template v-for="item in scope.row.id_fill_datas_fill_id_relation"> <template v-for="item in scope.row.id_fill_datas_fill_id_relation">
<div class="product-item">{{item.business_data.name}}</div> <div class="product-item">{{item.business_data?item.business_data.name:''}}</div>
</template> </template>
</template> </template>
</template> </template>

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin', publicPath: process.env.ENV === 'staging' ? '/admin_test' : '/admin',
outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin', outputDir: '/Users/mac/Documents/朗业/2024/s-四世同堂-档案/sstt_dangan/public/admin_test',
assetsDir: 'static', assetsDir: 'static',
css: { css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项 loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save