Commit d959365d authored by 王飞龙's avatar 王飞龙

Merge remote-tracking branch 'origin/master'

parents ba2921c8 cb5f578e
#!/usr/bin/env sh #!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh" . "$(dirname -- "$0")/_/husky.sh"
npm run lint
...@@ -171,6 +171,16 @@ export const constantRoutes = [ ...@@ -171,6 +171,16 @@ export const constantRoutes = [
meta: { meta: {
title: '病历详情', icon: 'component' title: '病历详情', icon: 'component'
} }
},
// 病历编辑
{
path: 'medical-edit/:id',
component: () => import('@/views/medical-record-management/medical-edit'),
name: 'MedicalEdit',
props: true,
meta: {
title: '病历编辑', icon: 'component'
}
} }
] ]
}, },
...@@ -423,6 +433,7 @@ export const dynamicRoutes = [ ...@@ -423,6 +433,7 @@ export const dynamicRoutes = [
} }
] ]
}, },
// 数据字典
{ {
path: '/system/dict-data', path: '/system/dict-data',
component: Layout, component: Layout,
......
...@@ -47,17 +47,16 @@ color: #333333;" ...@@ -47,17 +47,16 @@ color: #333333;"
<el-form-item label="状态" prop="articleStatus"> <el-form-item label="状态" prop="articleStatus">
<div style="display: flex; "> <div style="display: flex; ">
<div style="padding-right: 15px;"> <div style="padding-right: 15px;">
<el-switch <el-select v-model="form.articleStatus" disabled>
v-model="form.articleStatus" <el-option
active-color="#13ce66" v-for="({value, label}) in statusList"
active-value="0" :label="label"
disabled :value="value"
inactive-color="#ff4949"
inactive-value="1"
/> />
</el-select>
</div> </div>
<div v-if="form.articleStatus==='0'" style="padding-top: 1px;">已上架</div> <!-- <div v-if="form.articleStatus==='0'" style="padding-top: 1px;">已上架</div>-->
<div v-else-if="form.articleStatus==='1'" style="padding-top: 1px;">已下架</div> <!-- <div v-else-if="form.articleStatus==='1'" style="padding-top: 1px;">已下架</div>-->
</div> </div>
</el-form-item> </el-form-item>
<!-- 2-- 文章信息--文章内容 --> <!-- 2-- 文章信息--文章内容 -->
...@@ -109,13 +108,18 @@ export default { ...@@ -109,13 +108,18 @@ export default {
return { return {
// 图片访问 // 图片访问
baseURL: process.env.VUE_APP_TEST_API, baseURL: process.env.VUE_APP_TEST_API,
// 状态下拉框
statusList: [{
label: '已上架',
value: '0'
}, {
label: '已下架',
value: '1'
}],
// 弹出层标题 // 弹出层标题
title: '', title: '',
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
// 状态位
value: true,
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
......
...@@ -39,16 +39,14 @@ color: #333333;" ...@@ -39,16 +39,14 @@ color: #333333;"
<el-form-item label="状态" prop="articleStatus"> <el-form-item label="状态" prop="articleStatus">
<div style="display: flex;"> <div style="display: flex;">
<div style="padding-right: 15px;"> <div style="padding-right: 15px;">
<el-switch <el-select v-model="form.articleStatus">
v-model="form.articleStatus" <el-option
active-color="#13ce66" v-for="({value, label}) in statusList"
active-value="0" :label="label"
inactive-color="#ff4949" :value="value"
inactive-value="1"
/> />
</el-select>
</div> </div>
<div v-if="form.articleStatus==='0'" style="padding-top: 1px;">已上架</div>
<div v-else-if="form.articleStatus==='1'" style="padding-top: 1px;">已下架</div>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="articleContent"> <el-form-item label="文章内容" prop="articleContent">
...@@ -89,6 +87,14 @@ export default { ...@@ -89,6 +87,14 @@ export default {
}, },
data() { data() {
return { return {
// 状态下拉框
statusList: [{
label: '已上架',
value: '0'
}, {
label: '已下架',
value: '1'
}],
user: {}, user: {},
isShow: true, isShow: true,
...@@ -96,8 +102,6 @@ export default { ...@@ -96,8 +102,6 @@ export default {
title: '', title: '',
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
// 状态位
value: true,
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
......
...@@ -34,16 +34,16 @@ color: #333333;" ...@@ -34,16 +34,16 @@ color: #333333;"
<el-form-item label="状态" prop="articleStatus"> <el-form-item label="状态" prop="articleStatus">
<div style="display: flex;"> <div style="display: flex;">
<div style="padding-right: 15px;"> <div style="padding-right: 15px;">
<el-switch <el-select v-model="form.articleStatus">
v-model="form.articleStatus" <el-option
active-color="#13ce66" v-for="({value, label}) in statusList"
active-value="0" :label="label"
inactive-color="#ff4949" :value="value"
inactive-value="1"
/> />
</el-select>
</div> </div>
<div v-if="form.articleStatus==='0'" style="padding-top: 1px;">已上架</div> <!-- <div v-if="form.articleStatus==='0'" style="padding-top: 1px;">已上架</div>-->
<div v-else-if="form.articleStatus==='1'" style="padding-top: 1px;">已下架</div> <!-- <div v-else-if="form.articleStatus==='1'" style="padding-top: 1px;">已下架</div>-->
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="articleContent"> <el-form-item label="文章内容" prop="articleContent">
...@@ -84,6 +84,14 @@ export default { ...@@ -84,6 +84,14 @@ export default {
}, },
data() { data() {
return { return {
// 状态下拉框
statusList: [{
label: '已上架',
value: '0'
}, {
label: '已下架',
value: '1'
}],
// 弹出层标题 // 弹出层标题
title: '', title: '',
// 是否显示弹出层 // 是否显示弹出层
......
...@@ -111,7 +111,6 @@ ...@@ -111,7 +111,6 @@
border border
row-key="id" row-key="id"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@select-all="selectAll($event, false)"
> >
<el-table-column align="center" reserve-selection type="selection" width="55" /> <el-table-column align="center" reserve-selection type="selection" width="55" />
<el-table-column align="center" label="序号" min-width="80" show-overflow-tooltip type="index" /> <el-table-column align="center" label="序号" min-width="80" show-overflow-tooltip type="index" />
......
This diff is collapsed.
...@@ -438,7 +438,7 @@ export default { ...@@ -438,7 +438,7 @@ export default {
this.reset() this.reset()
console.log('start to edit...') console.log('start to edit...')
this.$router.push({ this.$router.push({
name: 'medical-edit', params: { id: row.id } name: 'MedicalEdit', params: { id: row.id }
}) })
} }
} }
......
...@@ -151,7 +151,6 @@ ...@@ -151,7 +151,6 @@
<script> <script>
import { listManage, getManage, delManage, addManage, updateManage } from '@/api/business/manage' import { listManage, getManage, delManage, addManage, updateManage } from '@/api/business/manage'
export default { export default {
name: 'MedicalRecordManagement', name: 'MedicalRecordManagement',
dicts: ['exam_type'], dicts: ['exam_type'],
......
...@@ -114,7 +114,6 @@ ...@@ -114,7 +114,6 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
......
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