qushaowei
2024-03-28 585fb0bbd4a7bc7f8f333ecba7c5fecd2ee5cbc2
src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardDetail.vue
@@ -129,29 +129,35 @@
            return parseInt(index) + 1;
          }
        },
        // {
        //   title: '示意图',
        //   align: "center",
        //   dataIndex: 'photo',
        //   scopedSlots: { customRender: 'photo' },
        // },
        {
          title: '部位',
          title: '维修保养角色',
          align: "center",
          dataIndex: 'location',
          dataIndex: 'maintenanceRoleName',
        },
        {
          title: '示意图',
          align: "center",
          dataIndex: 'photo',
          scopedSlots: { customRender: 'photo' },
        },
        {
          title: '保养项目',
          title: '保养内容',
          align: "center",
          dataIndex: 'name',
        },
        {
          title: '保养标准',
          align: "center",
          dataIndex: 'standard',
        // {
        //   title: '保养标准',
        //   align: "center",
        //   dataIndex: 'standard',
        },
        // },
        // {
        //   title: '部位',
        //   align: "center",
        //   dataIndex: 'location',
        // },
        // {
        //   title: '方法',
        //   align: "center",
@@ -163,35 +169,43 @@
        //   align: "center",
        //   dataIndex: 'maintenanceTool',
        // },
        {
          title: '安全要求',
          align: "center",
          dataIndex: 'maintenanceRequire',
        },
        {
          title: '工时定额',
          align: "center",
          dataIndex: 'workingHourQuota',
        },
        {
          title: '保养周期',
          align: "center",
          dataIndex: 'maintenanceCycleName',
        },
        // {
        //   title: '安全要求',
        //   align: "center",
        //   dataIndex: 'maintenanceRequire',
        // },
        // {
        //   title: '工时定额',
        //   align: "center",
        //   dataIndex: 'workingHourQuota',
        // },
        // {
        //   title: '保养周期',
        //   align: "center",
        //   dataIndex: 'maintenanceCycleName',
        // },
        // {
        //   title: '维保专业',
        //   align: "center",
        //   dataIndex: 'maintenanceSpecialtyName',
        // },
        {
          title: '维修保养角色',
          align: "center",
          dataIndex: 'maintenanceRoleName',
        },
      ],
      url: {
        list: "/eam/maintenanceStandardDetail/getMaintenanceStandardList",//数据来源mom_eam_daily_inspection_standard_detail
      },
      /* 分页参数 */
      ipagination: {
        current: 1,
        pageSize: 20,
        pageSizeOptions: ['5', '10', '20', '50'],
        showTotal: (total, range) => {
          return range[0] + '-' + range[1] + ' 共' + total + '条'
        },
        showQuickJumper: true,
        showSizeChanger: true,
        total: 0
      },
    }
  },
@@ -219,10 +233,10 @@
      getAction(this.url.list, params).then((res) => {
        if (res.success) {
          this.dataSource = res.result.records || res.result;
          for (let i = 0; i < this.dataSource.length; i++) {
            let r = this.dataSource[i].upload;
            r.src = this.getSrc(this.dataSource[i].upload);
          }
          // for (let i = 0; i < this.dataSource.length; i++) {
          //   let r = this.dataSource[i].upload;
          //   r.src = this.getSrc(this.dataSource[i].upload);
          // }
          if (res.result.total) {
            this.ipagination.total = res.result.total;
          } else {