Browse Source

前台添加状态颜色,审核中不可修改删除

newMaster
1747191978@qq.com 4 months ago
parent
commit
b0e590dcce
  1. 15
      acupuncture-前台/src/views/medicalFile/index.vue

15
acupuncture-前台/src/views/medicalFile/index.vue

@ -311,7 +311,9 @@
fixed="right" fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ status[scope.row.status] }}</span> <span :class="`status${scope.row.status}`">{{
status[scope.row.status]
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -337,6 +339,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
:disabled="scope.row.status == 1"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@ -344,6 +347,7 @@
>修改</el-button >修改</el-button
> >
<el-button <el-button
:disabled="scope.row.status == 1"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@ -1515,6 +1519,15 @@ export default {
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
.status1 {
color: orange;
}
.status2 {
color: green;
}
.status3 {
color: red;
}
.div-title1 { .div-title1 {
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;

Loading…
Cancel
Save