|
@@ -3,7 +3,7 @@
|
|
|
<div>
|
|
|
<el-form-item label="FFD box:" >
|
|
|
<el-input
|
|
|
- v-model="cstnum"
|
|
|
+ v-model="ffdvalue.fname"
|
|
|
:max="20"
|
|
|
controls-position="right"
|
|
|
@keydown.enter="keydownenter"
|
|
@@ -16,6 +16,7 @@
|
|
|
upId="uniqueId1"
|
|
|
name="点击选择文件"
|
|
|
:imgSrc="imageSrc"
|
|
|
+ @upload-success="handleFileUploadSuccess"
|
|
|
/>
|
|
|
</template>
|
|
|
</el-input>
|
|
@@ -73,7 +74,7 @@ import { ElMessage, ElButton, ElDialog, ElSelect } from "element-plus"
|
|
|
import { Edit, CaretBottom } from "@element-plus/icons-vue"
|
|
|
let formLabelWidth3 = ref(100)
|
|
|
let formLabelWidth200 = ref(200)
|
|
|
-let cstnum = ref("")
|
|
|
+
|
|
|
let pid = ref()
|
|
|
let fid = ref()
|
|
|
let ffdid = ref()
|
|
@@ -143,6 +144,15 @@ const generateTable = () => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+const handleFileUploadSuccess = (bfid) =>{
|
|
|
+ fid.value = bfid;
|
|
|
+ console.log('文件上传成功,bfid:', bfid);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 用来生成 vars,存储表格中除了行名与列名的所有值
|
|
|
const generateVars = () => {
|
|
|
let values = [];
|