|
@@ -66,27 +66,28 @@
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
type="date" v-else-if="item.InputMode == 'C5'" v-model="form[item.Path]">
|
|
type="date" v-else-if="item.InputMode == 'C5'" v-model="form[item.Path]">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
- <el-upload
|
|
|
|
|
|
+
|
|
|
|
+ <uploadImgs
|
|
|
|
+ :readOnly="false"
|
|
v-else-if="item.InputMode == 'F2'&& item.Path === 'BuildingInfo.BuildingType.Pic'"
|
|
v-else-if="item.InputMode == 'F2'&& item.Path === 'BuildingInfo.BuildingType.Pic'"
|
|
v-model="form[item.Path]"
|
|
v-model="form[item.Path]"
|
|
- action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
|
- list-type="picture-card"
|
|
|
|
- >
|
|
|
|
-
|
|
|
|
- <i class="el-icon-plus"></i>
|
|
|
|
- </el-upload>
|
|
|
|
|
|
+ :keysArr="Array.isArray(buildData[item.Path]) ? buildData[item.Path]:[]"
|
|
|
|
+ :context-key="item.Path"
|
|
|
|
+ :isShow="1"
|
|
|
|
+ @change="changeItem"
|
|
|
|
+ />
|
|
|
|
|
|
- <upload-files
|
|
|
|
- v-model="form[item.Path]"
|
|
|
|
- v-else-if="item.InputMode == 'F2'"
|
|
|
|
- :readOnly="false"
|
|
|
|
- :isShow="true"
|
|
|
|
- :keys-arr="(Array.isArray(item.Path) && item.Path.length)? item.Path:[]"
|
|
|
|
- :show-file-list="false"
|
|
|
|
- :context-key="item.Path"
|
|
|
|
- @change="changeItem"
|
|
|
|
- max="2"
|
|
|
|
- />
|
|
|
|
|
|
+ <upload-files
|
|
|
|
+ v-model="form[item.Path]"
|
|
|
|
+ v-else-if="item.InputMode == 'F2'"
|
|
|
|
+ :readOnly="false"
|
|
|
|
+ :isShow="1"
|
|
|
|
+ :keys-arr="Array.isArray(buildData[item.Path]) ? buildData[item.Path]:[] "
|
|
|
|
+ :show-file-list="false"
|
|
|
|
+ :context-key="item.Path"
|
|
|
|
+ @change="changeItem"
|
|
|
|
+ />
|
|
|
|
+ <!-- <span v-else-if="item.InputMode == 'F2'">{{buildData[item.Path]}}</span>-->
|
|
<el-input disabled title="暂不支持" v-else v-model="form[item.Path]"></el-input>
|
|
<el-input disabled title="暂不支持" v-else v-model="form[item.Path]"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</span>
|
|
</span>
|
|
@@ -107,6 +108,7 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import uploadFiles from "@/components/business_space/lib/uploadFiles";
|
|
import uploadFiles from "@/components/business_space/lib/uploadFiles";
|
|
|
|
+ import uploadImgs from "@/components/business_space/lib/uploadImgsName";
|
|
|
|
|
|
function flattenKeys(obj) {
|
|
function flattenKeys(obj) {
|
|
let res = {}
|
|
let res = {}
|
|
@@ -135,7 +137,6 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
buildName: '',
|
|
buildName: '',
|
|
- // keysArr: [{Name: 'food.jpeg', Key: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, {Name: 'food2.jpeg', Key: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}],
|
|
|
|
keysArr: [], //保存临时的文件key
|
|
keysArr: [], //保存临时的文件key
|
|
buildDialogVis: false,
|
|
buildDialogVis: false,
|
|
form: {},
|
|
form: {},
|
|
@@ -153,7 +154,7 @@
|
|
buildData: {},
|
|
buildData: {},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- components: {uploadFiles},
|
|
|
|
|
|
+ components: {uploadFiles, uploadImgs},
|
|
props: ['buildTitle', 'buildMessage', 'currentBuild'],
|
|
props: ['buildTitle', 'buildMessage', 'currentBuild'],
|
|
computed: {},
|
|
computed: {},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -161,10 +162,14 @@
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ deepCopy(obj) {
|
|
|
|
+ return JSON.parse(JSON.stringify(obj))
|
|
|
|
+ },
|
|
showDialog(data) {
|
|
showDialog(data) {
|
|
|
|
+ //获取信息
|
|
this.buildData = data || {};
|
|
this.buildData = data || {};
|
|
this.buildData = flattenKeys(this.buildData)
|
|
this.buildData = flattenKeys(this.buildData)
|
|
|
|
+ // this.keysArr = this.buildData[]
|
|
this.timeoutSetVal()
|
|
this.timeoutSetVal()
|
|
this.buildDialogVis = true
|
|
this.buildDialogVis = true
|
|
},
|
|
},
|
|
@@ -191,10 +196,12 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
changeItem(val) {
|
|
changeItem(val) {
|
|
- let _key = Object.keys(val)[0]+'';
|
|
|
|
|
|
+ console.log(val)
|
|
|
|
+ let _key = Object.keys(val)[0] + '';
|
|
this.form[_key] = val[_key];
|
|
this.form[_key] = val[_key];
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|