shish 2 лет назад
Родитель
Сommit
1cd40d8cf5
2 измененных файлов с 10 добавлено и 7 удалено
  1. 2 2
      pt/src/views/cp/pt-list.vue
  2. 8 5
      pt/src/views/item/list.vue

+ 2 - 2
pt/src/views/cp/pt-list.vue

@@ -32,7 +32,7 @@
 			</template>
 
 			<template #slot-cp-classStyle="{scope}">
-				<el-radio-group v-model="classStyle" @change="changeClassify" style="margin-right:20px;padding-top:6px;margin-left:20px;">
+				<el-radio-group v-model="classStyle" @change="changeClassStyle" style="margin-right:20px;padding-top:6px;margin-left:20px;">
 				<el-radio label="-1">全部</el-radio>
 				<el-radio label="0">未归类</el-radio>
 				</el-radio-group>
@@ -95,7 +95,7 @@ export default {
 			this.currentCpClassId = e
 			this.app.refresh({classStyle:this.classStyle,classId:this.currentCpClassId})
 		},
-    	changeClassify(e){
+    	changeClassStyle(e){
 			this.classStyle = e
 			this.app.refresh({ classStyle:this.classStyle,classId:this.currentCpClassId })
 		},

+ 8 - 5
pt/src/views/item/list.vue

@@ -57,15 +57,14 @@
 			</template>
 
 			<template #slot-cpClassStyle="{scope}">
-				<el-radio-group v-model="cpClassStyle" @change="changeClassify" style="margin-right:20px;padding-top:6px;margin-left:20px;">
+				<el-radio-group v-model="cpClassStyle" @change="changeCpClassStyle" style="margin-right:20px;padding-top:6px;margin-left:20px;">
 				<el-radio label="-1">全部</el-radio>
-				<el-radio label="0">未产品</el-radio>
+				<el-radio label="0">未产品</el-radio>
 				</el-radio-group>
 			</template>
 
 		</x-crud>
 
-		<!-- 新增弹窗 -->
 		<el-dialog :title="`${currentItemId == 0 ? '添加' : '修改'}花材`" :visible.sync="addDialog" :close-on-click-modal="false" width="600px" >
 			<div class="ad-modal-content">
 				<el-form :model="replaceForm" :rules="replaceFormRules" ref="replaceForm" label-width="100px" class="demo-form" >
@@ -240,6 +239,10 @@ export default {
 	},
 	computed: {},
 	methods: {
+    	changeCpClassStyle(e){
+			this.cpClassStyle = e
+			this.app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
+		},
 		getCpClass(e){
 			this.cpId = e
 			this.app.refresh({ classId: this.classId,cpId:this.cpId,cpClassStyle:this.cpClassStyle })
@@ -459,11 +462,11 @@ export default {
 				})
 				.set('search', {
 					key: {
-						placeholder: '请填写名称',
+						placeholder: '花材名称',
 					},
 				})
 				.set('pagination', {
-					size: 50
+					size:20
 				})
 				.set('layout', [
 					['slot-tabs'],