Commit 254a8666 by 无尘

fix: 修改插件内部

parent 76861322
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "@gic-test/vue-office-area", "name": "@gic-test/vue-office-area",
"description": "vue-office-area Plugin", "description": "vue-office-area Plugin",
"version": "1.0.5", "version": "1.0.8",
"license": "MIT", "license": "MIT",
"private": false, "private": false,
"main": "dist/vue-office-area.js", "main": "dist/vue-office-area.js",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="area-wrapper"> <div class="area-wrapper">
<div class="area-container" > <div class="area-container" >
<div class="area-wrap"> <div class="area-wrap">
<el-select class="w-160" no-data-text=" " v-model="ruleForm.provience" placeholder="请选择省份" @focus="getPro" @change="selectPro"> <el-select class="w-160" no-data-text=" " v-model="ruleForm.province" placeholder="请选择省份" @focus="getPro" @change="selectPro">
<el-option <el-option
v-for="item in optionsPro" v-for="item in optionsPro"
:key="item.provinceId" :key="item.provinceId"
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
}, },
data () { data () {
return { return {
repProjectName: 'gic-web', // 项目名 repProjectName: 'haoban-manage-web', // 项目名
// 省市区 // 省市区
ruleForm: { ruleForm: {
provience: '', province: '',
provinceName: '', provinceName: '',
city: '', city: '',
cityName: '', cityName: '',
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
var host = window.location.origin; var host = window.location.origin;
console.log("当前host:",host) console.log("当前host:",host)
if (host.indexOf('localhost') != '-1') { if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com'; that.baseUrl = 'http://www.gicdev.com';
}else { }else {
that.baseUrl = host that.baseUrl = host
} }
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
console.log(res,res.data,res.data.errorCode) console.log(res,res.data,res.data.errorCode)
var resList = ''; var resList = '';
resList = res.data; resList = res.data;
if (resList.errorCode == 0) { if (resList.errorCode == 1) {
// 如果是省 // 如果是省
if (that.typeId == 1) { if (that.typeId == 1) {
that.optionsPro = []; that.optionsPro = [];
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
that.axios.post(that.baseUrl+'/api-auth/doLogin',qs.stringify(that.loginInnfo)).then((res) => { that.axios.post(that.baseUrl+'/api-auth/doLogin',qs.stringify(that.loginInnfo)).then((res) => {
console.log(res) console.log(res)
var resLogin = res.data var resLogin = res.data
if (resLogin.errorCode == 0) { if (resLogin.errorCode == 1) {
that.getArea(); that.getArea();
} }
}).catch(function (error) { }).catch(function (error) {
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
}, },
setNewData(optionData) { setNewData(optionData) {
const that = this; const that = this;
that.ruleForm.provience = optionData.provinceName; that.ruleForm.province = optionData.provinceName;
that.ruleForm.city = optionData.cityName; that.ruleForm.city = optionData.cityName;
that.ruleForm.country = optionData.countryName; that.ruleForm.country = optionData.countryName;
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
}, },
projectName: function(newData,oldData){ projectName: function(newData,oldData){
const that = this; const that = this;
that.repProjectName = newData || 'gic-web'; that.repProjectName = newData || 'haoban-manage-web';
}, },
postUrl: function(newData,oldData){ postUrl: function(newData,oldData){
const that = this; const that = this;
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
console.log("传递的参数对象:",this.areaOptions) console.log("传递的参数对象:",this.areaOptions)
const that = this; const that = this;
// 项目名 // 项目名
that.repProjectName = that.projectName || 'gic-web'; that.repProjectName = that.projectName || 'haoban-manage-web';
that.requstUrl = that.postUrl that.requstUrl = that.postUrl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment