|
@@ -1159,6 +1159,7 @@
|
1159
|
1159
|
<span slot="footer" class="dialog-footer">
|
1160
|
1160
|
<el-button
|
1161
|
1161
|
type="primary"
|
|
1162
|
+ :loading="changeLoadingOne"
|
1162
|
1163
|
@click="coverSch()"
|
1163
|
1164
|
>确定</el-button>
|
1164
|
1165
|
|
|
@@ -1178,6 +1179,7 @@
|
1178
|
1179
|
<span slot="footer" class="dialog-footer">
|
1179
|
1180
|
<el-button
|
1180
|
1181
|
type="primary"
|
|
1182
|
+ :loading="changeLoadingTwo"
|
1181
|
1183
|
@click="changeSchTemplateTwo()"
|
1182
|
1184
|
>确定</el-button>
|
1183
|
1185
|
<el-button @click="tipDialogVisibleThree = false">取 消</el-button>
|
|
@@ -1252,6 +1254,8 @@ export default {
|
1252
|
1254
|
},
|
1253
|
1255
|
data() {
|
1254
|
1256
|
return {
|
|
1257
|
+ changeLoadingOne:false,
|
|
1258
|
+ changeLoadingTwo:false,
|
1255
|
1259
|
tipDialogVisibleTwo:false,
|
1256
|
1260
|
tipDialogVisibleThree:false,
|
1257
|
1261
|
tipDialogVisible:false,
|
|
@@ -2807,15 +2811,19 @@ export default {
|
2807
|
2811
|
patient_id_two:this.cur_temp_info.patient_id,
|
2808
|
2812
|
|
2809
|
2813
|
}
|
|
2814
|
+ this.changeLoadingOne = true
|
2810
|
2815
|
CoverSchTemplate(params).then((response) => {
|
2811
|
2816
|
if (response.data.state == 0) {
|
2812
|
2817
|
this.$message.error(response.data.msg);
|
2813
|
2818
|
this.tipDialogVisibleTwo = false
|
|
2819
|
+ this.changeLoadingOne = false
|
2814
|
2820
|
|
2815
|
2821
|
} else {
|
2816
|
2822
|
this.$message.success("替换成功");
|
2817
|
2823
|
this.tipDialogVisible = false
|
2818
|
2824
|
this.tipDialogVisibleTwo = false
|
|
2825
|
+ this.changeLoadingOne = false
|
|
2826
|
+
|
2819
|
2827
|
// this.getSchedules();
|
2820
|
2828
|
this.all_template = response.data.data.items
|
2821
|
2829
|
this.$emit("setTemplate",response.data.data.items)
|
|
@@ -2847,14 +2855,19 @@ export default {
|
2847
|
2855
|
|
2848
|
2856
|
|
2849
|
2857
|
}
|
|
2858
|
+ this.changeLoadingTwo = true
|
2850
|
2859
|
ExchangeSchTemplate(params).then((response) => {
|
2851
|
2860
|
if (response.data.state == 0) {
|
2852
|
2861
|
this.$message.error(response.data.msg);
|
2853
|
2862
|
this.tipDialogVisibleThree = false
|
|
2863
|
+ this.changeLoadingTwo = false
|
|
2864
|
+
|
2854
|
2865
|
} else {
|
2855
|
2866
|
this.$message.success("交换成功");
|
2856
|
2867
|
this.tipDialogVisible = false
|
2857
|
2868
|
this.tipDialogVisibleThree = false
|
|
2869
|
+ this.changeLoadingTwo = false
|
|
2870
|
+
|
2858
|
2871
|
// this.getSchedules();
|
2859
|
2872
|
this.all_template = response.data.data.items
|
2860
|
2873
|
this.$emit("setTemplate",response.data.data.items)
|