Commit 18d9cde6 by ‘巴博尔’

修改bug

parent 4933d869
......@@ -17,6 +17,7 @@ const getters = {
avatar: state => state.user.avatar,
name: state => state.user.name,
user: state => state.user.user,
cityName: state => state.user.cityName,
introduction: state => state.user.introduction,
roles: state => state.user.roles,
permissions: state => state.user.permissions,
......
......@@ -9,6 +9,7 @@ const user = {
roles: [],
permissions: [],
user: {},
cityName: "",
},
mutations: {
......@@ -30,6 +31,9 @@ const user = {
SET_USER: (state, user) => {
state.user = user;
},
SET_CITYNAME: (state, cityName) => {
state.cityName = cityName;
},
},
actions: {
......@@ -57,6 +61,7 @@ const user = {
return new Promise((resolve, reject) => {
getInfo()
.then((res) => {
commit("SET_CITYNAME", res.data.cityName);
const user = res.data.user;
const avatar =
user.avatar == "" || user.avatar == null
......
......@@ -3,6 +3,14 @@
<div class="index-content">
<div class="index-content-nav">
<el-row :gutter="20">
<el-col :span="4" v-if="user.roleId == 3">
<div class="index-content-nav-item">
<div class="index-content-nav-item-top">
<h3>所属城市</h3>
</div>
<h2>{{cityName ? cityName : ''}}</h2>
</div>
</el-col>
<el-col :span="4">
<div class="index-content-nav-item">
<div class="index-content-nav-item-top">
......@@ -238,7 +246,7 @@ export default {
name: "Index",
mixins: [resize],
computed: {
...mapGetters(["user"]),
...mapGetters(["user","cityName"]),
},
data() {
return {
......@@ -577,8 +585,10 @@ export default {
}
h2 {
width: 100%;
height: 120rpx;
line-height: 120rpx;
// height: 120px;
font-weight: 500;
font-size: 50px;
color: #000000;
}
}
.el-row {
......
......@@ -404,7 +404,7 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.loading = true;
this.hospitalsListAxios();
// this.hospitalsListAxios();
this.reset();
const id = row.id || this.ids;
getBusiness(id).then((response) => {
......
......@@ -636,6 +636,10 @@ export default {
this.getList();
},
methods: {
clickSeeVisitor(row) {
this.openArticleInfo = true;
this.VisitorData = row.userVsitorVo;
},
clickSeeVisitorImg(row) {
this.openArticleInfoImg = true;
this.VisitorData = row;
......
......@@ -118,6 +118,7 @@
align="center"
prop="hname"
key="hname"
width="200"
:show-overflow-tooltip="true"
/>
<el-table-column
......@@ -148,7 +149,7 @@
<span v-else>未接单</span>
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" key="remark">
<el-table-column label="备注" align="center" prop="remark" key="remark" width="120">
<template slot-scope="{ row }">
<el-button
v-if="row.remark"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment