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

文档

parent f8132fc0
<template>
<div class="input-code">
<Input v-model="code" clearable>
<Input v-model="codeValue" clearable required>
<Button
slot="append"
style="width: 95px; text-align: left"
@click="codeClick"
>生成编号</Button
>
</Input>
<!-- <Dropdown placement="bottom-start">
<a href="javascript:void(0)">
<Icon type="ios-arrow-down">55</Icon>
</a>
<DropdownMenu slot="list" @on-click="changeSelect">
<DropdownItem>生成</DropdownItem>
</DropdownMenu>
</Dropdown> -->
</div>
</template>
<script>
......@@ -24,47 +15,47 @@ import Api from "./api";
export default {
data() {
return {
code: "",
codeValue: "",
select: "",
};
},
props: {
value: [String, Number, Array, Object],
clearable: {
type: Boolean,
default: true,
model: {
prop: "value",
event: "on-change"
},
props: {
code:{
type:String,
default:""
},
type:{
type:String
}
},
mounted() {
this.getSerialcode();
},
mounted() { },
methods: {
// 生成临时编号code
getSerialcode() {
Api.serialcode({
code: "",
code: this.code,
}).then((r) => {
if (r.result) {
this.code = r.result[0];
this.codeValue = r.result[0];
this.$emit(
"on-change",
this.codeValue
);
}
});
},
codeClick() {
this.getSerialcode();
},
// changeSelect(a) {
// console.log(a);
// },
},
watch: {
value(v) {
this.code = v;
},
code(v) {
if ((v = "")) {
this.select = "";
}
},
this.codeValue = v;
}
},
};
</script>
......
<template>
<img :src="downUrl + row.img"/>
</template>
<script>
export default {
props:["src",size],
data(){
return {
path:""
}
},
mounted(){
if(this.src){
this.path=downUrl+v
}
},
watch:{
src(v){
if(v){
this.path=downUrl+v
}
}
}
}
</script>
\ No newline at end of file
......@@ -12,6 +12,7 @@
></Input>
<InputCode
v-if="li.dataType == 0 && li.field == 'code'"
code="WORD"
v-model="entity[li.field]"
/>
<InputNumber
......
......@@ -56,7 +56,7 @@
<img :src="downUrl + row.img" v-if="row.img" />
<!-- onerror="this.src='/imgicon/chan_Pin.png'" -->
<img
src="@/assets/imgicon/chan_Pin.png"
src="@/assets/images/files_header.png"
v-else
width="100%"
height="100%"
......@@ -412,7 +412,7 @@ export default {
height: 110px;
.img-i {
width: 90px;
background: #eee;
// background: #eee;
height: 90px;
img {
width: 90px;
......
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