This commit is contained in:
姚宇浩 2024-02-02 16:34:22 +08:00
parent 7d0dcd0f5c
commit fdcced641b
2 changed files with 21 additions and 16 deletions

View File

@ -368,7 +368,7 @@ export default {
// this.detailForm.userName = value.shopInfo.userName;
// this.detailForm.wpPath = value.panUrl;
// this.detailForm.code = value.panCode;
this.detailForm.name = value.goodsName;
this.detailForm.goodsName = value.goodsName;
this.detailForm.wpPath = value.domainInfo.wpPath;
this.detailForm.code = value.domainInfo.code;
this.detailForm.userName = value.shopInfo.userName;

View File

@ -57,28 +57,33 @@
<el-table-column prop="pointPrice" label="积分价格"> </el-table-column>
<el-table-column prop="moneyPrice" label="金钱价格"> </el-table-column>
<el-table-column prop="authorName" label="发布人"> </el-table-column>
<el-table-column prop="state" label="状态"> </el-table-column>
<el-table-column prop="state" label="状态">
<template #default="scope">
<span v-if="scope.row.state == '1'">上架</span>
<span v-else-if="scope.row.state == '2'">下架</span>
</template>
</el-table-column>
<!-- <el-table-column prop="typeName" label="类型">
<template #default="scope">
<span>{{ scope.row.typeName }} - {{ scope.row.typesName }}</span>
</template>
</el-table-column> -->
<el-table-column prop="examineState" label="审核状态">
<!-- <template #default="scope">
<span v-if="scope.row.examineState == '0'" style="color: #409eff"
>审核</span
<template #default="scope">
<span v-if="scope.row.examineState == '0'"
>审核</span
>
<span
v-else-if="scope.row.examineState == '1'"
style="color: #67c23a"
>通过</span
>
<span
v-else-if="scope.row.examineState == '2'"
style="color: #f56c6c"
>拒绝</span
>驳回</span
>
</template> -->
</template>
</el-table-column>
<el-table-column label="操作" width="150">
<template #default="scope">
@ -195,7 +200,7 @@
<template #footer>
<span class="dialog-footer">
<el-button @click="handleCloses">取消</el-button>
<el-button type="primary" @click="fix()" v-show="title == '编辑'">
<el-button type="primary" @click="fix()" v-show="title == '修改商品'">
确定
</el-button>
</span>
@ -338,12 +343,12 @@ export default {
getdetails(title, value) {
this.title = title;
this.opens = true;
this.detailForm = value;
if (value.state == "上架") {
this.detailForm.state = "1";
} else {
this.detailForm.state = "0";
}
this.detailForm = Object.assign({}, value);
// if (value.state == "") {
// this.detailForm.state = "1";
// } else {
// this.detailForm.state = "0";
// }
},
fix() {
let goods = this.detailForm;