|
@@ -57,11 +57,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="introduction" label="简介"> </el-table-column>
|
|
<el-table-column prop="introduction" label="简介"> </el-table-column>
|
|
|
- <el-table-column prop="publish" label="发布">
|
|
|
|
|
|
|
+ <!-- <el-table-column prop="publish" label="发布">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
<el-tag :type="row.publish ? 'success' : 'info'">{{ row.publish ? '是' : '否' }}</el-tag>
|
|
<el-tag :type="row.publish ? 'success' : 'info'">{{ row.publish ? '是' : '否' }}</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column prop="likes" label="点赞"> </el-table-column>
|
|
<el-table-column prop="likes" label="点赞"> </el-table-column>
|
|
|
<!-- <el-table-column prop="maxCollection" label="最多可放藏品数量"> </el-table-column> -->
|
|
<!-- <el-table-column prop="maxCollection" label="最多可放藏品数量"> </el-table-column> -->
|
|
|
<!-- <el-table-column prop="headBg" label="头部背景">
|
|
<!-- <el-table-column prop="headBg" label="头部背景">
|
|
@@ -85,11 +85,16 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
|
<el-table-column prop="status" label="状态" :formatter="statusFormatter"> </el-table-column>
|
|
<el-table-column prop="status" label="状态" :formatter="statusFormatter"> </el-table-column>
|
|
|
- <!-- <el-table-column prop="reason" label="拒绝理由"> </el-table-column> -->
|
|
|
|
|
- <el-table-column label="操作" align="center" fixed="right" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="210">
|
|
|
<template slot-scope="{ row }">
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button @click="editRow(row)" type="primary" size="mini" plain>编辑</el-button>
|
|
|
|
|
|
|
+ <el-button @click="editRow(row)" type="primary" size="mini" plain>查看</el-button>
|
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
<!-- <el-button @click="deleteRow(row)" type="danger" size="mini" plain>删除</el-button> -->
|
|
|
|
|
+ <el-button @click="pass(row)" type="success" size="mini" plain v-if="row.status === 'PENDING'">
|
|
|
|
|
+ 通过
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button @click="deny(row)" type="danger" size="mini" plain v-if="row.status === 'PENDING'">
|
|
|
|
|
+ 拒绝
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -114,6 +119,18 @@
|
|
|
>
|
|
>
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <el-dialog :visible.sync="showReasonDialog" width="600px" title="拒绝理由">
|
|
|
|
|
+ <el-form ref="denyForm" :model="denyForm" label-position="right" label-width="60px" :rules="denyRules">
|
|
|
|
|
+ <el-form-item prop="reason" label="理由">
|
|
|
|
|
+ <el-input type="textarea" :autosize="{ minRows: 3 }" v-model="denyForm.reason"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer">
|
|
|
|
|
+ <el-button @click="showReasonDialog = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="saveReason">保存</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -134,7 +151,12 @@ export default {
|
|
|
{ label: '认证中', value: 'PENDING' },
|
|
{ label: '认证中', value: 'PENDING' },
|
|
|
{ label: '已认证', value: 'SUCCESS' },
|
|
{ label: '已认证', value: 'SUCCESS' },
|
|
|
{ label: '失败', value: 'FAIL' }
|
|
{ label: '失败', value: 'FAIL' }
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ showReasonDialog: false,
|
|
|
|
|
+ denyForm: {},
|
|
|
|
|
+ denyRules: {
|
|
|
|
|
+ reason: [{ required: true, message: '请填写理由' }]
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -151,7 +173,7 @@ export default {
|
|
|
return '';
|
|
return '';
|
|
|
},
|
|
},
|
|
|
beforeGetData() {
|
|
beforeGetData() {
|
|
|
- return { search: this.search, query: { del: false } };
|
|
|
|
|
|
|
+ return { search: this.search, query: { del: false, type: 'COMPANY' } };
|
|
|
},
|
|
},
|
|
|
toggleMultipleMode(multipleMode) {
|
|
toggleMultipleMode(multipleMode) {
|
|
|
this.multipleMode = multipleMode;
|
|
this.multipleMode = multipleMode;
|
|
@@ -222,6 +244,36 @@ export default {
|
|
|
this.$message.error(e.error);
|
|
this.$message.error(e.error);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ pass(row) {
|
|
|
|
|
+ this.$confirm('确定通过?')
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ return this.$http.post('/showroom/pass', { id: row.id });
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.$message.success('成功');
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {});
|
|
|
|
|
+ },
|
|
|
|
|
+ deny(row) {
|
|
|
|
|
+ this.showReasonDialog = true;
|
|
|
|
|
+ this.denyForm.id = row.id;
|
|
|
|
|
+ },
|
|
|
|
|
+ saveReason() {
|
|
|
|
|
+ this.$confirm('确定拒绝?')
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ return this.$http.post('/showroom/deny', {
|
|
|
|
|
+ id: this.denyForm.id,
|
|
|
|
|
+ reason: this.denyForm.reason
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ this.$message.success('成功');
|
|
|
|
|
+ this.showReasonDialog = false;
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(e => {});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|