-
+
-
+
-
-
+
+
+
+ {{ scope.row.dictLabel }}
+
+
+
+
@@ -128,7 +134,7 @@
-
+
@@ -206,7 +212,7 @@ export default {
// 表单校验
rules: {
dictLabel: [
- { required: true, message: "名录类型不能为空", trigger: "blur" }
+ { required: true, message: "层级数据不能为空", trigger: "blur" }
],
attribute2: [
{ required: true, message: "网站类型不能为空", trigger: "blur" }
@@ -277,7 +283,7 @@ export default {
handleAdd() {
this.reset();
this.open = true;
- this.title = "添加名录类型";
+ this.title = "添加层级数据";
this.form.dictType = this.queryParams.dictType;
},
// 多选框选中数据
@@ -293,7 +299,7 @@ export default {
getData(dictCode).then(response => {
this.form = response.data;
this.open = true;
- this.title = "修改名录类型";
+ this.title = "修改层级数据";
});
},
/** 提交按钮 */
diff --git a/ebts-ui/src/views/utils/uploadFile.vue b/ebts-ui/src/views/utils/uploadFile.vue
index 8d22f60..dc84515 100644
--- a/ebts-ui/src/views/utils/uploadFile.vue
+++ b/ebts-ui/src/views/utils/uploadFile.vue
@@ -38,10 +38,10 @@
-
+
-
+
@@ -89,6 +89,15 @@ export default {
type: Boolean,
default: null
},
+ /**
+ * 是否需要url 1:需要 2:uri 3:同时
+ * 在vData为true有用
+ *
+ */
+ url:{
+ type:Number,
+ default:1,
+ }
},
data() {
const checkRoleIds = (rule, value, callback) => {
@@ -110,7 +119,7 @@ export default {
fileAddr: "",
unionId: this.unionId,
},
- staticUrl: this.value,
+ // staticUrl: this.value,
// 文件夹列表
folderOptions: [],
// 角色列表
@@ -146,7 +155,7 @@ export default {
*/
fileTypeChange() {
this.form.fileAddr = ""
- this.staticUrl = ""
+ this.value = ""
},
/**
* 改变地址
@@ -174,7 +183,15 @@ export default {
flag = true
} else {
flag = uploadFile(this.form).then(res => {
- this.$emit("input", res)
+ let data = ""
+ if (this.url == 1){
+ data = res.url
+ }else if (this.url == 2){
+ data = res.uri
+ }else if (this.url == 3){
+ data = res
+ }
+ this.$emit("input", data)
})
}
} else {