修复初始地图未居中

main
xuechunyuan 3 years ago
parent 2c9300f3e4
commit 616bfd55d8
  1. 14155
      package-lock.json
  2. 1
      package.json
  3. 228
      src/views/system/user.vue
  4. 4
      vue.config.js

14155
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -24,6 +24,7 @@
"node-gyp": "^5.0.6",
"nprogress": "^0.2.0",
"portfinder": "^1.0.23",
"print-js": "^1.6.0",
"script-loader": "^0.7.2",
"vue": "^2.6.10",
"vue-axios": "^2.1.2",

@ -30,57 +30,16 @@
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
<template slot="menuLeft">
<el-button type="danger"
size="small"
plain
icon="el-icon-delete"
v-if="permission.user_delete"
@click="handleDelete">
</el-button>
<el-button type="info"
size="small"
plain
v-if="permission.user_role"
icon="el-icon-user"
@click="handleGrant">角色配置
</el-button>
<el-button type="info"
size="small"
plain
v-if="permission.user_reset"
icon="el-icon-refresh"
@click="handleReset">密码重置
</el-button>
<el-button type="info"
size="small"
plain
v-if="userInfo.role_name.includes('admin')"
icon="el-icon-setting"
@click="handlePlatform">平台配置
</el-button>
<el-button type="info"
size="small"
plain
v-if="userInfo.role_name.includes('admin')"
icon="el-icon-coordinate"
@click="handleLock">账号解封
</el-button>
<el-button type="success"
size="small"
plain
v-if="userInfo.role_name.includes('admin')"
icon="el-icon-upload2"
@click="handleImport">导入
</el-button>
<el-button type="warning"
size="small"
plain
v-if="userInfo.role_name.includes('admin')"
icon="el-icon-download"
@click="handleExport">导出
</el-button>
</template>
<template slot-scope="scope" slot="menu">
<el-button
type="text"
icon="el-icon-circle-plus-outline"
size="small"
@click.stop="handleUpdate(scope.row,scope.index)"
v-if="userInfo.role_name.includes('admin')"
>封禁
</el-button>
</template>
<template slot-scope="{row}"
slot="tenantName">
<el-tag>{{row.tenantName}}</el-tag>
@ -94,8 +53,8 @@
<el-tag>{{row.deptName}}</el-tag>
</template>
<template slot-scope="{row}"
slot="userTypeName">
<el-tag>{{row.userTypeName}}</el-tag>
slot="status">
<el-tag>{{row.status==1?'启用':'封禁'}}</el-tag>
</template>
</avue-crud>
<el-dialog title="用户角色配置"
@ -162,6 +121,109 @@
</el-dialog>
</basic-container>
</el-col>
<!-- 打印 -->
<div id="pintHtml">
<table border="1" width="100%" style="max-width:750pt;" cellspacing="0">
<tr>
<td rowspan="6"><br/><br/><br/><br/><br/><br/></td>
<td rowspan="4"><br/><br/><br/><br/></td>
<td width="60pt">&nbsp;&nbsp; </td>
<td colspan="3"></td>
<td>&nbsp;&nbsp;性别</td>
<td>{{ sex }}</td>
<td colspan="4">&nbsp;出生日期</td>
<td colspan="7"></td>
<td colspan="3">&nbsp;&nbsp; </td>
<td colspan="5"></td>
</tr>
<tr>
<td width="60pt">&nbsp;身份证<br/>&nbsp;明名称</td>
<td colspan="4"></td>
<td>&nbsp; </td>
<td width="22pt"></td>
<td colspan="2" width="44pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
<td width="22pt"></td>
</tr>
<tr>
<td colspan="3">&nbsp;&nbsp; / &nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td colspan="3"></td>
<td colspan="4">档案编号</td>
<td colspan="9"></td>
<td colspan="6" rowspan="4">
<div>医疗机构章</div>
</td>
</tr>
<tr>
<td width="60pt">邮寄<br/>地址</td>
<td colspan="5"></td>
<td colspan="4">联系电话</td>
<td colspan="9"></td>
</tr>
<tr>
<td rowspan="2"><br/><br/><br/></td>
<td colspan="19">本人如实申告 具有 不具有 下列疾病或者情况</td>
</tr>
<tr>
<td colspan="19"><br/>器质性心脏病 癫痫 美尼尔氏症 癔病 震颤麻痹 精神病 痴呆
<div>影响肢体活动的神经系统疾病等妨碍安全驾驶病</div>
<div>三年内有吸食注射毒品行为或者接触强制隔离戒毒措施未满三年或者长期服用依赖性<br/>精神药品成瘾尚未戒除</div>
<br/>
</td>
</tr>
<tr>
<td rowspan="10" colspan="2"><br/><br/><br/><br/><br/><br/><br/></td>
<td width="60pt">身高cm</td>
<td colspan="2"></td>
<td width="90pt">辨色力</td>
<td colspan="3">
红绿色盲<br/>
</td>
<td colspan="4">医生备注</td>
<td colspan="15"></td>
</tr>
<tr>
<td rowspan="2"><br/></td>
<td colspan="2">左眼</td>
<td rowspan="2" width="90pt">是否矫正</td>
<td colspan="2">
</td>
<td width="22pt"><br/><br/><br/><br/><br/></td>
<td colspan="5"></td>
<td width="22pt"><br/><br/><br/></td>
<td colspan="12"></td>
</tr>
<tr>
<td colspan="2">右眼</td>
<td colspan="2">
</td>
<td width="22pt"><br/><br/><br/><br/><br/></td>
<td colspan="5"></td>
<td width="22pt"><br/><br/><br/></td>
<td colspan="12"></td>
</tr>
<tr rowspan="2" colspan="2">
<td><br/></td>
</tr>
</table>
</div>
</el-row>
</template>
@ -189,6 +251,7 @@
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
import func from "@/util/func";
import print from 'print-js'
export default {
data() {
@ -274,65 +337,27 @@
border: true,
index: true,
selection: true,
viewBtn: true,
viewBtn: false,
dialogType: 'drawer',
dialogClickModal: false,
column: [
{
label: "登录账号",
prop: "account",
search: true,
display: false
},
{
label: "所属租户",
prop: "tenantName",
slot: true,
display: false
},
{
label: "用户姓名",
label: "医院名称",
prop: "realName",
search: true,
display: false
},
{
label: "所属角色",
prop: "roleName",
slot: true,
label: "登录账号",
prop: "account",
display: false
},
{
label: "所属部门",
prop: "deptName",
label: "账号状态",
prop: "status",
slot: true,
display: false
},
{
label: "用户平台",
prop: "userTypeName",
slot: true,
display: false
},
{
label: "用户平台",
type: "select",
dicUrl: "/api/blade-system/dict/dictionary?code=user_type",
props: {
label: "dictValue",
value: "dictKey"
},
dataType: "number",
search: true,
hide: true,
display: false,
prop: "userType",
rules: [{
required: true,
message: "请选择用户平台",
trigger: "blur"
}]
},
],
group: [
{
@ -665,7 +690,8 @@
span: 24,
}
]
}
},
sex:''
};
},
watch: {
@ -714,6 +740,12 @@
}
},
methods: {
handleUpdate() {
this.sex='女';
setTimeout(() => {
print('pintHtml','html');
},300)
},
nodeClick(data) {
this.treeDeptId = data.id;
this.page.currentPage = 1;

@ -26,9 +26,9 @@ module.exports = {
proxy: {
'/api': {
//本地服务接口地址
target: 'http://localhost',
target: 'http://192.168.1.118',
//远程演示服务地址,可用于直接启动项目
//target: 'https://saber.bladex.vip/api',
// target: 'https://saber.bladex.vip/api',
ws: true,
pathRewrite: {
'^/api': '/'

Loading…
Cancel
Save