|
@@ -1174,6 +1174,7 @@
|
1174
|
1174
|
<span slot="footer" class="dialog-footer">
|
1175
|
1175
|
<el-button
|
1176
|
1176
|
type="primary"
|
|
1177
|
+ :loading="changeLoadingOne"
|
1177
|
1178
|
@click="coverSch()"
|
1178
|
1179
|
>确定</el-button>
|
1179
|
1180
|
|
|
@@ -1193,6 +1194,7 @@
|
1193
|
1194
|
<span slot="footer" class="dialog-footer">
|
1194
|
1195
|
<el-button
|
1195
|
1196
|
type="primary"
|
|
1197
|
+ :loading="changeLoadingTwo"
|
1196
|
1198
|
@click="changeSchTemplateTwo()"
|
1197
|
1199
|
>确定</el-button>
|
1198
|
1200
|
<el-button @click="tipDialogVisibleThree = false">取 消</el-button>
|
|
@@ -1267,6 +1269,8 @@ export default {
|
1267
|
1269
|
},
|
1268
|
1270
|
data() {
|
1269
|
1271
|
return {
|
|
1272
|
+ changeLoadingOne:false,
|
|
1273
|
+ changeLoadingTwo:false,
|
1270
|
1274
|
tipDialogVisibleTwo:false,
|
1271
|
1275
|
tipDialogVisibleThree:false,
|
1272
|
1276
|
tipDialogVisible:false,
|
|
@@ -2817,15 +2821,19 @@ export default {
|
2817
|
2821
|
patient_id_two:this.cur_temp_info.patient_id,
|
2818
|
2822
|
|
2819
|
2823
|
}
|
|
2824
|
+ this.changeLoadingOne = true
|
2820
|
2825
|
CoverSchTemplate(params).then((response) => {
|
2821
|
2826
|
if (response.data.state == 0) {
|
2822
|
2827
|
this.$message.error(response.data.msg);
|
2823
|
2828
|
this.tipDialogVisibleTwo = false
|
|
2829
|
+ this.changeLoadingOne = false
|
2824
|
2830
|
|
2825
|
2831
|
} else {
|
2826
|
2832
|
this.$message.success("替换成功");
|
2827
|
2833
|
this.tipDialogVisible = false
|
2828
|
2834
|
this.tipDialogVisibleTwo = false
|
|
2835
|
+ this.changeLoadingOne = false
|
|
2836
|
+
|
2829
|
2837
|
// this.getSchedules();
|
2830
|
2838
|
this.all_template = response.data.data.items
|
2831
|
2839
|
this.$emit("setTemplate",response.data.data.items)
|
|
@@ -2857,14 +2865,19 @@ export default {
|
2857
|
2865
|
|
2858
|
2866
|
|
2859
|
2867
|
}
|
|
2868
|
+ this.changeLoadingTwo = true
|
2860
|
2869
|
ExchangeSchTemplate(params).then((response) => {
|
2861
|
2870
|
if (response.data.state == 0) {
|
2862
|
2871
|
this.$message.error(response.data.msg);
|
2863
|
2872
|
this.tipDialogVisibleThree = false
|
|
2873
|
+ this.changeLoadingTwo = false
|
|
2874
|
+
|
2864
|
2875
|
} else {
|
2865
|
2876
|
this.$message.success("交换成功");
|
2866
|
2877
|
this.tipDialogVisible = false
|
2867
|
2878
|
this.tipDialogVisibleThree = false
|
|
2879
|
+ this.changeLoadingTwo = false
|
|
2880
|
+
|
2868
|
2881
|
// this.getSchedules();
|
2869
|
2882
|
this.all_template = response.data.data.items
|
2870
|
2883
|
this.$emit("setTemplate",response.data.data.items)
|