|
@@ -241,42 +241,40 @@ export default {
|
241
|
241
|
},
|
242
|
242
|
|
243
|
243
|
dialysisSummarySelectChange: function(values) {
|
244
|
|
- if (this.dialysisSummary.summaryContent == null) {
|
245
|
|
- this.dialysisSummary.summaryContent == "";
|
|
244
|
+ if(this.dialysisSummary.summaryContent == null){
|
|
245
|
+ this.dialysisSummary.summaryContent == ""
|
246
|
246
|
}
|
|
247
|
+
|
247
|
248
|
if (this.dialysisSummary.summaryContent == "") {
|
248
|
249
|
this.dialysisSummary.summaryContent = values;
|
249
|
250
|
} else {
|
250
|
|
- this.dialysisSummary.summaryContent =
|
251
|
|
- this.dialysisSummary.summaryContent + values;
|
|
251
|
+ if (this.dialysisSummary.summaryContent.indexOf(values) == -1) {
|
|
252
|
+ if (this.dialysisSummary.summaryContent.charAt(this.dialysisSummary.summaryContent.length - 1).indexOf("。") == -1) {
|
|
253
|
+ this.dialysisSummary.summaryContent =
|
|
254
|
+ this.dialysisSummary.summaryContent + "," + values;
|
|
255
|
+ } else {
|
|
256
|
+ this.dialysisSummary.summaryContent =
|
|
257
|
+ this.dialysisSummary.summaryContent + values;
|
|
258
|
+ }
|
|
259
|
+ }
|
252
|
260
|
}
|
253
|
261
|
},
|
254
|
262
|
dialysisAfterTeachSelectChange: function(values) {
|
255
|
|
- if (this.dialysisSummary.propagandaAndEducationContent == null) {
|
256
|
|
- this.dialysisSummary.propagandaAndEducationContent == "";
|
|
263
|
+ if(this.dialysisSummary.propagandaAndEducationContent == null){
|
|
264
|
+ this.dialysisSummary.propagandaAndEducationContent == ""
|
257
|
265
|
}
|
258
|
266
|
if (this.dialysisSummary.propagandaAndEducationContent == "") {
|
259
|
267
|
this.dialysisSummary.propagandaAndEducationContent = values;
|
260
|
268
|
} else {
|
261
|
|
- this.dialysisSummary.propagandaAndEducationContent =
|
262
|
|
- this.dialysisSummary.propagandaAndEducationContent + values;
|
263
|
|
- // if (
|
264
|
|
- // this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
|
265
|
|
- // -1
|
266
|
|
- // ) {
|
267
|
|
- // if (
|
268
|
|
- // this.dialysisSummary.propagandaAndEducationContent
|
269
|
|
- // .charAt(
|
270
|
|
- // this.dialysisSummary.propagandaAndEducationContent.length - 1
|
271
|
|
- // )
|
272
|
|
- // .indexOf("。") == -1
|
273
|
|
- // ) {
|
274
|
|
- // this.dialysisSummary.propagandaAndEducationContent =
|
275
|
|
- // this.dialysisSummary.propagandaAndEducationContent + "," + values;
|
276
|
|
- // } else {
|
277
|
|
- //
|
278
|
|
- // }
|
279
|
|
- // }
|
|
269
|
+ if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
|
|
270
|
+ if (this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf("。") == -1) {
|
|
271
|
+ this.dialysisSummary.propagandaAndEducationContent =
|
|
272
|
+ this.dialysisSummary.propagandaAndEducationContent + "," + values;
|
|
273
|
+ } else {
|
|
274
|
+ this.dialysisSummary.propagandaAndEducationContent =
|
|
275
|
+ this.dialysisSummary.propagandaAndEducationContent + values;
|
|
276
|
+ }
|
|
277
|
+ }
|
280
|
278
|
}
|
281
|
279
|
},
|
282
|
280
|
commitInfo: function() {
|