|
@@ -228,7 +228,7 @@ export default {
|
|
|
tableDivTitle: "添加商品",
|
|
|
searchCascaderKey: 0, //列表缓存key
|
|
|
// imgurl: ['http://192.168.1.127:9501/image/20250227/1740674706184955.jpg', 'http://192.168.1.127:9501/image/20250227/1740674706184955.jpg'],//图片路径
|
|
|
- website_id: 2,
|
|
|
+ website_id: "",
|
|
|
tags: [],//标签数组
|
|
|
|
|
|
//提交表单
|
|
@@ -239,7 +239,7 @@ export default {
|
|
|
city_arr_id: [],//行政区划
|
|
|
city_id: '',//城市id
|
|
|
cat_arr_id: '',//导航池名称
|
|
|
- website_id: 2,
|
|
|
+ website_id: "",
|
|
|
catid: "",
|
|
|
cat_arr_id: "",
|
|
|
name: "",
|
|
@@ -472,9 +472,12 @@ export default {
|
|
|
this.$store.dispatch('public/getInfo').then(res => {
|
|
|
console.log(res)
|
|
|
this.userType = res.data.type_id;
|
|
|
- // if (this.userType == 10000) {
|
|
|
- // this.form.website_id = getWebSiteId() !== undefined ? getWebSiteId() : 2;;
|
|
|
- // }
|
|
|
+ this.user_type = res.data.type_id;
|
|
|
+
|
|
|
+ if (this.userType != 10000) {
|
|
|
+ this.form.website_id = getWebSiteId()
|
|
|
+ }
|
|
|
+
|
|
|
//if(res.data.type_id==10000){}//管理员
|
|
|
//if(res.data.type_id==4){}//调研员
|
|
|
//个人会员=1 政务会员=2 企业会员=3 调研员=4 管理员=10000 游客=20000
|
|
@@ -521,6 +524,9 @@ export default {
|
|
|
},
|
|
|
//1.2 提交表单
|
|
|
addToServe() {
|
|
|
+
|
|
|
+ this.form.website_id = getWebSiteId();
|
|
|
+ console.log("提交时获取网站id:",this.form.website_id)
|
|
|
//先进行验证
|
|
|
this.$refs.form.validate(valid => {
|
|
|
console.log(this.form.validity, 'this.form.validity-----------------')
|