|
@@ -82,7 +82,9 @@
|
|
|
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ scope.row.status == 0 ? '未审核' : '已通过' }}</span>
|
|
|
+ <span v-if="scope.row.status == 0">未审核</span>
|
|
|
+ <span v-if="scope.row.status == 1">已通过</span>
|
|
|
+ <span v-if="scope.row.status == 3">已驳回</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="创建时间" align="center" prop="gmtCreate" width="180">
|
|
@@ -100,6 +102,8 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" @click="handle(scope.row)"
|
|
|
v-permission="['unimall:circleManagementInfo:edit']" v-if="scope.row.status == '0'">通过</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="handle(scope.row, 1)"
|
|
|
+ v-permission="['unimall:circleManagementInfo:edit']" v-if="scope.row.status == '0'">驳回</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
|
v-permission="['unimall:circleManagementInfo:edit']">修改</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
@@ -160,6 +164,16 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="审核驳回" :visible.sync="isShowhandle">
|
|
|
+ <div>
|
|
|
+ <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="textarea">
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="isShowhandle = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="handleSubmit">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -170,6 +184,9 @@ import { getToken } from '@/utils/auth'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ selectObj:{},
|
|
|
+ textarea: '',
|
|
|
+ isShowhandle: false,
|
|
|
imgsFileList: [],
|
|
|
uploadPath,
|
|
|
// 遮罩层
|
|
@@ -244,7 +261,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleRemove: function (file, fileList) {
|
|
|
- this.form.circleHead=""
|
|
|
+ this.form.circleHead = ""
|
|
|
},
|
|
|
/** 查询圈子管理列表 */
|
|
|
getList() {
|
|
@@ -268,7 +285,7 @@ export default {
|
|
|
circleName: undefined,
|
|
|
circleLabel: undefined,
|
|
|
status: "0",
|
|
|
- circleHead:'',
|
|
|
+ circleHead: '',
|
|
|
gmtCreate: undefined,
|
|
|
gmtUpdate: undefined,
|
|
|
deleteFlag: undefined
|
|
@@ -297,27 +314,47 @@ export default {
|
|
|
this.open = true;
|
|
|
this.title = "添加圈子管理";
|
|
|
},
|
|
|
- // 审核
|
|
|
- handle(row) {
|
|
|
- console.log(row)
|
|
|
- debugger
|
|
|
- circleManagementInfoHandle(row).then(response => {
|
|
|
+ handleSubmit() {
|
|
|
+ this.selectObj.reason = this.textarea
|
|
|
+ this.selectObj.status = 3
|
|
|
+ circleManagementInfoHandle(this.selectObj).then(response => {
|
|
|
if (response.data) {
|
|
|
- this.msgSuccess("新增成功");
|
|
|
+ this.msgSuccess("驳回成功!");
|
|
|
+ this.isShowhandle = false
|
|
|
this.getList();
|
|
|
} else {
|
|
|
this.msgError(response.msg);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 审核
|
|
|
+ handle(row, type) {
|
|
|
+ this.selectObj = row
|
|
|
+ if (type == 1) {
|
|
|
+ this.isShowhandle = true
|
|
|
+ } else {
|
|
|
+ row.status =1
|
|
|
+ circleManagementInfoHandle(row).then(response => {
|
|
|
+ if (response.data) {
|
|
|
+ this.msgSuccess("新增成功");
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.msgError(response.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ console.log(row)
|
|
|
+ debugger
|
|
|
+
|
|
|
+ },
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset();
|
|
|
this.imgsFileList = []
|
|
|
const id = row.id || this.ids.join(',')
|
|
|
this.imgsFileList.push({
|
|
|
- url:row.circleHead
|
|
|
- })
|
|
|
+ url: row.circleHead
|
|
|
+ })
|
|
|
getCircleManagementInfo(id).then(response => {
|
|
|
this.form = response.data.data
|
|
|
this.open = true;
|