scorpioyq %!s(int64=2) %!d(string=hai) anos
pai
achega
83691fac01
Modificáronse 1 ficheiros con 46 adicións e 44 borrados
  1. 46 44
      src/views/home/component/params/params4.vue

+ 46 - 44
src/views/home/component/params/params4.vue

@@ -5,39 +5,39 @@
     </div>
     <div class="mt-10" style="width: 90%">
       <avue-crud
-        :option="option"
-        :data="data"
-        ref="crud"
-        v-model="form"
-        :before-open="beforeOpen"
-        @row-del="rowDel"
-        @row-save="rowSave"
-        @row-update="rowUpdate"
+          :option="option"
+          :data="data"
+          ref="crud"
+          v-model="form"
+          :before-open="beforeOpen"
+          @row-del="rowDel"
+          @row-save="rowSave"
+          @row-update="rowUpdate"
       >
         <template #menu-right>
           <div class="full-width">
             <el-button
-              icon="el-icon-refresh"
-              circle
-              @click="proInfo"
+                icon="el-icon-refresh"
+                circle
+                @click="proInfo"
             ></el-button>
           </div>
         </template>
         <template #menu="{ row }">
           <el-button
-            text
-            type="primary"
-            icon="el-icon-folder-checked"
-            @click="openFolder(row)"
-            >打开文件夹
+              text
+              type="primary"
+              icon="el-icon-folder-checked"
+              @click="openFolder(row)"
+          >打开文件夹
           </el-button>
           <el-button
-            text
-            type="primary"
-            icon="el-icon-view"
-            @click="edit(row)"
-            v-if="detail.can_update"
-            >文号提取
+              text
+              type="primary"
+              icon="el-icon-view"
+              @click="edit(row)"
+              v-if="detail.can_update"
+          >文号提取
           </el-button>
         </template>
         <template #file="{ row }">
@@ -56,22 +56,23 @@
       <div>
         <div class="bold font-16">{{ currentRow.file.originalFileName }}</div>
         <el-input
-          class="mt-20"
-          v-model="currentRow.file.copyNumber"
-          placeholder="附件清晰度或手写原因导致文号提取失败,请进行手动填写"
+            class="mt-20"
+            v-model="currentRow.file.copyNumber"
+            placeholder="附件清晰度或手写原因导致文号提取失败,请进行手动填写"
         ></el-input>
         <div class="mt-20 full-width flex flex-justify-end">
           <el-button plain type="primary" @click="show = false"
-            >取 消</el-button
+          >取 消
+          </el-button
           >
           <el-button type="primary" @click="updateCopyNumber">确定</el-button>
         </div>
       </div>
     </el-dialog>
     <el-image-viewer
-      v-if="showImage"
-      :url-list="preList"
-      @close="showImage = false"
+        v-if="showImage"
+        :url-list="preList"
+        @close="showImage = false"
     />
   </div>
 </template>
@@ -215,7 +216,8 @@ export default {
           {
             label: '审批事项(要件)类型',
             prop: 'name',
-            display: false
+            display: false,
+            width: 170
           },
           {
             label: '文件名称',
@@ -285,7 +287,7 @@ export default {
       if (api.offices.includes(item.file.suffix)) {
         const routeData = this.$router.resolve({
           path: '/home/file_detail',
-          query: { id: item.fileId }
+          query: {id: item.fileId}
         })
         window.open(routeData.href, '_blank')
       } else {
@@ -331,7 +333,7 @@ export default {
         type: 'warning'
       }).then(res => {
         if (res === 'confirm') {
-          this.$api.project.fileRemove({ ids: row.pid, type: 3 }).then(res => {
+          this.$api.project.fileRemove({ids: row.pid, type: 3}).then(res => {
             if (res.code === 200) {
               this.$message.success(res.msg)
               this.proInfo()
@@ -353,18 +355,18 @@ export default {
         return
       }
       this.$api.common
-        .fileUpdate({
-          id: this.currentRow.fileId,
-          copyNumber: this.currentRow.file.copyNumber
-        })
-        .then(res => {
-          if (res.code === 200) {
-            this.show = false
-            this.$message.success(res.msg)
-          } else {
-            this.$message.error(res.msg)
-          }
-        })
+          .fileUpdate({
+            id: this.currentRow.fileId,
+            copyNumber: this.currentRow.file.copyNumber
+          })
+          .then(res => {
+            if (res.code === 200) {
+              this.show = false
+              this.$message.success(res.msg)
+            } else {
+              this.$message.error(res.msg)
+            }
+          })
     }
   }
 }