Commit cbb2a00e authored by 仇晓婷's avatar 仇晓婷

上传

parent 67d7e6b7
......@@ -311,14 +311,19 @@ export default {
computed: {},
watch: {
// value(v) {
// this.nameList = []
// this.nameList = v
// this.nameList = [];
// this.nameList = v;
// }
},
mounted() {
this.formatL();
this.mutipleStatu();
// this.intFiles()
this.intFiles();
if (this.Photos === true) {
this.Photo = false;
} else {
this.Photo = true;
}
}
};
</script>
......
......@@ -111,7 +111,7 @@ export default {
}
},
mounted() {
alert(this.parents.parentId);
// alert(this.parents.parentId);
if (this.eid > 0) {
this.load(this.eid);
}
......
<template>
<Layout>
<Sider width="300">
<div class="add-list">
<img :src="img" width="100%" height="100%" />
</div>
</Sider>
<Content>
<Form ref="form" :model="entity" :rules="rules" :label-width="120">
<Row>
<Col :span="12">
<FormItem label="上级所属" prop="parentName">
<!-- <Input v-model="entity.parentName" disabled></Input> -->
<productSelect1 v-model="entity.levelId" @on-change="proChange" />
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productCode')" prop="productCode">
<Input v-model="entity.productCode"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('mmcode')" prop="mmcode">
<Input v-model="entity.mmcode"></Input>
......@@ -23,17 +41,31 @@
</FormItem>
</Col>
<!-- <Col :span="24">
<FormItem :label="l('remark')" prop="remark">
<Input v-model="entity.remark"></Input>
</FormItem>
</Col>-->
<Col :span="24">
<FormItem :label="l('productUrl')" prop="productUrl">
<FormItem :label="l('productUrlList')" prop="productUrlList">
<!-- <InputFile v-model="entity.productUrl"></InputFile> -->
<files ref="refFile" :parms="parms" fileFormat :Photos="true" @clickItem="clickData" />
</FormItem>
</Col>
<!-- <Col :span="24">
<FormItem :label="l('productUrlList')" prop="productUrlList">-->
<!-- <Input v-model="entity.productUrlList" type="textarea" :rows="5"></Input> -->
<!-- <filesList v-model="entity.productUrlList"></filesList>
</FormItem>
</Col>-->
</Row>
<FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</Content>
</Layout>
</template>
<script>
import Api from "./api";
......@@ -45,6 +77,13 @@ export default {
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }]
},
img: "",
parms: {
app: "technology",
eid: null,
name: "",
field: ""
}
};
},
......@@ -57,9 +96,16 @@ export default {
}
},
methods: {
clickData(data) {
this.img = data;
},
proChange(items, data, roots) {},
load(v) {
Api.get({ id: v }).then(r => {
this.$refs.refFile.intFilesClone();
this.parms.eid = r.result.productUrlList;
this.entity = r.result;
this.img = this.entity.productUrl;
});
},
handleSubmit() {
......@@ -101,3 +147,16 @@ export default {
}
};
</script>
<style lang="less">
.ivu-layout-sider {
background: rgba(255, 255, 255, 1);
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
.add-list {
width: 100%;
height: 300px;
overflow: hidden;
}
}
</style>
\ No newline at end of file
......@@ -128,7 +128,6 @@ export default {
this.title = "新增";
this.detail = () => import("./add");
this.modal = true;
this.parents.parentId = this.parent.id;
this.parents.parentName = this.parent.parentName;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment