projectManagement.vue 2.78 KB
<template>
	<view class="page">
		<!-- 搜索 -->
		<view class="head-search">
			<view class="search">
					<input class="uni-input"  placeholder="请输入关键词" />
				<view class="icon">
					<image :src="$imgUrl('/search.png')"  ></image>
				</view>
				
			</view>
		</view>
		<!-- 创建按钮 -->
		<!-- <view class="page-footer" @click="createWen">
		  <view class="footer-buy">
		    <view class="cart-add">
		      <text>创建活动</text>
		    </view>
		  </view>
		</view> -->
		
		<view class="screen-list">
			<view :class="listIn == index ?'color':''" @click="sel(index)" v-for="(item,index) in shenlist">{{item}}</view>
		</view>
		<!-- 订单列表 -->
		<view class="goods-data">
			<view class="goods-list">
				<view  class="goods-border" v-for="(item,index) in tableData" :key="index">
					<view class="list ">
						<view class="thumb">
							<image :src="item.coverImage || $imgUrl('/img/2.jpg')" mode=""></image>
						</view>
						<view class="item">
							<view class="">
								<text class="one-omit">方案编号:{{item.id}}</text>
							</view>
							<view class="title">
								<text class="one-omit color">方案标题:{{item.schemeTitle}}</text>
							</view>
							<view class="title">
								<text class="one-omit color">创建者:{{item.createUser}}</text>
							</view>
							<view class="title">
								<text class="one-omit color">创建时间:{{item.createDate}}</text>
							</view>
							<view class="title">
								<text class="one-omit color">投放渠道:{{item.promotionContent}}</text>
							</view>
						</view>
					</view>
				<view class="canyu">
					<view class="bj" @click="edit(item)">编辑</view>
					<view class="tij">提交审核</view>
					<!-- <view class="xq">查看详情</view> -->
					<view class="close" @click="del(item.id)">删除</view>
				</view>
				</view>
			
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shenlist:['全部'],
				listIn:0,
				tableData:[],
				pageindex: {
					pageNumber: 1,
					pageSize: 10
				},
			};
		},
		mounted(){
			this.getALL()
		},
		methods: {
			getALL(){
				  this.pageindex.createUser =uni.getStorageSync('shopId')
				this.$http.sendRequest('/cerePromotion/queryByPage', 'POST', this.pageindex,1).then(res => {
					//成功回调
					this.tableData = res.data.data.content
				})
			},
			sel(val){
				this.listIn = val
			},
			reconciliationdetail() {
	
			},
			del(ids){
				this.$http.sendRequest('/cerePromotion/deleteById', 'POST', {id:ids},1).then(res => {
					//成功回调
					this.getALL()
				})
			},
			edit(item){
				let val = JSON.stringify(item)
				uni.navigateTo({
					url:`/pages/application/application?item=${val}`
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	@import 'projectManagement.scss';
</style>