| | |
| | | |
| | | build: { |
| | | // Template for index.html |
| | | index: path.resolve(__dirname, '../dist/index.html'), |
| | | index: path.resolve(__dirname, '../zhongtaiweb/index.html'), |
| | | |
| | | // Paths |
| | | assetsRoot: path.resolve(__dirname, '../dist'), |
| | | assetsRoot: path.resolve(__dirname, '../zhongtaiweb'), |
| | | assetsSubDirectory: 'static', |
| | | // assetsSubDirectory: 'dataShow/static', |
| | | |
| | |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | | } |
| | | |
| | | export function safetySelfInspectionFinish(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/safetySelfInspection/finish', |
| | | method: 'post', |
| | | data |
| | | }) |
| | | } |
| | |
| | | <desc>Created with Sketch.</desc> |
| | | <g id="icon/menu/dash" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| | | <g id="dashboard" transform="translate(2.000000, 3.000000)"></g> |
| | | <path d="M4.57175,9.25925 C4.57175,9.023 4.48775,8.8205 4.3205,8.65325 C4.15325,8.486 3.9515,8.402 3.71525,8.402 C3.479,8.402 3.2765,8.486 3.10925,8.65325 C2.942,8.8205 2.858,9.02225 2.858,9.25925 C2.858,9.4955 2.942,9.698 3.10925,9.86525 C3.2765,10.0325 3.479,10.1165 3.71525,10.1165 C3.9515,10.1165 4.154,10.0325 4.32125,9.86525 C4.4885,9.698 4.57175,9.4955 4.57175,9.25925 L4.57175,9.25925 Z M5.858,6.25925 C5.858,6.023 5.774,5.8205 5.60675,5.65325 C5.4395,5.486 5.237,5.402 5.00075,5.402 C4.7645,5.402 4.562,5.486 4.39475,5.65325 C4.2275,5.8205 4.1435,6.023 4.1435,6.25925 C4.1435,6.4955 4.2275,6.698 4.39475,6.86525 C4.562,7.0325 4.76375,7.1165 5.00075,7.1165 C5.237,7.1165 5.4395,7.0325 5.60675,6.86525 C5.774,6.698 5.858,6.49625 5.858,6.25925 L5.858,6.25925 Z M8.72375,9.4805 L9.40025,6.923 C9.42725,6.80675 9.41,6.69875 9.34925,6.59825 C9.28925,6.497 9.203,6.43175 9.09125,6.401 C8.98025,6.37025 8.873,6.3845 8.77025,6.4445 C8.6675,6.5045 8.60075,6.593 8.56925,6.70925 L7.89275,9.26675 C7.625,9.28925 7.3865,9.386 7.1765,9.5585 C6.9665,9.73025 6.82625,9.95075 6.755,10.2185 C6.66575,10.56275 6.71075,10.88825 6.8885,11.1965 C7.067,11.50475 7.328,11.70275 7.6715,11.792 C8.01575,11.88125 8.34125,11.83625 8.6495,11.6585 C8.95775,11.48 9.15575,11.219 9.245,10.8755 C9.31625,10.60775 9.30275,10.34675 9.2045,10.0925 C9.10625,9.83825 8.945,9.635 8.72225,9.48275 L8.72375,9.4805 L8.72375,9.4805 Z M13.14275,9.25925 C13.14275,9.023 13.05875,8.8205 12.8915,8.65325 C12.72425,8.486 12.52175,8.402 12.2855,8.402 C12.04925,8.402 11.84675,8.486 11.6795,8.65325 C11.51225,8.8205 11.42825,9.023 11.42825,9.25925 C11.42825,9.4955 11.51225,9.698 11.6795,9.86525 C11.84675,10.0325 12.04925,10.1165 12.2855,10.1165 C12.52175,10.1165 12.72425,10.0325 12.8915,9.86525 C13.0595,9.698 13.14275,9.4955 13.14275,9.25925 L13.14275,9.25925 Z M8.85725,4.97375 C8.85725,4.7375 8.77325,4.535 8.606,4.36775 C8.43875,4.2005 8.237,4.1165 8.00075,4.1165 C7.7645,4.1165 7.562,4.2005 7.39475,4.36775 C7.22675,4.535 7.1435,4.7375 7.1435,4.97375 C7.1435,5.21 7.22675,5.4125 7.39475,5.57975 C7.562,5.747 7.7645,5.831 8.00075,5.831 C8.237,5.831 8.4395,5.747 8.60675,5.57975 C8.774,5.4125 8.85725,5.21 8.85725,4.97375 L8.85725,4.97375 Z M11.85725,6.25925 C11.85725,6.023 11.77325,5.8205 11.606,5.65325 C11.43875,5.486 11.237,5.402 11,5.402 C10.76375,5.402 10.56125,5.486 10.394,5.65325 C10.22675,5.8205 10.14275,6.023 10.14275,6.25925 C10.14275,6.4955 10.22675,6.698 10.394,6.86525 C10.562,7.0325 10.76375,7.1165 11,7.1165 C11.23625,7.1165 11.43875,7.0325 11.606,6.86525 C11.77325,6.698 11.85725,6.49625 11.85725,6.25925 L11.85725,6.25925 Z M14,9.25925 C14,10.424 13.685,11.5025 13.05575,12.49325 C12.971,12.623 12.85025,12.6875 12.69425,12.6875 L3.3065,12.6875 C3.1505,12.6875 3.02975,12.623 2.945,12.49325 C2.315,11.50625 2,10.4285 2,9.25925 C2,8.447 2.15825,7.67 2.4755,6.929 C2.79275,6.188 3.21875,5.54975 3.75425,5.01425 C4.28975,4.47875 4.928,4.05275 5.669,3.7355 C6.41,3.41825 7.187,3.25925 7.99925,3.25925 C8.8115,3.25925 9.5885,3.4175 10.3295,3.73475 C11.0705,4.052 11.70875,4.478 12.24425,5.0135 C12.77975,5.549 13.20575,6.18725 13.523,6.92825 C13.84025,7.66925 13.9985,8.44625 13.9985,9.2585 L14,9.2585 L14,9.25925 Z" id="Shape" fill="#FFFFFF" fill-rule="nonzero"></path> |
| | | <path d="M4.57175,9.25925 C4.57175,9.023 4.48775,8.8205 4.3205,8.65325 C4.15325,8.486 3.9515,8.402 3.71525,8.402 C3.479,8.402 3.2765,8.486 3.10925,8.65325 C2.942,8.8205 2.858,9.02225 2.858,9.25925 C2.858,9.4955 2.942,9.698 3.10925,9.86525 C3.2765,10.0325 3.479,10.1165 3.71525,10.1165 C3.9515,10.1165 4.154,10.0325 4.32125,9.86525 C4.4885,9.698 4.57175,9.4955 4.57175,9.25925 L4.57175,9.25925 Z M5.858,6.25925 C5.858,6.023 5.774,5.8205 5.60675,5.65325 C5.4395,5.486 5.237,5.402 5.00075,5.402 C4.7645,5.402 4.562,5.486 4.39475,5.65325 C4.2275,5.8205 4.1435,6.023 4.1435,6.25925 C4.1435,6.4955 4.2275,6.698 4.39475,6.86525 C4.562,7.0325 4.76375,7.1165 5.00075,7.1165 C5.237,7.1165 5.4395,7.0325 5.60675,6.86525 C5.774,6.698 5.858,6.49625 5.858,6.25925 L5.858,6.25925 Z M8.72375,9.4805 L9.40025,6.923 C9.42725,6.80675 9.41,6.69875 9.34925,6.59825 C9.28925,6.497 9.203,6.43175 9.09125,6.401 C8.98025,6.37025 8.873,6.3845 8.77025,6.4445 C8.6675,6.5045 8.60075,6.593 8.56925,6.70925 L7.89275,9.26675 C7.625,9.28925 7.3865,9.386 7.1765,9.5585 C6.9665,9.73025 6.82625,9.95075 6.755,10.2185 C6.66575,10.56275 6.71075,10.88825 6.8885,11.1965 C7.067,11.50475 7.328,11.70275 7.6715,11.792 C8.01575,11.88125 8.34125,11.83625 8.6495,11.6585 C8.95775,11.48 9.15575,11.219 9.245,10.8755 C9.31625,10.60775 9.30275,10.34675 9.2045,10.0925 C9.10625,9.83825 8.945,9.635 8.72225,9.48275 L8.72375,9.4805 L8.72375,9.4805 Z M13.14275,9.25925 C13.14275,9.023 13.05875,8.8205 12.8915,8.65325 C12.72425,8.486 12.52175,8.402 12.2855,8.402 C12.04925,8.402 11.84675,8.486 11.6795,8.65325 C11.51225,8.8205 11.42825,9.023 11.42825,9.25925 C11.42825,9.4955 11.51225,9.698 11.6795,9.86525 C11.84675,10.0325 12.04925,10.1165 12.2855,10.1165 C12.52175,10.1165 12.72425,10.0325 12.8915,9.86525 C13.0595,9.698 13.14275,9.4955 13.14275,9.25925 L13.14275,9.25925 Z M8.85725,4.97375 C8.85725,4.7375 8.77325,4.535 8.606,4.36775 C8.43875,4.2005 8.237,4.1165 8.00075,4.1165 C7.7645,4.1165 7.562,4.2005 7.39475,4.36775 C7.22675,4.535 7.1435,4.7375 7.1435,4.97375 C7.1435,5.21 7.22675,5.4125 7.39475,5.57975 C7.562,5.747 7.7645,5.831 8.00075,5.831 C8.237,5.831 8.4395,5.747 8.60675,5.57975 C8.774,5.4125 8.85725,5.21 8.85725,4.97375 L8.85725,4.97375 Z M11.85725,6.25925 C11.85725,6.023 11.77325,5.8205 11.606,5.65325 C11.43875,5.486 11.237,5.402 11,5.402 C10.76375,5.402 10.56125,5.486 10.394,5.65325 C10.22675,5.8205 10.14275,6.023 10.14275,6.25925 C10.14275,6.4955 10.22675,6.698 10.394,6.86525 C10.562,7.0325 10.76375,7.1165 11,7.1165 C11.23625,7.1165 11.43875,7.0325 11.606,6.86525 C11.77325,6.698 11.85725,6.49625 11.85725,6.25925 L11.85725,6.25925 Z M14,9.25925 C14,10.424 13.685,11.5025 13.05575,12.49325 C12.971,12.623 12.85025,12.6875 12.69425,12.6875 L3.3065,12.6875 C3.1505,12.6875 3.02975,12.623 2.945,12.49325 C2.315,11.50625 2,10.4285 2,9.25925 C2,8.447 2.15825,7.67 2.4755,6.929 C2.79275,6.188 3.21875,5.54975 3.75425,5.01425 C4.28975,4.47875 4.928,4.05275 5.669,3.7355 C6.41,3.41825 7.187,3.25925 7.99925,3.25925 C8.8115,3.25925 9.5885,3.4175 10.3295,3.73475 C11.0705,4.052 11.70875,4.478 12.24425,5.0135 C12.77975,5.549 13.20575,6.18725 13.523,6.92825 C13.84025,7.66925 13.9985,8.44625 13.9985,9.2585 L14,9.2585 L14,9.25925 Z" id="Shape" fill="#909399" fill-rule="nonzero"></path> |
| | | </g> |
| | | </svg> |
| | | </svg> |
| | |
| | | <g id="icon/menu/facilities" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| | | <g id="科研系统" transform="translate(2.000000, 2.000000)" fill-rule="nonzero"> |
| | | <rect id="Rectangle" fill="#333333" opacity="0" x="0" y="0" width="12" height="12"></rect> |
| | | <path d="M7.921875,1.87488281 L4.10155078,1.87488281 C3.89444531,1.87488281 3.72655078,1.70698828 3.72655078,1.49988281 C3.72655078,1.29277734 3.89444531,1.12488281 4.10155078,1.12488281 L7.921875,1.12488281 C8.12898047,1.12488281 8.296875,1.29277734 8.296875,1.49988281 C8.296875,1.70698828 8.12898047,1.87488281 7.921875,1.87488281 Z M8.79331641,11.2525664 L3.24151172,11.2525664 C2.87824091,11.2524296 2.521375,11.1569 2.20661719,10.9755352 C1.90273828,10.800293 1.64558203,10.5492539 1.46295703,10.2495586 C1.15105078,9.73773047 1.14554297,9.09544922 1.44856641,8.57333203 L1.45033594,8.57030859 L4.60209375,3.25490625 C4.70771484,3.07675781 4.93777734,3.01795312 5.11591406,3.12360937 C5.2940625,3.22924219 5.35284375,3.45928125 5.24721094,3.63742969 L2.0964375,8.95116797 C1.93232812,9.23505469 1.93495312,9.58285547 2.10339844,9.85926562 C2.34520312,10.2560625 2.78130469,10.5025664 3.24151172,10.5025664 L8.79331641,10.5025664 C9.17477344,10.5025664 9.53932031,10.3364766 9.7935,10.0468828 C10.0722773,9.72925781 10.1204531,9.26351953 9.91386328,8.88682031 L6.82567969,3.57394922 C6.72160547,3.39489844 6.78239062,3.165375 6.96144141,3.06128906 C7.14052734,2.95721484 7.37002734,3.018 7.47410156,3.19705078 L10.566457,8.51708203 L10.5683906,8.52058594 C10.9296797,9.17384766 10.8448008,9.98603906 10.3571953,10.5416133 C9.96063281,10.9934297 9.39062109,11.2525664 8.79331641,11.2525664 L8.79331641,11.2525664 Z" id="Shape" fill="#FFFFFF"></path> |
| | | <path d="M4.92304687,3.796875 C4.71594141,3.796875 4.54804687,3.62898047 4.54804687,3.421875 L4.54804687,1.61294531 C4.54804687,1.40583984 4.71594141,1.23794531 4.92304687,1.23794531 C5.13015234,1.23794531 5.29804687,1.40583984 5.29804687,1.61294531 L5.29804687,3.421875 C5.29804687,3.62898047 5.13015234,3.796875 4.92304687,3.796875 Z M7.1484375,3.68382422 C6.94133203,3.68382422 6.7734375,3.51592969 6.7734375,3.30882422 L6.7734375,1.49988281 C6.7734375,1.29277734 6.94133203,1.12488281 7.1484375,1.12488281 C7.35554297,1.12488281 7.5234375,1.29277734 7.5234375,1.49988281 L7.5234375,3.3088125 C7.5234375,3.51592969 7.35554297,3.68382422 7.1484375,3.68382422 L7.1484375,3.68382422 Z M9.73828125,10.6054688 L2.39105859,10.6054688 C2.31371484,10.6054688 1.65234375,10.0265625 1.65234375,9.94921875 L2.25043359,7.64021484 C2.25043359,7.56287109 2.31371484,7.49958984 2.39105859,7.49958984 L9.73828125,7.49958984 C9.815625,7.49958984 9.87890625,7.56287109 9.87890625,7.64021484 L10.3476562,9.92578125 C10.3476562,10.003125 9.815625,10.6054688 9.73828125,10.6054688 Z" id="Shape" fill="#FFFFFF"></path> |
| | | <path d="M7.921875,1.87488281 L4.10155078,1.87488281 C3.89444531,1.87488281 3.72655078,1.70698828 3.72655078,1.49988281 C3.72655078,1.29277734 3.89444531,1.12488281 4.10155078,1.12488281 L7.921875,1.12488281 C8.12898047,1.12488281 8.296875,1.29277734 8.296875,1.49988281 C8.296875,1.70698828 8.12898047,1.87488281 7.921875,1.87488281 Z M8.79331641,11.2525664 L3.24151172,11.2525664 C2.87824091,11.2524296 2.521375,11.1569 2.20661719,10.9755352 C1.90273828,10.800293 1.64558203,10.5492539 1.46295703,10.2495586 C1.15105078,9.73773047 1.14554297,9.09544922 1.44856641,8.57333203 L1.45033594,8.57030859 L4.60209375,3.25490625 C4.70771484,3.07675781 4.93777734,3.01795312 5.11591406,3.12360937 C5.2940625,3.22924219 5.35284375,3.45928125 5.24721094,3.63742969 L2.0964375,8.95116797 C1.93232812,9.23505469 1.93495312,9.58285547 2.10339844,9.85926562 C2.34520312,10.2560625 2.78130469,10.5025664 3.24151172,10.5025664 L8.79331641,10.5025664 C9.17477344,10.5025664 9.53932031,10.3364766 9.7935,10.0468828 C10.0722773,9.72925781 10.1204531,9.26351953 9.91386328,8.88682031 L6.82567969,3.57394922 C6.72160547,3.39489844 6.78239062,3.165375 6.96144141,3.06128906 C7.14052734,2.95721484 7.37002734,3.018 7.47410156,3.19705078 L10.566457,8.51708203 L10.5683906,8.52058594 C10.9296797,9.17384766 10.8448008,9.98603906 10.3571953,10.5416133 C9.96063281,10.9934297 9.39062109,11.2525664 8.79331641,11.2525664 L8.79331641,11.2525664 Z" id="Shape" fill="#909399"></path> |
| | | <path d="M4.92304687,3.796875 C4.71594141,3.796875 4.54804687,3.62898047 4.54804687,3.421875 L4.54804687,1.61294531 C4.54804687,1.40583984 4.71594141,1.23794531 4.92304687,1.23794531 C5.13015234,1.23794531 5.29804687,1.40583984 5.29804687,1.61294531 L5.29804687,3.421875 C5.29804687,3.62898047 5.13015234,3.796875 4.92304687,3.796875 Z M7.1484375,3.68382422 C6.94133203,3.68382422 6.7734375,3.51592969 6.7734375,3.30882422 L6.7734375,1.49988281 C6.7734375,1.29277734 6.94133203,1.12488281 7.1484375,1.12488281 C7.35554297,1.12488281 7.5234375,1.29277734 7.5234375,1.49988281 L7.5234375,3.3088125 C7.5234375,3.51592969 7.35554297,3.68382422 7.1484375,3.68382422 L7.1484375,3.68382422 Z M9.73828125,10.6054688 L2.39105859,10.6054688 C2.31371484,10.6054688 1.65234375,10.0265625 1.65234375,9.94921875 L2.25043359,7.64021484 C2.25043359,7.56287109 2.31371484,7.49958984 2.39105859,7.49958984 L9.73828125,7.49958984 C9.815625,7.49958984 9.87890625,7.56287109 9.87890625,7.64021484 L10.3476562,9.92578125 C10.3476562,10.003125 9.815625,10.6054688 9.73828125,10.6054688 Z" id="Shape" fill="#909399"></path> |
| | | </g> |
| | | </g> |
| | | </svg> |
| | | </svg> |
| | |
| | | <g id="icon/menu/security" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| | | <g id="安全" transform="translate(2.000000, 2.000000)" fill-rule="nonzero"> |
| | | <rect id="Rectangle" fill="#333333" opacity="0" x="0" y="0" width="12" height="12"></rect> |
| | | <path d="M9.912,2.58216 C9.79392,2.4732 9.63936,2.41872 9.48552,2.41872 C9.46728,2.41872 9.45816,2.41872 9.44016,2.41872 C9.43104,2.41872 9.3312,2.42784 9.17688,2.42784 C8.9136,2.42784 8.41464,2.4096 7.93392,2.29176 C7.31664,2.1468 6.59976,1.46616 6.39096,1.32984 C6.29136,1.26624 6.16416,1.23 6.04608,1.23 C5.92824,1.23 5.8104,1.26624 5.70144,1.32984 C5.67432,1.34808 4.93032,2.1192 4.20432,2.29176 C3.72336,2.4096 3.20616,2.42784 2.95224,2.42784 C2.7888,2.42784 2.6892,2.41872 2.68008,2.41872 C2.67096,2.41872 2.65272,2.41872 2.64384,2.41872 C2.4804,2.41872 2.3352,2.4732 2.21736,2.58216 C2.0904,2.69112 2.01792,2.85432 2.01792,3.01776 L2.01792,4.52376 C2.01792,10.07712 5.78328,10.79352 5.9376,10.82088 C5.97384,10.83 6.01032,10.83 6.04632,10.83 C6.08256,10.83 6.11928,10.83 6.15552,10.82088 C6.31872,10.79352 10.10232,10.07688 10.10232,4.52376 L10.10232,3.01776 C10.10232,2.85432 10.02936,2.69112 9.912,2.58216 L9.912,2.58216 Z" id="Path" fill="#FFFFFF"></path> |
| | | <path d="M9.912,2.58216 C9.79392,2.4732 9.63936,2.41872 9.48552,2.41872 C9.46728,2.41872 9.45816,2.41872 9.44016,2.41872 C9.43104,2.41872 9.3312,2.42784 9.17688,2.42784 C8.9136,2.42784 8.41464,2.4096 7.93392,2.29176 C7.31664,2.1468 6.59976,1.46616 6.39096,1.32984 C6.29136,1.26624 6.16416,1.23 6.04608,1.23 C5.92824,1.23 5.8104,1.26624 5.70144,1.32984 C5.67432,1.34808 4.93032,2.1192 4.20432,2.29176 C3.72336,2.4096 3.20616,2.42784 2.95224,2.42784 C2.7888,2.42784 2.6892,2.41872 2.68008,2.41872 C2.67096,2.41872 2.65272,2.41872 2.64384,2.41872 C2.4804,2.41872 2.3352,2.4732 2.21736,2.58216 C2.0904,2.69112 2.01792,2.85432 2.01792,3.01776 L2.01792,4.52376 C2.01792,10.07712 5.78328,10.79352 5.9376,10.82088 C5.97384,10.83 6.01032,10.83 6.04632,10.83 C6.08256,10.83 6.11928,10.83 6.15552,10.82088 C6.31872,10.79352 10.10232,10.07688 10.10232,4.52376 L10.10232,3.01776 C10.10232,2.85432 10.02936,2.69112 9.912,2.58216 L9.912,2.58216 Z" id="Path" fill="#909399"></path> |
| | | </g> |
| | | </g> |
| | | </svg> |
| | | </svg> |
| | |
| | | ], |
| | | hidden: true |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/contingencyplan', |
| | | component: Layout, |
| | | // redirect: '/contingencyplan', |
| | | name: '应急预案', |
| | | meta: { title: '应急预案', icon: 'el-icon-dash' }, |
| | | children: [ |
| | | { |
| | | id: 1, |
| | | parentId: 0, |
| | | path: '/contingencyplan', |
| | | name: '应急预案', |
| | | component: () => import('@/views/contingencyplan/index'), |
| | | meta: { title: '应急预案', icon: '' } |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // id: 2, |
| | | // parentId: 0, |
| | | // path: '/contingencyplan', |
| | | // component: Layout, |
| | | // // redirect: '/contingencyplan', |
| | | // name: '应急预案', |
| | | // meta: { title: '应急预案', icon: 'el-icon-dash' }, |
| | | // children: [ |
| | | // { |
| | | // id: 1, |
| | | // parentId: 0, |
| | | // path: '/contingencyplan', |
| | | // name: '应急预案', |
| | | // component: () => import('@/views/contingencyplan/index'), |
| | | // meta: { title: '应急预案', icon: '' } |
| | | // } |
| | | // ] |
| | | // }, |
| | | // { |
| | | // id: 2, |
| | | // parentId: 0, |
| | |
| | | // }, |
| | | // ] |
| | | // } |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/safetyproduction', |
| | | component: Layout, |
| | | // redirect: '/contingencyplan', |
| | | name: '安全生产标准化', |
| | | meta: { title: '安全生产标准化', icon: 'el-icon-security' }, |
| | | children: [ |
| | | { |
| | | id: 1, |
| | | parentId: 0, |
| | | path: '/feature', |
| | | name: '要素管理', |
| | | component: () => import('@/views/safetyproduction/feature'), |
| | | meta: { title: '要素管理', icon: '' } |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/checklist', |
| | | name: '检查清单', |
| | | component: () => import('@/views/safetyproduction/checklist'), |
| | | meta: { title: '检查清单', icon: '' } |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/checklistself', |
| | | name: '自查清单', |
| | | component: () => import('@/views/safetyproduction/checklistself'), |
| | | meta: { title: '自查清单', icon: '' } |
| | | }, |
| | | { |
| | | // id: 2, |
| | | // parentId: 0, |
| | | path: '/review', |
| | | // name: '自查清单_评审', |
| | | component: () => import('@/views/safetyproduction/review'), |
| | | // meta: { title: '自查清单_评审', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | | // id: 2, |
| | | // parentId: 0, |
| | | path: '/gojudging', |
| | | // name: '自查清单_去评审', |
| | | component: () => import('@/views/safetyproduction/gojudging'), |
| | | // meta: { title: '自查清单_去评审', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | | path: '/new', |
| | | // name: '自查清单_新增|修改', |
| | | component: () => import('@/views/safetyproduction/new'), |
| | | // meta: { title: '自查清单_新增|修改', icon: '' } |
| | | hidden: true |
| | | }, |
| | | { |
| | | // id: 2, |
| | | // parentId: 0, |
| | | path: '/reviewXG', |
| | | // name: '自查清单_修改', |
| | | component: () => import('@/views/safetyproduction/reviewXG'), |
| | | // meta: { title: '自查清单_修改', icon: '' } |
| | | hidden: true |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/majorHazardSourceMonitoring', |
| | | component: Layout, |
| | | name: '重大危险源监测', |
| | | meta: { title: '重大危险源监测', icon: 'el-icon-facilities' }, |
| | | children: [ |
| | | { |
| | | id: 1, |
| | | parentId: 0, |
| | | path: '/productionEquipment', |
| | | name: '生产设备', |
| | | component: () => import('@/views/majorHazardSourceMonitoring/productionEquipment'), |
| | | meta: { title: '生产设备', icon: '' } |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/equipmentAlarm', |
| | | name: '设备报警信息', |
| | | component: () => import('@/views/majorHazardSourceMonitoring/equipmentAlarm'), |
| | | meta: { title: '设备报警信息', icon: '' } |
| | | }, |
| | | { |
| | | id: 3, |
| | | parentId: 0, |
| | | path: '/instrumentData', |
| | | name: '仪表实时数据', |
| | | component: () => import('@/views/majorHazardSourceMonitoring/instrumentData'), |
| | | meta: { title: '仪表实时数据', icon: '' } |
| | | }, |
| | | ] |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/accidentHidden', |
| | | component: Layout, |
| | | name: '事故隐患排查治理', |
| | | meta: { title: '事故隐患排查治理', icon: 'el-icon-facilities' }, |
| | | children: [ |
| | | { |
| | | id: 1, |
| | | parentId: 0, |
| | | path: '/majorHidden', |
| | | name: '重大隐患整改进度', |
| | | component: () => import('@/views/accidentHidden/majorHidden'), |
| | | meta: { title: '重大隐患整改进度', icon: '' } |
| | | }, |
| | | { |
| | | path: '/hiddenDangerList', |
| | | // name: '重大隐患整改进度-发送隐患单', |
| | | component: () => import('@/views/accidentHidden/hiddenDangerList'), |
| | | // meta: { title: '重大隐患整改进度-发送隐患单', icon: '' } |
| | | hidden: true |
| | | }, |
| | | ] |
| | | } |
| | | ] |
| | | |
| | | export default new Router({ |
对比新文件 |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div style=""> |
| | | <Titlename title="发送隐患单"></Titlename> |
| | | <div class="whole-form"> |
| | | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" class="demo-ruleForm" |
| | | style="margin: 0 14% 0 16%;"> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="隐患编号:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="检查单位:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="检查人:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="检查人:" prop="region">--> |
| | | <!-- <el-select v-model="ruleForm.region" placeholder="请选择活动区域">--> |
| | | <!-- <el-option label="区域一" value="shanghai"></el-option>--> |
| | | <!-- <el-option label="区域二" value="beijing"></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="陪检人员:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="检查时间:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="检查时间:" prop="name">--> |
| | | <!-- <el-date-picker--> |
| | | <!-- v-model="value1"--> |
| | | <!-- type="date"--> |
| | | <!-- placeholder="选择日期">--> |
| | | <!-- </el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | | |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="班次:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="跟班、带班情况:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="跟班、带班人员:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="行走路线:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="隐患单位:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="隐患部门:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="隐患地点:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="隐患内容:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="隐患类别:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="隐患级别:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="整改措施:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="所需资金:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="限改时间:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="责任人:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="完成时间:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="整改完成情况:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="复查时间:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="复查人:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="复查结果:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="整改次数:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="危险源:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="风险等级:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="9" :offset="4"> |
| | | <el-form-item label="业务科室:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="流程信息:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="发送流程:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="下一步:" prop="name"> |
| | | <el-input v-model="ruleForm.name" class="multiline"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="是否同意延期:" prop="resource"> |
| | | <el-radio-group v-model="ruleForm.resource"> |
| | | <el-radio label="线上品牌商赞助"></el-radio> |
| | | <el-radio label="线下场地免费"></el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="9"> |
| | | <el-form-item label="限改时间:" prop="name"> |
| | | <el-input v-model="ruleForm.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item label="备注" prop="desc"> |
| | | <el-input type="textarea" v-model="ruleForm.desc"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="22"> |
| | | <el-form-item style="text-align: center;"> |
| | | <el-button type="primary" @click="submitForm('ruleForm')">保存</el-button> |
| | | <el-button @click="close()">关闭</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Titlename from "../../components/Titlename/index.vue"; |
| | | |
| | | export default { |
| | | components: {Titlename}, |
| | | name: "hiddenDangerList", |
| | | data() { |
| | | return { |
| | | ruleForm: { |
| | | name: '', |
| | | region: '', |
| | | date1: '', |
| | | date2: '', |
| | | delivery: false, |
| | | type: [], |
| | | resource: '', |
| | | value1: '', |
| | | desc: '' |
| | | }, |
| | | rules: {} |
| | | }; |
| | | }, |
| | | methods: { |
| | | submitForm(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | if (valid) { |
| | | alert('submit!'); |
| | | } else { |
| | | console.log('error submit!!'); |
| | | return false; |
| | | } |
| | | }); |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .app-container { |
| | | padding: 20px; |
| | | height: 850px; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | /deep/ .box { |
| | | padding-top: 0; |
| | | } |
| | | /deep/ .multiline .el-input__inner{ |
| | | height: 62px; |
| | | } |
| | | </style> |
对比新文件 |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default{ |
| | | data(){ |
| | | return{ |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | <el-input v-model="listQuery.filter.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4" style="text-align: center"> |
| | | <el-col :span="5" style="text-align: center"> |
| | | <el-button type="primary" class="btns" icon="el-icon-search" @click="find()" |
| | | >搜索</el-button |
| | | > |
| | |
| | | class="btns" |
| | | >新增</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | class="btns" |
| | | @click="reset()" |
| | | >重置</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-table :data="list" border style="width: 100%"> |
| | | <el-table-column prop="name" align="center" label="预案名称" width="150"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" align="center" label="文件链接"> </el-table-column> |
| | | <el-table-column prop="fileType" align="center" label="文件类型"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.fileType==0">图片</span> |
| | | <span v-if="scope.row.fileType==1">文件</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="附件"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.fileType==0"> |
| | | <img :src="envUrl+scope.row.fileList[0].fileUrl" @click="showViewer=true" style="max-width: 100px;height: auto"/> |
| | | <el-image-viewer |
| | | v-if="showViewer" |
| | | :on-close="()=>showViewer=false" |
| | | :url-list="scope.row.viewerList" |
| | | /> |
| | | </div> |
| | | <div v-if="scope.row.fileType==1"> |
| | | <span @click="downLoadFile(scope.row.fileList[0].fileUrl)" style="color: #3A71A8 ; cursor: pointer;">{{ scope.row.fileList[0].fileName }}</span> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column prop="remark" align="center" label="备注"> </el-table-column> |
| | | <el-table-column prop="createTime" align="center" label="创建时间"> </el-table-column> |
| | | <el-table-column prop="updateTime" align="center" label="更新时间"> </el-table-column> |
| | |
| | | style="text-align: right;margin-top: 20px;" |
| | | > |
| | | </el-pagination> |
| | | <el-dialog :title="title" :visible.sync="dialogVisible":close-on-click-modal="false" width="40%"> |
| | | <el-dialog :title="title" :visible.sync="dialogVisible" :close-on-click-modal="false" width="40%"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="预案名称" prop="name"> |
| | | <el-input v-model="form.name"></el-input> |
| | |
| | | <script> |
| | | import uploadImg from "@/views/contingencyplan/uploadImg.vue"; |
| | | import uploadFile from "@/views/contingencyplan/uploadFile.vue"; |
| | | import elImageViewer from "element-ui/packages/image/src/image-viewer"; |
| | | import { |
| | | emergencyPlanList, |
| | | emergencyPlanAdd, |
| | |
| | | emergencyPlanDel, |
| | | } from "@/api/emergencyplan.js"; |
| | | export default { |
| | | components: { uploadImg , uploadFile}, |
| | | components: { uploadImg , uploadFile ,elImageViewer}, |
| | | data() { |
| | | return { |
| | | uploadDisabled:false, |
| | | |
| | | dialogVisible: false, |
| | | |
| | | title: "", |
| | | pageSize: 10, |
| | | recordTotal: 0, |
| | |
| | | { required: true, message: "预案名称不能为空", trigger: "change" }, |
| | | ], |
| | | }, |
| | | |
| | | showViewer:false, |
| | | viewerList:[], |
| | | envUrl:process.env.IMG_API |
| | | }; |
| | | }, |
| | | created() { |
| | | this.emergencyPlan(); |
| | | }, |
| | | methods: { |
| | | |
| | | reset(){ |
| | | this.listQuery.filter={} |
| | | this.listQuery.pageIndex=1 |
| | | this.listQuery.pageSize=10 |
| | | this.emergencyPlan(); |
| | | }, |
| | | |
| | | downLoadFile(fileUrl){ |
| | | return this.$confirm(`确定下载该文件?`,'提示',{ |
| | | confirmButtonText:'确定', |
| | | cancelButtonText:'取消', |
| | | type:'warning', |
| | | }).then(() =>{ |
| | | let a = document.createElement('a') |
| | | a.href = process.env.BASE_API + '/upload/'+fileUrl |
| | | a.click(); |
| | | }) |
| | | }, |
| | | |
| | | changeFileType(){ |
| | | this.fileUrl="" |
| | | this.fileName="" |
| | |
| | | this.recordTotal = res.data.result.total |
| | | this.pageSize=res.data.result.size; |
| | | this.currentPage = res.data.result.current |
| | | for (let i = 0 ; i < this.list.length ; i++){ |
| | | if (this.list[i].fileList!=null && this.list[i].fileList.length>0){ |
| | | let viewerList = [] |
| | | for (let j = 0 ; j<this.list[i].fileList.length ; j++){ |
| | | viewerList.push(this.envUrl+this.list[i].fileList[j].fileUrl) |
| | | } |
| | | this.list[i].viewerList=viewerList |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | emergencyPlanC(value, type) { |
| | |
| | | this.fileList=[] |
| | | } else { |
| | | this.title = "编辑"; |
| | | this.form = value; |
| | | this.form=JSON.parse(JSON.stringify(value)); |
| | | if (this.form.fileType==0){ |
| | | this.fileList=value.fileList |
| | | } else{ |
| | |
| | | > |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="2"><p class="title">企业达标标准:</p></el-col> |
| | | <el-col :span="9" |
| | | <el-col :span="2"><p class="titles">企业达标标准:</p></el-col> |
| | | <el-col :span="22" |
| | | ><p class="title-type"> |
| | | {{ item.enterpriseStandard }} |
| | | </p></el-col |
| | | > |
| | | <el-col :span="2" :offset="1" |
| | | ><p class="title">评审方法:</p></el-col |
| | | <!-- <el-col :span="2" :offset="1" |
| | | ><p class="titles">评审方法:</p></el-col |
| | | > |
| | | <el-col :span="10" |
| | | ><p class="title-type"> |
| | | {{ item.reviewMethod }} |
| | | </p></el-col |
| | | > --> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-col :span="2"><p class="titles">企业达标标准:</p></el-col> |
| | | <el-col :span="9" |
| | | ><p class="title-type"> |
| | | {{ item.enterpriseStandard }} |
| | | </p></el-col |
| | | > --> |
| | | <el-col :span="2" |
| | | ><p class="titles">评审方法:</p></el-col |
| | | > |
| | | <el-col :span="22" |
| | | ><p class="title-type"> |
| | | {{ item.reviewMethod }} |
| | | </p></el-col |
| | | > |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="2"><p class="titles">否决项:</p></el-col> |
| | | <el-col :span="22" |
| | | ><p class="title-type"> |
| | | {{ item.veto }} |
| | | </p></el-col |
| | | > |
| | | <!-- <el-col :span="2" :offset="1" |
| | | ><p class="titles">扣分项:</p></el-col |
| | | > |
| | | <el-col :span="10" |
| | | ><p class="title-type"> |
| | | {{ item.deductionList}} |
| | | </p></el-col |
| | | > --> |
| | | </el-row> |
| | | <el-row> |
| | | <!-- <el-col :span="2"><p class="titles">否决项:</p></el-col> |
| | | <el-col :span="9" |
| | | ><p class="title-type"> |
| | | {{ item.veto }} |
| | | </p></el-col |
| | | > --> |
| | | <el-col :span="2" |
| | | ><p class="titles">扣分项:</p></el-col |
| | | > |
| | | <el-col :span="22" |
| | | ><p class="title-type"> |
| | | <!-- {{ item.deductionList}} --> |
| | | <span style="line-height:20px" v-for="(item,index) in item.deductionList" :key="index"> |
| | | {{item.name}} |
| | | </span> |
| | | </p></el-col |
| | | > |
| | | </el-row> |
| | |
| | | v-model="form.standardizationRequirements" |
| | | placeholder="" |
| | | maxlength="250" |
| | | show-word-limit |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | v-model="form.enterpriseStandard" |
| | | placeholder="" |
| | | maxlength="250" |
| | | show-word-limit |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | v-model="form.reviewMethod" |
| | | placeholder="" |
| | | maxlength="250" |
| | | show-word-limit |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | v-model="form.veto" |
| | | placeholder="" |
| | | maxlength="250" |
| | | show-word-limit |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | }); |
| | | }, |
| | | safetyInspectionItemL(data) { |
| | | this.listQuery.filter.elementB = data.value; |
| | | safetyInspectionItemList(this.listQuery).then((res) => { |
| | | this.list = res.data.result.records; |
| | | }); |
| | | if (data.type== 1) { |
| | | this.listQuery.filter.elementB = data.value; |
| | | safetyInspectionItemList(this.listQuery).then((res) => { |
| | | this.list = res.data.result.records; |
| | | console.log(123,this.list) |
| | | }); |
| | | } |
| | | }, |
| | | safetyInspectionItemC(id, type) { |
| | | this.show = false; |
| | |
| | | } |
| | | .box-left { |
| | | width: 20%; |
| | | min-height: 800px; |
| | | min-height: 850px; |
| | | background-color: white; |
| | | border-radius: 5px; |
| | | } |
| | |
| | | width: 79%; |
| | | background-color: rgb(223, 229, 235); |
| | | border-radius: 5px; |
| | | height: 850px; |
| | | overflow-y:overlay; |
| | | } |
| | | .box-rights { |
| | | width: 79%; |
| | | background-color: #fff; |
| | | border-radius: 5px; |
| | | height: 850px; |
| | | overflow-y:overlay; |
| | | } |
| | | .box-rightXQ { |
| | | margin-bottom: 10px; |
| | |
| | | </el-col> |
| | | <el-col :span="9"> |
| | | <el-form-item label="检查时间"> |
| | | |
| | | |
| | | <el-col :span="11"> |
| | | <el-date-picker |
| | | style="width:100%" |
| | | v-model="listQuery.filter.inspectionStartTime" |
| | | type="date" |
| | | format="yyyy-MM-dd" |
| | | format="yyyy-MM-dd" |
| | | placeholder="选择开始日期" |
| | | > |
| | | </el-date-picker> |
| | |
| | | v-model="listQuery.filter.inspectionEndTime" |
| | | style="width:100%" |
| | | type="date" |
| | | format="yyyy-MM-dd" |
| | | format="yyyy-MM-dd" |
| | | placeholder="选择结束日期" |
| | | > |
| | | </el-date-picker> |
| | |
| | | <el-input v-model="listQuery.filter.inspectorName"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4" style="text-align: center"> |
| | | <el-col :span="5" style="text-align: center"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | |
| | | @click="jump()" |
| | | >新增</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | class="btns" |
| | | @click="reset()" |
| | | >重置</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | </el-table-column> |
| | | <el-table-column align="center" label="状态"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.status == -1">暂存</span> |
| | | <span v-if="scope.row.status == 0">评审中</span> |
| | | <span v-if="scope.row.status == 1">已评审</span> |
| | | <span v-if="scope.row.status == 0">暂存</span> |
| | | <span v-if="scope.row.status == 1">评审中</span> |
| | | <span v-if="scope.row.status == 2">已评审</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column align="center" prop="updateTime" label="更新时间"> |
| | | </el-table-column> |
| | | <el-table-column align="center" label="操作"> |
| | | <template slot-scope="scope"> |
| | | <el-button v-if="scope.row.status==-1" @click="handleClick(scope.row)" type="text" size="small" |
| | | <el-button v-if="scope.row.status==0" @click="handleClick(scope.row)" type="text" size="small" |
| | | >编辑</el-button |
| | | > |
| | | <el-button v-if="scope.row.status==0" @click="handleClick(scope.row)" type="text" size="small" |
| | | <el-button v-if="scope.row.status==1" @click="handleClick(scope.row)" type="text" size="small" |
| | | >去评审</el-button |
| | | > |
| | | <el-button v-if="scope.row.status==1" @click="handleClick(scope.row)" type="text" size="small" |
| | | <el-button v-if="scope.row.status==2" @click="handleClick(scope.row)" type="text" size="small" |
| | | >查看</el-button |
| | | > |
| | | <el-button @click="Del(scope.row.id)" v-if="scope.row.status==1?false:true" type="text" size="small" style="color: red" |
| | | <el-button @click="Del(scope.row.id)" v-if="scope.row.status==0?true:false" type="text" size="small" style="color: red" |
| | | >删除</el-button |
| | | > |
| | | </template> |
| | |
| | | this.safetySelfInspectionL(); |
| | | }, |
| | | methods: { |
| | | reset(){ |
| | | this.listQuery.filter={} |
| | | this.listQuery.pageIndex=1 |
| | | this.listQuery.pageSize=10 |
| | | this.safetySelfInspectionL(); |
| | | }, |
| | | |
| | | async safetySelfInspectionL() { |
| | | var res = await safetySelfInspectionList(this.listQuery).then((res) => { |
| | | if (res.data.code == 200) { |
| | |
| | | }); |
| | | }, |
| | | handleClick(val) { |
| | | if(val.status==-1){ |
| | | if(val.status==0){ |
| | | this.$router.push({ |
| | | path:"/new", |
| | | query:{ |
| | |
| | | name:'编辑' |
| | | } |
| | | }) |
| | | }else if(val.status==0){ |
| | | }else if(val.status==1){ |
| | | this.$router.push({ |
| | | path:"/gojudging", |
| | | query:{ |
| | | id:val.id |
| | | } |
| | | }) |
| | | }else if(val.status==2){ |
| | | this.$router.push({ |
| | | path:"/gojudging", |
| | | query:{ |
| | | id:val.id, |
| | | type:2 |
| | | } |
| | | }) |
| | | } |
| | |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | <el-input v-model="listQuery.filter.name"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4" style="text-align: center"> |
| | | <el-col :span="5"> |
| | | <el-form-item label="要素类型"> |
| | | <el-select |
| | | v-model="listQuery.filter.type" |
| | | placeholder="请选择" |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6" style="text-align: center"> |
| | | <el-button type="primary" icon="el-icon-search" @click="find()" class="btns" |
| | | >搜索</el-button |
| | | > |
| | |
| | | @click="handleClick('', '新增')" |
| | | >新增</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | class="btns" |
| | | @click="reset()" |
| | | >重置</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | this.elementManagementL(); |
| | | }, |
| | | methods: { |
| | | reset(){ |
| | | this.listQuery.filter={} |
| | | this.listQuery.pageIndex=1 |
| | | this.listQuery.pageSize=10 |
| | | this.elementManagementL(); |
| | | }, |
| | | |
| | | async elementManagementL() { |
| | | var res = await elementManagementList(this.listQuery); |
| | | if (res.data.code == 200) { |
| | |
| | | <template> |
| | | <div> |
| | | <div class="box-right"> |
| | | <div v-for="(item, index) in lists" :key="index" style="padding:0 0 20px 0"> |
| | | <el-button |
| | | type="primary" |
| | | class="btn" |
| | | v-if="typeId == 2 ? false : true" |
| | | @click="finish()" |
| | | >结单</el-button |
| | | > |
| | | <div |
| | | v-for="(item, index) in lists" |
| | | :key="index" |
| | | style="padding: 0 0 20px 0" |
| | | > |
| | | <div class="title"> |
| | | A级要素:<span>{{ item.elementAName }}</span> |
| | | </div> |
| | |
| | | ><p><span>B级要素:</span>{{ item.elementBName }}</p></el-col |
| | | > |
| | | <el-col :span="6" |
| | | ><p><span>总分:</span>50</p></el-col |
| | | ><p><span>总分:</span>{{ item.points }}</p></el-col |
| | | > |
| | | <el-col :span="6" |
| | | ><p><span>得分:</span>{{item.point}}</p></el-col> |
| | | <el-col :span="6" |
| | | ><p><span>得分:</span>{{ item.point }}</p></el-col |
| | | > |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-table border :data="item.child" :header-cell-style="{background:'#eef1f6',color:'#606266'}" :cell-style="{background:'#fff',color:'#606266'}"> |
| | | <el-table |
| | | border |
| | | :data="item.child" |
| | | :header-cell-style="{ background: '#eef1f6', color: '#606266' }" |
| | | :cell-style="{ background: '#fff', color: '#606266' }" |
| | | > |
| | | <el-table-column |
| | | prop="standardizationRequirements" |
| | | align="center" |
| | |
| | | ></el-table-column> |
| | | <el-table-column align="center" label="评审结果"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="(scope.row.safetyInspectionItemResult== 0)" |
| | | <span v-if="scope.row.safetyInspectionItemResult == 0" |
| | | >否决</span |
| | | > |
| | | <span v-if="(scope.row.safetyInspectionItemResult == 1)" |
| | | <span v-if="scope.row.safetyInspectionItemResult == 1" |
| | | >扣分</span |
| | | > |
| | | </template> |
| | |
| | | type="expand" |
| | | width="100px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-table |
| | | :data="scope.row.selfDeductionList" |
| | | > |
| | | <el-table-column prop="name" align="center" label="扣分项"> |
| | | </el-table-column> |
| | | <el-table-column prop="point" align="center" label="扣分"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="remark" |
| | | align="center" |
| | | label="扣分备注" |
| | | <template slot-scope="scope"> |
| | | <el-table |
| | | :data="scope.row.selfDeductionList" |
| | | border |
| | | :header-cell-style="{ |
| | | background: '#eef1f6', |
| | | color: '#606266', |
| | | }" |
| | | :cell-style="{ background: '#fff', color: '#606266' }" |
| | | > |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | <el-table-column |
| | | prop="name" |
| | | align="center" |
| | | label="扣分项" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="point" align="center" label="扣分"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="remark" |
| | | align="center" |
| | | label="扣分备注" |
| | | > |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="remark" |
| | |
| | | @click="handleClick(scope.row)" |
| | | type="text" |
| | | size="small" |
| | | :disabled="typeId == 2 ? true : false" |
| | | >评价</el-button |
| | | > |
| | | <!-- <el-button type="text" size="small" style="color: red" |
| | |
| | | </template> |
| | | <script> |
| | | import Titlename from "../../components/Titlename/index.vue"; |
| | | import { safetySelfInspectionInfo } from "@/api/safetySelfInspection.js"; |
| | | import { |
| | | safetySelfInspectionInfo, |
| | | safetySelfInspectionFinish, |
| | | } from "@/api/safetySelfInspection.js"; |
| | | export default { |
| | | components: { Titlename }, |
| | | data() { |
| | |
| | | }, |
| | | list: [], |
| | | lists: [], |
| | | listType: [], |
| | | typeId: "", |
| | | }; |
| | | }, |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.typeId = this.$route.query.type; |
| | | this.safeInitem(this.id); |
| | | }, |
| | | methods: { |
| | | finish() { |
| | | var faly = ""; |
| | | var bar = []; |
| | | for (var i = 0; i < this.listType.length; i++) { |
| | | if (this.listType[i].safetyInspectionItemResult == null) { |
| | | faly = false; |
| | | } else { |
| | | faly = true; |
| | | } |
| | | bar.push(faly); |
| | | } |
| | | if (bar.indexOf(false) == -1) { |
| | | let id = this.id; |
| | | this.$confirm("确定要结单吗?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | safetySelfInspectionFinish({ id: this.id }).then((res) => { |
| | | console.log(123, res); |
| | | if (res.data.code === "200") { |
| | | this.$notify({ |
| | | title: "成功", |
| | | message: "结单成功", |
| | | type: "success", |
| | | duration: 2000, |
| | | }); |
| | | this.$router.push({ |
| | | path: "/checklistself", |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | message: res.data.message, |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }); |
| | | }) |
| | | .catch((error) => {}); |
| | | } else { |
| | | alert("请将所有评分评价后再点结算"); |
| | | } |
| | | }, |
| | | |
| | | safeInitem(id) { |
| | | safetySelfInspectionInfo({ id: id }).then((res) => { |
| | | if (res.data.code == 200) this.list = res.data.result; |
| | | this.listType = res.data.result.itemList; |
| | | var arr = this.checkSameDataA(this.list.itemList); |
| | | for (var i = 0; i < arr.length; i++) { |
| | | arr[i].child = this.checkSameData(arr[i].child); |
| | | arr[i].child.points = arr[i].child.point; |
| | | } |
| | | this.lists = arr; |
| | | // console.log('tag', arr) |
| | | console.log("tag", arr); |
| | | }); |
| | | }, |
| | | checkSameDataA(resData) { |
| | |
| | | if (!dataInfo[elementBName]) { |
| | | dataInfo[elementBName] = { |
| | | elementBName, |
| | | point:"", |
| | | point: "", |
| | | points: item.point, |
| | | child: [], |
| | | }; |
| | | } |
| | | dataInfo[elementBName].child.push(item); |
| | | }); |
| | | let list = Object.values(dataInfo); // list 转换成功的数据 |
| | | console.log(list) |
| | | for(var i=0;i<list.length;i++){ |
| | | var pot=50 |
| | | for(var j=0;j<list[i].child.length;j++){ |
| | | if(list[i].child[j].safetyInspectionItemResult!=0){ |
| | | pot=pot-list[i].child[j].selfDeductionList[0].point |
| | | }else{ |
| | | var cont=0 |
| | | pot=0 |
| | | } |
| | | } |
| | | if(pot>0){ |
| | | list[i].point=pot |
| | | }else{ |
| | | list[i].point=0 |
| | | } |
| | | // console.log("数据",list) |
| | | for (var i = 0; i < list.length; i++) { |
| | | var pot = list[i].points; |
| | | for (var j = 0; j < list[i].child.length; j++) { |
| | | if (list[i].child[j].safetyInspectionItemResult != 0) { |
| | | for ( |
| | | var s = 0; |
| | | s < list[i].child[j].selfDeductionList.length; |
| | | s++ |
| | | ) { |
| | | pot = pot - list[i].child[j].selfDeductionList[s].point; |
| | | } |
| | | } else { |
| | | var cont = 0; |
| | | pot = 0; |
| | | } |
| | | } |
| | | if (pot > 0) { |
| | | list[i].point = pot; |
| | | } else { |
| | | list[i].point = 0; |
| | | } |
| | | } |
| | | return list; |
| | | }, |
| | | handleClick(data) { |
| | |
| | | path: "/review", |
| | | query: { |
| | | idC: data.id, |
| | | id:this.id |
| | | id: this.id, |
| | | }, |
| | | }); |
| | | }, |
| | |
| | | background-color: white; |
| | | border-radius: 5px; |
| | | padding: 20px; |
| | | height: 850px; |
| | | overflow-y: overlay; |
| | | } |
| | | .title { |
| | | font-size: 16px; |
| | |
| | | .titles { |
| | | font-size: 14px; |
| | | } |
| | | .box-right /deep/ .el-table__expanded-cell { |
| | | background-color: #fff !important; |
| | | } |
| | | .btn { |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | float: right; |
| | | } |
| | | </style> |
| | |
| | | </div> |
| | | <div class="box-right" v-if="lists == '' ? false : true"> |
| | | <div class="btns"> |
| | | <el-button type="primary" class="btn" @click="open(0)" |
| | | <el-button type="primary" class="btn" @click="open(1)" |
| | | >添加</el-button |
| | | > |
| | | <el-button type="primary" class="btn" @click="open(-1)" |
| | | <el-button type="primary" class="btn" @click="open(0)" |
| | | >暂存</el-button |
| | | > |
| | | </div> |
| | |
| | | type="expand" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-table :data="scope.row.deductionList" :cell-style="{background:'#fff',color:'#606266'}"> |
| | | <el-table border :data="scope.row.deductionList" |
| | | :header-cell-style="{background:'#eef1f6',color:'#606266'}" :cell-style="{background:'#fff',color:'#606266'}" |
| | | > |
| | | <el-table-column |
| | | prop="name" |
| | | align="center" |
| | |
| | | trees.push(this.list.itemList[i].elementA); |
| | | } |
| | | this.treeList = Array.from(new Set(trees)); |
| | | var arr = this.checkSameDataA(this.list.itemList); |
| | | var arr = this.checkSameDataA(this.list.itemList); |
| | | for (var i = 0; i < arr.length; i++) { |
| | | var cser=[] |
| | | for(var j=0;j<arr[i].child.length;j++){ |
| | | for(var j=0;j<arr[i].child.length;j++){ |
| | | var capB = { |
| | | safetySelfInspectionId: "", |
| | | safetyInspectionItemId: "", |
| | | } |
| | | arr[i].child[j].deductionList= arr[i].child[j].selfDeductionList |
| | | console.log(arr[i].child[j]) |
| | | capB.safetySelfInspectionId=arr[i].child[j].safetySelfInspectionId |
| | | capB.safetyInspectionItemId=arr[i].child[j].safetyInspectionItemId |
| | | cser.push(capB) |
| | |
| | | if(this.list.length!=0){ |
| | | var capA = { elementAName: "", id: [], child: [] }; |
| | | var atte = []; |
| | | |
| | | |
| | | capA.elementAName = this.list[0].elementAName; |
| | | for (var i = 0; i < this.list.length; i++) { |
| | | var capB = { |
| | |
| | | query: { |
| | | idX: data.safetyInspectionItemId, |
| | | name:this.id, |
| | | id:this.itemId |
| | | id:this.itemId |
| | | }, |
| | | }); |
| | | } else { |
| | |
| | | query: { |
| | | idX: data.id, |
| | | name:this.id, |
| | | id:this.itemId |
| | | id:this.itemId |
| | | }, |
| | | }); |
| | | } |
| | |
| | | open(type) { |
| | | this.dialogVisible = true; |
| | | this.form.status = type; |
| | | console.log("xxxxx",this.lists) |
| | | var arr = []; |
| | | for (var i = 0; i < this.lists.length; i++) { |
| | | // this.lists[i].id; |
| | |
| | | } |
| | | .box-left { |
| | | width: 20%; |
| | | min-height: 800px; |
| | | min-height: 850px; |
| | | background-color: white; |
| | | border-radius: 5px; |
| | | } |
| | |
| | | width: 79%; |
| | | background-color: white; |
| | | border-radius: 5px; |
| | | height: 850px; |
| | | overflow-y:overlay; |
| | | } |
| | | .title { |
| | | font-size: 16px; |
| | |
| | | background-color: #034ea2; |
| | | border: 1px solid #034ea2; |
| | | } |
| | | .box-right /deep/ .el-table__expanded-cell{ |
| | | background-color: #fff !important; |
| | | } |
| | | </style> |
| | |
| | | id: "", |
| | | form: {}, |
| | | list: {}, |
| | | point:"", |
| | | pointDel:"" |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | itemInfo(id) { |
| | | safetySelfInspectionItemInfo({id:id}).then((res) => { |
| | | this.list = res.data.result; |
| | | this.point=res.data.result.point |
| | | this.pointDel=res.data.result.point |
| | | }); |
| | | }, |
| | | modItem() { |
| | | if(this.list.safetyInspectionItemResult!=null){ |
| | | console.log(this.list) |
| | | for(var i=0;i<this.list.selfDeductionList.length;i++){ |
| | | this.pointDel=this.pointDel-this.list.selfDeductionList[i].point |
| | | } |
| | | |
| | | safetySelfInspectionModItemInfo(this.list).then((res) => { |
| | | if (res.data.code == 200) { |
| | | if(this.pointDel>=0){ |
| | | this.$notify({ |
| | | type: "success", |
| | | duration: 2000, |
| | |
| | | id:this.id |
| | | } |
| | | }); |
| | | }else{ |
| | | alert(`扣分不得超过总分${this.point}`) |
| | | } |
| | | } |
| | | }); |
| | | }else{ |
| | |
| | | this.form=JSON.parse(JSON.stringify(data)); |
| | | }, |
| | | addC(){ |
| | | if(this.form.point<=50){ |
| | | if(this.form.point<=this.point){ |
| | | for(let i = 0;i<this.list.selfDeductionList.length;i++){ |
| | | if (this.form.id=this.list.selfDeductionList[i].id){ |
| | | if (this.form.id==this.list.selfDeductionList[i].id){ |
| | | this.list.selfDeductionList[i].point = this.form.point |
| | | this.list.selfDeductionList[i].remark = this.form.remark |
| | | } |
| | | } |
| | | }else{ |
| | | alert("扣分不得超过总分50") |
| | | alert(`扣分不得超过总分${this.point}`) |
| | | } |
| | | this.dialogVisible = false; |
| | | }, |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | border-radius: 5px; |
| | | height: 850px; |
| | | overflow-y:overlay; |
| | | } |
| | | .box-right-content { |
| | | padding: 15px 0; |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | border-radius: 5px; |
| | | height: 850px; |
| | | overflow-y:overlay; |
| | | } |
| | | .box-right-content { |
| | | padding: 15px 0; |