lhl 3 天之前
父節點
當前提交
f0b34e83a7

+ 88 - 0
src/api/system/forum.js

@@ -0,0 +1,88 @@
+import request from '@/plugins/request/system';
+
+/**
+ * 获取列表
+ * @param {Object} data 
+ * @param {Number} data.page 页码
+ * @param {Number} data.pageSize 每页数量
+ * @param {Number} data.status 状态
+ * @param {String} data.title 标题
+ * @param {Number} data.uid 用户ID
+ * @constructor
+ */
+export function  getForumList(data = {}) {
+  return request({
+    url: '/systemv1/forum/post/list',
+    method: 'get',
+    params : data
+  });
+}
+
+/**
+ * 审核贴子
+ * @param {Object} data 
+ * @param {String} data.id 贴子ID
+ * @param {Number} data.status 状态
+ */
+export function audit(data) {
+  return request({
+    url: '/systemv1/forum/post/audit',
+    method: 'post',
+    data
+  })
+}
+
+/**
+ * 删除贴子
+ * @param {Object} data 
+ * @param {String} data.id 贴子ID
+ */
+export function deletePost(data) {
+  return request({
+    url: '/systemv1/forum/post/delete',
+    method: 'post',
+    data
+  })
+}
+
+/**
+ * 贴子置顶
+ * @param {Object} data 
+ * @param {String} data.id 贴子ID
+ * @param {Number} data.is_top 状态
+ */
+export function topPost(data) {
+  return request({
+    url: '/systemv1/forum/post/setTop',
+    method: 'post',
+    data
+  })
+}
+
+/**
+ * 获取评论列表
+ * @param {Object} data 
+ * @param {String} data.post_id 贴子ID
+ * @param {Number} data.page 页码
+ * @param {Number} data.pageSize 每页数量
+ */
+export function getCommentList(data) {
+  return request({
+    url: '/systemv1/forum/comment/list',
+    method: 'get',
+    params : data
+  });
+}
+
+/**
+ * 删除评论
+ * @param {Object} data 
+ * @param {String} data.id 评论ID
+ */
+export function deleteComment(data) {
+  return request({
+    url: '/systemv1/forum/comment/delete',
+    method: 'post',
+    data
+  })
+}

+ 13 - 0
src/api/system/user.js

@@ -181,6 +181,19 @@ export function setAuthShow(data = {}) {
 	});
 }
 
+/**
+ * 修改发帖权限
+ * @param {Object} data 
+ * @param {number} data.uid 用户ID
+ * @param {String} data.permission 发帖权限
+ */
+export function forumPost(data) {
+	return request({
+	    url: '/systemv1/member/forumPost',
+	    method: 'post',
+	    data : data
+	});
+}
 
 
 

+ 8 - 0
src/components/system/chat/order.vue

@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>

+ 210 - 41
src/components/system/forum/list.vue

@@ -25,7 +25,7 @@
                 </Row>
             </Form> -->
 			<Col>
-			<Button type="primary" class="export" icon="ios-share-outline" @click="sendOpen">发布贴子</Button>
+			<!-- <Button type="primary" class="export" icon="ios-share-outline" @click="sendOpen">发布贴子</Button> -->
 			</Col>
 			<Table :columns="columns" :data="orderList" ref="table" :loading="loading" highlight-row no-data-text="暂无数据"
 				no-filtered-data-text="暂无筛选结果" class="orderData mt25">
@@ -33,20 +33,30 @@
 					<span v-text="row.order_id" style="display: block;"></span>
 				</template>
 				<template slot-scope="{ row, index }" slot="uid">
-					<div>{{row.nickname || '微信用户'}}[UID:{{row.uid}}]</div>
-					<div>{{row.mobile || '未绑定手机号'}}</div>
+					<div>{{ row.nickname || '微信用户' }}[UID:{{ row.uid }}]</div>
+					<div>{{ row.mobile || '未绑定手机号' }}</div>
 				</template>
 				<template slot-scope="{ row, index }" slot="imgs">
-					<div v-if="row.imgs.length>0" style="display: flex;">
-						<img v-for="item in row.imgs" v-lazy="item" :src="item" v-image-preview
+					<div v-if="row.images.length > 0" style="display: flex;justify-content: center;">
+						<img v-for="item in row.images" v-lazy="item" :src="item" v-image-preview
 							style="width: 60px;cursor: pointer" />
 					</div>
 				</template>
-
+				<template slot-scope="scope" slot="status">
+					<el-tag type="info" size="mini" v-if="scope.row.status == 0">待审核</el-tag>
+					<el-tag type="success" size="mini" v-if="scope.row.status == 1">已发布</el-tag>
+					<el-tag type="danger" size="mini" v-if="scope.row.status == -1">禁用</el-tag>
+				</template>
 				<template slot-scope="{ row, index }" slot="handle">
-					<div><el-button plain size="mini" @click="">查看评论</el-button></div>
-					<br />
-					<div><el-button plain size="mini" @click="">删除</el-button></div>
+          <!-- topPost -->
+           <div v-if="row.status == 1"><el-button plain size="mini" @click="topPost(row)">{{ row.is_top == 1 ? '取消置顶' : '置顶' }}</el-button></div>
+					<br v-if="row.status == 1" />
+					<div v-if="row.status != 0"><el-button plain size="mini" @click="lookPj(row)">查看评论</el-button></div>
+					<br v-if="row.status != 0" />
+					<div v-if="row.status == 0"><el-button plain size="mini" @click="openPass(row)">审核贴子</el-button>
+					</div>
+					<br v-if="row.status == 0" />
+					<div><el-button plain size="mini" @click="deletePost(row.id)">删除</el-button></div>
 				</template>
 			</Table>
 			<div class="acea-row row-right page">
@@ -57,30 +67,72 @@
 		<Modal v-model="sendModel" title="发布贴子" @on-ok="sendOk('sendFormValidate')" @on-cancel="sendCancel" width="800">
 			<Form :model="sendData" :label-width="labelWidth" :rules="ruleValidate" ref="sendFormValidate">
 				<FormItem label="贴子文本" prop="content">
-					<Input v-model="sendData.content" type="textarea" :autosize="{minRows: 5,maxRows: 5}"
+					<Input v-model="sendData.content" type="textarea" :autosize="{ minRows: 5, maxRows: 5 }"
 						placeholder="请输入贴子内容"></Input>
 				</FormItem>
 				<FormItem label="图片">
 					<div class="clearfix">
