zenglf
2023-08-19 8611a1ba1696e76cced04ff5d658ba138a05dafd
src/views/eam/modules/repairorder/moudles/RepairOrderFaultAnalysisReport.vue
@@ -1,5 +1,8 @@
<template>
  <a-card :bordered='false' :class="'cust-erp-sub-tab'">
  <a-card
    :bordered='false'
    :class="'cust-erp-sub-tab'"
  >
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form
@@ -13,10 +16,16 @@
    <!-- 查询区域-END -->
    <!-- 操作按钮区域 -->
    <div class='table-operator' v-if='mainId.id'>
    <div
      class='table-operator'
      v-if='mainId.id'
    >
      <a-dropdown v-if='selectedRowKeys.length > 0'>
        <a-menu slot='overlay'>
          <a-menu-item key='1' @click='batchDel'>
          <a-menu-item
            key='1'
            @click='batchDel'
          >
            <a-icon type='delete' />
            删除
          </a-menu-item>
@@ -45,16 +54,21 @@
        :dataSource='dataSource'
        :pagination='ipagination'
        :loading='loading'
        @change='handleTableChange'>
        @change='handleTableChange'
      >
        <!-- :rowSelection='{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}' -->
        <span slot='action' slot-scope='text, record'>
        <span
          slot='action'
          slot-scope='text, record'
        >
          <!-- <a @click='handleEdit(record)'>编辑</a>
          <a-divider type='vertical' /> -->
          <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
            <a v-if="record.isLock=='no'&&mainId.status=='3'">删除</a>
          <a-popconfirm
            title='确定删除吗?'
            @confirm='() => handleDelete(record.id)'
          >
            <a :disabled="mainId.status=='4'">删除</a>
          </a-popconfirm>
        </span>
@@ -64,7 +78,7 @@
      type="dashed"
      icon="plus"
      @click="handleAdd"
      :disabled="mainId.status=='4'"
        :disabled="mainId.status=='4' ||mainId.status=='2'"
    >添加故障分析
    </a-button>
    </div>
@@ -73,7 +87,6 @@
      @ok='modalFormOk'
    ></repair-order-fault-analysis-report-model>
  </a-card>
</template>