小程序打卡数据

This commit is contained in:
lSun 2024-12-10 10:08:45 +08:00
parent cb4255e869
commit d635f0a81b
1 changed files with 14 additions and 14 deletions

View File

@ -10,7 +10,7 @@
<el-input <el-input
v-model="dialogQueryForm.userName" v-model="dialogQueryForm.userName"
placeholder="请输入姓名" placeholder="请输入姓名"
clearable clearable
style="width: 200px" style="width: 200px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -40,7 +40,7 @@
@pagination="getDialogList" @pagination="getDialogList"
/> />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -51,7 +51,7 @@ import mapChinaJson from '@/utils/mapJson/china.json'
import { listDept } from "@/api/system/dept"; import { listDept } from "@/api/system/dept";
import { listUser} from "@/api/system/userInfo"; import { listUser} from "@/api/system/userInfo";
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default { export default {
name: 'centerTopPage', name: 'centerTopPage',
components: { Treeselect }, components: { Treeselect },
@ -104,13 +104,13 @@ export default {
open:false, open:false,
title:'人员信息', title:'人员信息',
dialogList:[], dialogList:[],
} }
}, },
created() { created() {
}, },
mounted() { mounted() {
this.getInitData() this.getInitData()
/*let mapElem = document.querySelector('#mapEcharts') /*let mapElem = document.querySelector('#mapEcharts')
mapElem.addEventListener('click', (e) => { mapElem.addEventListener('click', (e) => {
@ -125,7 +125,7 @@ export default {
) )
this.mapJson = mapChinaJson this.mapJson = mapChinaJson
echarts.registerMap('china', this.mapJson) echarts.registerMap('china', this.mapJson)
this.$nextTick(() => { this.$nextTick(() => {
this.setMapOption() this.setMapOption()
}) })
}, },
@ -143,7 +143,7 @@ export default {
// //
geoCoordMap[name] = v.properties.center geoCoordMap[name] = v.properties.center
} }
}) })
let that = this let that = this
this.pointAll = this.cityCount this.pointAll = this.cityCount
@ -167,7 +167,7 @@ export default {
// }, // },
title: { title: {
top: 10, top: 10,
text: '贵州送变电工程有限公司人员分布图', text: '贵州送变电有限公司人员分布图',
x: 'letf', x: 'letf',
textStyle: { textStyle: {
color: '#006EFF' color: '#006EFF'
@ -246,7 +246,7 @@ export default {
// // // //
// // return params.name + ': ' + params.value; // // return params.name + ': ' + params.value;
// } // }
// }, // },
}, },
{ {
@ -365,8 +365,8 @@ export default {
data: this.geoVal || [], data: this.geoVal || [],
}, },
], ],
} }
this.mapEcharts.setOption(echartOption) this.mapEcharts.setOption(echartOption)
this.mapEcharts.on('georoam', function (params) { this.mapEcharts.on('georoam', function (params) {
let option = that.mapEcharts.getOption() //option let option = that.mapEcharts.getOption() //option
@ -409,7 +409,7 @@ export default {
// that.$emit('closeMap', { value: params.data }) // that.$emit('closeMap', { value: params.data })
} }
}) })
}, },
openDialog(item){ openDialog(item){
this.open=true; this.open=true;
@ -423,7 +423,7 @@ export default {
getDialogList() { getDialogList() {
listUser(this.dialogQueryForm).then(response => { listUser(this.dialogQueryForm).then(response => {
this.dialogList = response.rows; this.dialogList = response.rows;
this.dialogTotal = response.total; this.dialogTotal = response.total;
}); });
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
@ -437,7 +437,7 @@ export default {
// this.resetForm("dialogQueryForm"); // this.resetForm("dialogQueryForm");
this.handleDialogQuery(); this.handleDialogQuery();
}, },
getDeptList(){ getDeptList(){
listDept().then(response => { listDept().then(response => {
this.deptOptions = this.handleTree(response.data, "id"); this.deptOptions = this.handleTree(response.data, "id");