Loading src/views/riskProject/add/addCurrent.vue +101 −72 Original line number Diff line number Diff line Loading @@ -96,9 +96,19 @@ @click="selectData('pointType', true)" :rules="[{ required: true, message: '风险点类型不能为空' }]" /> <van-field required label="是否为特种设备" v-show="form.pointType=='设备设施类'"> <van-field required label="是否为特种设备" v-show="form.pointType == '设备设施类'" > <template #input> <van-switch v-model="form.specialEquipment" size="20" name="specialEquipment" /> <span style="margin-right: 10px;color: red;">否</span> <van-switch v-model="form.specialEquipment" size="20" name="specialEquipment" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <!-- 多选 --> Loading Loading @@ -256,7 +266,7 @@ </van-uploader> </template> </van-field> <van-field label="管控措施"> <van-field label="管理措施"> <template #input> <van-field v-model="form.measuresAdministration" Loading @@ -270,7 +280,7 @@ /> </template> </van-field> <van-field name="measuresAdministrationFile[]" label="管控措施附件"> <van-field name="measuresAdministrationFile[]" label="管理措施附件"> <template #input> <van-uploader multiple Loading Loading @@ -399,7 +409,9 @@ <van-field name="majorHazardSource" label="是否为重大危险源"> <template #input> <span style="margin-right: 10px;color: red;">否</span> <van-switch v-model="form.majorHazardSource" size="20" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <van-field Loading @@ -413,9 +425,17 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '123'" :rules="form.majorHazardSource?[{ required: true, message: '危险源名称不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '危险源名称不能为空' }] : [] " /> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource"> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource" > <template #input> <van-field :disabled="!form.majorHazardSource" Loading @@ -426,9 +446,12 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '456'" :rules="form.majorHazardSource?[{ required: true, message: '重大危险源描述不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '重大危险源描述不能为空' }] : [] " style="padding-left: 0;padding-top: 0;" /> </template> </van-field> Loading @@ -442,12 +465,18 @@ label="判断依据" placeholder="请选择" :key="form.majorHazardSource + '789'" :rules="form.majorHazardSource?[{ required: true, message: '判断依据不能为空' }]:[]" @click="()=>{ :rules=" form.majorHazardSource ? [{ required: true, message: '判断依据不能为空' }] : [] " @click=" () => { if (form.majorHazardSource) { selectData('referenceBasis', false) selectData('referenceBasis', false); } } }" " /> <!-- <div style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;" Loading Loading @@ -1463,12 +1492,12 @@ export default { } }, watch: { 'form.pointType'(val,old){ "form.pointType"(val, old) { if (old) { if(val=='设备设施类'){ this.form.specialEquipment = false if (val == "设备设施类") { this.form.specialEquipment = false; } else { this.form.specialEquipment='' this.form.specialEquipment = ""; } } } Loading src/views/riskProject/add/addInherent.vue +247 −213 Original line number Diff line number Diff line Loading @@ -94,9 +94,19 @@ @click="selectData('pointType', true)" :rules="[{ required: true, message: '风险点类型不能为空' }]" /> <van-field required label="是否为特种设备" v-show="form.pointType=='设备设施类'"> <van-field required label="是否为特种设备" v-show="form.pointType == '设备设施类'" > <template #input> <van-switch name="specialEquipment" v-model="form.specialEquipment" size="20" /> <span style="margin-right: 10px;color: red;">否</span> <van-switch name="specialEquipment" v-model="form.specialEquipment" size="20" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <!-- 多选 --> Loading Loading @@ -253,7 +263,7 @@ </van-uploader> </template> </van-field> <van-field label="管控措施"> <van-field label="管理措施"> <template #input> <van-field v-model="form.measuresAdministration" Loading @@ -267,7 +277,7 @@ /> </template> </van-field> <van-field name="measuresAdministrationFile[]" label="管控措施附件"> <van-field name="measuresAdministrationFile[]" label="管理措施附件"> <template #input> <van-uploader multiple Loading Loading @@ -356,11 +366,15 @@ rows="1" autosize placeholder="请输入" list="measure-deptname-input" list="measure-deptname" @input="measuresDeptNameChange" /> <datalist id="measure-deptname"> <option value="Chocolate" v-for="item in measureDeptList" :key="item.id"/> <option :value="item.measuresDeptName" v-for="item in measureDeptList" :key="item.measuresDeptName" ></option> </datalist> <van-field v-model="form.measuresUserName" Loading @@ -374,7 +388,11 @@ @input="measuresUserNameChange" /> <datalist id="measure-name"> <option value="Chocolate" v-for="item in measureNameList" :key="item.id"/> <option v-for="item in measureNameList" :key="item.measuresUserName" :value="item.measuresUserName" /> </datalist> <van-field v-model="form.measuresUserPhone" Loading @@ -399,7 +417,9 @@ <van-field name="majorHazardSource" label="是否为重大危险源"> <template #input> <span style="margin-right: 10px;color: red;">否</span> <van-switch v-model="form.majorHazardSource" size="20" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <van-field Loading @@ -413,10 +433,17 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '456'" :rules="form.majorHazardSource?[{ required: true, message: '危险源名称不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '危险源名称不能为空' }] : [] " /> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource"> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource" > <template #input> <van-field :disabled="!form.majorHazardSource" Loading @@ -428,7 +455,11 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '123'" :rules="form.majorHazardSource?[{ required: true, message: '重大危险源描述不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '重大危险源描述不能为空' }] : [] " style="padding-left: 0;padding-top: 0;" /> </template> Loading @@ -444,12 +475,18 @@ label="判断依据" placeholder="请选择" :key="form.majorHazardSource + '7'" :rules="form.majorHazardSource?[{ required: true, message: '判断依据不能为空' }]:[]" @click="()=>{ :rules=" form.majorHazardSource ? [{ required: true, message: '判断依据不能为空' }] : [] " @click=" () => { if (form.majorHazardSource) { selectData('referenceBasis', false) selectData('referenceBasis', false); } }" } " /> <van-dialog v-model="showGradeDialog" Loading Loading @@ -708,7 +745,7 @@ export default { isTimely: 1, active: 0, form: { specialEquipment:'' specialEquipment: "" }, projectId: "", // 所属工程 projectName: "", // 所属工程 Loading @@ -720,14 +757,7 @@ export default { factor: "", //风险因素 showFactor: false, columnsFactor: [], messageList: [ { title: "回显风险源名称", time: "2022-12-12", name: "Mr.周", state: 1 } ], messageList: [], source: "", //风险源 userPrefix: "", //风险源 showSource: false, Loading Loading @@ -800,21 +830,25 @@ export default { methods: { /* swp add */ measuresUserNameChange(e) { this.getMeasureList(e) getFun( `/risk/plan/inherent/getResponsibilityPersons?personName=${e}&projectId=${this.form.projectId}` ).then(res => { this.measureNameList = res.data; this.measureNameList.forEach(item => { if (item.measuresUserName == e) this.form.measuresUserPhone = item.measuresUserPhone; }); console.log(e, 1111); }); }, measuresDeptNameChange(e) { this.getMeasureList(e) }, getMeasureList(search){ getFun('').then(res => { if (isSinge) { } else { this.columnsCheckData = res.data; this.showCheckSelect = true; } }) getFun( `/risk/plan/inherent/getResponsibilityUnits?unitName=${e}&projectId=${this.form.projectId}` ).then(res => { this.measureDeptList = res.data; }); }, getMeasureList(search) {}, /* swp add end */ // 项目负责人 onConTrouble(value) { Loading Loading @@ -1240,11 +1274,11 @@ export default { } }, watch: { 'form.pointType'(val,old){ if(val=='设备设施类'){ this.form.specialEquipment = false "form.pointType"(val, old) { if (val == "设备设施类") { this.form.specialEquipment = false; } else { this.form.specialEquipment = '' this.form.specialEquipment = ""; } } } Loading src/views/riskProject/add/addPresent.vue +152 −152 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ </van-uploader> </template> </van-field> <van-field label="管控措施"> <van-field label="管理措施"> <template #input> <van-field v-model="form.measuresAdministration" Loading @@ -219,7 +219,7 @@ /> </template> </van-field> <van-field name="measuresAdministrationFile[]" label="管控措施附件"> <van-field name="measuresAdministrationFile[]" label="管理措施附件"> <template #input> <van-uploader multiple Loading src/views/riskProject/add/inherentRisks.vue +9 −3 Original line number Diff line number Diff line Loading @@ -256,6 +256,8 @@ export default { return new Promise((resolve, reject) => { getFun(`/risk/plan/floor/list/${id}`) .then(res => { console.log(res.data); res.data = [{ name: "全部" }, ...res.data]; this.floorListData = res.data; this.changeBuild(res.data[0].name); this.option0 = this.changeData(res.data); Loading @@ -271,6 +273,8 @@ export default { return new Promise((resolve, reject) => { getFun(`/risk/plan/room/list/${id}`) .then(res => { if (!res.data) res.data = []; res.data = [{ id: "-1", name: "全部" }, ...res.data]; this.option2 = this.changeData(res.data); this.value2 = res.data[0].id || 0; resolve(res.data); Loading @@ -291,8 +295,8 @@ export default { var paramsJson = {}; if (floorId || roomId) { paramsJson = { floorId, roomId floorId: floorId == -1 ? null : floorId, roomId: roomId == -1 ? null : roomId }; } else { paramsJson = {}; Loading Loading @@ -331,7 +335,9 @@ export default { if (this.value0) { let arr = this.floorListData.filter(item => item.name == this.value0)[0] .children; console.log(arr); if (!arr) arr = []; arr = [{ id: "-1", name: "全部" }, ...arr]; this.option1 = this.changeData(arr); this.value1 = arr[0].id; this.roomList(this.value1); Loading src/views/riskProject/add/taskList.vue +4 −4 Original line number Diff line number Diff line Loading @@ -632,12 +632,12 @@ export default { performTasks() { sessionStorage.setItem( "buildingId", this.messageList.riskBuildingListDtos[0].buildingId this.messageList.detailsDto.buildingIds ); sessionStorage.setItem("planId", this.messageList.id); sessionStorage.setItem( "buildingName", this.messageList.riskBuildingListDtos[0].buildingName this.messageList.detailsDto.buildingNames ); sessionStorage.setItem( "projectId", Loading @@ -652,8 +652,8 @@ export default { name: "riskInherent", params: { id: this.messageList.id, buildingId: this.messageList.riskBuildingListDtos[0].buildingId, buildingName: this.messageList.riskBuildingListDtos[0].buildingName buildingId: this.messageList.detailsDto.buildingIds, buildingName: this.messageList.detailsDto.buildingNames } }); }, Loading Loading
src/views/riskProject/add/addCurrent.vue +101 −72 Original line number Diff line number Diff line Loading @@ -96,9 +96,19 @@ @click="selectData('pointType', true)" :rules="[{ required: true, message: '风险点类型不能为空' }]" /> <van-field required label="是否为特种设备" v-show="form.pointType=='设备设施类'"> <van-field required label="是否为特种设备" v-show="form.pointType == '设备设施类'" > <template #input> <van-switch v-model="form.specialEquipment" size="20" name="specialEquipment" /> <span style="margin-right: 10px;color: red;">否</span> <van-switch v-model="form.specialEquipment" size="20" name="specialEquipment" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <!-- 多选 --> Loading Loading @@ -256,7 +266,7 @@ </van-uploader> </template> </van-field> <van-field label="管控措施"> <van-field label="管理措施"> <template #input> <van-field v-model="form.measuresAdministration" Loading @@ -270,7 +280,7 @@ /> </template> </van-field> <van-field name="measuresAdministrationFile[]" label="管控措施附件"> <van-field name="measuresAdministrationFile[]" label="管理措施附件"> <template #input> <van-uploader multiple Loading Loading @@ -399,7 +409,9 @@ <van-field name="majorHazardSource" label="是否为重大危险源"> <template #input> <span style="margin-right: 10px;color: red;">否</span> <van-switch v-model="form.majorHazardSource" size="20" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <van-field Loading @@ -413,9 +425,17 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '123'" :rules="form.majorHazardSource?[{ required: true, message: '危险源名称不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '危险源名称不能为空' }] : [] " /> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource"> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource" > <template #input> <van-field :disabled="!form.majorHazardSource" Loading @@ -426,9 +446,12 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '456'" :rules="form.majorHazardSource?[{ required: true, message: '重大危险源描述不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '重大危险源描述不能为空' }] : [] " style="padding-left: 0;padding-top: 0;" /> </template> </van-field> Loading @@ -442,12 +465,18 @@ label="判断依据" placeholder="请选择" :key="form.majorHazardSource + '789'" :rules="form.majorHazardSource?[{ required: true, message: '判断依据不能为空' }]:[]" @click="()=>{ :rules=" form.majorHazardSource ? [{ required: true, message: '判断依据不能为空' }] : [] " @click=" () => { if (form.majorHazardSource) { selectData('referenceBasis', false) selectData('referenceBasis', false); } } }" " /> <!-- <div style="height: 1rem;font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';font-weight: 700;line-height: 1rem;" Loading Loading @@ -1463,12 +1492,12 @@ export default { } }, watch: { 'form.pointType'(val,old){ "form.pointType"(val, old) { if (old) { if(val=='设备设施类'){ this.form.specialEquipment = false if (val == "设备设施类") { this.form.specialEquipment = false; } else { this.form.specialEquipment='' this.form.specialEquipment = ""; } } } Loading
src/views/riskProject/add/addInherent.vue +247 −213 Original line number Diff line number Diff line Loading @@ -94,9 +94,19 @@ @click="selectData('pointType', true)" :rules="[{ required: true, message: '风险点类型不能为空' }]" /> <van-field required label="是否为特种设备" v-show="form.pointType=='设备设施类'"> <van-field required label="是否为特种设备" v-show="form.pointType == '设备设施类'" > <template #input> <van-switch name="specialEquipment" v-model="form.specialEquipment" size="20" /> <span style="margin-right: 10px;color: red;">否</span> <van-switch name="specialEquipment" v-model="form.specialEquipment" size="20" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <!-- 多选 --> Loading Loading @@ -253,7 +263,7 @@ </van-uploader> </template> </van-field> <van-field label="管控措施"> <van-field label="管理措施"> <template #input> <van-field v-model="form.measuresAdministration" Loading @@ -267,7 +277,7 @@ /> </template> </van-field> <van-field name="measuresAdministrationFile[]" label="管控措施附件"> <van-field name="measuresAdministrationFile[]" label="管理措施附件"> <template #input> <van-uploader multiple Loading Loading @@ -356,11 +366,15 @@ rows="1" autosize placeholder="请输入" list="measure-deptname-input" list="measure-deptname" @input="measuresDeptNameChange" /> <datalist id="measure-deptname"> <option value="Chocolate" v-for="item in measureDeptList" :key="item.id"/> <option :value="item.measuresDeptName" v-for="item in measureDeptList" :key="item.measuresDeptName" ></option> </datalist> <van-field v-model="form.measuresUserName" Loading @@ -374,7 +388,11 @@ @input="measuresUserNameChange" /> <datalist id="measure-name"> <option value="Chocolate" v-for="item in measureNameList" :key="item.id"/> <option v-for="item in measureNameList" :key="item.measuresUserName" :value="item.measuresUserName" /> </datalist> <van-field v-model="form.measuresUserPhone" Loading @@ -399,7 +417,9 @@ <van-field name="majorHazardSource" label="是否为重大危险源"> <template #input> <span style="margin-right: 10px;color: red;">否</span> <van-switch v-model="form.majorHazardSource" size="20" /> <span style="margin-left: 10px;color: green;">是</span> </template> </van-field> <van-field Loading @@ -413,10 +433,17 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '456'" :rules="form.majorHazardSource?[{ required: true, message: '危险源名称不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '危险源名称不能为空' }] : [] " /> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource"> <van-field label="重大危险源描述" :disabled="!form.majorHazardSource" :required="form.majorHazardSource" > <template #input> <van-field :disabled="!form.majorHazardSource" Loading @@ -428,7 +455,11 @@ autosize placeholder="请输入" :key="form.majorHazardSource + '123'" :rules="form.majorHazardSource?[{ required: true, message: '重大危险源描述不能为空' }]:[]" :rules=" form.majorHazardSource ? [{ required: true, message: '重大危险源描述不能为空' }] : [] " style="padding-left: 0;padding-top: 0;" /> </template> Loading @@ -444,12 +475,18 @@ label="判断依据" placeholder="请选择" :key="form.majorHazardSource + '7'" :rules="form.majorHazardSource?[{ required: true, message: '判断依据不能为空' }]:[]" @click="()=>{ :rules=" form.majorHazardSource ? [{ required: true, message: '判断依据不能为空' }] : [] " @click=" () => { if (form.majorHazardSource) { selectData('referenceBasis', false) selectData('referenceBasis', false); } }" } " /> <van-dialog v-model="showGradeDialog" Loading Loading @@ -708,7 +745,7 @@ export default { isTimely: 1, active: 0, form: { specialEquipment:'' specialEquipment: "" }, projectId: "", // 所属工程 projectName: "", // 所属工程 Loading @@ -720,14 +757,7 @@ export default { factor: "", //风险因素 showFactor: false, columnsFactor: [], messageList: [ { title: "回显风险源名称", time: "2022-12-12", name: "Mr.周", state: 1 } ], messageList: [], source: "", //风险源 userPrefix: "", //风险源 showSource: false, Loading Loading @@ -800,21 +830,25 @@ export default { methods: { /* swp add */ measuresUserNameChange(e) { this.getMeasureList(e) getFun( `/risk/plan/inherent/getResponsibilityPersons?personName=${e}&projectId=${this.form.projectId}` ).then(res => { this.measureNameList = res.data; this.measureNameList.forEach(item => { if (item.measuresUserName == e) this.form.measuresUserPhone = item.measuresUserPhone; }); console.log(e, 1111); }); }, measuresDeptNameChange(e) { this.getMeasureList(e) }, getMeasureList(search){ getFun('').then(res => { if (isSinge) { } else { this.columnsCheckData = res.data; this.showCheckSelect = true; } }) getFun( `/risk/plan/inherent/getResponsibilityUnits?unitName=${e}&projectId=${this.form.projectId}` ).then(res => { this.measureDeptList = res.data; }); }, getMeasureList(search) {}, /* swp add end */ // 项目负责人 onConTrouble(value) { Loading Loading @@ -1240,11 +1274,11 @@ export default { } }, watch: { 'form.pointType'(val,old){ if(val=='设备设施类'){ this.form.specialEquipment = false "form.pointType"(val, old) { if (val == "设备设施类") { this.form.specialEquipment = false; } else { this.form.specialEquipment = '' this.form.specialEquipment = ""; } } } Loading
src/views/riskProject/add/addPresent.vue +152 −152 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ </van-uploader> </template> </van-field> <van-field label="管控措施"> <van-field label="管理措施"> <template #input> <van-field v-model="form.measuresAdministration" Loading @@ -219,7 +219,7 @@ /> </template> </van-field> <van-field name="measuresAdministrationFile[]" label="管控措施附件"> <van-field name="measuresAdministrationFile[]" label="管理措施附件"> <template #input> <van-uploader multiple Loading
src/views/riskProject/add/inherentRisks.vue +9 −3 Original line number Diff line number Diff line Loading @@ -256,6 +256,8 @@ export default { return new Promise((resolve, reject) => { getFun(`/risk/plan/floor/list/${id}`) .then(res => { console.log(res.data); res.data = [{ name: "全部" }, ...res.data]; this.floorListData = res.data; this.changeBuild(res.data[0].name); this.option0 = this.changeData(res.data); Loading @@ -271,6 +273,8 @@ export default { return new Promise((resolve, reject) => { getFun(`/risk/plan/room/list/${id}`) .then(res => { if (!res.data) res.data = []; res.data = [{ id: "-1", name: "全部" }, ...res.data]; this.option2 = this.changeData(res.data); this.value2 = res.data[0].id || 0; resolve(res.data); Loading @@ -291,8 +295,8 @@ export default { var paramsJson = {}; if (floorId || roomId) { paramsJson = { floorId, roomId floorId: floorId == -1 ? null : floorId, roomId: roomId == -1 ? null : roomId }; } else { paramsJson = {}; Loading Loading @@ -331,7 +335,9 @@ export default { if (this.value0) { let arr = this.floorListData.filter(item => item.name == this.value0)[0] .children; console.log(arr); if (!arr) arr = []; arr = [{ id: "-1", name: "全部" }, ...arr]; this.option1 = this.changeData(arr); this.value1 = arr[0].id; this.roomList(this.value1); Loading
src/views/riskProject/add/taskList.vue +4 −4 Original line number Diff line number Diff line Loading @@ -632,12 +632,12 @@ export default { performTasks() { sessionStorage.setItem( "buildingId", this.messageList.riskBuildingListDtos[0].buildingId this.messageList.detailsDto.buildingIds ); sessionStorage.setItem("planId", this.messageList.id); sessionStorage.setItem( "buildingName", this.messageList.riskBuildingListDtos[0].buildingName this.messageList.detailsDto.buildingNames ); sessionStorage.setItem( "projectId", Loading @@ -652,8 +652,8 @@ export default { name: "riskInherent", params: { id: this.messageList.id, buildingId: this.messageList.riskBuildingListDtos[0].buildingId, buildingName: this.messageList.riskBuildingListDtos[0].buildingName buildingId: this.messageList.detailsDto.buildingIds, buildingName: this.messageList.detailsDto.buildingNames } }); }, Loading