-
+
@@ -28,8 +59,7 @@ export default {
default: ""
},
name: {
- type: String,
- default: ""
+ type: String
},
rowId: {
type: Number,
@@ -38,15 +68,29 @@ export default {
couldNotEdit: {
type: Boolean,
default: false
+ },
+ type: {
+ type: String,
+ default: ""
+ },
+ typeHead: {
+ type: String,
+ default: ""
}
},
data: () => ({
- inputText: ""
+ inputText: "",
+ fileArray: [],
+ anotherData: {
+ directory: "file"
+ },
+ inputTextUp: ""
}),
mounted() {
this.inputText = this.item;
},
methods: {
+ // input
changeValue() {
this.$emit("changeInputValue", {
rowId: this.rowId,
@@ -54,7 +98,31 @@ export default {
inputValue: this.inputText,
id: this.id
});
- }
+ },
+ // upload
+ beforeUpload(file) {},
+ handleSuccess(response, file, fileList) {
+ if (response.success == 1) {
+ this.fileArray.push({
+ url: response.data,
+ name: response.data
+ });
+ this.inputTextUp = file.name;
+ this.$emit("changeUpFile", {
+ rowId: this.rowId,
+ header: this.header,
+ inputValue: this.inputTextUp,
+ id: this.id,
+ fileUrl: response.data
+ });
+ } else {
+ this.$message.error("上传文件失败,请重试");
+ }
+ },
+ handleError(err, file, fileList) {
+ this.$message.error("上传文件失败,请重试");
+ },
+ handleRemove(file, fileList) {}
}
};
@@ -62,7 +130,9 @@ export default {
.text-xs-center {
height: 32px;
}
-
+.table_upload {
+ height: 32px;
+}
.table_in_input {
text-align: center;
font-size: 14px;
@@ -75,6 +145,22 @@ export default {
border-radius: 4px;
}
.text-xs-center .el-input.is-disabled .el-input__inner {
- color: #70747C;
+ color: #70747c;
+}
+.table_upload input {
+ width: 100%;
+ background-color: #f7f8f9;
+ border-radius: 4px;
+}
+.table_upload .el-input.is-disabled .el-input__inner {
+ color: #70747c;
+}
+.table_upload .el-button {
+ background-color: #0f2683 !important;
+ color: #ffffff !important;
+ border-radius: 0 4px 4px 0;
+}
+.table_upload .el-input-group__append ul {
+ display: none;
}
\ No newline at end of file
diff --git a/src/components/table-select.vue b/src/components/table-select.vue
index 3e92e50fa08ba85cf5dac7af2831aeedec9dac3b..04c5a32526e883ff9def77e107d3b6627d637834 100644
--- a/src/components/table-select.vue
+++ b/src/components/table-select.vue
@@ -11,10 +11,10 @@
>
@@ -44,12 +44,10 @@ export default {
default: ""
},
name: {
- type: String,
- default: ""
+ type: String
},
rowId: {
- type: Number,
- default: 0
+ type: Number
},
couldNotEdit: {
type: Boolean,
@@ -57,12 +55,16 @@ export default {
}
},
data: () => ({
- selectValue: "1"
+ selectValue: "0"
}),
mounted() {
this.selectValue = this.item;
- if (!this.selectValue || this.selectValue == "") {
- this.selectValue = this.selectArr[0].value;
+ if (this.selectValue == null || !this.selectValue || this.selectValue == "") {
+ if (this.selectArr && this.selectArr.length != 0) {
+ this.selectValue = this.selectArr[0].value;
+ } else {
+ this.selectValue = "";
+ }
}
},
methods: {
diff --git a/src/components/table-um.vue b/src/components/table-um.vue
index 3b592fbca72adb9290042b4ec43182c69b3ada74..dbbfdf210d6f060acce3a2e886c1e375511e85ea 100644
--- a/src/components/table-um.vue
+++ b/src/components/table-um.vue
@@ -144,21 +144,24 @@
>
-
-
+
+
{{ scope.row[item.prop] }}
@@ -243,19 +249,19 @@
diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue
index 64bb3fb383590a667d5205ce011e8198027b335e..33de0421ebb576a45b6fa2f06e3294e22d7691a5 100644
--- a/src/pages/workbench/fwzc_fwcs.vue
+++ b/src/pages/workbench/fwzc_fwcs.vue
@@ -19,7 +19,7 @@
服务类型:
-
+
- JSON
+
+ JSON
+
@@ -118,15 +119,99 @@
服务测试
+