gaoluyang
8 小时以前 29be8639dc16b5d82bddc6099b1fa5cdca75f77a
src/views/CNAS/systemManagement/measuresDealRisks/components/hazardIdentificationRiskAssessment.vue
@@ -6,10 +6,7 @@
        <el-button type="primary" size="small" @click="addFun">新 增</el-button>
        <el-button type="primary" size="small" @click="approvalFun">审 批</el-button>
        <el-button type="primary" size="small" @click="approveFun">批 准</el-button>
        <el-upload style="display: inline-block; padding: 0 6px" :headers="uploadHeader" :action="action"
          :on-error="onError" :show-file-list="false" :on-success="onSuccess">
          <el-button size="small" type="primary">导 入</el-button>
        </el-upload>
        <el-button size="small" type="primary" @click="$refs.importDialog.open()">导 入</el-button>
        <el-button size="small" @click="openDownloadDia">导出</el-button>
      </div>
    </div>
@@ -121,6 +118,16 @@
        <el-button type="primary" @click="addApi" :loading="loading">确 定</el-button>
      </span></template>
    </el-dialog>
    <import-dialog
      ref="importDialog"
      title="导入危险因素辨识与风险评价"
      :action="action"
      accept=".xls,.xlsx"
      template-url="/import-templates/危险因素辨识与风险评价导入模板.xlsx"
      template-name="危险因素辨识与风险评价导入模板.xlsx"
      :tips="['前两行为表头,数据从第 3 行开始填写', '风险评价 L/E/C/D 需分别填写']"
      @success="initData"
    />
  </div>
</template>
@@ -135,7 +142,9 @@
  exportHazardFactorIdentification,
} from '@/api/cnas/systemManagement/measuresDealRisks.js'
import { mapGetters } from "@/utils/store-compat";
import ImportDialog from '@/components/ImportDialog/index.vue'
export default {
  components: { ImportDialog },
  data() {
    return {
      dialogVisible: false,