lilei 4 vuotta sitten
vanhempi
commit
b0c7801bc1

+ 2 - 2
api/assess.js

@@ -1,6 +1,6 @@
 import axios from '@/libs/axios.js'
 // 考评方案列表查询
-export const findOrderAndVehicle = (params) => {
+export const findScheme = (params) => {
   return axios.request({
     url: `assess/scheme/query`,
     method: 'post',
@@ -8,7 +8,7 @@ export const findOrderAndVehicle = (params) => {
   })
 }
 // 查询考评项目(所有)
-export const findVehicle = (params) => {
+export const findAllItem = (params) => {
   return axios.request({
     url: `assess/item/query`,
     method: 'get'

+ 5 - 0
components/uni-check-list/uni-check-list.vue

@@ -55,6 +55,11 @@
 				value: []
 			}
 		},
+		watch: {
+			listData(newValue, oldValue) {
+				this.list = newValue
+			}
+		},
 		mounted() {
 			this.hasCheck()
 		},

+ 11 - 14
pages/evaluatePlan/evaluatePlan.vue

@@ -15,26 +15,23 @@
 </template>
 
 <script>
+	import {findScheme} from '@/api/assess'
 	export default {
 		data() {
 			return {
-				list: [
-					{
-						id: '1232',
-						name: '爱的街坊邻居爱上了对方加拉附件爱的街坊邻居爱上了对方加拉附件',
-					},
-					{
-						id: '2223',
-						name: 'banner',
-					},
-					{
-						id: '3333',
-						name: 'orange',
-					}
-				],
+				list: [],
 				value: '',
 			}
 		},
+		onLoad() {
+			// 查询方案
+			findScheme({status:1}).then(res=>{
+				console.log(res.data)
+				if(res.status == 200){
+					this.list = res.data
+				}
+			})
+		},
 		methods: {
 			// 选中方案,item 返回的是数组
 			chooseOk(item) {

+ 0 - 1
pages/userCenter/viewStores.vue

@@ -10,7 +10,6 @@
 			}
 		},
 		onLoad(options) {
-			console.log(options.item)
 			this.list = JSON.parse(options.item)
 		},
 		methods: {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä