Lou
2024-03-14 bf11cb13866c8f943246231bb0a30a788ce645b1
更新
2 files modified
59 ■■■■ changed files
src/views/place/components/baseAllInfo.vue 6 ●●●● patch | view | raw | blame | history
src/views/place/practitioner.vue 53 ●●●● patch | view | raw | blame | history
src/views/place/components/baseAllInfo.vue
@@ -358,7 +358,7 @@
          },
          dicData: [],
          rules: [{
            required: true,
            required: false,
            message: "请选择地址",
            trigger: "blur",
          },],
@@ -927,6 +927,10 @@
      }
      delete this.form.smallLabel
      if(Array.isArray(this.form.houseCodeBinds) ){
         this.form.houseCodeBinds = this.form.houseCodeBinds.join(",")
      }
      this.$refs.baseForm.validate((valid, done, msg) => {
        if (valid) {
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>