王震
2023-12-27 b1dbfd44f6bafaa4d24e0c1c3a0f7ae548e77f60
src/views/technology/document/teststandard.vue
@@ -42,6 +42,7 @@
            align="center"
          />
          <el-table-column label="单位" prop="unit" align="center" />
          <el-table-column label="测试方法" prop="method" align="center" />
        </el-table>
      </el-col>
    </el-row>
@@ -59,7 +60,7 @@
  deleteTestStandard,
  getTestStand,
  saveTestStandard
} from '../../../api/technology/document'
} from '@/api/technology/document'
import qualityStandardDialog from '@/views/common/teststandardradio.vue'
export default {
@@ -75,7 +76,7 @@
  },
  data() {
    return {
      paramObj: { documentId: this.documentId },
      paramObj: {documentId : this.documentId},
      showQualityStandard: false,
      testStandardParams: [],
      ajaxFun: getTestStand,
@@ -184,14 +185,22 @@
  computed: {
    ...mapGetters(['permissions'])
  },
  created() {},
  created() {
    this.$nextTick(()=>{
      getTestStand(this.paramObj)
    })
  },
  mounted(){
    this.$nextTick(()=>{
      getTestStand(this.paramObj)
    })
  },
  methods: {
    // 获取数据列表
    getData() {
      this.$refs.selectTestStandardTable.getDataList()
    },
    addOrUpdateHandle() {
      console.info(this.documentId)
      if (this.documentId) {
        if (this.editable) {
          this.qualityStandardParamObj = {