|
@@ -86,6 +86,37 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="截止日期" prop="deadline">
|
|
|
+ <el-date-picker
|
|
|
+ style="width:260px;"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ v-model="newData.deadline"
|
|
|
+ type="date"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-form-item label="实验室" prop="subId">
|
|
|
+ <el-select
|
|
|
+ style="width:260px;"
|
|
|
+ v-model="newData.subId"
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ clearable
|
|
|
+ reserve-keyword
|
|
|
+ @change="selectChange"
|
|
|
+ @clear="selectClear"
|
|
|
+ placeholder="请选择实验地点"
|
|
|
+ :remote-method="subjectList">
|
|
|
+ <el-option
|
|
|
+ v-for="item in laboratoryOptions"
|
|
|
+ :key="item.subId"
|
|
|
+ :label="item.subName"
|
|
|
+ :value="item.subId">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
|
<el-form-item label="管控描述" prop="manageDes">
|
|
|
<el-input type="textarea" resize="none" style="width:630px;" show-word-limit
|
|
@@ -147,7 +178,8 @@
|
|
|
getDeptDropList,
|
|
|
laboratoryClassTypeGetList,
|
|
|
laboratoryClassLevelGetList,
|
|
|
- systemUserSelect
|
|
|
+ systemUserSelect,
|
|
|
+ subjectList
|
|
|
} from '@/api/commonality/permission'
|
|
|
import { laboratoryGradeManageAdd,laboratoryGradeManageUpdate } from "@/api/hierarchicalControl/index";
|
|
|
export default {
|
|
@@ -164,6 +196,9 @@
|
|
|
typeId: '',
|
|
|
levelId: '',
|
|
|
executionUserId: '',
|
|
|
+ subId:'',
|
|
|
+ subName:'',
|
|
|
+ deadline:'',
|
|
|
},
|
|
|
//下拉列表数据
|
|
|
deptOptions: [],
|
|
@@ -197,6 +232,9 @@
|
|
|
levelId: [
|
|
|
{ required: true, message: '请选择安全分级', trigger: 'blur' }
|
|
|
],
|
|
|
+ deadline: [
|
|
|
+ { required: true, message: '请选择截止日期', trigger: 'blur' }
|
|
|
+ ],
|
|
|
executionUserId: [
|
|
|
{ required: true, message: '请选择执行人员', trigger: 'blur' }
|
|
|
]
|
|
@@ -211,7 +249,8 @@
|
|
|
userName: '',
|
|
|
userId: '',
|
|
|
optionsUser: [],
|
|
|
- shadeForm: {}
|
|
|
+ shadeForm: {},
|
|
|
+ laboratoryOptions:[],
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -226,11 +265,35 @@
|
|
|
userId:this.propsData.executionUserId,
|
|
|
userName:this.propsData.executionUser,
|
|
|
}]);
|
|
|
+ this.$set(this,'laboratoryOptions',[{
|
|
|
+ subId:this.propsData.subId,
|
|
|
+ subName:this.propsData.subName,
|
|
|
+ }]);
|
|
|
this.$set(this.newData,'way',"1");
|
|
|
this.$set(this.newData,'cycle',"1");
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ //懒加载实验室
|
|
|
+ subjectList(e){
|
|
|
+ subjectList({subName:e}).then(response => {
|
|
|
+ this.laboratoryOptions = response.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //实验室选择
|
|
|
+ selectChange(e){
|
|
|
+ let self = this;
|
|
|
+ for(let i=0;i<self.laboratoryOptions.length;i++){
|
|
|
+ if(self.laboratoryOptions[i].subId == e){
|
|
|
+ self.$set(self.newData,"subId",self.laboratoryOptions[i].subId);
|
|
|
+ self.$set(self.newData,"subName",self.laboratoryOptions[i].subName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ selectClear(){
|
|
|
+ this.$set(this.newData,"subId",'');
|
|
|
+ this.$set(this.newData,"subName",'');
|
|
|
+ },
|
|
|
// 返回按钮
|
|
|
backPage() {
|
|
|
this.$parent.tableButton(6)
|
|
@@ -246,6 +309,9 @@
|
|
|
typeId: this.newData.typeId, //分类ID
|
|
|
levelId: this.newData.levelId, //分级ID
|
|
|
executionUserId: this.newData.executionUserId, //执行人员ID
|
|
|
+ subId: this.newData.subId, //执行人员ID
|
|
|
+ subName: this.newData.subName, //执行人员ID
|
|
|
+ deadline: this.newData.deadline, //执行人员ID
|
|
|
manageDes: this.newData.manageDes //管控描述
|
|
|
}
|
|
|
this.deptOptions.forEach((item)=>{
|