fix:载体维修修改

pg_adapter
wangxy 8 months ago
parent 28ce6f9588
commit 1fb11c3f96

@ -78,7 +78,7 @@
<div class="form-group" v-if="trainSubject == '1'"> <div class="form-group" v-if="trainSubject == '1'">
<label class="col-sm-4 control-label is-required">人员姓名:</label> <label class="col-sm-4 control-label is-required">人员姓名:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="USERNAME" th:field="*{USERNAME}" required placeholder="请输入人员姓名" class="form-control" type="text"> <input name="USERNAME" id="userSubjectName" th:field="*{USERNAME}" required placeholder="请输入人员姓名" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group" v-if="trainSubject == '2'"> <div class="form-group" v-if="trainSubject == '2'">
@ -161,6 +161,7 @@
vueInstance.trainSubject = $(this).val(); vueInstance.trainSubject = $(this).val();
vueInstance.$nextTick(() => { vueInstance.$nextTick(() => {
vueInstance.$forceUpdate(); // 强制更新 Vue 实例 vueInstance.$forceUpdate(); // 强制更新 Vue 实例
$("#userSubjectName").val('');
}); });
}) })
$('#User').select2().on('change', function() { $('#User').select2().on('change', function() {

Loading…
Cancel
Save