-						<div class="upimg-item fx-r fx-bc fx-ac" style="" v-for="(item,index) in sendData.imgs"
+						<div class="upimg-item fx-r fx-bc fx-ac" style="" v-for="(item, index) in sendData.imgs"
 							:key="index">
 							<img v-lazy="item" :src="item" v-image-preview />
 							<i class="el-icon-error img-remove-btn" @click="removeImgs(index)"></i>
 						</div>
 						<ui-upload style="float: left;" :upUrl="upUrl" fileName="上传图片" :headers="upHeaders"
-							:updata="{isz:0,code:'goods'}" @onUpload="onUpload"
-							v-if="sendData.imgs.length<6"></ui-upload>
+							:updata="{ isz: 0, code: 'goods' }" @onUpload="onUpload"
+							v-if="sendData.imgs.length < 6"></ui-upload>
 					</div>
 				</FormItem>
 			</Form>
 			<div slot="footer">
-				<Button  size="large"  :loading="modal_loading" @click="sendCancel">取消</Button>
-			            <Button type="primary" size="large"  :loading="modal_loading" @click="sendOk('sendFormValidate')">提交</Button>
-			        </div>
+				<Button size="large" :loading="modal_loading" @click="sendCancel">取消</Button>
+				<Button type="primary" size="large" :loading="modal_loading"
+					@click="sendOk('sendFormValidate')">提交</Button>
+			</div>
 		</Modal>
+		<Modal v-model="showModal" title="审核贴子" width="300">
+			<Form :model="showData" :label-width="labelWidth" ref="showFormValidate">
+				<FormItem label="审核结果" prop="status">
+					<RadioGroup v-model="showData.status">
+						<Radio :label="1">通过</Radio>
+						<Radio :label="-1">禁用</Radio>
+					</RadioGroup>
+				</FormItem>
+			</Form>
+			<div slot="footer">
+				<Button size="large" :loading="modal_loading" @click="showCancel">取消</Button>
+				<Button type="primary" size="large" :loading="modal_loading" @click="passShow()">提交</Button>
+			</div>
+		</Modal>
+		<el-drawer title="评论列表" :visible.sync="drawer" :direction="direction">
+			<el-table :data="tableData" style="width: 100%">
+				<el-table-column prop="uid" label="评论者" width="180">
+					<template slot-scope="scope">
+						<div>{{scope.row.user_name}}(UID: {{scope.row.uid}})</div>
+					</template>
+				</el-table-column>
+				<el-table-column prop="content" label="内容" width="300">
+				</el-table-column>
+				<el-table-column prop="address" label="操作">
+					<template slot-scope="scope">
+						<el-button type="text" size="small" @click="deleteComment(scope.row.id)">删除</el-button>
+					</template>
+				</el-table-column>
+			</el-table>
+			<div class="acea-row row-right page">
+				<Page :total="pages.count" show-elevator show-total @on-change="tapPages" :page-size="page.pageSize" />
+			</div>
+		</el-drawer>
 	</div>
 </template>
 <script>
+	import {
+		getForumList,
+		audit,
+		getCommentList,
+  deleteComment,
+    topPost,
+	deletePost
+	} from "../../../api/system/forum";
 	import IPageHeader from "../../../layouts/system/page-header/index";
 	import {
 		SystemShowTemplateList
@@ -98,6 +150,10 @@
 		computed: {},
 		data() {
 			return {
+				tableData: [],
+				drawer: false,
+				direction: 'rtl',
+				showModal: false,
 				modal_loading: false,
 				ruleValidate: {
 					content: [{
@@ -114,6 +170,10 @@
 					content: '',
 					imgs: []
 				},
+				showData: {
+					id: '',
+					status: 1
+				},
 				sendModel: false,
 				pageTitle: "贴子记录",
 				options: {
@@ -200,26 +260,32 @@
 						align: 'center'
 					},
 					{
-						title: '帖子内容',
+						title: '贴子标题',
 						align: 'center',
+						key: 'title',
+					},
+					{
+						title: '贴子内容',
 						key: 'content',
 						align: 'left'
 					},
 					{
-						title: '子图片',
+						title: '子图片',
 						align: 'center',
 						slot: 'imgs',
-						align: 'center'
 					},
 					{
-						title: '时间',
+						title: '状态',
 						align: 'center',
-						key: 'add_time',
+						slot: 'status',
+					},
+					{
+						title: '时间',
+						key: 'create_time',
 						align: 'left'
 					},
 					{
 						title: '操作',
-						align: 'center',
 						slot: 'handle',
 						align: 'left'
 					},
@@ -229,7 +295,13 @@
 				orderDatalist: {},
 				orderId: 0,
 				page: {
-					total: 0, // 总条数
+					count: 0, // 总条数
+					page: 1, // 当前页
+					pageSize: 10 // 每页显示条数
+				},
+				pages: {
+					post_id: 0,
+					count: 0, // 总条数
 					page: 1, // 当前页
 					pageSize: 10 // 每页显示条数
 				},
@@ -247,8 +319,98 @@
 				this.orderData.show_template_id = parseInt(this.$route.query.show_template_id);
 			}
 			this.initView();
+			this.getData();
+		},
+  methods: {
+    topPost(row) {
+      topPost({
+        id: row.id,
+        is_top: row.is_top == 1 ? 0 : 1
+      }).then(res => {
+        if (res.code == 200) {
+          this.$Message.success('操作成功!');
+          this.getData();
+        } else {
+          this.$Message.error(res.msg);
+        }
+      });
+    },
+      deletePost(id) {
+		  this.$confirm('确定删除吗?', '系统提示', {
+		  	confirmButtonText: '确定',
+		  	cancelButtonText: '取消',
+		  	type: 'warning'
+		  }).then(() => {
+			  deletePost({
+			  	id: id
+			  }).then(res => {
+			  	if (res.code == 200) {
+			  		this.$Message.success('删除成功!');
+			  		this.getData();
+			  	} else {
+			  		this.$Message.error(res.msg);
+			  	}
+			  });
+		  }).catch(err => {
+			  console.log(err);
+		  })
+			
 		},
-		methods: {
+			/**
+			 * 删除评论
+			 * @param {String} id 评论ID
+			 */
+			deleteComment(id) {
+				deleteComment({
+					id: id
+				}).then(res => {
+					if (res.code == 200) {
+						this.$Message.success('删除成功!');
+						this.getPl();
+					} else {
+						this.$Message.error(res.msg);
+					}
+				});
+			},
+			getPl() {
+				getCommentList({
+					post_id: this.pages.post_id,
+					page: this.pages.page,
+					pageSize: this.pages.pageSize
+				}).then(res => {
+					if (res.code == 200) {
+						this.pages.count = res.data.count;
+						this.tableData = res.data.list;
+					}
+				});
+			},
+			async lookPj(row) {
+				this.pages.post_id = row.id
+				await this.getPl()
+				this.drawer = true
+			},
+			openPass(row) {
+				this.showData.id = row.id;
+				this.showModal = true;
+			},
+			showCancel() {
+				this.showModal = false;
+				this.showData = {
+					id: '',
+					status: 1
+				}
+			},
+			passShow() {
+				audit(this.showData).then(res => {
+					if (res.code == 200) {
+						this.$Message.success('审核成功!');
+						this.showCancel();
+						this.getData();
+					} else {
+						this.$Message.error(res.msg);
+					}
+				});
+			},
 			initView: function() {
 				var upHeaders = {};
 				this.upUrl = Setting.apiBaseURL + "/systemv1/upload/index";
@@ -287,8 +449,7 @@
 					if (valid) {
 						this.sendCancel()
 						this.$Message.success('发布成功!');
-					} else {
-					}
+					} else {}
 				})
 			},
 			tabsHandleClick: function(tab, event) {
@@ -306,6 +467,10 @@
 				this.page.page = index;
 				this.getData();
 			},
+			tapPages: function(index) {
+				this.pages.page = index;
+				this.getPl();
+			},
 			/**
 			 * 获取数据
 			 */
@@ -316,21 +481,25 @@
 					page: that.page.page,
 					...that.orderData
 				};
-				// SystemShowTemplateList(data)
-				//     .then(res=>{
-				//         that.loading = false;
-				//         if(res.code == 200) {
-				//             that.orderList = res.data.list;
-				//             that.page.pageSize = res.data.pageSize;
-				//             that.page.count = res.data.pageCount;
-				//         } else {
-				//             that.$alert(res.msg);
-				//         }
-				//     })
-				//     .catch(err=>{
-				//         that.loading = false;
-				//         that.$alert("网络繁忙,加载失败,请稍等片刻在尝试!", '系统提示');
-				//     });
+				getForumList(data)
+					.then(res => {
+						that.loading = false;
+						if (res.code == 200) {
+							that.orderList = res.data.list.map(item => {
+								if (item.images && typeof(item.images) == 'string') {
+									item.images = item.images.split(',');
+								}
+								return item;
+							})
+							that.page.count = res.data.count;
+						} else {
+							that.$alert(res.msg);
+						}
+					})
+					.catch(err => {
+						that.loading = false;
+						that.$alert("网络繁忙,加载失败,请稍等片刻在尝试!", '系统提示');
+					});
 			},
 
 		}

