Commit becc8fc5 by swl

gx

parent 0a020f36
No preview for this file type
const domain = {
// dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 姚镇接口
dev: "http://81.69.231.72:8881", // 测试接口
// dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
// dev: "http://81.69.231.72:8881", // 测试接口
dev: "https://exam.smart-zj.cn:9100/smartExam/", // 新正式接口
};
// 腾讯地图 key
const map = {
......
......@@ -5,9 +5,9 @@ import { TokenKey } from "@/utils/auth";
const config = {
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://81.69.231.72:8881", // 测试地址
// proxy: "http://192.168.3.87:8881", //本地
// proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
// proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
// proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口
......
<template>
<div>
<el-tabs v-model="activeName" @tab-click="handleClick">
<div class="search-wrapper">
<el-form
:inline="true"
:model="searchForm"
class="search_form"
style="text-align: left"
>
<el-form-item label="入驻名称">
<el-input
v-model="searchForm.name"
placeholder="请输入入驻名称"
clearable
></el-input>
</el-form-item>
<el-form-item label="入驻名称">
<el-input
v-model="searchForm.categoryId"
placeholder="请输入入驻名称"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
<br />
<el-form-item label="状态" style="margin-top: 10px">
<el-radio-group v-model="searchForm.state" @change="onSubmit">
<el-radio label="">全部</el-radio>
<el-radio :label="0">未审核</el-radio>
<el-radio :label="1">通过</el-radio>
<el-radio :label="4">拒绝</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
</div>
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
:label="`我的待办 ( ${taskData.myTask} )`"
name="1"
......@@ -13,7 +49,7 @@
:label="`所有任务 ( ${taskData.allTask} )`"
name="3"
></el-tab-pane>
</el-tabs>
</el-tabs> -->
<div class="table-wrapper">
<table-template
......@@ -58,18 +94,22 @@
<el-button type="primary" size="mini" round @click="view(scope.row)"
>查看</el-button
>
<el-button
type="success"
size="mini"
round
@click="reviewHandle('pass', scope.row)"
class="btn"
>通过
</el-button>
<el-popconfirm
title="确定通过此申请吗?"
style="margin-left: 10px"
@confirm="reviewHandle('pass', scope.row)"
v-if="scope.row.state == 0 && scope.row.state != 1"
>
<el-button type="success" size="mini" round slot="reference"
>通过
</el-button>
</el-popconfirm>
<el-popconfirm
title="确定拒绝此申请吗?"
@confirm="reviewHandle('refuse', scope.row)"
v-if="scope.row.state == 0 && scope.row.state != 4"
style="margin-left: 10px"
>
<el-button type="danger" size="mini" round slot="reference"
>拒绝
......@@ -90,12 +130,16 @@ export default {
components: { tableTemplate },
data() {
return {
taskData: {
myTask: 1,
finishedTask: 2,
allTask: 3,
searchForm: {
name: "",
state: "",
},
activeName: "1",
// taskData: {
// myTask: 1,
// finishedTask: 2,
// allTask: 3,
// },
// activeName: "1",
loading: false,
tableData: [
{
......@@ -158,12 +202,13 @@ export default {
methods: {
init() {
applyList({
// state:'',
name: this.searchForm.name,
state: this.searchForm.state,
type: 0,
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
}).then((res) => {
this.tableData = res.data.list;
this.tableData = res.data.list ? res.data.list : [];
this.pagination.total = res.data.total;
});
},
......@@ -173,13 +218,13 @@ export default {
if (type === "pass") {
params = {
id: row.id,
state: 0,
state: 1,
user: this.userName,
};
} else {
params = {
id: row.id,
state: 1,
state: 4,
user: this.userName,
};
}
......@@ -201,6 +246,9 @@ export default {
jumpPage() {
this.init();
},
onSubmit() {
this.init();
},
},
};
</script>
......
<template>
<div>
<el-tabs v-model="activeName" @tab-click="handleClick">
<div class="search-wrapper">
<el-form
:inline="true"
:model="searchForm"
class="search_form"
style="text-align: left"
>
<el-form-item label="用户名称">
<el-input
v-model="searchForm.userName"
placeholder="请输入用户名称"
clearable
></el-input>
</el-form-item>
<el-form-item label="详细地址">
<el-input
v-model="searchForm.address"
placeholder="请输入详细地址"
clearable
></el-input>
</el-form-item>
<el-form-item label="需求类型">
<el-select
v-model="searchForm.categoryId"
clearable
placeholder="请选择需求类型"
size="medium"
>
<el-option
v-for="item in typeList"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
<br />
<el-form-item label="状态" style="margin-top: 10px">
<el-radio-group v-model="searchForm.state" @change="onSubmit">
<el-radio label="">全部</el-radio>
<el-radio :label="0">未审核</el-radio>
<el-radio :label="1">通过</el-radio>
<el-radio :label="4">拒绝</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
</div>
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
:label="`我的待办 ( ${taskData.myTask} )`"
name="1"
......@@ -13,7 +65,7 @@
:label="`所有任务 ( ${taskData.allTask} )`"
name="3"
></el-tab-pane>
</el-tabs>
</el-tabs> -->
<div class="table-wrapper">
<table-template
......@@ -58,18 +110,22 @@
<el-button type="primary" size="mini" round @click="view(scope.row)"
>查看</el-button
>
<el-button
type="success"
size="mini"
round
@click="pass(scope.row)"
class="btn"
>通过
</el-button>
<el-popconfirm
title="确定通过此申请吗?"
style="margin-left: 10px"
@confirm="reviewHandle('pass', scope.row)"
v-if="scope.row.state == 0 && scope.row.state != 1"
>
<el-button type="success" size="mini" round slot="reference"
>通过
</el-button>
</el-popconfirm>
<el-popconfirm
title="确定拒绝此申请吗?"
@confirm="deny(scope.row)"
@confirm="reviewHandle('refuse', scope.row)"
v-if="scope.row.state == 0 && scope.row.state != 4"
style="margin-left: 10px"
>
<el-button type="danger" size="mini" round slot="reference"
>拒绝
......@@ -84,17 +140,27 @@
<script>
import tableTemplate from "@/components/Table";
import { categoryList, helpList, helpReview } from "@/api/livingCircle";
export default {
name: "enter",
components: { tableTemplate },
data() {
return {
taskData: {
myTask: 1,
finishedTask: 2,
allTask: 3,
typeList: [],
searchForm: {
userName: "",
state: "",
address: "",
categoryId: "",
},
activeName: "1",
// taskData: {
// myTask: 1,
// finishedTask: 2,
// allTask: 3,
// },
// activeName: "1",
loading: false,
tableData: [
{
......@@ -104,13 +170,14 @@ export default {
wx: "1",
},
],
userName: "",
tableColumns: [
{
key: "name",
label: "商家名称",
key: "userName",
label: "用户名称",
},
{
key: "type",
key: "categoryName",
label: "经营类型",
},
......@@ -148,11 +215,60 @@ export default {
},
};
},
created() {
this.userName = localStorage.getItem("userName");
this.getCategoryList();
this.init();
},
methods: {
init() {},
pass() {},
deny() {},
init() {
let params = {
address: "",
categoryId: this.searchForm.categoryId,
state: this.searchForm.state,
userName: this.searchForm.userName,
pageNum: this.pagination.currentPage,
pageSize: this.pagination.pageSize,
};
helpList(params).then((res) => {
if (res.code == 200) {
this.tableData = res.data.list;
this.pagination.total = res.data.total;
}
});
},
reviewHandle(type, row) {
let params = {};
if (type === "pass") {
params = {
id: row.id,
state: 1,
user: this.userName,
};
} else {
params = {
id: row.id,
state: 4,
user: this.userName,
};
}
helpReview(params).then((res) => {
if (res.code == 200) {
this.$message.success("审核成功");
this.init();
}
});
},
view() {},
getCategoryList() {
categoryList().then((res) => {
if (res.code == 200) {
this.typeList = res.data;
}
});
},
handleClick() {
this.loading = true;
this.init();
......@@ -162,6 +278,9 @@ export default {
jumpPage() {
this.init();
},
onSubmit() {
this.init();
},
},
};
</script>
......
......@@ -100,7 +100,7 @@
<script>
import TableTemplate from "@/components/Table";
import { helpList, categoryList } from "@/api/livingCircle";
import { helpList, categoryList, helpReview } from "@/api/livingCircle";
export default {
components: { TableTemplate },
......@@ -214,6 +214,18 @@ export default {
this.dialogVisible = true;
},
del() {},
reviewHandle(row, state) {
let params = {
id: row.id,
state: state,
user: localStorage.getItem("userName"),
};
helpReview(params).then((res) => {
if (res.code == 200) {
this.$message.success("审核成功");
}
});
},
},
};
</script>
......
const env = process.env.NODE_ENV === "production";
// const publicPath = env ? "/manage-h5/" : "/"; //正式
const publicPath = env ? "/smartExam-h5/" : "/"; //测试
const publicPath = env ? "/manage-h5/" : "/"; //正式
// const publicPath = env ? "/smartExam-h5/" : "/"; //测试
module.exports = {
publicPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment