|
|
|
@ -106,32 +106,32 @@
|
|
|
|
|
<!-- 第二行前两列:所在岗位、培训时间 -->
|
|
|
|
|
<div class="md:col-span-1 space-y-3">
|
|
|
|
|
<!-- 所在岗位 -->
|
|
|
|
|
<!-- <div class="space-y-3">-->
|
|
|
|
|
<!-- <label for="trainPost" class="block text-sm font-medium text-gray-700 is-required control-label">所在岗位</label>-->
|
|
|
|
|
<!-- <div class="relative">-->
|
|
|
|
|
<!-- <span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-500">-->
|
|
|
|
|
<!-- <i class="fa-solid fa-briefcase"></i>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- <input v-model="formData.trainPost" id="trainPost" placeholder="请输入所在岗位" class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg" type="text" maxlength="30" required>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- 已(拟)任涉密岗位 - 修改为下拉框 -->
|
|
|
|
|
<div class="space-y-3">
|
|
|
|
|
<label for="trainPost" class="block text-sm font-medium text-gray-700 is-required control-label">已(拟)任涉密岗位</label>
|
|
|
|
|
<label for="smPost" class="block text-sm font-medium text-gray-700 is-required control-label">所在岗位</label>
|
|
|
|
|
<div class="relative">
|
|
|
|
|
<span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-500">
|
|
|
|
|
<i class="fa-solid fa-shield-halved"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<select required id="trainPost" v-model="formData.smPost"
|
|
|
|
|
class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors duration-200 appearance-none">
|
|
|
|
|
<option value="">请选择岗位</option>
|
|
|
|
|
<option v-for="post in postOptions" :value="post">{{ post }}</option>
|
|
|
|
|
</select>
|
|
|
|
|
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
|
|
|
|
<i class="fa-solid fa-chevron-down text-gray-400"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-500">
|
|
|
|
|
<i class="fa-solid fa-briefcase"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<input v-model="formData.smPost" id="smPost" placeholder="请输入所在岗位" class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg" type="text" maxlength="30" required>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 已(拟)任涉密岗位 - 修改为下拉框 -->
|
|
|
|
|
<!-- <div class="space-y-3">-->
|
|
|
|
|
<!-- <label for="trainPost" class="block text-sm font-medium text-gray-700 is-required control-label">已(拟)任涉密岗位</label>-->
|
|
|
|
|
<!-- <div class="relative">-->
|
|
|
|
|
<!-- <span class="absolute inset-y-0 left-0 flex items-center pl-3 text-gray-500">-->
|
|
|
|
|
<!-- <i class="fa-solid fa-shield-halved"></i>-->
|
|
|
|
|
<!-- </span>-->
|
|
|
|
|
<!-- <select required id="trainPost" v-model="formData.smPost"-->
|
|
|
|
|
<!-- class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary/50 focus:border-primary transition-colors duration-200 appearance-none">-->
|
|
|
|
|
<!-- <option value="">请选择岗位</option>-->
|
|
|
|
|
<!-- <option v-for="post in postOptions" :value="post">{{ post }}</option>-->
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
<!-- <div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">-->
|
|
|
|
|
<!-- <i class="fa-solid fa-chevron-down text-gray-400"></i>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- 培训时间 -->
|
|
|
|
|
<div class="space-y-3">
|
|
|
|
|
<label for="trainTime" class="block text-sm font-medium text-gray-700 is-required control-label">培训时间</label>
|
|
|
|
@ -320,7 +320,7 @@
|
|
|
|
|
formData: {
|
|
|
|
|
name: '',
|
|
|
|
|
deptName: '',
|
|
|
|
|
trainPost: '',
|
|
|
|
|
smPost: '',
|
|
|
|
|
trainTime: '',
|
|
|
|
|
trainAddress: '',
|
|
|
|
|
organizeDept: '',
|
|
|
|
@ -451,7 +451,7 @@
|
|
|
|
|
},
|
|
|
|
|
submitHandler() {
|
|
|
|
|
// 表单验证
|
|
|
|
|
if (!this.formData.name || !this.formData.deptName || !this.formData.trainPost ||
|
|
|
|
|
if (!this.formData.name || !this.formData.deptName || !this.formData.smPost ||
|
|
|
|
|
!this.formData.trainTime || !this.formData.trainAddress || !this.formData.organizeDept ||
|
|
|
|
|
!this.formData.eductTime || !this.formData.organizeMsg || !this.formData.eductContent) {
|
|
|
|
|
this.$message({
|
|
|
|
|