+ 4 - 4
src/components/system/points/list.vue

@@ -529,10 +529,10 @@ export default {
 					this.$Message.error(err.msg);
 				})
 			}).catch(() => {
-				this.$Message({
-					type: 'info',
-					message: '已取消删除'
-				});
+				// this.$Message({
+				// 	type: 'info',
+				// 	message: '已取消删除'
+				// });
 			});
 		},
 		editGood(row) {

+ 20 - 6
src/components/system/points/order.vue

@@ -2,7 +2,7 @@
 	<div style="padding-top: 10px;">
 		<i-page-header :title="pageTitle"></i-page-header>
 		<Card :bordered="false" dis-hover class="ivu-mt">
-			<!-- <Form ref="orderData" :model="orderData">
+			<Form ref="orderData" :model="orderData">
                 <Row :gutter="24" type="flex">
 					<Col>
 					    <FormItem label="UID:" label-for="uid">
@@ -10,20 +10,33 @@
 					    </FormItem>
 					</Col>
 					<Col>
-					    <FormItem label="绑定手机:" label-for="mobile">
-					        <Input placeholder="绑定手机号码" v-model="orderData.mobile"/>
+					    <FormItem label="订单编号:" label-for="uid">
+					        <Input placeholder="订单编号" v-model="orderData.order_id"/>
 					    </FormItem>
 					</Col>
 					<Col>
+					    <FormItem label="订单状态:" label-for="mobile">
+					        <!-- <Input placeholder="绑定手机号码" v-model="orderData.mobile"/> -->
+							<el-select v-model="orderData.status" placeholder="订单状态" style="margin:0px 10px 10px 0px;width: 140px;">
+								<el-option label="全部" value=""></el-option>
+								<el-option label="已完成" :value="3"></el-option>
+								<el-option label="待收货" :value="2"></el-option>
+								<el-option label="待发货" :value="1"></el-option>
+								<el-option label="未支付" :value="0"></el-option>
+								<el-option label="已取消" :value="-1"></el-option>
+							</el-select>
+					    </FormItem>
+					</Col>
+					<!-- <Col>
 					    <FormItem label="购买时间:">
 					        <DatePicker v-model="orderData.time" format="yyyy/MM/dd HH:mm:ss" type="datetimerange" placement="bottom-start" placeholder="自定义时间" style="width: 300px;" class="mr20" :options="options"></DatePicker>
 					    </FormItem>
-					</Col>
+					</Col> -->
 					<Col>
 					    <Button label="default" type="primary" icon="ios-search"  class="mr15" style="margin-top: 32px;" @click="orderSearch()">搜索</Button>
 					</Col>
                 </Row>
-            </Form> -->
+            </Form>
 			<Col>
 			<!-- <Button type="primary" class="export" icon="ios-share-outline" @click="sendOpen">添加商品</Button> -->
 			</Col>
@@ -290,8 +303,9 @@
 				},
 
 				orderData: {
+					order_id: '',
 					uid: "",
-					status: "all",
+					status: "",
 					time: [],
 					mobile: "",
 					show_template_id: "",

+ 14 - 1
src/components/system/setting/sys/index.vue

@@ -140,6 +140,16 @@
               </el-form-item>
               </Col>
             </Row>
+			<Row :gutter="24">
+			  <Col span="12">
+			  <el-form-item label="小程序审核">
+				  <el-radio-group v-model="shareForm.is_show">
+				      <el-radio :label="0">审核中</el-radio>
+				      <el-radio :label="1">已过审</el-radio>
+				    </el-radio-group>
+			  </el-form-item>
+			  </Col>
+			</Row>
             <el-form-item>
               <el-button type="primary" @click="onSubmit">立即修改</el-button>
               <el-button>取消</el-button>
@@ -296,7 +306,8 @@ export default {
         title: "",
         content: "",
         img: "",
-        query: ""
+        query: "",
+		is_show: 0
       },
       weixinForm: {
         appid: "",
@@ -352,6 +363,8 @@ export default {
           this.form = res.data;
           this.weixinForm = res.data.wxconfig;
           this.shareForm = res.data.shareconfig;
+		  this.shareForm.is_show = res.data.shareconfig.is_show * 1
+		  // this.shareForm.is_show = res.data.is_show;
           this.inviteForm = res.data.inviteconfig;
           this.scoreForm = {
             points_transformation: res.data.points_transformation,

+ 470 - 433
src/components/system/user/list.vue

@@ -1,36 +1,36 @@
 <template>
-  <div>
-    <i-page-header :title="pageTitle"></i-page-header>
-    <Card :bordered="false" dis-hover class="ivu-mt">
-      <div class="fx-r" style="padding: 20px 0;">
-        <Input placeholder="绑定的手机号" style="width:120px" class="mr10" v-model="detial.mobile" />
-        <Input placeholder="用户昵称" style="width:120px" class="mr10" v-model="detial.nickname" />
-        <Input placeholder="用户UID" style="width:120px" class="mr10" v-model="detial.uid" />
-        <Input placeholder="父级用户UID" style="width:120px" class="mr10" v-model="detial.parent_uid" />
-        <DatePicker style="width: 250px" format="yyyy-MM-dd HH:mm:ss" v-model="detial.time" type="datetimerange"
-          placement="bottom-start" placeholder="注册时间范围" :options="options"></DatePicker>
-        <el-button type="primary" style="margin-left: 6px;" @click="tapSeach">查询</el-button>
-        <div class="fx-g1"></div>
-      </div>
+	<div>
+		<i-page-header :title="pageTitle"></i-page-header>
+		<Card :bordered="false" dis-hover class="ivu-mt">
+			<div class="fx-r" style="padding: 20px 0;">
+				<Input placeholder="绑定的手机号" style="width:120px" class="mr10" v-model="detial.mobile" />
+				<Input placeholder="用户昵称" style="width:120px" class="mr10" v-model="detial.nickname" />
+				<Input placeholder="用户UID" style="width:120px" class="mr10" v-model="detial.uid" />
+				<Input placeholder="父级用户UID" style="width:120px" class="mr10" v-model="detial.parent_uid" />
+				<DatePicker style="width: 250px" format="yyyy-MM-dd HH:mm:ss" v-model="detial.time" type="datetimerange"
+					placement="bottom-start" placeholder="注册时间范围" :options="options"></DatePicker>
+				<el-button type="primary" style="margin-left: 6px;" @click="tapSeach">查询</el-button>
+				<div class="fx-g1"></div>
+			</div>
 
-      <div class="muser-tab-continer">
-        <a class="muser-tab-a" :class="detial.status == '' ? 'active' : ''" @click="statusChange('')">全部</a>
-        <a class="muser-tab-a" :class="detial.status == '-1' ? 'active' : ''" @click="statusChange('-1')">禁用</a>
-        <a class="muser-tab-a" :class="detial.status == '1' ? 'active' : ''" @click="statusChange('1')">使用</a>
-      </div>
-      <el-table :data="detial.data" v-loading="detial.loading" :stripe="true" :border="true">
-        <el-table-column prop="uid" label="UID" width="80" align="center">
-        </el-table-column>
-        <el-table-column prop="avatar" label="头像" width="80" align="left">
-          <template slot-scope="scope">
-            <img v-lazy="scope.row.avatar" :src="scope.row.avatar" v-image-preview
-              style="width: 60px;cursor: pointer;" />
-          </template>
-        </el-table-column>
+			<div class="muser-tab-continer">
+				<a class="muser-tab-a" :class="detial.status == '' ? 'active' : ''" @click="statusChange('')">全部</a>
+				<a class="muser-tab-a" :class="detial.status == '-1' ? 'active' : ''" @click="statusChange('-1')">禁用</a>
+				<a class="muser-tab-a" :class="detial.status == '1' ? 'active' : ''" @click="statusChange('1')">使用</a>
+			</div>
+			<el-table :data="detial.data" v-loading="detial.loading" :stripe="true" :border="true">
+				<el-table-column prop="uid" label="UID" width="80" align="center">
+				</el-table-column>
+				<el-table-column prop="avatar" label="头像" width="80" align="left">
+					<template slot-scope="scope">
+						<img v-lazy="scope.row.avatar" :src="scope.row.avatar" v-image-preview
+							style="width: 60px;cursor: pointer;" />
+					</template>
+				</el-table-column>
 
-        <el-table-column prop="mobile" width="100" label="绑定手机">
-        </el-table-column>
-        <!-- <el-table-column
+				<el-table-column prop="mobile" width="100" label="绑定手机">
+				</el-table-column>
+				<!-- <el-table-column
 				        prop="parent_uid"
 				        label="上级用户">
 						<template slot-scope="scope">
@@ -40,7 +40,7 @@
 							</div>
 						</template>
 				</el-table-column> -->
-        <!-- <el-table-column
+				<!-- <el-table-column
 				        prop="branchCount"
 						align="center"
 				        label="推广人数">
@@ -48,55 +48,63 @@
 							{{scope.row.branchCount}}
 						</template>
 				</el-table-column> -->
-        <el-table-column prop="nickname" label="昵称">
-        </el-table-column>
-        <el-table-column prop="name" label="姓名">
-        </el-table-column>
-        <el-table-column prop="score" label="积分">
-        </el-table-column>
-        <el-table-column prop="parent_uid" width="100" label="邀请人">
-          <template slot-scope="scope">
-            <div @click="tapUserSeach(scope.row.parent_uid)">
-              <div style="text-align: center;">{{ scope.row.p_nickname }}</div>
-              <div style="text-align: center;">{{ scope.row.p_mobile }}</div>
-            </div>
-          </template>
-        </el-table-column>
-        <el-table-column prop="showTempCount" label="名片模板">
-          <template slot-scope="scope">
-            <i-link :to="'/system/user/showTemplateList?uid=' + scope.row.uid + '&title=' + scope.row.nickname + '的模板'">
-              ({{ scope.row.showTempCount }}) 查看
-            </i-link>
-          </template>
-        </el-table-column>
-        <el-table-column prop="is_info_audit" label="资料审核" width="80" align="left">
-          <template slot-scope="scope">
-            <el-tag type="success" size="mini" v-if="scope.row.is_info_audit == 1">已审核</el-tag>
-            <el-tag type="danger" size="mini" v-if="scope.row.is_info_audit == 0">未审核</el-tag>
-          </template>
-        </el-table-column>
+				<el-table-column prop="nickname" label="昵称">
+				</el-table-column>
+				<el-table-column prop="name" label="姓名">
+				</el-table-column>
+				<el-table-column prop="score" label="积分">
+				</el-table-column>
+				<el-table-column prop="parent_uid" width="100" label="邀请人">
+					<template slot-scope="scope">
+						<div @click="tapUserSeach(scope.row.parent_uid)">
+							<div style="text-align: center;">{{ scope.row.p_nickname }}</div>
+							<div style="text-align: center;">{{ scope.row.p_mobile }}</div>
+						</div>
+					</template>
+				</el-table-column>
+				<el-table-column prop="showTempCount" label="名片模板">
+					<template slot-scope="scope">
+						<i-link
+							:to="'/system/user/showTemplateList?uid=' + scope.row.uid + '&title=' + scope.row.nickname + '的模板'">
+							({{ scope.row.showTempCount }}) 查看
+						</i-link>
+					</template>
+				</el-table-column>
+				<el-table-column prop="is_info_audit" label="资料审核" width="80" align="left">
+					<template slot-scope="scope">
+						<el-tag type="success" size="mini" v-if="scope.row.is_info_audit == 1">已审核</el-tag>
+						<el-tag type="danger" size="mini" v-if="scope.row.is_info_audit == 0">未审核</el-tag>
+					</template>
+				</el-table-column>
 
-        <el-table-column prop="work_type_id" align="center" label="职业名称" width="100">
-          <template slot-scope="scope">
-            <div v-if="scope.row.work_type_id == 0" style="color: #9B9B9B">普通用户</div>
-            <div v-if="scope.row.work_type_id > 0" style="color: #00ac1c">{{ scope.row.work_type_title }}</div>
-          </template>
-        </el-table-column>
+				<el-table-column prop="work_type_id" align="center" label="职业名称" width="100">
+					<template slot-scope="scope">
+						<div v-if="scope.row.work_type_id == 0" style="color: #9B9B9B">普通用户</div>
+						<div v-if="scope.row.work_type_id > 0" style="color: #00ac1c">{{ scope.row.work_type_title }}
+						</div>
+					</template>
+				</el-table-column>
 
 
-        <el-table-column prop="is_type_audit" label="平台认证" width="80" align="left">
-          <template slot-scope="scope">
-            <el-tag type="success" size="mini" v-if="scope.row.is_type_audit == 1">已认证</el-tag>
-            <el-tag type="danger" size="mini" v-if="scope.row.is_type_audit == 0">未认证</el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column prop="status" label="是否禁用" width="80" align="left">
-          <template slot-scope="scope">
-            <el-tag type="success" size="mini" v-if="scope.row.status == 1">使用</el-tag>
-            <el-tag type="danger" size="mini" v-if="scope.row.status == -1">禁用</el-tag>
-          </template>
-        </el-table-column>
-        <!-- <el-table-column
+				<el-table-column prop="is_type_audit" label="平台认证" width="80" align="left">
+					<template slot-scope="scope">
+						<el-tag type="success" size="mini" v-if="scope.row.is_type_audit == 1">已认证</el-tag>
+						<el-tag type="danger" size="mini" v-if="scope.row.is_type_audit == 0">未认证</el-tag>
+					</template>
+				</el-table-column>
+				<el-table-column prop="status" label="是否禁用" width="80" align="left">
+					<template slot-scope="scope">
+						<el-tag type="success" size="mini" v-if="scope.row.status == 1">使用</el-tag>
+						<el-tag type="danger" size="mini" v-if="scope.row.status == -1">禁用</el-tag>
+					</template>
+				</el-table-column>
+				<el-table-column prop="permission" label="发帖权限" width="80" align="left">
+					<template slot-scope="scope">
+						<el-tag type="success" size="mini" v-if="scope.row.permission == 1">开启</el-tag>
+						<el-tag type="danger" size="mini" v-if="scope.row.permission == 0">关闭</el-tag>
+					</template>
+				</el-table-column>
+				<!-- <el-table-column
 				          prop="ercode"
 				          label="推广码"
 				 		 width="80"
@@ -105,394 +113,423 @@
 				 		 <img  v-lazy="scope.row.ercode" :src="scope.row.ercode" v-image-preview style="width: 60px;cursor: pointer;"/>
 				      </template>
 				  </el-table-column> -->
-        <el-table-column prop="regtime" label="注册时间" width="150">
-        </el-table-column>
-        <el-table-column align="center" label="操作" prop="handle" width="200" fixed="right">
-          <template slot-scope="scope">
-            <div>
-              <el-button plain size="mini" @click="tapEdit(scope.row)">编辑</el-button>
-              <el-button plain size="mini" @click="tapScoreEdit(scope.row)">积分补扣</el-button>
+				<el-table-column prop="regtime" label="注册时间" width="150">
+				</el-table-column>
+				<el-table-column align="center" label="操作" prop="handle" width="300" fixed="right">
+					<template slot-scope="scope">
+						<div>
+							<el-button plain size="mini" @click="tapEdit(scope.row)">编辑</el-button>
+							<el-button plain size="mini" @click="tapScoreEdit(scope.row)">积分补扣</el-button>
+							<el-button plain size="mini" @click="openFt(scope.row)">{{scope.row.permission == 0 ? '开放发帖': '关闭发帖' }}</el-button>
 
-              <!-- <Divider type="vertical"/>
+							<!-- <Divider type="vertical"/>
 							<i-link :to="'/system/order/index?uid=' + scope.row.uid + '&title=' +scope.row.nickname+ '的订单列表' ">
 								<el-button plain size="mini" >订单</el-button>
 							</i-link> -->
-            </div>
-            <div style="margin-top: 10px;">
-              <!-- <i-link :to="'/system/circle/list?uid=' + scope.row.uid + '&title=' +scope.row.nickname+ '的动态列表' ">
+						</div>
+						<div style="margin-top: 10px;">
+							<!-- <i-link :to="'/system/circle/list?uid=' + scope.row.uid + '&title=' +scope.row.nickname+ '的动态列表' ">
 								<el-button plain size="mini" >圈子</el-button>
 							</i-link>
 							<Divider type="vertical"/> -->
-              <!-- <i-link :to="'/system/user/moneyDetail?uid=' + scope.row.uid + '&title=' +scope.row.nickname+ '的余额明细' ">
+							<!-- <i-link :to="'/system/user/moneyDetail?uid=' + scope.row.uid + '&title=' +scope.row.nickname+ '的余额明细' ">
 								<el-button plain size="mini" >余额</el-button>
 							</i-link> -->
-              <!-- 							<Divider type="vertical"/>
+							<!-- 							<Divider type="vertical"/>
 							<i-link :to="'/system/user/scoreDetail?uid=' + scope.row.uid + '&title=' +scope.row.nickname+ '的积分明细' ">
 								<el-button plain size="mini" >积分</el-button>
 							</i-link> -->
-            </div>
-          </template>
-        </el-table-column>
-      </el-table>
-      <div class="acea-row row-right page">
-        <Page :total="detial.pageCount" show-elevator show-total @on-change="tapPage" :page-size="detial.pageSize" />
-      </div>
-    </Card>
+						</div>
+					</template>
+				</el-table-column>
+			</el-table>
+			<div class="acea-row row-right page">
+				<Page :total="detial.pageCount" show-elevator show-total @on-change="tapPage"
+					:page-size="detial.pageSize" />
+			</div>
+		</Card>
 
-    <Modal v-model="dialogVisible" :title="title" @on-cancel="editClose">
-      <el-form ref="form" :model="form" label-width="120px">
-        <el-divider content-position="left">用户信息</el-divider>
-        <el-form-item label="用户昵称">
-          <el-input placeholder="请输用户昵称!" v-model="form.nickname"></el-input>
-        </el-form-item>
-        <el-form-item label="用户姓名">
-          <el-input placeholder="请输入用户姓名!" v-model="form.name"></el-input>
-        </el-form-item>
-        <el-form-item label="是否禁用">
-          <el-radio-group v-model="form.status">
-            <el-radio :label="1">使用</el-radio>
-            <el-radio :label="-1">禁用</el-radio>
-          </el-radio-group>
-        </el-form-item>
+		<Modal v-model="dialogVisible" :title="title" @on-cancel="editClose">
+			<el-form ref="form" :model="form" label-width="120px">
+				<el-divider content-position="left">用户信息</el-divider>
+				<el-form-item label="用户昵称">
+					<el-input placeholder="请输用户昵称!" v-model="form.nickname"></el-input>
+				</el-form-item>
+				<el-form-item label="用户姓名">
+					<el-input placeholder="请输入用户姓名!" v-model="form.name"></el-input>
+				</el-form-item>
+				<el-form-item label="是否禁用">
+					<el-radio-group v-model="form.status">
+						<el-radio :label="1">使用</el-radio>
+						<el-radio :label="-1">禁用</el-radio>
+					</el-radio-group>
+				</el-form-item>
 
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="dialogVisible = false">取 消</el-button>
-        <el-button type="primary" @click="subAdmin">确 定</el-button>
-      </span>
-    </Modal>
-    <Modal v-model="scoreDialogVisible" title="积分明细补扣" @on-cancel="editClose">
-      <el-form ref="form" :model="scoreform" label-width="120px">
-        <el-form-item label="增减积分 ">
-          <el-radio-group v-model="scoreform.type">
-            <el-radio :label="1">增加</el-radio>
-            <el-radio :label="-1">减少</el-radio>
-          </el-radio-group>
-        </el-form-item>
-        <el-form-item label="数量">
-          <el-input placeholder="请输入积分数量" v-model="scoreform.into"></el-input>
-        </el-form-item>
-      </el-form>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="scoreDialogVisible = false">取 消</el-button>
-        <el-button type="primary" @click="subAdminscore">确 定</el-button>
-      </span>
-    </Modal>
-  </div>
+			</el-form>
+			<span slot="footer" class="dialog-footer">
+				<el-button @click="dialogVisible = false">取 消</el-button>
+				<el-button type="primary" @click="subAdmin">确 定</el-button>
+			</span>
+		</Modal>
+		<Modal v-model="scoreDialogVisible" title="积分明细补扣" @on-cancel="editClose">
+			<el-form ref="form" :model="scoreform" label-width="120px">
+				<el-form-item label="增减积分 ">
+					<el-radio-group v-model="scoreform.type">
+						<el-radio :label="1">增加</el-radio>
+						<el-radio :label="-1">减少</el-radio>
+					</el-radio-group>
+				</el-form-item>
+				<el-form-item label="数量">
+					<el-input placeholder="请输入积分数量" v-model="scoreform.into"></el-input>
+				</el-form-item>
+			</el-form>
+			<span slot="footer" class="dialog-footer">
+				<el-button @click="scoreDialogVisible = false">取 消</el-button>
+				<el-button type="primary" @click="subAdminscore">确 定</el-button>
+			</span>
+		</Modal>
+	</div>
 </template>
 <script>
-import { SystemUserList, SystemUserSave, SystemUserScoreDetailSave } from "../../../api/system/user";
+	import {
+		SystemUserList,
+		SystemUserSave,
+		SystemUserScoreDetailSave,
+		forumPost
+	} from "../../../api/system/user";
 
-import IPageHeader from "../../../layouts/system/page-header/index";
-import UiUpload from "@/ui/upload/index";
-import Setting from '@/setting';
-export default {
-  name: "SystemUserList",
-  components: { UiUpload, IPageHeader },
-  computed: {},
-  data() {
-    return {
-      scoreDialogVisible: false,
-      scoreform: {
-        uid: '',
-        type: 1,//1:增加 -1:减少
-        into: '',
-      },
-      pageTitle: '用户列表',
-      upHeaders: {},
-      upUrl: "",
-      labelsData: [],
-      detial: {
-        data: [],
-        time: "",
-        nickname: "",
-        mobile: "",
-        status: "",
-        uid: "",
-        parent_uid: "",
+	import IPageHeader from "../../../layouts/system/page-header/index";
+	import UiUpload from "@/ui/upload/index";
+	import Setting from '@/setting';
+	export default {
+		name: "SystemUserList",
+		components: {
+			UiUpload,
+			IPageHeader
+		},
+		computed: {},
+		data() {
+			return {
+				scoreDialogVisible: false,
+				scoreform: {
+					uid: '',
+					type: 1, //1:增加 -1:减少
+					into: '',
+				},
+				pageTitle: '用户列表',
+				upHeaders: {},
+				upUrl: "",
+				labelsData: [],
+				detial: {
+					data: [],
+					time: "",
+					nickname: "",
+					mobile: "",
+					status: "",
+					uid: "",
+					parent_uid: "",
 
-        page: 1,
-        loading: true,
-        pageSize: 0,
-        pageCount: 0,
-      },
+					page: 1,
+					loading: true,
+					pageSize: 0,
+					pageCount: 0,
+				},
 
-      options: {
-        shortcuts: [
-          {
-            text: '今天',
-            value() {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()));
-              return [start, end];
-            }
-          },
-          {
-            text: '昨天',
-            value() {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 1)));
-              end.setTime(end.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate())));
-              return [start, end];
-            }
-          },
-          {
-            text: '最近7天',
-            value() {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 6)));
-              return [start, end];
-            }
-          },
-          {
-            text: '最近30天',
-            value() {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 29)));
-              return [start, end];
-            }
-          },
-          {
-            text: '本月',
-            value() {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), 1)));
-              return [start, end];
-            }
-          },
-          {
-            text: '本年',
-            value() {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.setTime(new Date(new Date().getFullYear(), 0, 1)));
-              return [start, end];
-            }
-          }
-        ]
-      },
+				options: {
+					shortcuts: [{
+							text: '今天',
+							value() {
+								const end = new Date();
+								const start = new Date();
+								start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(), new Date()
+									.getDate()));
+								return [start, end];
+							}
+						},
+						{
+							text: '昨天',
+							value() {
+								const end = new Date();
+								const start = new Date();
+								start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(),
+									new Date().getDate() - 1)));
+								end.setTime(end.setTime(new Date(new Date().getFullYear(), new Date().getMonth(),
+									new Date().getDate())));
+								return [start, end];
+							}
+						},
+						{
+							text: '最近7天',
+							value() {
+								const end = new Date();
+								const start = new Date();
+								start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(),
+									new Date().getDate() - 6)));
+								return [start, end];
+							}
+						},
+						{
+							text: '最近30天',
+							value() {
+								const end = new Date();
+								const start = new Date();
+								start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(),
+									new Date().getDate() - 29)));
+								return [start, end];
+							}
+						},
+						{
+							text: '本月',
+							value() {
+								const end = new Date();
+								const start = new Date();
+								start.setTime(start.setTime(new Date(new Date().getFullYear(), new Date().getMonth(),
+									1)));
+								return [start, end];
+							}
+						},
+						{
+							text: '本年',
+							value() {
+								const end = new Date();
+								const start = new Date();
+								start.setTime(start.setTime(new Date(new Date().getFullYear(), 0, 1)));
+								return [start, end];
+							}
+						}
+					]
+				},
 
