Commit 89504068 authored by yaqizhang's avatar yaqizhang

one

parents
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# hcsystem
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
This diff is collapsed.
{
"name": "hcsystem",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"@jiaminghi/data-view": "^2.9.4",
"@types/axios": "^0.14.0",
"axios": "^0.19.2",
"core-js": "^3.6.4",
"echarts": "^5.1.1",
"element-ui": "^2.13.0",
"ol": "^6.4.3",
"vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vue-class-component": "^7.2.2",
"vue-dragging": "^1.1.0",
"vue-echarts": "^6.0.0-rc.5",
"vue-ellipse-progress": "^1.3.0",
"vue-property-decorator": "^8.3.0",
"vue-router": "^3.1.5",
"vuex": "^3.1.2",
"vuex-class": "^0.3.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.2.0",
"@vue/cli-plugin-typescript": "^4.2.0",
"@vue/cli-service": "^4.2.0",
"parcel-bundler": "^1.12.4",
"sass": "^1.25.0",
"sass-loader": "^8.0.2",
"typescript": "~3.7.5",
"vue-template-compiler": "^2.6.11"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
This diff is collapsed.
body{padding: 0;margin: 0;background: #f9f9f9;overflow: hidden;width: 100%;height: 100%;font-size:14px;}
body.childPage{padding: 20px;}
[v-cloak]{display: none !important;}
.fl{float: left;}
.fr{float: right;}
.cent{text-align: center;}
.colorM{color: #1abc9c;}
.colorR{color: #F8333A;}
.colorB{color: #409EFF;}
.colorSL{color: #008000;}
.colorP{color: #6833F8;}
.pointer{cursor: pointer;}
.el-table th{background: #f9fafc;}
.el-table th,.el-table td{text-align: center;}
/* iframe{height: calc(100vh - 59px);} */
html{width: 100%;height: 100%;}
.hide{display: none;}
.marg10{margin-left: 10px;}
.margT10{margin-top: 10px;}
.iconfont{font-size: 20px;}
main > div{background: #ffffff;height:calc(100vh - 110px);padding: 0 10px;}
main > div .el-table{height:calc(100% - 120px);}
main > div .el-table .el-table__body-wrapper{height: calc(100% - 48px); overflow-y: auto;}
.userlist {
padding: 0 10px;
}
.topBar {
padding-top: 22px;
}
.el-pagination {
text-align: center;
padding-top: 20px;
}
.has-gutter tr th {
background: #f9fafc;
}
.el-dialog__body{max-height: 60vh;overflow: auto;}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>logo.ico">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1602732_a5503lsbuo.css"><!--单色 icon-->
<link rel="stylesheet" href="//at.alicdn.com/t/font_2005193_5ks6ghpnjgu.css"><!--图形-->
<script src="//at.alicdn.com/t/font_1767165_i3wsv6ptjfc.js"></script><!--彩色 svg icon-->
<link rel="stylesheet" href="./common.css"><!--自定义样式-->
<link rel="stylesheet" href="https://js.arcgis.com/3.33/dijit/themes/nihilo/nihilo.css">
<title>安全生产风险监测预警系统</title>
<script src="./EasyWasmPlayer.js"></script>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<!-- <script src="https://js.arcgis.com/3.33/"></script> -->
</html>
<template>
<div id="app">
<router-view />
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
@Component({
components: {
},
})
export default class App extends Vue {}
</script>
<style lang="scss">
@import './common/font/font.css';
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
width: 100%;
height: 100%;
}
</style>
@font-face {
font-family: 'UnidreamLED';
src: url('UnidreamLED.ttf');
font-weight: normal;
font-style: normal;
}
\ No newline at end of file
<template>
<el-cascader
:disabled="disabled"
:options="options"
:props="props"
placeholder="请选择区域"
@change="handleChange"
v-model="citytxt"
></el-cascader>
</template>
<style lang="scss" scoped>
.el-cascader {
width: 100%;
}
</style>
<script lang="ts">
import { Component, Vue, Provide, Prop, Watch } from "vue-property-decorator";
import METHOD from "@/utils/methods";
// let city = require('@/assets/citycode.json');
@Component({
components: {}
})
export default class Home extends Vue {
@Prop({
//父组件传来的值
type: Array,
default() {
return [];
}
})
public valueqv: any;
@Prop(Boolean) param!: Boolean;
@Prop(Boolean) disabled!: Boolean;
@Provide() citytxt: any = [];
@Provide() options: any = [];
@Provide() props: any = {
value: "id",
label: "label",
children: "children"
};
@Watch("valueqv") formChange(v: any) {
this.citytxt = this.valueqv;
}
getTreeData() {
let that = this;
METHOD.axiosGet(that, `/district/getDistrictData`, function(res: any) {
if (res.code == 0) {
that.options = res.data;
sessionStorage.setItem("cityJson", JSON.stringify(res.data));
}
});
}
handleChange(v: any) {
this.$emit("changeFun", v);
}
created() {
this.citytxt = this.valueqv;
let cityData = sessionStorage.getItem("cityJson");
if (cityData) {
this.options = JSON.parse(cityData);
} else {
this.getTreeData();
}
}
}
</script>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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