Commit 12ce1a6a by baihong

add:获取照片列表,照片审核

parent e10dcaa9
...@@ -29,3 +29,12 @@ export const getActivityConfigByPay = (data) => { ...@@ -29,3 +29,12 @@ export const getActivityConfigByPay = (data) => {
export const update = (data) => { export const update = (data) => {
return $http.putObj('/cms/configs/update', data) return $http.putObj('/cms/configs/update', data)
} }
//照片列表
export const activityFilesQueryList = (data) => {
return $http.get('/cms/activityFiles/queryList', data)
}
//审核照片
export const checkActivityFile = (data) => {
return $http.putObj('/cms/activityFiles/checkActivityFile', data)
}
\ No newline at end of file
...@@ -3,10 +3,15 @@ ...@@ -3,10 +3,15 @@
<div class="topSearch"> <div class="topSearch">
<div class="left"> <div class="left">
用户搜索: 用户搜索:
<Input style="width:150px" enter-button placeholder="请输入" /> <Input
v-model="name"
style="width:150px"
enter-button
placeholder="请输入"
/>
<span style="margin-left:10px">选择日期:</span> <span style="margin-left:10px">选择日期:</span>
<DatePicker <DatePicker
:value="value2" v-model="date"
format="yyyy/MM/dd" format="yyyy/MM/dd"
type="daterange" type="daterange"
placement="bottom-end" placement="bottom-end"
...@@ -14,9 +19,10 @@ ...@@ -14,9 +19,10 @@
style="width: 200px" style="width: 200px"
></DatePicker> ></DatePicker>
<span style="margin-left:10px"> 审核状态:</span> <span style="margin-left:10px"> 审核状态:</span>
<Select style="width: 150px" placeholder="请选择"> <Select v-model="checkStatu" style="width: 150px" placeholder="请选择">
<Option value="beijing">真我币</Option> <Option :value="0">待审核</Option>
<Option value="shanghai">优惠券</Option> <Option :value="1">已通过</Option>
<Option :value="2">已拒绝</Option>
</Select> </Select>
<Button type="primary" @click="goDetail">查 询</Button> <Button type="primary" @click="goDetail">查 询</Button>
<Button type="primary" ghost>重 置</Button> <Button type="primary" ghost>重 置</Button>
...@@ -66,16 +72,25 @@ ...@@ -66,16 +72,25 @@
<a @click="goTheme(row)">编辑</a> <a @click="goTheme(row)">编辑</a>
</template> </template>
</Table> </Table>
<Pager
class="margin-top-10"
:config="config"
@on-change="handlePager"
></Pager>
<Modal v-model="modal1" title="拒绝" @on-ok="ok" @on-cancel="cancel"> <Modal v-model="modal1" title="拒绝" @on-ok="ok" @on-cancel="cancel">
<Input v-model="value5" type="textarea" placeholder="请输入退回原因" /> <Input v-model="remark" type="textarea" placeholder="请输入退回原因" />
</Modal> </Modal>
<Modal v-model="modal2" title="通过" @on-ok="ok" @on-cancel="cancel"> <Modal v-model="modal2" title="通过" @on-ok="ok" @on-cancel="cancel">
<Form ref="formCustom" :label-width="70"> <Form ref="formCustom" :label-width="70">
<FormItem label="评论内容" prop="passwd"> <FormItem label="评论内容" prop="passwd">
<Input v-model="value5" type="textarea" placeholder="请输入评论内容" /> <Input
v-model="comment"
type="textarea"
placeholder="请输入评论内容"
/>
</FormItem> </FormItem>
<FormItem label="打赏" prop="passwdCheck"> <FormItem label="打赏" prop="passwdCheck">
<Input type="number" ></Input> <Input v-model="award_amount" type="number"></Input>
</FormItem> </FormItem>
</Form> </Form>
</Modal> </Modal>
...@@ -83,15 +98,30 @@ ...@@ -83,15 +98,30 @@
</template> </template>
<script> <script>
import { getScenes, delScenes, editScenes } from "@/api/scenes"; import {
activityFilesQueryList,
checkActivityFile
} from "@/api/clock/activityClocks";
import Pager from "@/view/common/Pager.vue";
export default { export default {
name: "categories", name: "categories",
components: {}, components: {
Pager
},
data() { data() {
return { return {
config: { total: 0, size: 10, current: 1 },
modal1: false, modal1: false,
modal2: true, modal2: true,
name: "",
date: [],
checkStatu: null,
award_amount:null,
comment:'',
remark:'',
data: [], data: [],
pageIndex: 1,
pageSize: 10,
columns: [ columns: [
{ {
title: "活动日期", title: "活动日期",
...@@ -125,8 +155,38 @@ export default { ...@@ -125,8 +155,38 @@ export default {
}; };
}, },
methods: { methods: {
goDetail() { search() {
this.$router.push({ path: "/signIn/detail", query: { id: "new" } }); let params = {
name: this.name,
language: "cn",
objectType: 1,
startDate: this.date[0],
endDate: this.date[1],
pageIndex: this.pageIndex,
pageSize: this.pageSize
};
activityFilesQueryList(params).then(res => {
this.config.total = res.total;
this.data = res.data;
});
},
checkActivity() {
let params = {
award_amount: this.award_amount,
check_status: 1,
comment: this.comment,
ids:[],
object_type:1,
remark:this.remark
};
checkActivityFile(params).then(res => {
console.log(res)
});
},
handlePager(pager) {
this.pageIndex = pager.current;
this.pageSize = pager.size;
this.search();
} }
}, },
mounted() {} mounted() {}
......
...@@ -3,10 +3,15 @@ ...@@ -3,10 +3,15 @@
<div class="topSearch"> <div class="topSearch">
<div class="left"> <div class="left">
用户搜索: 用户搜索:
<Input style="width:150px" enter-button placeholder="请输入" /> <Input
v-model="name"
style="width:150px"
enter-button
placeholder="请输入"
/>
<span style="margin-left:10px">选择日期:</span> <span style="margin-left:10px">选择日期:</span>
<DatePicker <DatePicker
:value="value2" v-model="date"
format="yyyy/MM/dd" format="yyyy/MM/dd"
type="daterange" type="daterange"
placement="bottom-end" placement="bottom-end"
...@@ -14,9 +19,10 @@ ...@@ -14,9 +19,10 @@
style="width: 200px" style="width: 200px"
></DatePicker> ></DatePicker>
<span style="margin-left:10px"> 审核状态:</span> <span style="margin-left:10px"> 审核状态:</span>
<Select style="width: 150px" placeholder="请选择"> <Select v-model="checkStatu" style="width: 150px" placeholder="请选择">
<Option value="beijing">真我币</Option> <Option :value="0">待审核</Option>
<Option value="shanghai">优惠券</Option> <Option :value="1">已通过</Option>
<Option :value="2">已拒绝</Option>
</Select> </Select>
<Button type="primary" @click="goDetail">查 询</Button> <Button type="primary" @click="goDetail">查 询</Button>
<Button type="primary" ghost>重 置</Button> <Button type="primary" ghost>重 置</Button>
...@@ -66,26 +72,56 @@ ...@@ -66,26 +72,56 @@
<a @click="goTheme(row)">编辑</a> <a @click="goTheme(row)">编辑</a>
</template> </template>
</Table> </Table>
<Modal <Pager
v-model="modal1" class="margin-top-10"
title="拒绝" :config="config"
@on-ok="ok" @on-change="handlePager"
@on-cancel="cancel" ></Pager>
> <Modal v-model="modal1" title="拒绝" @on-ok="ok" @on-cancel="cancel">
<Input v-model="value5" type="textarea" placeholder="请输入退回原因" /> <Input v-model="remark" type="textarea" placeholder="请输入退回原因" />
</Modal>
<Modal v-model="modal2" title="通过" @on-ok="ok" @on-cancel="cancel">
<Form ref="formCustom" :label-width="70">
<FormItem label="评论内容" prop="passwd">
<Input
v-model="comment"
type="textarea"
placeholder="请输入评论内容"
/>
</FormItem>
<FormItem label="打赏" prop="passwdCheck">
<Input v-model="award_amount" type="number"></Input>
</FormItem>
</Form>
</Modal> </Modal>
</div> </div>
</template> </template>
<script> <script>
import { getScenes, delScenes, editScenes } from "@/api/scenes"; import {
activityFilesQueryList,
checkActivityFile
} from "@/api/clock/activityClocks";
import Pager from "@/view/common/Pager.vue";
export default { export default {
name: "categories", name: "categories",
components: {}, components: {
Pager
},
data() { data() {
return { return {
modal1: true, config: { total: 0, size: 10, current: 1 },
modal1: false,
modal2: true,
name: "",
date: [],
checkStatu: null,
award_amount:null,
comment:'',
remark:'',
data: [], data: [],
pageIndex: 1,
pageSize: 10,
columns: [ columns: [
{ {
title: "活动日期", title: "活动日期",
...@@ -119,8 +155,38 @@ export default { ...@@ -119,8 +155,38 @@ export default {
}; };
}, },
methods: { methods: {
goDetail() { search() {
this.$router.push({ path: "/signIn/detail", query: { id: "new" } }); let params = {
name: this.name,
language: "cn",
objectType: 2,
startDate: this.date[0],
endDate: this.date[1],
pageIndex: this.pageIndex,
pageSize: this.pageSize
};
activityFilesQueryList(params).then(res => {
this.config.total = res.total;
this.data = res.data;
});
},
checkActivity() {
let params = {
award_amount: this.award_amount,
check_status: 1,
comment: this.comment,
ids:[],
object_type:2,
remark:this.remark
};
checkActivityFile(params).then(res => {
console.log(res)
});
},
handlePager(pager) {
this.pageIndex = pager.current;
this.pageSize = pager.size;
this.search();
} }
}, },
mounted() {} mounted() {}
......
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