|
@@ -72,6 +72,15 @@
|
72
|
72
|
</div>
|
73
|
73
|
</div>
|
74
|
74
|
</li>
|
|
75
|
+ <li class="flex-h">
|
|
76
|
+ <span>是否开放:<em>*</em></span>
|
|
77
|
+ <div class="flex-item">
|
|
78
|
+ <el-switch
|
|
79
|
+ v-model="switchValue"
|
|
80
|
+ active-color="#13ce66">
|
|
81
|
+ </el-switch>
|
|
82
|
+ </div>
|
|
83
|
+ </li>
|
75
|
84
|
<li class="flex-h">
|
76
|
85
|
<span>左击地图获取经纬度:<em>*</em></span>
|
77
|
86
|
<div class="flex-item" style="margin-left: 10px;">
|
|
@@ -126,6 +135,7 @@ export default {
|
126
|
135
|
CreatDate: '', // 创建日期
|
127
|
136
|
CreatUser: '', // 创建人
|
128
|
137
|
},
|
|
138
|
+ switchValue: false, // 控制开关, 对应 postData.Status 字段 0=false, 1=true, 默认值 false
|
129
|
139
|
markers: [],
|
130
|
140
|
searchOption: {
|
131
|
141
|
city: '南京',
|
|
@@ -158,6 +168,11 @@ export default {
|
158
|
168
|
urlData: { id: this.$route.query.id }
|
159
|
169
|
}).then(res => {
|
160
|
170
|
this.postData = res
|
|
171
|
+ if (this.postData.Status === 0) {
|
|
172
|
+ this.switchValue = false
|
|
173
|
+ } else {
|
|
174
|
+ this.switchValue = true // 是否开放状态
|
|
175
|
+ }
|
161
|
176
|
})
|
162
|
177
|
},
|
163
|
178
|
handleAvatarSuccess (res, file) {
|
|
@@ -209,6 +224,7 @@ export default {
|
209
|
224
|
})
|
210
|
225
|
return false
|
211
|
226
|
}
|
|
227
|
+ this.postData.Status = this.switchValue === false ? 0 : 1 // 是否开放状态
|
212
|
228
|
this.postData.OrgId = this.OrgId
|
213
|
229
|
this.$ajax(this.$api.caseManager.addCase.url, {
|
214
|
230
|
method: this.$api.caseManager.addCase.method,
|