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",
"description": "vue-office-area Plugin",
"version": "1.0.5",
"version": "1.0.8",
"license": "MIT",
"private": false,
"main": "dist/vue-office-area.js",
......
......@@ -3,7 +3,7 @@
<div class="area-wrapper">
<div class="area-container" >
<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
v-for="item in optionsPro"
:key="item.provinceId"
......@@ -52,10 +52,10 @@
},
data () {
return {
repProjectName: 'gic-web', // 项目名
repProjectName: 'haoban-manage-web', // 项目名
// 省市区
ruleForm: {
provience: '',
province: '',
provinceName: '',
city: '',
cityName: '',
......@@ -103,7 +103,7 @@
var host = window.location.origin;
console.log("当前host:",host)
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'http://gicdev.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
}else {
that.baseUrl = host
}
......@@ -226,7 +226,7 @@
console.log(res,res.data,res.data.errorCode)
var resList = '';
resList = res.data;
if (resList.errorCode == 0) {
if (resList.errorCode == 1) {
// 如果是省
if (that.typeId == 1) {
that.optionsPro = [];
......@@ -275,7 +275,7 @@
that.axios.post(that.baseUrl+'/api-auth/doLogin',qs.stringify(that.loginInnfo)).then((res) => {
console.log(res)
var resLogin = res.data
if (resLogin.errorCode == 0) {
if (resLogin.errorCode == 1) {
that.getArea();
}
}).catch(function (error) {
......@@ -288,7 +288,7 @@
},
setNewData(optionData) {
const that = this;
that.ruleForm.provience = optionData.provinceName;
that.ruleForm.province = optionData.provinceName;
that.ruleForm.city = optionData.cityName;
that.ruleForm.country = optionData.countryName;
......@@ -310,7 +310,7 @@
},
projectName: function(newData,oldData){
const that = this;
that.repProjectName = newData || 'gic-web';
that.repProjectName = newData || 'haoban-manage-web';
},
postUrl: function(newData,oldData){
const that = this;
......@@ -323,7 +323,7 @@
console.log("传递的参数对象:",this.areaOptions)
const that = this;
// 项目名
that.repProjectName = that.projectName || 'gic-web';
that.repProjectName = that.projectName || 'haoban-manage-web';
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