shish 2 năm trước cách đây
mục cha
commit
27e2291917
2 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 5 5
      pt/src/views/item/list.vue
  2. 2 2
      pt/vue.config.js

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

@@ -105,8 +105,8 @@
 				</el-dropdown>
 			</template>
 
-			<template #slot-cp-class="{scope}">
-				<el-select @change="getCpClass" v-model="currentCpClassName" filterable remote reserve-keyword placeholder="搜索并选择产品" clearable 
+			<template #slot-cp-term-list="{scope}">
+				<el-select @change="getCpClass" v-model="currentCpName" filterable remote reserve-keyword placeholder="搜索并选择产品" clearable 
 				:remote-method="searchCpInfo" :loading="loading" style="width:200px;margin-right:10px;" size="mini">
     				<el-option v-for="item in cpInfoList" :key="item.id" :label="`${item.name}(${item.id})`" :value="item.id"> </el-option>
   				</el-select>
@@ -302,7 +302,7 @@ export default {
 			unitList: [],
 			ratioTypeList:[{name:'固定比例',id:0},{name:'模糊比例',id:1}],
 			currentItemId: 0,
-			currentCpClassName:'',
+			currentCpName:'',
 			currentItemClassName:'',
 			cpClassData:[],
 			cpClassStyle:"-1",
@@ -596,7 +596,7 @@ export default {
 			}
 			if (this.$route.query.cpId) {
 				this.cpId = this.$route.query.cpId;
-				this.currentCpClassName = this.$route.query.cpName ? this.$route.query.cpName : ''
+				this.currentCpName = this.$route.query.cpName ? this.$route.query.cpName : ''
 			}
 			ctx.service(this.$service.item)
 				.set('table', {
@@ -704,7 +704,7 @@ export default {
 				})
 				.set('layout', [
 					['slot-tabs'],
-					['slot-cpClassStyle','slot-cp-class','slot-item-class','search-key','flex1','slot-add-item-btn', 'refresh-btn'],
+					['slot-cpClassStyle','slot-cp-term-list','slot-item-class','search-key','flex1','slot-add-item-btn', 'refresh-btn'],
 					['data-table'],
 					['slot-more-do-btn','slot-select-cp','slot-item-suggest-class','flex1', 'pagination'],
 				])

+ 2 - 2
pt/vue.config.js

@@ -3,13 +3,13 @@ const path = require('path');
 const isProduction = process.env.NODE_ENV === 'production';
 
 //http和https切换请修改这里,修改后需要重新运行 npm run serve 即可 shish 2021.4.12
-const proxyTarget = 'https://api.pt.wixhb.com';
+const proxyTarget = 'http://api.pt.huaml.com';
 
 function resolve(dir) {
 	return path.join(__dirname, dir);
 }
 
-let hostUrl = 'https://img.wixhb.com/';
+let hostUrl = 'http://img.hzghd.com/';
 
 const cdn = {
 	dev: {