From bf11cb13866c8f943246231bb0a30a788ce645b1 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Thu, 14 Mar 2024 18:33:35 +0800
Subject: [PATCH] 更新
---
src/views/place/practitioner.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 46 insertions(+), 7 deletions(-)
diff --git a/src/views/place/practitioner.vue b/src/views/place/practitioner.vue
index 812b2a1..17b0457 100644
--- a/src/views/place/practitioner.vue
+++ b/src/views/place/practitioner.vue
@@ -1,5 +1,9 @@
<template>
<basic-container>
+
+
+
+
<avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" v-model="form"
:permission="permissionList" @row-save="rowSave" :before-open="beforeOpen" @search-change="searchChange"
@search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
@@ -27,12 +31,22 @@
}}</el-tag>
</template>
- <!-- <template slot="menuLeft">
- <el-button size="small" icon="el-icon-delete" plain v-if="permission.place_delete" @click="handleDelete">删 除
- </el-button>
- </template> -->
+ <template slot="menuLeft">
+ <!-- <el-button size="small" icon="el-icon-delete" plain v-if="permission.place_delete" @click="handleDelete">删 除
+ </el-button> -->
+ <div class="type-row">
+ <div class="type-item">
+ 未成年人 {{countInfo.minors}}人
+ </div>
- <!-- <template slot-scope="{row, size}" slot="menu">
+ <div class="type-item">
+ 少数民族 {{countInfo.nationalMinority}}人
+ </div>
+ </div>
+
+ </template>
+
+ <template slot-scope="{row, size}" slot="menu">
<el-button :size="size" type="text" icon="el-icon-s-check" v-if="permission.place_audit_cur"
@click="auditCur({ ...row, confirmFlag: 1 })">审核
</el-button>
@@ -40,7 +54,7 @@
<el-button :size="size" type="text" icon="el-icon-edit" v-if="permission.place_manage_tenants"
@click="ManageTenants(row)">场所维护
</el-button>
- </template> -->
+ </template>
<template slot-scope="{row, size}" slot="principalPhone">
<el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')"
@@ -110,7 +124,7 @@
datetime: "",
selectionList: [],
option: {
- header:false,
+ // header:true,
labelWidth: 120,
searchLabelWidth: 96,
searchShow: true,
@@ -244,6 +258,8 @@
data: [],
auditBasePopup: false,
+
+ countInfo:{}
}
},
@@ -520,6 +536,7 @@
this.page.total = data.total
this.data = data.records
+ this.getPeopleCount();
this.data.forEach(item => {
this.$set(item, 'principalPhoneflag', false)
@@ -537,7 +554,15 @@
this.loading = false
this.selectionClear()
})
+ },
+
+
+ getPeopleCount(){
+ getCount().then(res=>{
+ this.countInfo = res.data.data;
+ })
}
+
}
}
</script>
@@ -546,4 +571,18 @@
.avue-upload__icon {
line-height: 6;
}
+.type-row{
+ display: flex;
+ padding: 0 0 20px;
+}
+
+.type-item{
+ padding:12px 12px;
+ background-color: #429FFF;
+ color:#fff;
+ font-size:14px;
+ margin-right:30px;
+ border-radius: 6px;
+ text-align: center;
+}
</style>
--
Gitblit v1.9.3