baolhyhzhg
2024-12-23 6f185fcb7492c4cff13b6ed064ac4d20172949f3
地区组件变更
15 files added
2 files modified
24289 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/resources/json/chinaArea.json 21 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/.babelrc 22 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/.prettierrc 4 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/LICENSE 21 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/README.MD 179 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/package.json 55 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/App.vue 140 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/app.js 128 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/data-array.json 19003 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/data.js 1 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/data.json 4577 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/index.html 12 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/src/main.js 10 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/webpack.build.commonjs.config.js 24 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/webpack.build.config.js 24 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/components/ElementChinaAreaData/webpack.dev.config.js 65 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/contract/contract/index.vue 3 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/resources/json/chinaArea.json
@@ -497,7 +497,7 @@
    "152900": "阿拉善盟"
  },
  "150100": {
    "150101": "市辖区",
    "150101": "本级",
    "150102": "新城区",
    "150103": "回民区",
    "150104": "玉泉区",
@@ -511,7 +511,7 @@
    "150172": "呼和浩特经济技术开发区"
  },
  "150200": {
    "150201": "市辖区",
    "150201": "本级",
    "150202": "东河区",
    "150203": "昆都仑区",
    "150204": "青山区",
@@ -524,13 +524,13 @@
    "150271": "包头稀土高新技术产业开发区"
  },
  "150300": {
    "150301": "市辖区",
    "150301": "本级",
    "150302": "海勃湾区",
    "150303": "海南区",
    "150304": "乌达区"
  },
  "150400": {
    "150401": "市辖区",
    "150401": "本级",
    "150402": "红山区",
    "150403": "元宝山区",
    "150404": "松山区",
@@ -545,7 +545,7 @@
    "150430": "敖汉旗"
  },
  "150500": {
    "150501": "市辖区",
    "150501": "本级",
    "150502": "科尔沁区",
    "150521": "科尔沁左翼中旗",
    "150522": "科尔沁左翼后旗",
@@ -557,7 +557,7 @@
    "150581": "霍林郭勒市"
  },
  "150600": {
    "150601": "市辖区",
    "150601": "本级",
    "150602": "东胜区",
    "150603": "康巴什区",
    "150621": "达拉特旗",
@@ -569,7 +569,7 @@
    "150627": "伊金霍洛旗"
  },
  "150700": {
    "150701": "市辖区",
    "150701": "本级",
    "150702": "海拉尔区",
    "150703": "扎赉诺尔区",
    "150721": "阿荣旗",
@@ -586,7 +586,7 @@
    "150785": "根河市"
  },
  "150800": {
    "150801": "市辖区",
    "150801": "本级",
    "150802": "临河区",
    "150821": "五原县",
    "150822": "磴口县",
@@ -596,7 +596,7 @@
    "150826": "杭锦后旗"
  },
  "150900": {
    "150901": "市辖区",
    "150901": "本级",
    "150902": "集宁区",
    "150921": "卓资县",
    "150922": "化德县",
@@ -615,7 +615,8 @@
    "152221": "科尔沁右翼前旗",
    "152222": "科尔沁右翼中旗",
    "152223": "扎赉特旗",
    "152224": "突泉县"
    "152224": "突泉县",
    "152225": "兴安盟经济技术开发区"
  },
  "152500": {
    "152501": "二连浩特市",
eladmin-web-master/src/components/ElementChinaAreaData/.babelrc
New file
@@ -0,0 +1,22 @@
{
  "presets": [
    [
      "@babel/env",
      {
        "targets": {
          "chrome": "58",
          "ie": "11"
        }
      }
    ]
  ],
  "plugins": [
    [
      "component",
      {
        "libraryName": "element-ui",
        "styleLibraryName": "theme-chalk"
      }
    ]
  ]
}
eladmin-web-master/src/components/ElementChinaAreaData/.prettierrc
New file
@@ -0,0 +1,4 @@
{
  "semi": false,
  "singleQuote": true
}
eladmin-web-master/src/components/ElementChinaAreaData/LICENSE
New file
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017~2018 Plortinus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to 7~2018ermit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
eladmin-web-master/src/components/ElementChinaAreaData/README.MD
New file
@@ -0,0 +1,179 @@
# Element UI 中国省市区级联数据
[![npm](https://img.shields.io/npm/v/element-china-area-data.svg)](https://www.npmjs.com/package/element-china-area-data) [![npm](https://img.shields.io/npm/dt/element-china-area-data.svg)](https://www.npmjs.com/package/element-china-area-data)
## 参考来源
  `JS:`
  `npm install element-china-area-data -S`
  `数据源:`
  `npm install china-area-data -S`
## 组件数据修改
  1. `修改src/data.json和src/data-array.json内的数据`
  2. `运行打包命令,更新dist内js文件`
## 使用
```js
import { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, CodeToText, TextToCode } from '@/components/ElementChinaAreaData'
```
服务端用法:
```js
const { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, CodeToText, TextToCode } = require('@/components/ElementChinaAreaData/dist/app.commonjs')
```
  1. `provinceAndCityData`是省市二级联动数据(不带“全部”选项)
  2. `regionData`是省市区三级联动数据(不带“全部”选项)
  3. `provinceAndCityDataPlus`是省市区三级联动数据(带“全部”选项)
  4. `regionDataPlus`是省市区三级联动数据(带“全部”选项)
  5. "全部"选项绑定的value是空字符串`""`
  6. `CodeToText`是个大对象,属性是区域码,属性值是汉字 用法例如:`CodeToText['110000']`输出`北京市`
  7. `TextToCode`是个大对象,属性是汉字,属性值是区域码 用法例如:`TextToCode['北京市'].code`输出`110000`,`TextToCode['北京市']['市辖区'].code`输出`110100`,`TextToCode['北京市']['市辖区']['朝阳区'].code`输出`110105`
  * 省市二级联动(不带“全部”选项):
    ```js
    <template>
      <div id="app">
        <el-cascader
          size="large"
          :options="options"
          v-model="selectedOptions"
          @change="handleChange">
        </el-cascader>
      </div>
    </template>
    <script>
      import { provinceAndCityData } from '@/components/ElementChinaAreaData'
      export default {
        data () {
          return {
            options: provinceAndCityData,
            selectedOptions: []
          }
        },
        methods: {
          handleChange (value) {
            console.log(value)
          }
        }
      }
    </script>
    ```
    * 省市二级联动(带“全部”选项):
      ```js
      <template>
        <div id="app">
          <el-cascader
            size="large"
            :options="options"
            v-model="selectedOptions"
            @change="handleChange">
          </el-cascader>
        </div>
      </template>
      <script>
        import { provinceAndCityDataPlus } from '@/components/ElementChinaAreaData'
        export default {
          data () {
            return {
              options: provinceAndCityDataPlus,
              selectedOptions: []
            }
          },
          methods: {
            handleChange (value) {
              console.log(value)
            }
          }
        }
      </script>
      ```
    * 省市区三级联动(不带“全部”选项)
    ```js
    <template>
      <div id="app">
        <el-cascader
          size="large"
          :options="options"
          v-model="selectedOptions"
          @change="handleChange">
        </el-cascader>
      </div>
    </template>
    <script>
      import { regionData } from '@/components/ElementChinaAreaData'
      export default {
        data () {
          return {
            options: regionData,
            selectedOptions: []
          }
        },
        methods: {
          handleChange (value) {
            console.log(value)
          }
        }
      }
    </script>
    ```
    * 省市区三级联动(带“全部”选项)
    ```js
    <template>
      <div id="app">
        <el-cascader
          size="large"
          :options="options"
          v-model="selectedOptions"
          @change="handleChange">
        </el-cascader>
      </div>
    </template>
    <script>
      import { regionDataPlus } from '@/components/ElementChinaAreaData'
      export default {
        data () {
          return {
            options: regionDataPlus,
            selectedOptions: []
          }
        },
        methods: {
          handleChange (value) {
            console.log(value)
          }
        }
      }
    </script>
    ```
## 绑定value格式
value是区域码`"110000"`
## 数据来源
[china-area-data v5.0.0](https://github.com/airyland/china-area-data)
## 开发过程
`npm run dev` 是开发
`npm run build` + `npm run build-commonjs` + `npm run docs` 是准备发布
eladmin-web-master/src/components/ElementChinaAreaData/package.json
New file
@@ -0,0 +1,55 @@
{
  "name": "element-china-area-data",
  "version": "5.0.2",
  "description": "Element UI 级联 中国省市区数据",
  "main": "./dist/app.js",
  "scripts": {
    "dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot",
    "build": "webpack --config webpack.build.config.js --progress --hide-modules",
    "build-commonjs": "webpack --config webpack.build.commonjs.config.js --progress --hide-modules",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/Plortinus/element-china-area-data.git"
  },
  "keywords": [
    "element",
    "elementui",
    "element-ui",
    "vue",
    "省市区",
    "级联"
  ],
  "author": "plortinus@gmail.com",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/Plortinus/element-china-area-data/issues"
  },
  "homepage": "https://github.com/Plortinus/element-china-area-data#readme",
  "dependencies": {
    "lodash-es": "^4.17.15"
  },
  "devDependencies": {
    "@babel/cli": "^7.10.3",
    "@babel/core": "^7.10.3",
    "@babel/preset-env": "^7.10.3",
    "babel-loader": "^8.1.0",
    "babel-plugin-component": "^1.1.1",
    "css-loader": "^3.6.0",
    "element-ui": "^2.13.2",
    "file-loader": "^6.0.0",
    "html-loader": "^1.1.0",
    "html-webpack-plugin": "^4.3.0",
    "style-loader": "^1.2.1",
    "uglify-js": "^3.10.0",
    "uglifyjs-webpack-plugin": "^2.2.0",
    "url-loader": "^4.1.0",
    "vue": "^2.6.11",
    "vue-loader": "^15.9.3",
    "vue-template-compiler": "^2.6.11",
    "webpack": "^4.43.0",
    "webpack-cli": "^3.3.12",
    "webpack-dev-server": "^3.11.0"
  }
}
eladmin-web-master/src/components/ElementChinaAreaData/src/App.vue
New file
@@ -0,0 +1,140 @@
<template>
  <div class="area">
    <div>
      <span class="imp">1. 二级联动(不带“全部”选项)</span>
      <el-cascader
        v-model="selectedOptions1"
        size="large"
        :options="provinceAndCityData"
        @change="handleChange"
      />
    </div>
    <div class="bind">
      <div>绑定值:{{ selectedOptions1 }}</div>
      <div>区域码转汉字:{{ CodeToText[selectedOptions1[0]] }},{{ CodeToText[selectedOptions1[1]] }}</div>
      <div>汉字转区域码:{{ convertTextToCode(CodeToText[selectedOptions1[0]], CodeToText[selectedOptions1[1]]) }}</div>
    </div>
    <div class="three">
      <span class="imp">2. 二级联动(带有“全部”选项)</span>
      <el-cascader
        v-model="selectedOptions3"
        size="large"
        :options="provinceAndCityDataPlus"
        @change="handleChange"
      />
    </div>
    <div class="bind">
      <div>绑定值:{{ selectedOptions3 }}</div>
      <div>区域码转汉字:{{ CodeToText[selectedOptions3[0]] }},{{ CodeToText[selectedOptions3[1]] }}</div>
      <div>汉字转区域码:{{ convertTextToCode(CodeToText[selectedOptions3[0]], CodeToText[selectedOptions3[1]]) }}</div>
    </div>
    <div class="three">
      <span class="imp">3. 三级联动(不带“全部”选项)</span>
      <el-cascader
        v-model="selectedOptions2"
        class="long"
        size="large"
        :options="regionData"
        @change="handleChange"
      />
    </div>
    <div class="bind">
      <div>绑定值:{{ selectedOptions2 }}</div>
      <div>区域码转汉字:{{ CodeToText[selectedOptions2[0]] }},{{ CodeToText[selectedOptions2[1]] }},{{ CodeToText[selectedOptions2[2]] }}</div>
      <div>汉字转区域码:{{ convertTextToCode(CodeToText[selectedOptions2[0]], CodeToText[selectedOptions2[1]], CodeToText[selectedOptions2[2]]) }}</div>
    </div>
    <div class="three">
      <span class="imp">4. 三级联动(带"全部选项")</span>
      <el-cascader
        v-model="selectedOptions4"
        size="large"
        class="long"
        :options="regionDataPlus"
        @change="handleChange"
      />
    </div>
    <div class="bind">
      <div>绑定值:{{ selectedOptions4 }}</div>
      <div>区域码转汉字:{{ CodeToText[selectedOptions4[0]] }},{{ CodeToText[selectedOptions4[1]] }},{{ CodeToText[selectedOptions4[2]] }}</div>
      <div>汉字转区域码:{{ convertTextToCode(CodeToText[selectedOptions4[0]], CodeToText[selectedOptions4[1]], CodeToText[selectedOptions4[2]]) }}</div>
    </div>
  </div>
</template>
<script>
import {
  provinceAndCityData,
  regionData,
  provinceAndCityDataPlus,
  regionDataPlus,
  CodeToText,
  TextToCode
} from '../dist/app.js'
export default {
  data() {
    return {
      CodeToText,
      TextToCode,
      BeiJing: CodeToText['110000'],
      provinceAndCityData,
      provinceAndCityDataPlus,
      regionData,
      regionDataPlus,
      selectedOptions1: ['110000', '110100'],
      selectedOptions2: ['120000', '120100', '120101'],
      selectedOptions3: ['130000', ''],
      selectedOptions4: ['120000', '120100', '']
    }
  },
  mounted() {
    console.log(this.TextToCode['北京市'].code)
    console.log(this.TextToCode['北京市']['市辖区'].code)
    console.log(this.TextToCode['北京市']['市辖区']['朝阳区'].code)
  },
  methods: {
    handleChange(value) {
      console.log(value)
    },
    convertTextToCode(provinceText, cityText, regionText) {
      let code = ''
      if (provinceText && this.TextToCode[provinceText]) {
        const province = this.TextToCode[provinceText]
        code += province.code + ', '
        if (cityText && province[cityText]) {
          const city = province[cityText]
          code += city.code + ', '
          if (regionText && city[regionText]) {
            code += city[regionText].code
          }
        }
      }
      return code
    }
  }
}
</script>
<style>
.long {
  width: 250px;
}
.area {
  padding-top: 50px;
  margin: 0 auto;
  width: 800px;
}
.three {
  margin-top: 100px;
}
.bind {
  margin-top: 20px;
  line-height: 40px;
  text-indent: 15px;
}
.imp {
  color: #409eff;
}
</style>
eladmin-web-master/src/components/ElementChinaAreaData/src/app.js
New file
@@ -0,0 +1,128 @@
import REGION_DATA from './data'
import { cloneDeep } from 'lodash-es'
// code转汉字大对象
const CodeToText = {}
// 汉字转code大对象
const TextToCode = {}
const provinceObject = REGION_DATA['86'] // 省份对象
const regionData = []
let provinceAndCityData = []
CodeToText[''] = '全部'
// 计算省
for (const prop in provinceObject) {
  regionData.push({
    value: prop, // 省份code值
    label: provinceObject[prop] // 省份汉字
  })
  CodeToText[prop] = provinceObject[prop]
  TextToCode[provinceObject[prop]] = {
    code: prop
  }
  TextToCode[provinceObject[prop]]['全部'] = {
    code: ''
  }
}
// 计算市
for (let i = 0, len = regionData.length; i < len; i++) {
  const provinceCode = regionData[i].value
  const provinceText = regionData[i].label
  const provinceChildren = []
  for (const prop in REGION_DATA[provinceCode]) {
    provinceChildren.push({
      value: prop,
      label: REGION_DATA[provinceCode][prop]
    })
    CodeToText[prop] = REGION_DATA[provinceCode][prop]
    TextToCode[provinceText][REGION_DATA[provinceCode][prop]] = {
      code: prop
    }
    TextToCode[provinceText][REGION_DATA[provinceCode][prop]]['全部'] = {
      code: ''
    }
  }
  if (provinceChildren.length) {
    regionData[i].children = provinceChildren
  }
}
provinceAndCityData = cloneDeep(regionData)
// 计算区
for (let i = 0, len = regionData.length; i < len; i++) {
  const province = regionData[i].children
  const provinceText = regionData[i].label
  if (province) {
    for (let j = 0, len = province.length; j < len; j++) {
      const cityCode = province[j].value
      const cityText = province[j].label
      const cityChildren = []
      for (const prop in REGION_DATA[cityCode]) {
        cityChildren.push({
          value: prop,
          label: REGION_DATA[cityCode][prop]
        })
        CodeToText[prop] = REGION_DATA[cityCode][prop]
        TextToCode[provinceText][cityText][REGION_DATA[cityCode][prop]] = {
          code: prop
        }
      }
      if (cityChildren.length) {
        province[j].children = cityChildren
      }
    }
  }
}
// 添加“全部”选项
const provinceAndCityDataPlus = cloneDeep(provinceAndCityData)
provinceAndCityDataPlus.unshift({
  value: '',
  label: '全部'
})
for (let i = 0, len = provinceAndCityDataPlus.length; i < len; i++) {
  const province = provinceAndCityDataPlus[i].children
  if (province && province.length) {
    province.unshift({
      value: '',
      label: '全部'
    })
    for (let j = 0, len = province.length; j < len; j++) {
      const city = province[j].children
      if (city && city.length) {
        city.unshift({
          value: '',
          label: '全部'
        })
      }
    }
  }
}
const regionDataPlus = cloneDeep(regionData)
regionDataPlus.unshift({
  value: '',
  label: '全部'
})
for (let i = 0, len = regionDataPlus.length; i < len; i++) {
  const province = regionDataPlus[i].children
  if (province && province.length) {
    province.unshift({
      value: '',
      label: '全部'
    })
    for (let j = 0, len = province.length; j < len; j++) {
      const city = province[j].children
      if (city && city.length) {
        city.unshift({
          value: '',
          label: '全部'
        })
      }
    }
  }
}
export { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, CodeToText, TextToCode }
eladmin-web-master/src/components/ElementChinaAreaData/src/data-array.json
New file
Diff too large
eladmin-web-master/src/components/ElementChinaAreaData/src/data.js
New file
@@ -0,0 +1 @@
module.exports = require('./data.json')
eladmin-web-master/src/components/ElementChinaAreaData/src/data.json
New file
Diff too large
eladmin-web-master/src/components/ElementChinaAreaData/src/index.html
New file
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="format-detection" content="telephone=no,email=no">
  <title>Element China Area Data</title>
</head>
<body>
  <div id="app"></div>
</body>
</html>
eladmin-web-master/src/components/ElementChinaAreaData/src/main.js
New file
@@ -0,0 +1,10 @@
import Vue from 'vue'
import { Cascader } from 'element-ui'
import App from './App.vue'
Vue.use(Cascader)
new Vue({
  el: '#app',
  render: h => h(App)
})
eladmin-web-master/src/components/ElementChinaAreaData/webpack.build.commonjs.config.js
New file
@@ -0,0 +1,24 @@
'use strict'
const { resolve } = require('path')
const config = {
  mode: 'production',
  entry: './src/app.js',
  output: {
    path: resolve(__dirname, './dist'),
    filename: 'app.commonjs.js',
    libraryTarget: 'commonjs2'
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        use: 'babel-loader',
        exclude: /node_modules/
      }
    ]
  }
}
module.exports = config
eladmin-web-master/src/components/ElementChinaAreaData/webpack.build.config.js
New file
@@ -0,0 +1,24 @@
'use strict'
const { resolve } = require('path')
const config = {
  mode: 'production',
  entry: './src/app.js',
  output: {
    path: resolve(__dirname, './dist'),
    filename: 'app.js',
    libraryTarget: 'umd'
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        use: 'babel-loader',
        exclude: /node_modules/
      }
    ]
  }
}
module.exports = config
eladmin-web-master/src/components/ElementChinaAreaData/webpack.dev.config.js
New file
@@ -0,0 +1,65 @@
'use strict'
const { join } = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
const config = {
  mode: 'development',
  entry: './src/main.js',
  resolve: {
    // 配置别名,在项目中可缩减引用路径
    alias: {
      src: join(__dirname, '/src')
    }
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        use: 'vue-loader'
      },
      {
        test: /\.js$/,
        use: 'babel-loader',
        exclude: /node_modules/
      },
      {
        test: /\.css$/,
        use: ['style-loader', 'css-loader']
      },
      {
        test: /\.html$/i,
        loader: 'html-loader'
      },
      {
        test: /\.(png|jpg|jpeg|gif|eot|ttf|woff|woff2|svg|svgz)(\?.+)?$/,
        exclude: /favicon\.png$/,
        use: [
          {
            loader: 'url-loader',
            options: {
              limit: 10000
            }
          }
        ]
      }
    ]
  },
  plugins: [
    new VueLoaderPlugin(),
    new HtmlWebpackPlugin({
      template: './src/index.html',
      inject: 'body'
    })
  ],
  devServer: {
    host: '127.0.0.1',
    port: 8020,
    historyApiFallback: false,
    noInfo: true,
    open: true
  },
  devtool: '#eval-source-map'
}
module.exports = config
eladmin-web-master/src/views/contract/contract/index.vue
@@ -207,7 +207,6 @@
              v-model="selectedAreaOptions"
              size="small"
              :options="areaOptions"
              :props="{ checkStrictly: true }"
              style="width: 200px;"
              @change="areaChange"
            />
@@ -649,7 +648,7 @@
import crudContractSecond from '@/api/contract/contractSecond'
import crudProject from '@/api/project/project'
import crudContractProject from '@/api/contract/contractProject'
import { regionData, CodeToText } from 'element-china-area-data'
import { regionData, CodeToText } from '@/components/ElementChinaAreaData'
import moneyInput from '../../assembly/moneyInput/index.vue'
import fileUpload from '../../assembly/fileUpload/index.vue'
import DateRangePicker from '@/components/DateRangePicker'