Blame view

lvdao-miniapp/pagesA/projectManagement/projectManagement.vue 3.53 KB
3f535f30   杨鑫   '初始'
1
2
3
  <template>
  	<view class="page">
  		<!-- 搜索 -->
40a0b33d   杨鑫   '最新'
4
  		<!-- <view class="head-search">
3f535f30   杨鑫   '初始'
5
6
7
8
9
10
11
  			<view class="search">
  					<input class="uni-input"  placeholder="请输入关键词" />
  				<view class="icon">
  					<image :src="$imgUrl('/search.png')"  ></image>
  				</view>
  				
  			</view>
40a0b33d   杨鑫   '最新'
12
  		</view> -->
3f535f30   杨鑫   '初始'
13
14
15
16
17
18
19
20
21
22
  		<!-- 创建按钮 -->
  		<!-- <view class="page-footer" @click="createWen">
  		  <view class="footer-buy">
  		    <view class="cart-add">
  		      <text>创建活动</text>
  		    </view>
  		  </view>
  		</view> -->
  		
  		<view class="screen-list">
40a0b33d   杨鑫   '最新'
23
  			<view style="margin-right:20px;" :class="listIn == index ?'color':''" @click="sel(item.state,index)" v-for="(item,index) in shenlist">{{item.title}}</view>
3f535f30   杨鑫   '初始'
24
25
26
27
28
29
30
  		</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">
40a0b33d   杨鑫   '最新'
31
  							<image :src="$img+item.coverImage || $imgUrl('/img/2.jpg')" mode=""></image>
3f535f30   杨鑫   '初始'
32
33
  						</view>
  						<view class="item">
6c268f28   杨鑫   最新1
34
  							<view class="one-omit">
40a0b33d   杨鑫   '最新'
35
  								<text class="one-omit">宣传标题:{{item.schemeTitle}}</text>
3f535f30   杨鑫   '初始'
36
37
  							</view>
  							<view class="title">
40a0b33d   杨鑫   '最新'
38
  								<text class="one-omit color">创建人:{{item.createUser}}</text>
3f535f30   杨鑫   '初始'
39
40
41
42
43
  							</view>
  							<view class="title">
  								<text class="one-omit color">创建时间:{{item.createDate}}</text>
  							</view>
  							<view class="title">
40a0b33d   杨鑫   '最新'
44
  								<text class="one-omit color">审核状态: {{item.state == '1'?'待提交':item.state == '2'?'待审批':item.state == '5'?'审核通过':'已驳回'}}</text>
3f535f30   杨鑫   '初始'
45
46
47
48
  							</view>
  						</view>
  					</view>
  				<view class="canyu">
40a0b33d   杨鑫   '最新'
49
50
51
52
  					<view class="xq"  @click="godetle(item.id)">查看详情</view>
  					<view class="tij" @click="tijiao(item.id)" v-if="item.state =='1'">提交审核</view>
  					<!-- <view class="bj" @click="edit(item)">编辑</view> -->
  					<view class="close" @click="del(item.id)" v-if="item.state == '1'">删除</view>
3f535f30   杨鑫   '初始'
53
54
55
56
57
58
59
60
61
62
63
64
  				</view>
  				</view>
  			
  			</view>
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
40a0b33d   杨鑫   '最新'
65
66
67
68
69
  				shenlist:[{
  					state:'0',
  					title:'全部'
  				},
  				{
40a0b33d   杨鑫   '最新'
70
71
72
  					state:'2',
  					title:'待审核'
  				}],
3f535f30   杨鑫   '初始'
73
74
75
  				listIn:0,
  				tableData:[],
  				pageindex: {
d5f60c72   杨鑫   '最新'
76
  					pageNumber: 0,
40a0b33d   杨鑫   '最新'
77
78
79
  					pageSize: 10,
  					createUser:'',
  					schemeTitle:''
3f535f30   杨鑫   '初始'
80
81
82
83
84
85
86
87
  				},
  			};
  		},
  		mounted(){
  			this.getALL()
  		},
  		methods: {
  			getALL(){
40a0b33d   杨鑫   '最新'
88
  				this.pageindex.createUser =uni.getStorageSync('user').phone
3f535f30   杨鑫   '初始'
89
90
91
92
93
  				this.$http.sendRequest('/cerePromotion/queryByPage', 'POST', this.pageindex,1).then(res => {
  					//成功回调
  					this.tableData = res.data.data.content
  				})
  			},
40a0b33d   杨鑫   '最新'
94
95
96
97
98
  			sel(val,index){
  				console.log(val)
  				this.listIn = index 
  				if(val=='0'){
  					this.pageindex={
d5f60c72   杨鑫   '最新'
99
  					pageNumber: 0,
40a0b33d   杨鑫   '最新'
100
101
102
103
104
105
106
  					pageSize: 10,
  					createUser:''
  					}
  				}else{
  					this.pageindex.state = val
  				}
  				this.getALL()
3f535f30   杨鑫   '初始'
107
108
109
110
111
112
113
114
115
116
117
118
119
  			},
  			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({
40a0b33d   杨鑫   '最新'
120
121
122
123
124
125
126
127
128
129
130
131
  					url:`/pagesA/application/application?item=${val}`
  				})
  			},
  			tijiao(ids){
  				this.$http.sendRequest('/cerePromotion/editPromotionPlanning', 'POST', {id:ids,state:'2'},1).then(res => {
  					//成功回调
  					this.getALL()
  				})
  			},
  			godetle(id){
  				uni.navigateTo({
  					url:`/pagesA/projectManagement/projectDetails?id=${id}`
3f535f30   杨鑫   '初始'
132
  				})
40a0b33d   杨鑫   '最新'
133
134
  			},
  			
3f535f30   杨鑫   '初始'
135
136
137
138
139
140
141
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'projectManagement.scss';
  </style>