|
@@ -18,8 +18,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="two_2">
|
|
|
<el-col :span="6" class="left">
|
|
|
- <el-image v-if="info.spec_file" class="image" :src="info.spec_file && info.spec_file.length > 0 ? info.spec_file[0].url : ''" />
|
|
|
- <el-image v-else class="image" :src="info.good_file && info.good_file.length > 0 ? info.good_file[0].url : ''" />
|
|
|
+ <el-image v-if="info.spec_file" class="image"
|
|
|
+ :src="info.spec_file && info.spec_file.length > 0 ? info.spec_file[0].url : ''" />
|
|
|
+ <el-image v-else class="image"
|
|
|
+ :src="info.good_file && info.good_file.length > 0 ? info.good_file[0].url : ''" />
|
|
|
</el-col>
|
|
|
<el-col :span="18" class="right">
|
|
|
<el-col :span="24" class="name">
|
|
@@ -142,15 +144,15 @@ const search = async () => {
|
|
|
const searchDict = async (e, model) => {
|
|
|
let data;
|
|
|
if (model == 'status') {
|
|
|
- data = statusList.value.find((i) => i.value == e);
|
|
|
+ data = statusList.value.find((i: any) => i.value == e);
|
|
|
if (data) return data.label;
|
|
|
else return '暂无';
|
|
|
} else if (model == 'type') {
|
|
|
- data = typeList.value.find((i) => i.value == e);
|
|
|
+ data = typeList.value.find((i: any) => i.value == e);
|
|
|
if (data) return data.label;
|
|
|
else return '暂无';
|
|
|
} else {
|
|
|
- data = roleList.value.find((i) => i.code == e);
|
|
|
+ data = roleList.value.find((i: any) => i.code == e);
|
|
|
if (data) return data.name;
|
|
|
else return '暂无';
|
|
|
}
|
|
@@ -179,6 +181,7 @@ const toBack = () => {
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
.two {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
@@ -301,5 +304,4 @@ const toBack = () => {
|
|
|
.right {
|
|
|
text-align: right;
|
|
|
}
|
|
|
-}
|
|
|
-</style>
|
|
|
+}</style>
|