| | |
| | | |
| | | </div> |
| | | <div class="button-container"> |
| | | <el-button type="primary" @click="toScreen" size="small">可视化大屏</el-button> |
| | | <el-button v-if="roles.includes('admin') || roles.includes('county_leader') || roles.includes('city_leader')" type="primary" @click="toScreen" size="small">可视化大屏</el-button> |
| | | </div> |
| | | <div class="button-container"> |
| | | <el-button type="primary" @click="toSystemB" size="small">跳转B系统</el-button> |
| | |
| | | ...mapGetters([ |
| | | 'sidebar', |
| | | 'avatar', |
| | | 'device' |
| | | 'device', |
| | | 'roles' |
| | | ]), |
| | | setting: { |
| | | get() { |
| | |
| | | var regex = /(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[\W_])/; |
| | | if (value.length < 8 || value.length > 10) { |
| | | callback(new Error('请输入8-10位大写字母+小写字母+数字+特殊字符')); |
| | | } |
| | | else if (!regex.test(value)) { |
| | | } else if (!regex.test(value)) { |
| | | callback(new Error("请输入8-10位大写字母+小写字母+数字+特殊字符")); |
| | | } else { |
| | | callback(); |
| | |
| | | if (this.loginInfo.firstLogin == 1) { |
| | | // this.$router.push({ path: "/" }).catch(() => { }); |
| | | // return; |
| | | this.$router.push({ path: this.redirect || "/screen" }).catch(() => { }); |
| | | if (this.loginInfo.roles.includes("admin") || this.loginInfo.roles.includes("city_leader") || this.loginInfo.roles.includes("county_leader")) { |
| | | this.$router.push({path: this.redirect || "/screen"}).catch(() => { |
| | | }); |
| | | } else { |
| | | this.$router.push({path: this.redirect || "/index"}).catch(() => { |
| | | }); |
| | | } |
| | | } else { |
| | | localStorage.setItem('firstLogin', 0) |
| | | } |
| | | }).catch(() => { }) |
| | | }).catch(() => { |
| | | }) |
| | | }).catch(() => { |
| | | this.loading = false; |
| | | if (this.captchaEnabled) { |
| | |
| | | // 修改完成将firstLogin改为1 |
| | | localStorage.setItem('firstLogin', 1) |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.$router.push({ path: this.redirect || "/" }).catch(() => { }); |
| | | this.$router.push({path: this.redirect || "/"}).catch(() => { |
| | | }); |
| | | }).catch((e) => { |
| | | console.info(e) |
| | | }); |
| | |
| | | animation-delay: 0.1s; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | .login-form { |
| | |
| | | activeIndex: '0', |
| | | date: '', |
| | | company: '', |
| | | dataList: { |
| | | name: ['富顺县', '荣县', '高新区', '自流井区', '贡井区', '大安区', '沿滩区'], |
| | | data1: [95, 96, 97, 95, 94.5, 93.6, 94.5], |
| | | data2: [93.7, 93.5, 94.3, 96.5, 95.3, 94.2, 93.3], |
| | | data3: [98.3, 94.3, 93.3, 95.5, 96.8, 96.1, 95.8], |
| | | }, |
| | | // 查询参数 |
| | | queryParams: { |
| | | examineTag: null, |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | mounted() { |
| | | this.queryParams.examineTag = this.activeIndex |
| | | this.getList(); |
| | | this.areaSelect(); |
| | | }, |
| | | mounted() { |
| | | chart = echarts.init(this.$refs.barChart); |
| | | this.initEchart(); |
| | | this.setChartOption(this.checkScoreList); |
| | | }, |
| | | methods: { |
| | | jumpDetail(index) { |
| | |
| | | } |
| | | chart.setOption(option, true); |
| | | }, |
| | | filterData(data, tag) { |
| | | if (!data) return; |
| | | if(!Array.isArray(data)) return; |
| | | filterData(mapData, tag) { |
| | | if (!mapData) return; |
| | | if(!Array.isArray(mapData)) return; |
| | | const tempArray = []; |
| | | data.forEach((item) => { |
| | | mapData.forEach((item) => { |
| | | if(item.data.length) { |
| | | let flag = false; |
| | | item.data.forEach((examine) => { |
| | | if(examine.examineCategory === tag) { |
| | | flag = true |
| | | tempArray.push(examine.score); |
| | | } |
| | | }) |
| | | if(!flag){ |
| | | tempArray.push(0); |
| | | } |
| | | } |
| | | }) |
| | | return tempArray; |
| | |
| | | listScore(this.queryParams).then(response => { |
| | | this.checkScoreList = response.data; |
| | | console.log(this.checkScoreList); |
| | | this.loading = false; |
| | | this.setChartOption(this.checkScoreList); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | publish(city) { |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="岗位"> |
| | | <el-select v-model="form.postIds" multiple placeholder="请选择岗位"> |
| | | <el-option |
| | | v-for="item in postOptions" |
| | | :key="item.postId" |
| | | :label="item.postName" |
| | | :value="item.postId" |
| | | :disabled="item.status == 1" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="岗位">--> |
| | | <!-- <el-select v-model="form.postIds" multiple placeholder="请选择岗位">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in postOptions"--> |
| | | <!-- :key="item.postId"--> |
| | | <!-- :label="item.postName"--> |
| | | <!-- :value="item.postId"--> |
| | | <!-- :disabled="item.status == 1"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="角色"> |