licp
2024-05-22 d1c9ed2f38da64dc3e8ecc9507a2c1db668891a4
src/views/quality/processInspect/index.vue
@@ -2,7 +2,7 @@
   <div class="content-main">
      <div class="rawPage">
            <basic-container>
                <ttable
                <ttable
                :table="table"
                @handleSelectionChange="handleSelectionChange"
                :prelang="prelang"
@@ -90,7 +90,6 @@
                        },
                        {
                            minWidth: '130',
                            width: '150',
                            prop: 'specs',
                            label: '规格型号',
                            sort: true,
@@ -177,7 +176,7 @@
        computed: {
            ...mapGetters(['permissions'])
        },
      created() {
      created() {
            if(this.permissions.quality_processInspect_add){
                this.table.toolbar.push({
                        text: '新增',
@@ -224,10 +223,15 @@
                    this.$message.error("该角色没有操作权限")
                    return
                }
                let isAdd = true
                if(!row) {
                    isAdd = false
                }
            this.$router.push({
               name: 'processInspectForm',
               query: { id: row == null ? null : row.id },
                    params: { resultVal : row == null ? null : row.result }
                    params: { resultVal : row == null ? null : row.result },
                    isAdd: isAdd
                })
         },
            formatResult(row, column, cellValue){
@@ -330,4 +334,4 @@
   .rawPage .content-body {
      flex: 1;
   }
</style>
</style>