Compare commits
No commits in common. "ee306232482bd929ba3e470dcd0f9cf82113e9a7" and "da207e329871288ff4e5cfa2e32dbdf86a6c6c4e" have entirely different histories.
ee30623248
...
da207e3298
|
|
@ -13,54 +13,48 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'ImagePreview',
|
name: "ImagePreview",
|
||||||
props: {
|
props: {
|
||||||
src: {
|
src: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: ""
|
||||||
},
|
},
|
||||||
width: {
|
width: {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: '',
|
default: ""
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
type: [Number, String],
|
type: [Number, String],
|
||||||
default: '',
|
default: ""
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
realSrc() {
|
realSrc() {
|
||||||
if (!this.src) {
|
if (!this.src) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
let real_src = this.src.split(',')[0]
|
let real_src = this.src.split(",")[0];
|
||||||
|
return real_src;
|
||||||
console.log(this.src, '图片地址--')
|
|
||||||
return real_src
|
|
||||||
},
|
},
|
||||||
realSrcList() {
|
realSrcList() {
|
||||||
if (!this.src) {
|
if (!this.src) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
let real_src_list = this.src.split(',')
|
let real_src_list = this.src.split(",");
|
||||||
let srcList = []
|
let srcList = [];
|
||||||
real_src_list.forEach((item) => {
|
real_src_list.forEach(item => {
|
||||||
return srcList.push(item)
|
return srcList.push(item);
|
||||||
})
|
});
|
||||||
return srcList
|
return srcList;
|
||||||
},
|
},
|
||||||
realWidth() {
|
realWidth() {
|
||||||
return typeof this.width == 'string'
|
return typeof this.width == "string" ? this.width : `${this.width}px`;
|
||||||
? this.width
|
|
||||||
: `${this.width}px`
|
|
||||||
},
|
},
|
||||||
realHeight() {
|
realHeight() {
|
||||||
return typeof this.height == 'string'
|
return typeof this.height == "string" ? this.height : `${this.height}px`;
|
||||||
? this.height
|
|
||||||
: `${this.height}px`
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
|
||||||
|
|
@ -510,7 +510,7 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading" :data="numList">
|
<el-table v-loading="loading" :data="numList" height="500">
|
||||||
<el-table-column label="序号" align="center" type="index" />
|
<el-table-column label="序号" align="center" type="index" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="类型名称"
|
label="类型名称"
|
||||||
|
|
@ -539,7 +539,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="scope.row.qualifiedNum"
|
v-model.number="scope.row.qualifiedNum"
|
||||||
placeholder="合格数量"
|
placeholder="请输入合格数量"
|
||||||
type="number"
|
type="number"
|
||||||
:min="0"
|
:min="0"
|
||||||
clearable
|
clearable
|
||||||
|
|
@ -557,7 +557,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="scope.row.serviceNum"
|
v-model.number="scope.row.serviceNum"
|
||||||
placeholder="待维修数量"
|
placeholder="请输入待维修数量"
|
||||||
type="number"
|
type="number"
|
||||||
:min="0"
|
:min="0"
|
||||||
clearable
|
clearable
|
||||||
|
|
@ -574,7 +574,7 @@
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="scope.row.scrapNum"
|
v-model.number="scope.row.scrapNum"
|
||||||
placeholder="待报废数量"
|
placeholder="请输入待报废数量"
|
||||||
type="number"
|
type="number"
|
||||||
:min="0"
|
:min="0"
|
||||||
clearable
|
clearable
|
||||||
|
|
@ -583,19 +583,6 @@
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<!-- 6.17新增 报废原因等填写 -->
|
|
||||||
<el-table-column label="报废信息" align="center">
|
|
||||||
<template slot-scope="{ row }">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
size="mini"
|
|
||||||
:disabled="row.scrapNum <= 0"
|
|
||||||
>编 辑</el-button
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
<!-- <el-table-column label="报废信息" align="center" prop="" :show-overflow-tooltip="true" /> -->
|
<!-- <el-table-column label="报废信息" align="center" prop="" :show-overflow-tooltip="true" /> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<ImagePreview
|
<ImagePreview
|
||||||
v-for="(item, index) in scrapImgList"
|
v-for="(item, index) in scrapImgList"
|
||||||
:key="index"
|
:key="index"
|
||||||
:src="`${impViewUrl}${item}`"
|
:src="item"
|
||||||
:width="`20px`"
|
:width="`20px`"
|
||||||
:height="`20px`"
|
:height="`20px`"
|
||||||
class="img-box"
|
class="img-box"
|
||||||
|
|
@ -22,10 +22,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
scrapImgUrl: {
|
scrapImgUrl: {},
|
||||||
type: String,
|
|
||||||
default: () => null,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -34,14 +31,14 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// let imgList = []
|
let imgList = []
|
||||||
if (this.scrapImgUrl) {
|
if (this.scrapImgUrl) {
|
||||||
this.scrapImgList = this.scrapImgUrl.split(',')
|
imgList = this.scrapImgUrl.split(',')
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.scrapImgList = imgList.map(
|
this.scrapImgList = imgList.map(
|
||||||
// (item) => (item = this.impViewUrl + item),
|
(item) => (item = this.impViewUrl + item),
|
||||||
// )
|
)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue