|
@@ -46,7 +46,8 @@
|
46
|
46
|
</el-table-column>
|
47
|
47
|
<el-table-column prop="isExpire" label="是否到期" align="center" width="170px">
|
48
|
48
|
<template slot-scope="scope">
|
49
|
|
- <p v-if="scope.row.isExpire > 1" > 剩余天数({{scope.row.isExpire}}) </p>
|
|
49
|
+ <p v-if="scope.row.isExpire > 30 " style="color: green"> 剩余天数({{scope.row.isExpire}}) </p>
|
|
50
|
+ <p v-else-if="scope.row.isExpire > 1 && scope.row.isExpire < 31" style="color: orange"> 剩余天数({{scope.row.isExpire}}) </p>
|
50
|
51
|
<span v-else style="color: red">已到期</span>
|
51
|
52
|
</template>
|
52
|
53
|
</el-table-column>
|
|
@@ -54,7 +55,7 @@
|
54
|
55
|
</el-table-column>
|
55
|
56
|
<el-table-column fixed="right" label="操作" align="center">
|
56
|
57
|
<template slot-scope="scope">
|
57
|
|
- <el-button type="text" size="small" @click="">升级</el-button>
|
|
58
|
+ <el-button type="text" size="small" @click="upgrade(scope.row)">升级</el-button>
|
58
|
59
|
<el-button type="text" size="small" @click="edit(scope.row)">编辑</el-button>
|
59
|
60
|
<el-button type="text" size="small" style="color: red" @click="deleteData(scope.row.id)">删除
|
60
|
61
|
</el-button>
|
|
@@ -77,24 +78,32 @@
|
77
|
78
|
ref="addClinicRef"
|
78
|
79
|
@closeDialog="closeDialog"
|
79
|
80
|
/>
|
|
81
|
+ <upgrade
|
|
82
|
+ :upgradeOpen="upgradeOpen"
|
|
83
|
+ :title="title"
|
|
84
|
+ ref="upgradeOpenRef"
|
|
85
|
+ @closeDialog="closeDialog"
|
|
86
|
+ />
|
80
|
87
|
</div>
|
81
|
88
|
</template>
|
82
|
89
|
|
83
|
90
|
<script>
|
84
|
91
|
import {clinictList,delClinict} from '@/api/allApi.js'
|
85
|
92
|
import addClinic from "./addClinic.vue";
|
86
|
|
-import edit from "@/views/settingsPage/clinicOverview/edit.vue";
|
|
93
|
+import upgrade from "./upgrade.vue";
|
87
|
94
|
|
88
|
95
|
export default {
|
89
|
96
|
name: 'EitcErmPcIndex',
|
90
|
97
|
computed: {
|
91
|
98
|
},
|
92
|
99
|
components: {
|
|
100
|
+ upgrade,
|
93
|
101
|
addClinic
|
94
|
102
|
},
|
95
|
103
|
data() {
|
96
|
104
|
return {
|
97
|
105
|
onOpen: false,
|
|
106
|
+ upgradeOpen: false,
|
98
|
107
|
title: ``,
|
99
|
108
|
dictType: ``,
|
100
|
109
|
form: {
|
|
@@ -130,6 +139,14 @@ export default {
|
130
|
139
|
this.onOpen = true;
|
131
|
140
|
this.pageType = 1;
|
132
|
141
|
},
|
|
142
|
+ /**
|
|
143
|
+ * 升级页面
|
|
144
|
+ */
|
|
145
|
+ upgrade(val){
|
|
146
|
+ this.upgradeOpen = true;
|
|
147
|
+ this.$refs.upgradeOpenRef.formData = val;
|
|
148
|
+ console.log(val)
|
|
149
|
+ },
|
133
|
150
|
async initList() {
|
134
|
151
|
let obj = {}
|
135
|
152
|
if (this.clinicName.length>0){
|
|
@@ -154,6 +171,7 @@ export default {
|
154
|
171
|
*/
|
155
|
172
|
closeDialog(){
|
156
|
173
|
this.onOpen = false;
|
|
174
|
+ this.upgradeOpen = false;
|
157
|
175
|
},
|
158
|
176
|
/**
|
159
|
177
|
* 删除
|