-      dialogVisible: false,
-      title: "",
-      form: {
-        status: 1,
-        name: "",
-        nickname: ""
-      },
-    }
-  },
+				dialogVisible: false,
+				title: "",
+				form: {
+					status: 1,
+					name: "",
+					nickname: ""
+				},
+			}
+		},
 
-  created() {
-    if (this.$route.query.title) {
-      this.pageTitle = this.$route.query.title;
-    }
-    if (this.$route.query.uid) {
-      this.detial.uid = parseInt(this.$route.query.uid);
-    }
-    if (this.$route.query.parent_uid) {
-      this.detial.parent_uid = parseInt(this.$route.query.parent_uid);
-    }
-    this.initView();
-  },
-  methods: {
-    subAdminscore() {
-      if (this.scoreform.into == '') {
-        this.$message.error('请输入积分数量!');
-        return;
-      }
-      SystemUserScoreDetailSave(this.scoreform).then(res => {
+		created() {
+			if (this.$route.query.title) {
+				this.pageTitle = this.$route.query.title;
+			}
+			if (this.$route.query.uid) {
+				this.detial.uid = parseInt(this.$route.query.uid);
+			}
+			if (this.$route.query.parent_uid) {
+				this.detial.parent_uid = parseInt(this.$route.query.parent_uid);
+			}
+			this.initView();
+		},
+		methods: {
+			openFt(row) {
+				forumPost({
+					permission: row.permission == 0? 1: 0,
+					uid: row.uid
+				}).then(res => {
+					this.$message.success(res.msg);
+					this.getData();
+				})
+			},
+			subAdminscore() {
+				if (this.scoreform.into == '') {
+					this.$message.error('请输入积分数量!');
+					return;
+				}
+				SystemUserScoreDetailSave(this.scoreform).then(res => {
 
-        if (res.code == 200) {
-          this.scoreDialogVisible = false;
-          this.$message.success(res.msg);
-          this.getData();
-        } else {
-          this.$message.error(res.msg);
-        }
-      })
-    },
-    tapScoreEdit: function (row) {
-      let rows = JSON.parse(JSON.stringify(row));
-      this.scoreform = {
-        uid: rows.uid,
-        type: 1,//1:增加 -1:减少
-        into: '',
-      }
-      this.scoreDialogVisible = true;
-    },
-    /**
-     * 添加
-     */
-    tapAdd: function (sassid) {
-      this.dialogVisible = true;
-      this.$refs['form'].resetFields();
-      this.form = this.$utils.resetFields(this.form, { status: 1 });
-    },
-    initView: function () {
-      var upHeaders = {};
-      this.upUrl = Setting.apiBaseURL + "/systemv1/upload/index";
-      const token = this.$utils.util.cookies.get('system_token');
-      if (token) {
-        upHeaders['SYSTEM-ACC-TOKEN'] = token;
-      }
-      this.upHeaders = upHeaders;
-      this.getData();
-    },
-    statusChange: function (status) {
-      this.detial.status = status;
-      this.detial.page = 1
-      this.getData()
-    },
-    /**
-     * 上传文件
-     * @param res
-     */
-    onUpload: function (res) {
-      if (res.code == -1) {
-        Notice.error({ title: "系统提示", content: res.msg });
-      } else {
-        this.form.imgs.push(res.data.img);
-      }
-    },
-    tapEdit: function (row) {
-      this.form = JSON.parse(JSON.stringify(row));
-      this.dialogVisible = true;
-      this.title = "编辑";
-    },
-    //关闭
-    editClose: function () {
-      this.dialogVisible = false;
-    },
-    /**
-     * 修改数据
-     */
-    subAdmin: function (e) {
-      this.$refs['form'].validate((valid) => {
-        if (valid) {
-          let loading = this.$loading("提交数据中...");
-          var data = {};
-          for (var i in this.form) {
-            data[i] = this.form[i];
-          }
-          SystemUserSave(data)
-            .then(res => {
-              loading.close();
-              if (res.code == 200) {
-                this.dialogVisible = false;
-                this.$Message.success("操作成功");
-                this.getData();
-              } else {
-                this.$alert(res.msg, '系统提示');
-              }
-            })
-            .catch(err => {
-              loading.close();
-              this.$alert("网络繁忙,加载失败,请稍等片刻在尝试!", '系统提示');
-            });
-        }
-      });
-    },
+					if (res.code == 200) {
+						this.scoreDialogVisible = false;
+						this.$message.success(res.msg);
+						this.getData();
+					} else {
+						this.$message.error(res.msg);
+					}
+				})
+			},
+			tapScoreEdit: function(row) {
+				let rows = JSON.parse(JSON.stringify(row));
+				this.scoreform = {
+					uid: rows.uid,
+					type: 1, //1:增加 -1:减少
+					into: '',
+				}
+				this.scoreDialogVisible = true;
+			},
+			/**
+			 * 添加
+			 */
+			tapAdd: function(sassid) {
+				this.dialogVisible = true;
+				this.$refs['form'].resetFields();
+				this.form = this.$utils.resetFields(this.form, {
+					status: 1
+				});
+			},
+			initView: function() {
+				var upHeaders = {};
+				this.upUrl = Setting.apiBaseURL + "/systemv1/upload/index";
+				const token = this.$utils.util.cookies.get('system_token');
+				if (token) {
+					upHeaders['SYSTEM-ACC-TOKEN'] = token;
+				}
+				this.upHeaders = upHeaders;
+				this.getData();
+			},
+			statusChange: function(status) {
+				this.detial.status = status;
+				this.detial.page = 1
+				this.getData()
+			},
+			/**
+			 * 上传文件
+			 * @param res
+			 */
+			onUpload: function(res) {
+				if (res.code == -1) {
+					Notice.error({
+						title: "系统提示",
+						content: res.msg
+					});
+				} else {
+					this.form.imgs.push(res.data.img);
+				}
+			},
+			tapEdit: function(row) {
+				this.form = JSON.parse(JSON.stringify(row));
+				this.dialogVisible = true;
+				this.title = "编辑";
+			},
+			//关闭
+			editClose: function() {
+				this.dialogVisible = false;
+			},
+			/**
+			 * 修改数据
+			 */
+			subAdmin: function(e) {
+				this.$refs['form'].validate((valid) => {
+					if (valid) {
+						let loading = this.$loading("提交数据中...");
+						var data = {};
+						for (var i in this.form) {
+							data[i] = this.form[i];
+						}
+						SystemUserSave(data)
+							.then(res => {
+								loading.close();
+								if (res.code == 200) {
+									this.dialogVisible = false;
+									this.$Message.success("操作成功");
+									this.getData();
+								} else {
+									this.$alert(res.msg, '系统提示');
+								}
+							})
+							.catch(err => {
+								loading.close();
+								this.$alert("网络繁忙,加载失败,请稍等片刻在尝试!", '系统提示');
+							});
+					}
+				});
+			},
 
 
-    //搜索栏目
-    tapSeach: function () {
-      this.detial.page = 1;
-      this.getData();
-    },
-    tapUserSeach: function (uid) {
-      this.detial.page = 1;
-      this.detial.uid = uid;
-      this.getData();
-    },
-    //分页
-    tapPage: function (page) {
-      this.detial.page = page;
-      this.getData();
-    },
-    getData: function () {
-      var data = {};
-      this.detial.loading = true;
-      data.page = this.detial.page;
-      data.status = this.detial.status;
-      data.uid = this.detial.uid;
-      data.nickname = this.detial.nickname;
-      data.time = this.detial.time;
-      data.mobile = this.detial.mobile;
-      data.parent_uid = this.detial.parent_uid;
-      SystemUserList(data)
-        .then(res => {
-          this.detial.loading = false;
-          this.detial.data = res.data.list;
-          this.detial.pageSize = res.data.pageSize;
-          this.detial.pageCount = res.data.pageCount;
-          this.detial.waitCount = res.data.waitCount;
-        })
-        .catch(err => {
-          this.detial.loading = false;
-          this.$alert('网络繁忙,加载失败,请稍等片刻在尝试!', '系统提示');
-        });
-    },
+			//搜索栏目
+			tapSeach: function() {
+				this.detial.page = 1;
+				this.getData();
+			},
+			tapUserSeach: function(uid) {
+				this.detial.page = 1;
+				this.detial.uid = uid;
+				this.getData();
+			},
+			//分页
+			tapPage: function(page) {
+				this.detial.page = page;
+				this.getData();
+			},
+			getData: function() {
+				var data = {};
+				this.detial.loading = true;
+				data.page = this.detial.page;
+				data.status = this.detial.status;
+				data.uid = this.detial.uid;
+				data.nickname = this.detial.nickname;
+				data.time = this.detial.time;
+				data.mobile = this.detial.mobile;
+				data.parent_uid = this.detial.parent_uid;
+				SystemUserList(data)
+					.then(res => {
+						this.detial.loading = false;
+						this.detial.data = res.data.list;
+						this.detial.pageSize = res.data.pageSize;
+						this.detial.pageCount = res.data.pageCount;
+						this.detial.waitCount = res.data.waitCount;
+					})
+					.catch(err => {
+						this.detial.loading = false;
+						this.$alert('网络繁忙,加载失败,请稍等片刻在尝试!', '系统提示');
+					});
+			},
 
-  }
-}
+		}
+	}
 </script>
 <style scoped>
