lyh
2025-04-09 53c269711fcb59f48fd2acd7e825bebfd31d09e5
src/views/eam/equipment/modules/MaintenanceEquipmentSelect.vue
@@ -8,7 +8,6 @@
    @search="loadData"
    :placeholder="placeholder"
    v-model="selectedAsyncValue"
    :maintenanceCategory="maintenanceCategory"
    style="width: 100%"
    :filterOption="false"
    @change="handleAsyncChange"
@@ -34,7 +33,7 @@
  name: 'MaintenanceEquipmentSelect',
  props: {
    disabled: Boolean,
    value: [String, Number, String],
    value: [String, Number],
    placeholder: {
      type: String,
      default: '请选择',
@@ -69,6 +68,8 @@
      immediate: true,
      handler(val) {
        if (!val) {
          this.selectedValue = undefined;
          this.selectedAsyncValue = undefined;
          this.initDictData()
        } else {
          this.initSelectValue()
@@ -79,8 +80,6 @@
  methods: {
    initSelectValue() {
      if (!this.selectedAsyncValue || !this.selectedAsyncValue.key || this.selectedAsyncValue.key != this.value || !this.maintenanceCategory) {
        console.log('ssfs', this.selectedAsyncValue)
        console.log('ASGasgsgas', this.maintenanceCategory)
        console.log('这才请求后台')
        getAction(`/eam/maintenanceStandard/listByUser`, {
          id: this.value,
@@ -160,7 +159,7 @@
      } else {
        this.selectedAsyncValue = undefined
        this.selectedValue = null
        this.options = null
        this.options = []
        this.loadData('')
        this.$emit('autocompleteForm', {})
      }