护理站所属区域

This commit is contained in:
闫晓茹 2022-11-04 09:55:48 +08:00
parent 1e2531f95b
commit 2f1e347b70

View File

@ -211,11 +211,23 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="所属区域" align="center" prop="area"> <el-table-column label="所属区域" align="center" prop="area">
<!-- <span>{{ scope.row.sysAreaVOList[0].provinceName }}-</span>  
<span>{{ scope.row.sysAreaVOList[0].cityName }}-</span> <template slot-scope="scope">
<span>{{ scope.row.sysAreaVOList[0].streetName }}</span> -->
<span>{{
scope.row.areaName !== "null-null-null-null"
? scope.row.areaName
: ""
}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="护理站地址" align="center" prop="address" :show-overflow-tooltip="true"/> <el-table-column
label="护理站地址"
align="center"
prop="address"
:show-overflow-tooltip="true"
/>
<!-- <el-table-column <!-- <el-table-column
label="护理站简介" label="护理站简介"
align="center" align="center"
@ -602,7 +614,7 @@
</template> </template>
<script> <script>
import { import {
listStation, listStation,
getStation, getStation,
delStation, delStation,
@ -614,13 +626,13 @@
getInfoLists, getInfoLists,
nurseStationlabel, nurseStationlabel,
getLabelList, getLabelList,
} from "@/api/system/station"; } from "@/api/system/station";
import { getInfoList } from "@/api/system/nurseItem"; import { getInfoList } from "@/api/system/nurseItem";
import stationAcatar from "../stationAvatar/index.vue"; import stationAcatar from "../stationAvatar/index.vue";
import { getListByUser } from "@/api/system/userlist.js"; import { getListByUser } from "@/api/system/userlist.js";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import editor from "@/components/Editor"; import editor from "@/components/Editor";
export default { export default {
components: { stationAcatar, editor }, components: { stationAcatar, editor },
name: "Station", name: "Station",
data() { data() {
@ -955,19 +967,6 @@
/** 搜索按钮操作 */ /** 搜索按钮操作 */
liststationinfo() { liststationinfo() {
listStation(this.queryParams).then((response) => { listStation(this.queryParams).then((response) => {
response.rows.forEach((e) => {
if (e.provinceName) {
e.area =
e.provinceName +
"-" +
e.cityName +
"-" +
e.regionName +
"-" +
e.streetName;
}
} );
this.stationList = response.rows; this.stationList = response.rows;
this.total = response.total; this.total = response.total;
this.loading = false; this.loading = false;