-iframe.videoIframe {
-  border: 0px;
-  padding: 0px;
-}
+	iframe.videoIframe {
+		border: 0px;
+		padding: 0px;
+	}
 
-.el-dialog__body {
-  padding: 0px;
-}
+	.el-dialog__body {
+		padding: 0px;
+	}
 
-.el-dialog__body iframe body {
-  padding: 0px;
-}
+	.el-dialog__body iframe body {
+		padding: 0px;
+	}
 
-.muser-tab-continer {
-  border: 1px solid #EEEEEE
-}
+	.muser-tab-continer {
+		border: 1px solid #EEEEEE
+	}
 
-a.muser-tab-a {
-  display: inline-block;
-  padding: 0px 28px;
-  height: 42px;
-  line-height: 42px;
-  border-bottom: 3px solid transparent;
-  font-size: 17px;
-  color: #595959;
-}
+	a.muser-tab-a {
+		display: inline-block;
+		padding: 0px 28px;
+		height: 42px;
+		line-height: 42px;
+		border-bottom: 3px solid transparent;
+		font-size: 17px;
+		color: #595959;
+	}
 
-a.muser-tab-a.active {
-  border-bottom: 3px solid #EA312B;
-  color: #EA312B
-}
+	a.muser-tab-a.active {
+		border-bottom: 3px solid #EA312B;
+		color: #EA312B
+	}
 
-.upimg-item {
-  width: 82px;
-  height: 82px;
-  margin-right: 5px;
-  overflow: hidden;
-  float: left;
-  margin-bottom: 5px;
-  position: relative;
-}
+	.upimg-item {
+		width: 82px;
+		height: 82px;
+		margin-right: 5px;
+		overflow: hidden;
+		float: left;
+		margin-bottom: 5px;
+		position: relative;
+	}
 
-.upimg-item img {
-  width: 82px;
-  cursor: pointer;
-}
+	.upimg-item img {
+		width: 82px;
+		cursor: pointer;
+	}
 
-.img-remove-btn {
-  position: absolute;
-  top: 0px;
-  right: 0px;
-  font-size: 24px;
-}
-</style>
+	.img-remove-btn {
+		position: absolute;
+		top: 0px;
+		right: 0px;
+		font-size: 24px;
+	}
+</style>