Pārlūkot izejas kodu

项目管理前端调整

lizhenhao 2 gadi atpakaļ
vecāks
revīzija
5b462d43d3

+ 6 - 6
src/views/modules/notify/NotifyForm.vue

@@ -244,16 +244,16 @@
         }
         return isLt2M
       },
-      httpRequest (file) {//阿里云OSS上传
-        //判断扩展名
-        const tmpcnt = file.file.name.lastIndexOf(".") // 获取.的下标
+      httpRequest (file) { // 阿里云OSS上传
+        // 判断扩展名
+        const tmpcnt = file.file.name.lastIndexOf('.') // 获取.的下标
         const uploadFileName = file.file.name.substring(0, tmpcnt) // 获取文件名
         console.log(uploadFileName, '文件名——uploadFileName')
         const exname = file.file.name.substring(tmpcnt + 1) // 获取后缀名
-        console.log(exname, '后缀名');
+        console.log(exname, '后缀名')
         const names = ['jpg', 'jpeg', 'webp', 'png', 'bmp', 'exe', 'yml', 'txt']
         if (names.indexOf(exname) < 0) {
-          this.$message.error("不支持的格式!")
+          this.$message.error('不支持的格式!')
           return false
         }
         const fileName = uploadFileName
@@ -263,7 +263,7 @@
           file.file,
           {
             headers
-          },
+          }
         ).then(res => {
           console.log(res, 'res---header ')
           // this.handleUploadSuccess()

+ 8 - 0
src/views/modules/sys/project/AssessList.vue

@@ -8,6 +8,12 @@
          <el-form-item prop="projectName">
                 <el-input size="small" v-model="searchForm.projectName" placeholder="项目名称" clearable></el-input>
          </el-form-item>
+        <el-form-item prop="documentNum">
+          <el-input size="small" v-model="searchForm.documentNum" placeholder="文号" clearable></el-input>
+        </el-form-item>
+        <el-form-item prop="protocolNum">
+          <el-input size="small" v-model="searchForm.protocolNum" placeholder="协议号" clearable></el-input>
+        </el-form-item>
           <el-form-item>
             <el-button type="primary" @click="refreshList()" size="small" icon="el-icon-search">查询</el-button>
             <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
@@ -227,8 +233,10 @@
         this.loading = true
         this.projectService.importExcel(formBody).then(result => {
           this.$message.success(result.data)
+          this.refreshList()
           this.loading = false
         }).catch(() => {
+          this.refreshList()
           this.loading = false
         })
       },

+ 8 - 0
src/views/modules/sys/project/ConsultationList.vue

@@ -8,6 +8,12 @@
          <el-form-item prop="projectName">
                 <el-input size="small" v-model="searchForm.projectName" placeholder="项目名称" clearable></el-input>
          </el-form-item>
+        <el-form-item prop="documentNum">
+          <el-input size="small" v-model="searchForm.documentNum" placeholder="文号" clearable></el-input>
+        </el-form-item>
+        <el-form-item prop="protocolNum">
+          <el-input size="small" v-model="searchForm.protocolNum" placeholder="协议号" clearable></el-input>
+        </el-form-item>
           <el-form-item>
             <el-button type="primary" @click="refreshList()" size="small" icon="el-icon-search">查询</el-button>
             <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
@@ -228,8 +234,10 @@
         this.loading = true
         this.projectService.importExcel(formBody).then(result => {
           this.$message.success(result.data)
+          this.refreshList()
           this.loading = false
         }).catch(() => {
+          this.refreshList()
           this.loading = false
         })
       },