Browse Source

成员管理添加分页字段

newMaster
1747191978@qq.com 4 months ago
parent
commit
c740ea4e33
  1. 2
      acupuncture-后台/src/views/member/account.vue
  2. 194
      acupuncture-后台/src/views/member/dataSources.vue
  3. 2
      acupuncture-后台/src/views/member/index.vue
  4. 11
      acupuncture-后台/src/views/patientFile/index.vue

2
acupuncture-后台/src/views/member/account.vue

@ -234,6 +234,8 @@ export default {
return {
tenantsDataList: [],
queryParams: {
pageNum: 1,
pageSize: 10,
param: {
tenantName: "",
},

194
acupuncture-后台/src/views/member/dataSources.vue

@ -1,39 +1,97 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
label-width="80px">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="80px"
>
<el-form-item label="数据源key" prop="dataSourceKey">
<el-input v-model="queryParams.param.dataSourceKey" placeholder="请输入" clearable
@keyup.enter.native="handleQuery" />
<el-input
v-model="queryParams.param.dataSourceKey"
placeholder="请输入"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple"
@click="handleDelete">删除</el-button>
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button
>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="listData" @selection-change="handleSelectionChange" max-height="600">
<el-table
v-loading="loading"
:data="listData"
@selection-change="handleSelectionChange"
max-height="600"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column fixed label="类型" align="center" prop="name" min-width="100" >
<el-table-column
fixed
label="类型"
align="center"
prop="name"
min-width="100"
>
<template slot-scope="scope">
<span v-if="scope.row.type == 0">MySQL</span>
<span v-if="scope.row.type == 1">Oracle</span>
</template>
</el-table-column>
<el-table-column fixed label="连接信息" align="center" prop="url" show-overflow-tooltip
min-width="100">
<el-table-column
fixed
label="连接信息"
align="center"
prop="url"
show-overflow-tooltip
min-width="100"
>
</el-table-column>
<el-table-column fixed label="数据源kye" align="center" prop="dataSourceKey" show-overflow-tooltip
min-width="80" />
<el-table-column
fixed
label="数据源kye"
align="center"
prop="dataSourceKey"
show-overflow-tooltip
min-width="80"
/>
<el-table-column label="创建人/创建时间" align="center" min-width="140">
<template slot-scope="scope">
<div>{{ scope.row.createBy }}</div>
@ -42,22 +100,55 @@
</span>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200">
<el-table-column
fixed="right"
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
>
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit"
@click="handleUpdate(scope.row)">修改</el-button>
<el-button size="mini" type="text" icon="el-icon-delete"
@click="handleDelete(scope.row)">删除</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" />
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改公告对话框 -->
<el-dialog class="popup" :title="title" :visible.sync="open" width="780px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="140px" class="formStep">
<el-dialog
class="popup"
:title="title"
:visible.sync="open"
width="780px"
append-to-body
>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="140px"
class="formStep"
>
<el-form-item label="类型" prop="type">
<el-radio-group v-model="form.type">
<el-radio label="0">MySQL</el-radio>
@ -90,7 +181,7 @@
dataSourcesList,
dataSourcesAdd,
dataSourcesUpd,
dataSourcesDel
dataSourcesDel,
} from "@/api/member";
export default {
name: "Notice",
@ -99,12 +190,14 @@
return {
dataSourceList: [],
queryParams: {
pageNum: 1,
pageSize: 10,
param: {
name: "",
}
},
},
listData: [],
title:'',
title: "",
open: false,
total: 0,
form: {},
@ -113,31 +206,41 @@
multiple: false,
//
rules: {
type: [{
type: [
{
required: true,
message: "类型不能为空",
trigger: "blur",
}],
url: [{
},
],
url: [
{
required: true,
message: "连接信息不能为空",
trigger: "blur",
}],
dataSourceKey: [{
},
],
dataSourceKey: [
{
required: true,
message: "数据源key不能为空",
trigger: "blur",
}],
username: [{
},
],
username: [
{
required: true,
message: "用户名不能为空",
trigger: "blur",
}],
password: [{
},
],
password: [
{
required: true,
message: "密码不能为空",
trigger: "blur",
}],
},
],
},
};
},
@ -162,11 +265,11 @@
//
reset() {
this.form = {
"name": "",
"leader": "",
"contactPhone": "",
"dataSourceId": '',
"status": "",
name: "",
leader: "",
contactPhone: "",
dataSourceId: "",
status: "",
};
this.resetForm("form");
},
@ -198,7 +301,7 @@
handleUpdate(row) {
this.open = true;
this.title = "修改数据源";
this.form = JSON.parse(JSON.stringify(row))
this.form = JSON.parse(JSON.stringify(row));
},
/** 诊疗档案 */
submitForm: function () {
@ -287,7 +390,8 @@
margin-right: 0;
}
.formStep1>>>.el-form-item__label {}
.formStep1 >>> .el-form-item__label {
}
.form-item-zd {
width: 100%;

2
acupuncture-后台/src/views/member/index.vue

@ -219,6 +219,8 @@ export default {
return {
dataSourceList: [],
queryParams: {
pageNum: 1,
pageSize: 10,
param: {
name: "",
},

11
acupuncture-后台/src/views/patientFile/index.vue

@ -34,15 +34,6 @@
/>
</div>
</el-form-item>
<!-- <el-form-item label="建档组织" prop="tenantId">
<el-select
v-model="queryParams.param.tenantId"
placeholder="请选择"
clearable
>
<el-option label="dict.label" value="dict.value" />
</el-select>
</el-form-item> -->
<el-form-item label="数据来源" prop="sourceId">
<el-select
v-model="queryParams.param.sourceId"
@ -221,7 +212,7 @@
type="text"
icon="el-icon-tickets"
@click="handleDetails(scope.row)"
>详情</el-table-column
>详情</el-button
>
<el-button
size="mini"

Loading…
Cancel
Save