yangys
2024-01-16 c5488b34876f863558219f998e75c798c34af3cd
src/container/maintenance/dailyMAdd.vue
@@ -14,7 +14,7 @@
                            <el-option
                            v-for="item in machineList"
                            :key="item.id"
                            :label="item.name"
                            :label="item.machineName"
                            :value="item.id">
                            </el-option>
                        </el-select>
@@ -104,7 +104,7 @@
import { getMachineList, maintainCreate, maintainUpdate, userList, departmentGet } from '@/api/MdcApi'
import { getRequest } from '@/api/Api'
export default {
  props: ['styles', 'departmentlist','machineList','userList'],
  props: ['styleName','styles','styleValue', 'departmentlist','machineList','userList'],
  data() {
    return {
      dataForm: {
@@ -113,6 +113,7 @@
        maintainPerson: '',
        isQualified: '',
        detail: '',
      style: '',
      },
      dialogVisibleAdd: false,
      // 下拉框
@@ -133,11 +134,13 @@
    init(n, data) {
      this.data = data
      this.no = n
      if (n === 1) {
        this.title = '新增' + this.style
        this.title = '新增' + this.styleName
        Object.keys(this.dataForm).forEach(key => {
          this.dataForm[key] = ''
        })
      this.dataForm['style'] = ''
      } else {
        this.title = '修改' + this.style
        Object.keys(this.dataForm).forEach(key => {
@@ -176,7 +179,7 @@
          completeDateFrom,
          completeDateTo,
          isQualified,
          styles: this.style
          style: this.styleValue
        }).then(res => {
          if (res.result === 'SUCCESS') {
            this.$message({
@@ -201,7 +204,7 @@
          completeDateFrom,
          completeDateTo,
          isQualified,
          styles: this.style
          style: this.styleValue
        }).then(res => {
          if (res.result === 'SUCCESS') {
            this.$message({