Commit 16eb6618 authored by 王飞龙's avatar 王飞龙

设备地区修改

parent e40a02ee
......@@ -120,7 +120,7 @@ export const constantRoutes = [
},
{
path: 'equipment-detail/:id/:identify',
path: 'equipment-detail',
props: true,
component: () => import('@/views/equipment-management/equipment-management/equipment-detail'),
name: 'EquipmentDetail',
......
......@@ -316,6 +316,7 @@ import { getInfo } from '@/api/login'
import { isEmpty } from '@/utils/ruoyi'
import { deepClone } from '@/utils'
import { listItemByType } from '@/api/business/item'
import { signHospitalMessage } from '@/api/business/hospital'
export default {
name: 'EquipmentAdd',
......@@ -513,6 +514,7 @@ export default {
created() {
this.getUserInfo()
this.getAreaData()
this.getHospital()
},
methods: {
// 获取登陆人信息
......@@ -747,6 +749,12 @@ export default {
console.log('xdddd', this.checkItemOptions)
})
},
getHospital() {
signHospitalMessage().then(res => {
console.log('查到医院信息', res)
})
},
/** 提交按钮 */
submitForm() {
const form = deepClone(this.form)
......
......@@ -628,16 +628,6 @@ import { mapGetters } from 'vuex'
export default {
name: 'EquipmentDetail',
dicts: ['device_status', 'device_type', 'exam_type', 'check_type', 'service_area'],
props: {
id: {
type: Number,
required: true
},
identify: {
type: String,
required: true
}
},
data() {
return {
// 日期格式
......@@ -836,7 +826,23 @@ export default {
hpshow: ''
}
},
mounted() {
this.$route.meta.title = '2222'
},
created() {
this.$route.meta.title = '2222'
console.log('當前router', this.$route)
this.id = this.$route.query.id
console.log('this.$route.query.id', this.id)
this.identify = this.$route.query.identify
console.log(' this.$route.query.identify', this.identify)
if (this.identify === '1') {
// this.$route.meta.title = ''
console.log('1')
} else if (this.identify === '2') {
// this.$route.meta.title = ''
console.log('2')
}
this.getAreaData()
this.handleUpdate()
this.getUserInfo()
......
......@@ -112,13 +112,13 @@
@click="handleExport"
>批量导出
</el-button>
<el-button
v-if="userType==='00'"
class="fourWordsBtn"
icon="el-icon-download"
size="mini"
@click="handlecheck"
>检查项目</el-button>
<!-- <el-button-->
<!-- v-if="userType==='00'"-->
<!-- class="fourWordsBtn"-->
<!-- icon="el-icon-download"-->
<!-- size="mini"-->
<!-- @click="handlecheck"-->
<!-- >检查项目</el-button>-->
</el-col>
<el-col :span="12" style="padding-bottom: 20px;text-align: end;">
<el-button class="queryBtn" icon="el-icon-search" @click="handleQuery">查询</el-button>
......@@ -585,7 +585,7 @@ export default {
editDevice(id) {
this.$router.push({
name: 'EquipmentDetail',
params: {
query: {
identify: '1',
id: id
}
......@@ -595,7 +595,7 @@ export default {
detailsDevice(id) {
this.$router.push({
name: 'EquipmentDetail',
params: {
query: {
identify: '2',
id: id
}
......
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