b20185d0 by 任超

style:不动产数据

2 parents d2a6b488 7658a332
...@@ -2,16 +2,28 @@ module.exports = { ...@@ -2,16 +2,28 @@ module.exports = {
2 presets: [ 2 presets: [
3 // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app 3 // https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
4 // '@vue/cli-plugin-babel/preset' 4 // '@vue/cli-plugin-babel/preset'
5 [ 5
6 "@vue/app", 6 {
7 { 7 "plugins": [
8 "useBuiltIns": "entry", 8 [
9 polyfills: [ 9 "import",
10 'es6.promise', 10 {
11 'es6.symbol' 11 "libraryName": "vxe-table",
12 "style": true // 样式是否也按需加载
13 }
14 ],
15 [
16 "@vue/app",
17 {
18 "useBuiltIns": "entry",
19 polyfills: [
20 'es6.promise',
21 'es6.symbol'
22 ]
23 }
12 ] 24 ]
13 } 25 ]
14 ] 26 }
15 ], 27 ],
16 'env': { 28 'env': {
17 'development': { 29 'development': {
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
21 "vue": "2.6.10", 21 "vue": "2.6.10",
22 "vue-awesome": "^4.5.0", 22 "vue-awesome": "^4.5.0",
23 "vue-router": "3.0.2", 23 "vue-router": "3.0.2",
24 "vuex": "3.1.0" 24 "vuex": "3.1.0",
25 "xe-utils": "^3.5.7"
25 }, 26 },
26 "devDependencies": { 27 "devDependencies": {
27 "@vue/cli-plugin-babel": "4.4.4", 28 "@vue/cli-plugin-babel": "4.4.4",
...@@ -42,7 +43,9 @@ ...@@ -42,7 +43,9 @@
42 "style-resources-loader": "^1.4.1", 43 "style-resources-loader": "^1.4.1",
43 "svg-sprite-loader": "4.1.3", 44 "svg-sprite-loader": "4.1.3",
44 "svgo": "^2.3.1", 45 "svgo": "^2.3.1",
45 "vue-template-compiler": "2.6.10" 46 "vue-template-compiler": "2.6.10",
47 "vxe-table": "^3.6.9",
48 "vxe-table-plugin-element": "^1.11.2"
46 }, 49 },
47 "browserslist": [ 50 "browserslist": [
48 "> 1%", 51 "> 1%",
......
1 import Vue from 'vue'
2 import XEUtils from 'xe-utils'
3 import VXETablePluginElement from 'vxe-table-plugin-element'
4 import {
5 VXETable,
6 Icon,
7 Header,
8 Column,
9 Table,
10 Colgroup,
11 Input,
12 Select,
13 Edit,
14 Keyboard,
15 Toolbar,
16 Tooltip
17 } from 'vxe-table'
18
19 import zhCNLocat from 'vxe-table/lib/locale/lang/zh-CN'
20
21 import 'vxe-table-plugin-element/dist/style.css'
22 // 导入默认的国际化(如果项目中使用多语言,则应该导入到 vue-i18n 中)
23
24 VXETable.setup({
25 i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCNLocat, key), args)
26 })
27
28 Vue.use(Icon)
29
30 Vue.use(Header)
31 Vue.use(Toolbar)
32 Vue.use(Tooltip)
33
34 Vue.use(Column)
35
36 Vue.use(Colgroup)
37
38 Vue.use(Input)
39
40 Vue.use(Edit)
41 Vue.use(Select)
42
43 Vue.use(Keyboard)
44
45 Vue.use(Table)
46 Vue.use(VXETable)
47
48 VXETable.use(VXETablePluginElement)
...@@ -10,6 +10,7 @@ import dataV from '@jiaminghi/data-view'; ...@@ -10,6 +10,7 @@ import dataV from '@jiaminghi/data-view';
10 import echarts from "echarts" 10 import echarts from "echarts"
11 import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' 11 import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading'
12 Vue.mixin(mixin) 12 Vue.mixin(mixin)
13 import './directive/vxe-table'
13 // 按需引入vue-awesome图标 14 // 按需引入vue-awesome图标
14 import Icon from 'vue-awesome/components/Icon'; 15 import Icon from 'vue-awesome/components/Icon';
15 import 'vue-awesome/icons/chart-bar.js'; 16 import 'vue-awesome/icons/chart-bar.js';
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
51 </el-form-item> 51 </el-form-item>
52 </el-col> 52 </el-col>
53 <el-col :span="6" class="btnColRight"> 53 <el-col :span="6" class="btnColRight">
54 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 54 <btn nativeType="cz" @click="resetForm">重置</btn>
55 <btn nativeType="cx" @click="handleSubmit">查询</btn> 55 <btn nativeType="cx" @click="handleSubmit">查询</btn>
56 </el-col> 56 </el-col>
57 </el-row> 57 </el-row>
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
22 <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input> 22 <el-input v-model="form.BDCDYH" placeholder="不动产单元号"></el-input>
23 </el-form-item> 23 </el-form-item>
24 </el-col> 24 </el-col>
25 <el-col :span="9" class="btnColRight"> 25 <el-col :span="9" class="btnColRight">
26 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 26 <btn nativeType="cz" @click="resetForm">重置</btn>
27 <btn nativeType="cx" @click="handleSubmit">查询</btn> 27 <btn nativeType="cx" @click="handleSubmit">查询</btn>
28 </el-col> 28 </el-col>
29 </el-row> 29 </el-row>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
51 </el-form-item> 51 </el-form-item>
52 </el-col> 52 </el-col>
53 <el-col :span="6" class="btnColRight"> 53 <el-col :span="6" class="btnColRight">
54 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 54 <btn nativeType="cz" @click="resetForm">重置</btn>
55 <btn nativeType="cx" @click="handleSubmit">查询</btn> 55 <btn nativeType="cx" @click="handleSubmit">查询</btn>
56 </el-col> 56 </el-col>
57 </el-row> 57 </el-row>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 </el-col> 49 </el-col>
50 <el-col :span="6" class="btnColRight mt-10"> 50 <el-col :span="6" class="btnColRight mt-10">
51 <btn nativeType="cz" @click="resetForm">重置</btn> 51 <btn nativeType="cz" @click="resetForm">重置</btn>
52 <btn nativeType="cx" @click="handleSubmit">查询结果</btn> 52 <btn nativeType="cx" @click="handleSubmit">查询</btn>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
55 </el-form> 55 </el-form>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 </el-col> 49 </el-col>
50 <el-col :span="6" class="btnColRight mt-10"> 50 <el-col :span="6" class="btnColRight mt-10">
51 <btn nativeType="cz" @click="resetForm">重置</btn> 51 <btn nativeType="cz" @click="resetForm">重置</btn>
52 <btn nativeType="cx" @click="handleSubmit">查询结果</btn> 52 <btn nativeType="cx" @click="handleSubmit">查询</btn>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
55 </el-form> 55 </el-form>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
46 </el-form-item> 46 </el-form-item>
47 </el-col> 47 </el-col>
48 <el-col :span="12" class="btnColRight"> 48 <el-col :span="12" class="btnColRight">
49 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 49 <btn nativeType="cz" @click="resetForm">重置</btn>
50 <btn nativeType="cx" @click="handleSubmit">查询</btn> 50 <btn nativeType="cx" @click="handleSubmit">查询</btn>
51 </el-col> 51 </el-col>
52 </el-row> 52 </el-row>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
44 </el-col> 44 </el-col>
45 <el-col :span="12" class="btnColRight mt-10"> 45 <el-col :span="12" class="btnColRight mt-10">
46 <btn nativeType="cz" @click="resetForm">重置</btn> 46 <btn nativeType="cz" @click="resetForm">重置</btn>
47 <btn nativeType="cx" @click="handleSubmit">查询结果</btn> 47 <btn nativeType="cx" @click="handleSubmit">查询</btn>
48 </el-col> 48 </el-col>
49 </el-row> 49 </el-row>
50 50
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 </el-col> 49 </el-col>
50 <el-col :span="6" class="btnColRight mt-10"> 50 <el-col :span="6" class="btnColRight mt-10">
51 <btn nativeType="cz" @click="resetForm">重置</btn> 51 <btn nativeType="cz" @click="resetForm">重置</btn>
52 <btn nativeType="cx" @click="handleSubmit">查询结果</btn> 52 <btn nativeType="cx" @click="handleSubmit">查询</btn>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
55 </el-form> 55 </el-form>
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
46 </el-form-item> 46 </el-form-item>
47 </el-col> 47 </el-col>
48 <el-col :span="12" class="btnColRight"> 48 <el-col :span="12" class="btnColRight">
49 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 49 <btn nativeType="cz" @click="resetForm">重置</btn>
50 <btn nativeType="cx" @click="handleSubmit">查询</btn> 50 <btn nativeType="cx" @click="handleSubmit">查询</btn>
51 </el-col> 51 </el-col>
52 </el-row> 52 </el-row>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 </el-col> 49 </el-col>
50 <el-col :span="6" class="btnColRight mt-10"> 50 <el-col :span="6" class="btnColRight mt-10">
51 <btn nativeType="cz" @click="resetForm">重置</btn> 51 <btn nativeType="cz" @click="resetForm">重置</btn>
52 <btn nativeType="cx" @click="handleSubmit">查询结果</btn> 52 <btn nativeType="cx" @click="handleSubmit">查询</btn>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
55 </el-form> 55 </el-form>
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
45 </el-col> 45 </el-col>
46 <!-- 操作按钮 --> 46 <!-- 操作按钮 -->
47 <el-col :span="18" class="btnColRight"> 47 <el-col :span="18" class="btnColRight">
48 <el-button @click="resetForm('ruleForm')">重置</el-button> 48 <el-button @click="resetForm">重置</el-button>
49 <el-button type="primary" @click="handleSubmit">查询结果</el-button> 49 <el-button type="primary" @click="handleSubmit">查询</el-button>
50 </el-col> 50 </el-col>
51 </el-row> 51 </el-row>
52 </el-form> 52 </el-form>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
27 </el-col> 27 </el-col>
28 <!-- 操作按钮 --> 28 <!-- 操作按钮 -->
29 <el-col :span="6" class="btnColRight"> 29 <el-col :span="6" class="btnColRight">
30 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 30 <btn nativeType="cz" @click="resetForm">重置</btn>
31 <btn nativeType="cx" @click="queryClick">查询</btn> 31 <btn nativeType="cx" @click="queryClick">查询</btn>
32 </el-col> 32 </el-col>
33 </el-row> 33 </el-row>
......
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
22 <el-col :span="12" class="btnColRight"> 22 <el-col :span="12" class="btnColRight">
23 <el-form-item> 23 <el-form-item>
24 <el-button type="primary">删除</el-button> 24 <el-button type="primary">删除</el-button>
25 <el-button @click="resetForm('ruleForm')">重置</el-button> 25 <el-button @click="resetForm">重置</el-button>
26 <el-button type="primary">新增</el-button> 26 <el-button type="primary">新增</el-button>
27 <el-button type="primary" @click="handleSubmit">查询结果</el-button> 27 <el-button type="primary" @click="handleSubmit">查询</el-button>
28 </el-form-item> 28 </el-form-item>
29 </el-col> 29 </el-col>
30 </el-row> 30 </el-row>
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 <!-- 按钮操作 --> 75 <!-- 按钮操作 -->
76 <el-col :span="6" class="btnColRight"> 76 <el-col :span="6" class="btnColRight">
77 <el-form-item> 77 <el-form-item>
78 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 78 <btn nativeType="cz" @click="resetForm">重置</btn>
79 <btn nativeType="cx" @click="featchData">查询</btn> 79 <btn nativeType="cx" @click="featchData">查询</btn>
80 <btn nativeType="sb">入库</btn> 80 <btn nativeType="sb">入库</btn>
81 </el-form-item> 81 </el-form-item>
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
24 <!-- 操作按钮 --> 24 <!-- 操作按钮 -->
25 <el-col :span="12" class="btnColRight"> 25 <el-col :span="12" class="btnColRight">
26 <el-form-item> 26 <el-form-item>
27 <el-button @click="resetForm('ruleForm')">重置</el-button> 27 <el-button @click="resetForm">重置</el-button>
28 <el-button type="primary" @click="handleSubmit">查询结果</el-button> 28 <el-button type="primary" @click="handleSubmit">查询</el-button>
29 </el-form-item> 29 </el-form-item>
30 </el-col> 30 </el-col>
31 </el-row> 31 </el-row>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 </el-col> 60 </el-col>
61 <!-- 操作按钮 --> 61 <!-- 操作按钮 -->
62 <el-col :span="6" class="btnColRight"> 62 <el-col :span="6" class="btnColRight">
63 <btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn> 63 <btn nativeType="cz" @click="resetForm">重置</btn>
64 <btn nativeType="cx" @click="queryClick">查询</btn> 64 <btn nativeType="cx" @click="queryClick">查询</btn>
65 </el-col> 65 </el-col>
66 </el-row> 66 </el-row>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
31 <!-- 操作按钮 --> 31 <!-- 操作按钮 -->
32 <el-col :span="6" class="btnColRight"> 32 <el-col :span="6" class="btnColRight">
33 <btn nativeType="sb" @click="handleUpdateDic">刷新缓存</btn> 33 <btn nativeType="sb" @click="handleUpdateDic">刷新缓存</btn>
34 <btn nativeType="cx" @click="handleSubmit">查询结果</btn> 34 <btn nativeType="cx" @click="handleSubmit">查询</btn>
35 </el-col> 35 </el-col>
36 </el-row> 36 </el-row>
37 </el-form> 37 </el-form>
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
32 </el-col> 32 </el-col>
33 <!-- 操作按钮 --> 33 <!-- 操作按钮 -->
34 <el-col :span="4" class="btnColRight"> 34 <el-col :span="4" class="btnColRight">
35 <el-button @click="resetForm('ruleForm')">重置</el-button> 35 <el-button @click="resetForm">重置</el-button>
36 <el-button type="primary" @click="handleSubmit">查询结果</el-button> 36 <el-button type="primary" @click="handleSubmit">查询</el-button>
37 </el-col> 37 </el-col>
38 </el-row> 38 </el-row>
39 </el-form> 39 </el-form>
......