Browse Source

添加4

master
“linchaomei” 3 years ago
parent
commit
23d2c0ebfd
  1. BIN
      dist.zip
  2. 2040
      package-lock.json
  3. 6
      src/components/page/classification/Category.vue
  4. 4
      src/main.js
  5. 4
      src/utils/request.js

BIN
dist.zip

Binary file not shown.

2040
package-lock.json

File diff suppressed because it is too large

6
src/components/page/classification/Category.vue

@ -107,7 +107,7 @@
<a-row justify="space-between" >
<a-col :span="10" class="query_item">
<span>二级分类</span>
<a-select default-value="">
<a-select default-value="" v-model="query1.pull2_top_class">
<a-select-option :value="item" v-for="(item,index) in twoList" :key="index">
{{item}}
</a-select-option>
@ -156,7 +156,8 @@ export default {
query1:{
top_class:'',
son_class:'',
pull_top_class:''
pull_top_class:'',
pull2_top_class:''
},
modeStyle:{
'height':'200px'
@ -237,6 +238,7 @@ export default {
}
addClass(this.query1).then(res=>{
if(res.code==200){
console.log(res,'////')
this.$message.success('添加成功!');
Object.assign(this.query1, this.$options.data().query1)
this.getTop()

4
src/main.js

@ -19,8 +19,8 @@ Vue.config.productionTip = false
Vue.prototype.$echarts = echarts;
// Vue.prototype.$host = 'http://58.30.231.138:8899'
// Vue.prototype.$host = 'http://10.24.4.156'
Vue.prototype.$host = 'http://10.14.1.197:9090'
// Vue.prototype.$host = 'http://10.24.4.156'
// Vue.prototype.$host = 'http://10.14.1.197:9090'
// Vue.prototype.$host = 'http://127.0.0.1'

4
src/utils/request.js

@ -4,10 +4,10 @@ const service = axios.create({
// process.env.NODE_ENV === 'development' 来判断是否开发环境
// baseURL:process.env.NODE_ENV == 'production' ? 'https://yztapi.xingtongworld.com' : '/api/',
// baseURL:'http://jiao.api.alpha.xingtongworld.com',
// baseURL:'http://58.30.231.138:8899', //测试服
baseURL:'http://58.30.231.138:8899', //测试服
// baseURL:'http://10.24.4.156', //正式服
baseURL:'10.14.1.197:9090', //新服
// baseURL:'10.14.1.197:9090', //新服
// baseURL:'http://192.168.66.254:8080',
timeout: 5000,
});

Loading…
Cancel
Save