diff --git a/src/api/honor/honor.js b/src/api/honor/honor.js index 7b20c1c..565ba17 100644 --- a/src/api/honor/honor.js +++ b/src/api/honor/honor.js @@ -4,7 +4,8 @@ const honorApi = { addOrUpdate: '/honor/show/addOrUpdate', detail: '/honor/show/detail', del: '/honor/show/del', - list: '/honor/show/list' + list: '/honor/show/list', + setTop: '/honor/show/setTop' } export function honorAddOrUpdate (params) { @@ -35,3 +36,10 @@ export function honorPage (params) { params: params }) } +export function honorSetTop (params) { + return request({ + url: honorApi.setTop, + method: 'post', + data: params + }) +} diff --git a/src/assets/login.jpg b/src/assets/login.jpg index 3bb2a0a..ea9cd6f 100644 Binary files a/src/assets/login.jpg and b/src/assets/login.jpg differ diff --git a/src/assets/scss/_variables.scss b/src/assets/scss/_variables.scss index 80edb92..5049470 100644 --- a/src/assets/scss/_variables.scss +++ b/src/assets/scss/_variables.scss @@ -45,6 +45,7 @@ $font-sizes: ( //flex .d-flex { display: flex; + line-height: 1 } .flex-column { flex-direction: column; diff --git a/src/common/echart/index.vue b/src/common/echart/index.vue index 6473245..bc3db27 100644 --- a/src/common/echart/index.vue +++ b/src/common/echart/index.vue @@ -56,6 +56,7 @@ export default { initChart () { // 初始化echart this.chart = this.$echarts.init(this.$el, 'tdTheme') + document.getElementById(this.id).setAttribute('_echarts_instance_', '') this.chart.setOption(this.options, true) } } diff --git a/src/components/DbDynamicRoom/DbDynamicRoom.vue b/src/components/DbDynamicRoom/DbDynamicRoom.vue index bf4548a..8f3a635 100644 --- a/src/components/DbDynamicRoom/DbDynamicRoom.vue +++ b/src/components/DbDynamicRoom/DbDynamicRoom.vue @@ -15,9 +15,9 @@ ]" /> - + - 下堡坪乡农村福利院长者信息管理系统 + @@ -17,7 +17,7 @@ 条款 --> @@ -74,7 +74,7 @@ export default { .top { text-align: center; - margin-bottom: 40px; + margin-bottom: 70px; .header { height: 44px; line-height: 44px; @@ -96,7 +96,7 @@ export default { border-style: none; } - .title { + .login_title { font-size: 33px; color: rgba(0, 0, 0, .85); font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif; diff --git a/src/views/bigScreen/bottomRight.vue b/src/views/bigScreen/bottomRight.vue index 156dcab..b5d9798 100644 --- a/src/views/bigScreen/bottomRight.vue +++ b/src/views/bigScreen/bottomRight.vue @@ -5,7 +5,7 @@ - 入住情况统计 + 院区配置情况统计 diff --git a/src/views/bigScreen/center.vue b/src/views/bigScreen/center.vue index be47632..28ea109 100644 --- a/src/views/bigScreen/center.vue +++ b/src/views/bigScreen/center.vue @@ -1,10 +1,11 @@ diff --git a/src/views/person/ServiceAdd.vue b/src/views/person/ServiceAdd.vue index 6d6c735..b0bc039 100644 --- a/src/views/person/ServiceAdd.vue +++ b/src/views/person/ServiceAdd.vue @@ -90,6 +90,21 @@ + + + + + + {{ item.name }} + + + + + + @@ -196,11 +211,12 @@ age: null, sex: null, phone: '', - + politicalOutlook: null, maritalStatus: null, familyList: [] }, maritalStatusData: [], + politicalOutlookData: [], jobsData: [], rules: { name: [{ @@ -356,6 +372,12 @@ }).then(res => { this.jobsData = res.data }) + // 政治面貌 + dictionaryDropDown({ + dictionaryCode: '0060' + }).then(res => { + this.politicalOutlookData = res.data + }) }, // 返回 goback () { diff --git a/src/views/person/ServiceDetail.vue b/src/views/person/ServiceDetail.vue index 9f43c6b..0ec308d 100644 --- a/src/views/person/ServiceDetail.vue +++ b/src/views/person/ServiceDetail.vue @@ -42,7 +42,7 @@ - + @@ -53,26 +53,18 @@ - - + + {{ item.name }} - + - - + + {{ item.name }} @@ -93,6 +85,18 @@ + + + + + + {{ item.name }} + + + + + + @@ -103,11 +107,7 @@ - @@ -143,17 +143,12 @@ 家庭成员 - +
- 取消 + 返回
@@ -180,7 +175,7 @@ components: { DbDynamic }, - data () { + data() { return { title: '服务人员详情', labelCol: { @@ -199,11 +194,12 @@ age: null, sex: null, phone: '', - + politicalOutlook: null, maritalStatus: null, familyList: [] }, maritalStatusData: [], + politicalOutlookData: [], jobsData: [], rules: { name: [{ @@ -229,8 +225,7 @@ }] }, // 表头 - columns: [ - { + columns: [{ title: '姓名', dataIndex: 'familyName' }, @@ -249,18 +244,18 @@ ] } }, - mounted () { + mounted() { }, - created () { + created() { this.init() }, methods: { - async init () { + async init() { await this.dictionaryDropDown() this.editDetail() }, - editDetail () { + editDetail() { const id = this.$route.query.id if (!id) { return @@ -277,7 +272,7 @@ this.form.maritalStatus = parseInt(form.maritalStatus) }) }, - onSubmit (e) { + onSubmit(e) { this.$refs.ruleForm.validate(valid => { if (valid) { const { @@ -312,15 +307,15 @@ } }) }, - onCancel () { + onCancel() { this.$refs.ruleForm.resetFields() delete this.form.id this.goback() }, - onReset () { + onReset() { this.$refs.ruleForm.resetFields() }, - idCardNoBlur () { + idCardNoBlur() { const idCardNo = this.form.idCardNo console.log(idCardNo) // 如果用户身份证号码为undefined则返回空 @@ -353,22 +348,28 @@ /** * 获取字典数据 */ - dictionaryDropDown () { + dictionaryDropDown() { // 婚姻状况 dictionaryDropDown({ dictionaryCode: '0030' }).then(res => { this.maritalStatusData = res.data }) - // 婚姻状况 + // 岗位 dictionaryDropDown({ dictionaryCode: '0050' }).then(res => { this.jobsData = res.data }) + // 政治面貌 + dictionaryDropDown({ + dictionaryCode: '0060' + }).then(res => { + this.politicalOutlookData = res.data + }) }, // 返回 - goback () { + goback() { this.$router.push({ path: '/person/service', query: {} diff --git a/src/views/person/SupportAdd.vue b/src/views/person/SupportAdd.vue index ec7f68c..103756a 100644 --- a/src/views/person/SupportAdd.vue +++ b/src/views/person/SupportAdd.vue @@ -545,7 +545,7 @@ }], nursingLevel: [{ required: true, - message: '请选择护理等级', + message: '请选择护理等级(护理等级参照《养老机构服务安全基本规范》)', trigger: 'blur' }], village: [{ diff --git a/src/views/person/SupportDetail.vue b/src/views/person/SupportDetail.vue index cd9b35a..a8e6425 100644 --- a/src/views/person/SupportDetail.vue +++ b/src/views/person/SupportDetail.vue @@ -113,10 +113,10 @@ - + {{ room.name }} - + @@ -127,7 +127,7 @@
- +
- 取消 + 返回
@@ -600,8 +600,8 @@ // 动态回显身份证号相关信息 this.idCardNoBlur() - this.form.supportType = parseInt(form.supportType) - this.form.maritalStatus = parseInt(form.maritalStatus) + /* this.form.supportType = parseInt(form.supportType) + this.form.maritalStatus = parseInt(form.maritalStatus) */ }) }, onSubmit (e) { @@ -718,12 +718,13 @@ }, // 返回 goback () { - this.$router.push({ + /* this.$router.push({ path: this.$route.query.type == 1 ? '/person/support' : '/person/care', query: { type: this.$route.query.type } - }) + }) */ + this.$router.back() } } } diff --git a/src/views/person/SupportList.vue b/src/views/person/SupportList.vue index 9e9fb5e..bd7943f 100644 --- a/src/views/person/SupportList.vue +++ b/src/views/person/SupportList.vue @@ -18,11 +18,27 @@
+ + + + + {{ item.name }} + + + + + + + + + + + + 查询 重置 - @@ -51,6 +67,9 @@ diff --git a/src/views/room/RoomCheckinDetail.vue b/src/views/room/RoomCheckinDetail.vue index 2fc13fd..f7f9abe 100644 --- a/src/views/room/RoomCheckinDetail.vue +++ b/src/views/room/RoomCheckinDetail.vue @@ -59,7 +59,7 @@
- 取消 + 返回
diff --git a/src/views/room/RoomCheckoutList.vue b/src/views/room/RoomCheckoutList.vue index c6e3b29..0a30239 100644 --- a/src/views/room/RoomCheckoutList.vue +++ b/src/views/room/RoomCheckoutList.vue @@ -8,6 +8,14 @@
+ + + + 全部 + 今年 + + + 查询 重置 @@ -67,7 +75,7 @@ export default { data () { return { // 查询参数 - queryParam: { personName: '' }, + queryParam: { personName: '', returnType: this.$route.params.returnType, }, roomTypeData: [], // 表头 columns: [ diff --git a/src/views/room/RoomDetail.vue b/src/views/room/RoomDetail.vue index eb44c18..2601493 100644 --- a/src/views/room/RoomDetail.vue +++ b/src/views/room/RoomDetail.vue @@ -31,7 +31,7 @@
- 取消 + 返回
@@ -99,7 +99,7 @@ // 表头 columns: [ { - title: '床位名称', + title: '床位号', dataIndex: 'name' }, { diff --git a/src/views/room/RoomList.vue b/src/views/room/RoomList.vue index 8da18e3..f92e075 100644 --- a/src/views/room/RoomList.vue +++ b/src/views/room/RoomList.vue @@ -32,7 +32,7 @@ 新增 - + @@ -67,29 +67,6 @@ export default { // 查询参数 queryParam: { name: '', roomType:this.$route.params.roomType }, roomTypeData: [], - // 表头 - columns: [ - { - title: '名称', - width: 200, - dataIndex: 'name' - }, - { - title: '床位数量', - dataIndex: 'bedNumber' - }, - { - title: '房间类型', - dataIndex: 'roomTypeName' - }, - { - title: '操作', - key: 'operation', - fixed: 'right', - width: 200, - scopedSlots: { customRender: 'action' } - } - ], // 加载数据方法 必须为 Promise 对象 loadData: (parameter) => { return roomPage(Object.assign(parameter, this.queryParam)).then((res) => { @@ -108,6 +85,38 @@ export default { watch: { }, methods: { + getColumns() { + const columns = [{ + title: '名称', + width: 200, + dataIndex: 'name' + }, + { + title: '房间类型', + dataIndex: 'roomTypeName' + } + ] + if (!this.queryParam.roomType || this.queryParam.roomType ==1) { + columns.push( + { + title: '床位数量', + dataIndex: 'bedNumber' + }) + } + + // 操作栏列 + columns.push({ + title: '操作', + key: 'operation', + fixed: 'right', + width: 200, + scopedSlots: { + customRender: 'action' + } + }) + + return columns + }, // 新增 handleCreate () { this.$router.push({ diff --git a/src/views/security/user/UserForm.vue b/src/views/security/user/UserForm.vue index 680b8a4..cc7d631 100644 --- a/src/views/security/user/UserForm.vue +++ b/src/views/security/user/UserForm.vue @@ -65,7 +65,7 @@ - +