QuietShadow пре 3 година
родитељ
комит
c96b36b107

+ 17 - 14
src/views/energyOperationSupport/components/securitys/SecurityFile.vue

@@ -1,6 +1,6 @@
 <template>
     <!-- 文件分类 -->
-    <div class="planProcessAndProduct">
+    <div class="DocumentClassification">
         <div class="box">
             <div
                 class="box-left"
@@ -270,9 +270,9 @@
                                           <el-input
                                             class="input-new-tag"
                                             v-if="tableFormDataObj[scope.row.ID].showInput"
-                                            v-model="tableFormDataObj[scope.row.ID].inputValue"
-                                            ref="saveTagInput"
-                                            size="small"
+                                            v-model="tableFormDataObj[scope.row.ID].inputValue"
+                                            style="width: 40%;"
+                                            :ref="scope.row.ID+'-saveTagInput'"
                                             @keyup.enter.native="rowhandleInputConfirm(scope.row)"
                                             @blur="rowhandleInputConfirm(scope.row)"
                                           >
@@ -537,7 +537,7 @@ import { zCheckNumber1 } from '~/utils/validator.js';
 import { formatDate } from '@/utils/util.js';
 import store from '@/store/index.js';
 export default {
-    name: 'planProcessAndProduct',
+    name: 'DocumentClassification',
     components: {
         'zj-formulaEditor': formulaEditor
     },
@@ -807,7 +807,7 @@ export default {
                         }
                         for (let item of res.data.list) {
                             let result = true;
-                            // fileTypeArr = [];
+                            fileTypeArr = [];
                             // // result = item.type.some(i => map[i]);
                             // if (that.qrRole.length > 0) {
                             //     result = map.hasOwnProperty(item.type);
@@ -965,12 +965,14 @@ export default {
       // 行内input获取焦点
       rowshowInput (row) {
         let that = this;
-        that.tableFormDataObj[row.ID].showInput = true;
-        // setTimeout(function(){
-        //    that.$nextTick(_ => {
-        //      this.$refs.saveTagInput.$refs.input.focus();
-        //    });
-        // },500)
+        that.tableFormDataObj[row.ID].showInput = true;
+        let id = row.ID + '-saveTagInput';
+        setTimeout(function(){
+           that.$nextTick(() => {
+             // that.$refs[id].$refs.input.focus();
+             that.$refs[id].focus();
+           });
+        },50)
       },
       handlePreview (file) {
         console.log(file);
@@ -1253,7 +1255,8 @@ export default {
             that.axios.get(urla, {
                 params: SubmitData,
                 responseType: responseType
-            }).then(function (res) {
+            }).then(function (res) {
+              console.log('111');
               let urlObject = window.URL || window.webkitURL || window;
               // 将二进制流转为blob
               let blob = new Blob([res], {type: type});
@@ -1302,7 +1305,7 @@ export default {
 </script>
 
 <style lang="less">
-.planProcessAndProduct {
+.DocumentClassification {
     min-width: 700px;
     height: 100%;
     .box {

+ 4 - 4
src/views/energyOperationSupport/components/securitys/Securitys.vue

@@ -1,6 +1,6 @@
 <template>
     <!-- 分类信息维护 -->
-    <div class="processInformation">
+    <div class="ClassificationInformation">
         <div class="box">
             <div
                 class="box-left"
@@ -235,7 +235,7 @@
                                           v-if="tableFormDataObj[scope.row.id].showInput"
                                           v-model="tableFormDataObj[scope.row.id].inputValue"
                                           ref="saveTagInput"
-                                          size="small"
+                                          style="width: 40%;"
                                           @keyup.enter.native="rowhandleInputConfirm(scope.row)"
                                           @blur="rowhandleInputConfirm(scope.row)"
                                         >
@@ -558,7 +558,7 @@
 import { zCheckNumber1 } from '~/utils/validator.js';
 import store from '@/store/index.js';
 export default {
-    name: 'processInformation',
+    name: 'ClassificationInformation',
     data () {
         return {
             multipleSelection: [],
@@ -1241,7 +1241,7 @@ export default {
 </script>
 
 <style lang="less">
-.processInformation {
+.ClassificationInformation {
     min-width: 700px;
     height: 100%;
     .box {