schangxiang@126.com
2024-06-11 77485ab49cb6d2c1af8cf8a27158ecc14e2b001b
iwara-scada-web/src/views/main/EquipmentBaseInfo/index.vue
@@ -62,6 +62,7 @@
          <a-button :disabled="btnDisabled" type="primary" v-if="hasPerm('EquipmentBaseInfo:add')" icon="plus" @click="EquipmentBaseInfoSelectDelete(selectedRows)">批量删除选中项</a-button>
          <a-button type="primary" v-if="hasPerm('EquipmentBaseInfo:add')" icon="plus" @click="$refs.addForm.add()">新建</a-button>
          <a-button style="margin-left: 8px" type="info" icon="download" @click=" EquipmentBaseInfoToExcel()">导出Excel</a-button>
          <a-button style="margin-left: 8px" type="info" icon="download" @click="$refs.equipmentLogForm.edit()">查看历史</a-button>
        </template>
        <span slot="action" slot-scope="text, record">
          <a v-if="hasPerm('EquipmentBaseInfo:edit')" @click="$refs.editForm.edit(record)">编辑</a>
@@ -73,6 +74,7 @@
      </s-table>
      <add-form ref="addForm" @ok="handleOk" />
      <edit-form ref="editForm" @ok="handleOk" />
      <equipmentLog-form ref="equipmentLogForm" @ok="handleOk" />
    </a-card>
  </div>
</template>
@@ -89,12 +91,14 @@
  import addForm from './addForm.vue'
  import editForm from './editForm.vue'
  import equipmentLogForm from './equipmentLogForm.vue'
  export default {
    components: {
      STable,
      XCard,
      addForm,
      editForm
      editForm,
      equipmentLogForm
    },
    data () {
      return {