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