wente
2023-12-06 8d6b00893e1e729621b2d09393e151eb1d9a5617
项目表
3个文件已修改
37 ■■■■■ 已修改文件
web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/pages/login.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
@@ -71,14 +71,7 @@
                             clearable></zt-dict>
                  </template>
                </el-table-column>
                <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center">
                  <template v-slot="{ row }">
                    <!--                    <zt-table-button @click="files(row.id)">上传附件</zt-table-button>-->
                    <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row"
                                    v-model="row.files"/>
                  </template>
                </el-table-column>
                <el-table-column fixed="right" label="管理" width="120" align="center">
                <el-table-column v-if="showColumn" fixed="right" label="管理" width="120" align="center">
                  <template v-slot="{ row }">
                    <zt-table-button v-if="row.checkId"
                                     @click="openCheckOrderWin(row)">修改检查单
@@ -86,8 +79,13 @@
                    <zt-table-button v-else-if="',软件测试计划,软件测试说明,软件测试记录,软件测试报告'.indexOf(row.itemName)>0"
                                     @click="openCheckOrderWin(row)">新增检查单
                    </zt-table-button>
                    <!--                  <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row"-->
                    <!--                                  v-model="row.files"/>-->
                  </template>
                </el-table-column>
                <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center">
                  <template v-slot="{ row }">
                    <!--                    <zt-table-button @click="files(row.id)">上传附件</zt-table-button>-->
                    <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row"
                                    v-model="row.files"/>
                  </template>
                </el-table-column>
              </el-table>
@@ -248,6 +246,7 @@
        disabled: true,
        stepMarker: '',
        title: '查看',
        showColumn:false,
        menuOptions: [
          {pageCode: 'plan', name: '软件测试计划'},
          {pageCode: 'explain', name: '软件测试说明'},
@@ -255,7 +254,7 @@
          {pageCode: 'report', name: '软件测试报告'},
          {pageCode: 'other', name: '其他'}
        ],
        pageNameCode: {软件测试计划:'plan', 软件测试说明: 'explain', 软件测试记录: 'record', 软件测试报告: 'report'},
        pageNameCode: {'软件测试计划':'plan', '软件测试说明': 'explain', '软件测试记录': 'record', '软件测试报告': 'report'},
        dataForm: {
          id: '',
          configItemWarehouse: {
@@ -289,11 +288,14 @@
        }
      }
    },
    created() {
      const roleName = localStorage.getItem('roleName')
      if (roleName && roleName.includes('QA')) {
        this.showColumn = true;
      }
    },
    computed: {
      getRoleName() {
        console.log(this.$store.state.user.roleName, 'this.$store.state.user.roleName')
        return this.$store.state.user.roleName || ''
      },
    },
    components: {
      AddOrUpdateCheck
web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue
@@ -161,10 +161,10 @@
        this.getInfo()
        //console.log(this.dataForm.id, this.dataForm.projectId, this.stepMarker, 'this.dataForm.id, this.dataForm.projectId,this.stepMarker')
      },
      // 获取信息
      indexFormat(index) {
        return index += 1
      },
      // 获取信息
      async getInfo() {
        let params = {
          checkId: this.dataForm.id,
web/src/views/pages/login.vue
@@ -229,6 +229,9 @@
                    this.$router.push({name: 'home'})
                  }
                }
                let roleName = res.data.roleName
                localStorage.setItem('roleName', roleName)
                console.log(localStorage.getItem('roleName'),'localStorage.getItem(\'roleName\')')
              }
            }
          })