Browse Source

新增单位评级页面和评级规则页面

SunZehao 1 year ago
parent
commit
36476638c1

+ 2 - 2
src/api/api.js

@@ -23,8 +23,8 @@ export function apiGetModel(url, params) {
 //获取菜单数据
 export function apiGetMenuData() {
     return httpRequest({
-        url: 'menu/menuList?parentId=10105', // 测试
-        // url: 'menu/menuList?parentId=6802', // 生产
+        // url: 'menu/menuList?parentId=10105', // 测试
+        url: 'menu/menuList?parentId=6802', // 生产
         method: 'post'
     })
 }

+ 771 - 0
src/components/assessment/evaluationUnitRatingPage.vue

@@ -0,0 +1,771 @@
+<template>
+    <div class="evaluationRating">
+        <div class="evaluationRatingBtn">
+            <div class="collectSeach">
+                <div class="exceed">
+                    <span class="exceedSpan">部门名称:</span>
+                    <el-input v-model="resDeptName" placeholder="请输入部门名称"></el-input>
+                </div>
+                <div class="exceed">
+                    <span class="exceedSpan" style="width: 80px">考评年度:</span>
+                    <el-date-picker v-model="resAnnual" type="year" value-format="YYYY" placeholder="选择年份" />
+                </div>
+                <seachs @handleSeach="getSeachData" @handleRest="resetSeach"></seachs>
+            </div>
+            <div class="PeriodBtn">
+                <btns
+                :showImport="true"
+                :showExport="true"
+                :showSave="true"
+                :showAdd="true"
+                :showDelete="true"
+                :disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
+                :disDelete="changeDateSelect.length === 0"
+                :disImport="false"
+                :disExport="false"
+                @handleAdd="handleAdd"
+                @handleEdit="handleEdit"
+                @handleDelete="handleDelete"
+                @handleImport="handleImport"
+                @handleExport="handleExport"
+                ></btns>
+            </div>
+            <div class="evaluationRatingTableData">
+                <!-- .length>0?evaluationRatingData.slice((page.currentPage-1)*page.pagesize, page.currentPage*page.pagesize):evaluationRatingData -->
+                <el-table :data="evaluationRatingData" style="width: 100%" @select="rowClick" @select-all="rowClick">
+                    <el-table-column type="selection" label="操作" align="center"></el-table-column>
+                    <el-table-column type="index" label="序号" align="center"></el-table-column>
+                    <el-table-column label="考评部门" width="200">
+                        <template #default="scope">
+                            <el-tooltip
+                                class="box-item"
+                                effect="customized"
+                                :content="scope.row.deptName"
+                                placement="right"
+                            >
+                                <span class="tooltipCC">{{scope.row.deptName}}</span>
+                            </el-tooltip>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="考评年度" prop="annual" />
+                    <el-table-column :label="it.label" :prop="it.value" v-for="it in monthArr" :key="it.value">
+                        <template #default="scope">
+                            <el-tooltip
+                                class="box-item"
+                                effect="customized"
+                                :content="scope.row[it.value+'Content']"
+                                placement="right"
+                            >
+                                <span class="tooltipCCDes">{{scope.row[it.value]}}</span>
+                            </el-tooltip>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="A级总数" prop="acount" />
+                </el-table>
+                <!-- <el-pagination
+                    @size-change="handleSizeChange"
+                    @current-change="handleCurrentChange"
+                    :current-page="page.currentPage"
+                    :page-size="page.pagesize"
+                    layout="total, prev, pager, next, jumper"
+                    :total="page.total">
+                </el-pagination> -->
+            </div>
+            <el-dialog :title="title" custom-class="startToDia" v-model="dialogVisible" width="600px" :close-on-click-modal="false">
+                <div class="periodFrom">
+                    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">      
+                        <el-form-item label="考评部门" prop="department">
+                            <el-select v-model="ruleForm.department" placeholder="请选择考评部门" :disabled="isSave">
+                                <el-option
+                                v-for="item in departData"
+                                :key="item.id"
+                                :label="item.keyName"
+                                :value="item.id">
+                                </el-option>
+                            </el-select>
+                        </el-form-item>
+                        <el-form-item label="年份" prop="year">
+                            <el-date-picker
+                                v-model="ruleForm.year"
+                                :disabled="isSave"
+                                type="year"
+                                value-format="YYYY"
+                                placeholder="请选择年份"
+                                />
+                        </el-form-item>
+                        <el-row>
+                            <el-col :span="12">
+                                <el-form-item :label="it.label" :prop="it.value" v-for="it in monthArrLeft" :key="it.value">
+                                    <el-select v-model="ruleForm[it.value]" placeholder="请选择评级" 
+                                    clearable @change="(val)=>changeAData(val, it)" @clear="(val)=>clearAData(val, it)">
+                                        <el-option
+                                        v-for="item in ratingArr"
+                                        :key="item.value"
+                                        :label="item.label"
+                                        :value="item.value">
+                                        </el-option>
+                                    </el-select>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item :label="it.label" :prop="it.value" v-for="it in monthArrRight" :key="it.value">
+                                    <el-select v-model="ruleForm[it.value]" placeholder="请选择评级"
+                                    clearable @change="(val)=>changeAData(val, it)" @clear="(val)=>clearAData(val, it)">
+                                        <el-option
+                                        v-for="item in ratingArr"
+                                        :key="item.value"
+                                        :label="item.label"
+                                        :value="item.value">
+                                        </el-option>
+                                    </el-select>
+                                </el-form-item>
+                            </el-col>
+                        </el-row>
+                        <el-form-item :label="it.label+'通告'" :prop="it.value+'Content'" v-for="it in acauseDataArr" :key="it.value">
+                            <el-input v-model="ruleForm[it.value+'Content']" placeholder="请输入通告"></el-input>
+                        </el-form-item>
+                    </el-form>
+                </div>
+                <template #footer>
+                    <span class="dialog-footer">
+                        <el-button @click="dialogVisible = false">取 消</el-button>
+                        <el-button type="primary" @click="saveevaluaStart('ruleForm')">确 定</el-button>
+                    </span>
+                </template>
+            </el-dialog>
+        </div>
+        <start-from-list ref="startFromDetail" ></start-from-list>
+        <import-dailog ref="importPage" @successImport="successImport"></import-dailog>
+    </div>
+</template>
+
+<script>
+import importDailog from '../importPage/importDailog.vue'
+import startFromList from './evaluationDeptStartFrom.vue'
+import btns from '../elbuttonS.vue'
+import seachs from '../seachGroup.vue'
+import ExcelJS from 'exceljs'
+import fileSave from 'file-saver'
+import {apiGetevaluationdeptratinglist, apiGetevaluationdeptratingsave,
+apiGetdatadictionaryList, apiPostevaluationdeptratingDelete} from '../../api/api'
+export default {
+    components: {
+        startFromList,
+        importDailog,
+        btns,
+        seachs
+    },
+    data() {
+        return {
+            dialogVisible: false,
+            isSave: false,
+            title: '',
+            evalradio: {},
+            changeDateSelect: [],
+            evaluationRatingData:[],
+            departData: [],
+            page:{
+                pagesize: 12,
+                currentPage: 1,
+                total: 0
+            },
+            ruleForm: {
+                department: '',
+                year: '',
+                jan: '',
+                feb: '',
+                mar: '',
+                apr: '',
+                may: '',
+                jun: '',
+                jul: '',
+                aug: '',
+                sep: '',
+                oct: '',
+                nov: '',
+                dece: '',
+                janContent: '',
+                febContent: '',
+                marContent: '',
+                aprContent: '',
+                mayContent: '',
+                junContent: '',
+                julContent: '',
+                augContent: '',
+                sepContent: '',
+                octContent: '',
+                novContent: '',
+                deceContent: ''
+            },
+            rules: {
+                department: [
+                    { required: true, message: '请选择考评部门', trigger: 'change' }
+                ],
+                year: [
+                    { required: true, message: '请选择年份', trigger: 'change' }
+                ],
+                janContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                febContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                marContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                aprContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                mayContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                junContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                julContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                augContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                sepContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                octContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                novContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ],
+                deceContent: [
+                    { required: true, message: '请输入通告', trigger: 'blur' }
+                ]
+            },
+            resDeptName: '',
+            resAnnual: '',
+            monthArr: [],
+            monthArrLeft: [],
+            monthArrRight: [],
+            ratingArr: [],
+            acauseDataArr: []
+        }
+    },
+    created() {
+        this.monthArrLeft = [
+            {
+                label: '一月',
+                value: 'jan',
+            },
+            {
+                label: '二月',
+                value: 'feb',
+            },
+            {
+                label: '三月',
+                value: 'mar',
+            },
+            {
+                label: '四月',
+                value: 'apr',
+            },
+            {
+                label: '五月',
+                value: 'may',
+            },
+            {
+                label: '六月',
+                value: 'jun',
+            }
+        ]
+        this.monthArrRight = [
+            {
+                label: '七月',
+                value: 'jul',
+            },
+            {
+                label: '八月',
+                value: 'aug',
+            },
+            {
+                label: '九月',
+                value: 'sep',
+            },
+            {
+                label: '十月',
+                value: 'oct',
+            },
+            {
+                label: '十一月',
+                value: 'nov',
+            },
+            {
+                label: '十二月',
+                value: 'dece',
+            },
+        ]
+        this.monthArr = this.monthArrLeft.concat(this.monthArrRight)
+        this.ratingArr = [
+            {
+                label: 'A级',
+                value: 'A'
+            },
+            {
+                label: 'B级',
+                value: 'B'
+            },
+            {
+                label: 'C级',
+                value: 'C'
+            }
+        ]
+        this.resAnnual = new Date().getFullYear().toString()
+        this.getevaluRatingList()
+        this.getDepartmentFromTreeData()
+    },
+    methods:{
+        // 查询列表页面
+        getevaluRatingList() {
+            let that = this
+            let params = {
+                pageNum: that.page.currentPage,
+                pageSize: that.page.pagesize,
+                deptName: that.resDeptName,
+                annual: that.resAnnual
+            }
+            apiGetevaluationdeptratinglist(params).then(datas =>{
+                if (datas && datas.data) {
+                    that.evaluationRatingData = datas.data
+                    // that.page.total = datas.data.length
+                }
+            })
+        },
+        // 查询部门
+        getDepartmentFromTreeData() {
+            let that = this
+            let params = {
+                superKey: 'BM0001'
+            }
+            apiGetdatadictionaryList(params).then(datas =>{
+                if (datas && datas.data) {
+                    that.departData = datas.data
+                }
+            })
+        },
+        evaluationRatingFn() {
+            if (this.evaluationRatingData.length>0) {
+                evaluationRatingData.slice((page.currentPage-1)*page.pagesize, page.currentPage*page.pagesize)
+            }
+        },
+        changeAData(val, data) {
+            if (val !== '') {
+                this.monthArr.forEach(it =>{
+                    if (data.label === it.label) {
+                        let model = false
+                        this.acauseDataArr.forEach((iv, index) =>{
+                            if (data.label === iv.label) {
+                                model = true
+                            }
+                        })
+                        if (!model) {
+                            this.acauseDataArr.push(it)
+                        }
+                    }
+    
+                })
+            }
+        },
+        clearAData(val, data) {
+            this.acauseDataArr.forEach((it, index) =>{
+                if (data.label === it.label) {
+                    this.acauseDataArr.splice(index, 1)
+                }
+            })
+        },
+        saveevaluaStart(formName) {
+            let that = this
+            that.$refs[formName].validate((valid) => {
+                if (valid) {
+                    that.saveAndEditIndicatorData()
+                }
+            });
+        },
+        //新增/修改考评启动数据
+        saveAndEditIndicatorData() {
+            let that = this
+            let orgName = ''
+            this.departData.forEach(item =>{
+                if (item.id === that.ruleForm.department) {
+                    orgName = item.keyName
+                }
+            })
+            let userMes = JSON.parse(window.sessionStorage.getItem('user'))
+            let params = {
+                deptId: that.ruleForm.department,
+                deptName: orgName,
+                annual: that.ruleForm.year,
+                jan: that.ruleForm.jan,
+                feb: that.ruleForm.feb,
+                mar: that.ruleForm.mar,
+                apr: that.ruleForm.apr,
+                may: that.ruleForm.may,
+                jun: that.ruleForm.jun,
+                jul: that.ruleForm.jul,
+                aug: that.ruleForm.aug,
+                sep: that.ruleForm.sep,
+                oct: that.ruleForm.oct,
+                nov: that.ruleForm.nov,
+                dece: that.ruleForm.dece,
+                janContent: that.ruleForm.janContent,
+                febContent: that.ruleForm.febContent,
+                marContent: that.ruleForm.marContent,
+                aprContent: that.ruleForm.aprContent,
+                mayContent: that.ruleForm.mayContent,
+                junContent: that.ruleForm.junContent,
+                julContent: that.ruleForm.julContent,
+                augContent: that.ruleForm.augContent,
+                sepContent: that.ruleForm.sepContent,
+                octContent: that.ruleForm.octContent,
+                novContent: that.ruleForm.novContent,
+                deceContent: that.ruleForm.deceContent,
+                createBy: userMes.id,
+                createName: userMes.name
+            }
+            if (that.isSave) {
+                params.id = that.evalradio.id
+            }
+            apiGetevaluationdeptratingsave(params).then(datas =>{
+                if (!datas.success) {
+                    that.$message({
+                        message: datas.message,
+                        type: 'error'
+                    });
+                } else {
+                    if (!that.isSave) {
+                        that.$message({
+                            message: '部门绩效考核评级新增成功',
+                            type: 'success'
+                        });
+                    } else {
+                        that.$message({
+                            message: '部门绩效考核评级修改成功',
+                            type: 'success'
+                        });
+                    }
+                    that.dialogVisible = false
+                    that.changeDateSelect = []
+                    that.getevaluRatingList()
+                }
+            })
+        },
+        getSeachData() {
+            this.page.currentPage = 1
+            this.getevaluRatingList()
+        },
+        resetSeach() {
+            this.page.currentPage = 1
+            this.resDeptName = ''
+            this.resAnnual = ''
+            this.getevaluRatingList()
+        },
+        handleSizeChange(val){
+            this.page.pagesize = val
+            this.getevaluRatingList()
+        },
+        handleCurrentChange(val){
+            this.page.currentPage =val
+            this.getevaluRatingList()
+        },
+        rowClick(selection, row) {
+            this.changeDateSelect = selection
+        },
+        handleAdd() {
+            this.dialogVisible = true
+            this.isSave = false
+            this.title = '新建部门绩效考核评级'
+            this.acauseDataArr = []
+            this.$nextTick(() =>{
+                // this.$refs['ruleForm'].resetFields()
+                this.ruleForm = {
+                    department: '',
+                    year: '',
+                    jan: '',
+                    feb: '',
+                    mar: '',
+                    apr: '',
+                    may: '',
+                    jun: '',
+                    jul: '',
+                    aug: '',
+                    sep: '',
+                    oct: '',
+                    nov: '',
+                    dece: '',
+                    janContent: '',
+                    febContent: '',
+                    marContent: '',
+                    aprContent: '',
+                    mayContent: '',
+                    junContent: '',
+                    julContent: '',
+                    augContent: '',
+                    sepContent: '',
+                    octContent: '',
+                    novContent: '',
+                    deceContent: ''
+                }
+            })
+        },
+        handleEdit() {
+            this.dialogVisible = true
+            this.isSave = true
+            this.title = '修改部门绩效考核评级'
+            this.evalradio = this.changeDateSelect[0]
+            this.acauseDataArr = []
+            this.ruleForm = {
+                department: this.evalradio.deptId,
+                year: this.evalradio.annual,
+                jan: this.evalradio.jan,
+                feb: this.evalradio.feb,
+                mar: this.evalradio.mar,
+                apr: this.evalradio.apr,
+                may: this.evalradio.may,
+                jun: this.evalradio.jun,
+                jul: this.evalradio.jul,
+                aug: this.evalradio.aug,
+                sep: this.evalradio.sep,
+                oct: this.evalradio.oct,
+                nov: this.evalradio.nov,
+                dece: this.evalradio.dece,
+                janContent: this.evalradio.janContent,
+                febContent: this.evalradio.febContent,
+                marContent: this.evalradio.marContent,
+                aprContent: this.evalradio.aprContent,
+                mayContent: this.evalradio.mayContent,
+                junContent: this.evalradio.junContent,
+                julContent: this.evalradio.julContent,
+                augContent: this.evalradio.augContent,
+                sepContent: this.evalradio.sepContent,
+                octContent: this.evalradio.octContent,
+                novContent: this.evalradio.novContent,
+                deceContent: this.evalradio.deceContent
+            }
+            let arr = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dece']
+            arr.forEach(it =>{
+                if (this.evalradio[it] !== '') {
+                    this.monthArr.forEach(itv =>{
+                        if (itv.value === it) {
+                            this.acauseDataArr.push(itv)
+                        }
+        
+                    })
+                }
+            })
+        },
+        //删除
+        handleDelete() {
+            this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
+                confirmButtonText: '确定',
+                cancelButtonText: '取消',
+                type: 'warning'
+            }).then(() => {
+                let that = this
+                let paramsArr = []
+                that.changeDateSelect.forEach(it =>{
+                    paramsArr.push(it.id)
+                })
+                apiPostevaluationdeptratingDelete(paramsArr.join(',')).then(datas =>{
+                    that.$message({
+                        type: 'success',
+                        message: '删除成功!'
+                    });
+                    that.getevaluRatingList()
+                    that.changeDateSelect = []
+                })
+            })
+        },  
+        handleImport() {
+            this.$refs.importPage.upload.title = "部门考评评级"
+            this.$refs.importPage.upload.open = true
+            this.$refs.importPage.upload.url = '/evaluation-dept-rating/import'
+        },
+        successImport(val) {
+            this.getevaluRatingList()
+        },
+        handleExport() {
+            let data = this.evaluationRatingData  //接口返回数据
+            const workbook = new ExcelJS.Workbook()
+            const worksheet = workbook.addWorksheet('Sheet1')
+            //根据数据自己调整
+            let colums = []
+            colums = [
+                { header: 'ID', key: 'id', width: 26 },
+                { header: '考评部门', key: 'deptName', width: 26 },
+                { header: '考评年度', key: 'annual', width: 26 },
+                { header: '一月', key: 'jan', width: 15 },
+                { header: '一月通告', key: 'janContent', width: 26 },
+                { header: '二月', key: 'feb', width: 15 },
+                { header: '二月通告', key: 'febContent', width: 26 },
+                { header: '三月', key: 'mar', width: 15 },
+                { header: '三月通告', key: 'marContent', width: 26 },
+                { header: '四月', key: 'apr', width: 15 },
+                { header: '四月通告', key: 'aprContent', width: 26 },
+                { header: '五月', key: 'may', width: 15 },
+                { header: '五月通告', key: 'mayContent', width: 26 },
+                { header: '六月', key: 'jun', width: 15 },
+                { header: '六月通告', key: 'junContent', width: 26 },
+                { header: '七月', key: 'jul', width: 15 },
+                { header: '七月通告', key: 'julContent', width: 26 },
+                { header: '八月', key: 'aug', width: 15 },
+                { header: '八月通告', key: 'augContent', width: 26 },
+                { header: '九月', key: 'sep', width: 15 },
+                { header: '九月通告', key: 'sepContent', width: 26 },
+                { header: '十月', key: 'oct', width: 15 },
+                { header: '十月通告', key: 'octContent', width: 26 },
+                { header: '十一月', key: 'nov', width: 15 },
+                { header: '十一月通告', key: 'novContent', width: 26 },
+                { header: '十二月', key: 'dece', width: 15 },
+                { header: '十二月通告', key: 'deceContent', width: 26 },
+                { header: 'A级总数', key: 'acount', width: 15 },
+            ]
+            worksheet.columns = colums
+            worksheet.getRow(1).font = {
+                size: 12,
+                bold: true
+            }
+            worksheet.addRows(data)
+
+            workbook.xlsx.writeBuffer().then(buffer => {
+                //这里为type
+                const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8' })
+                fileSave(blob, `部门考评评级数据导出.xlsx`)
+            })
+        }
+    }
+}
+</script>
+
+<style lang="less">
+.evaluationRating{
+    .evaluationRatingBtn{
+        .collectSeach{
+            display: flex;
+            padding: 24px 20px;
+            border-bottom: 1px solid#D6DBEA;
+            .exceed{
+                display: flex;
+                .exceedSpan{
+                    width: 100px;
+                    height: 12px;
+                    font-size: 14px;
+                    font-family: Microsoft YaHei;
+                    font-weight: 400;
+                    color: #8991B0;
+                    line-height: 12px;
+                    margin-top: 14px;
+                }
+                .el-input{
+                    margin-right:10px;
+                    height: 40px;
+                    .el-input__inner{
+                        height:40px;
+                    }
+                    .el-input__suffix{
+                        .el-select__caret{
+                            line-height:30px;
+                        }
+                    }
+                }
+            }
+            .el-select{
+                margin-right:10px;
+                .el-input__inner{
+                    height:30px;
+                }
+                .el-input__suffix{
+                    .el-select__caret{
+                        line-height:30px;
+                    }
+                }
+            }
+        }
+        span{
+            font-size:14px;
+        }
+        .PeriodBtn{
+            display: flex;
+            justify-content: end;
+            padding: 20px 0;
+        }
+        .el-button{
+            height: 30px;
+            // width:100px;
+            padding: 0 20px ;
+            // padding-top: 8px;
+            span{
+                margin:0;
+            }
+        }
+        .evaluationRatingTableData{
+            .el-table{
+                .el-table__body-wrapper{
+                    height: 65vh !important;
+                }
+                .el-input__inner{
+                    height: 30px !important;
+                }
+                .el-radio__label{
+                    display: none;
+                }
+                .tooltipCC{
+                    width: 300px !important;
+                    display: inline-block;
+                    overflow: hidden;
+                    text-overflow: ellipsis;
+                    white-space: nowrap;
+                }
+                .tooltipCCDes{
+                    width: 50px;
+                    display: inline-block;
+                    overflow: hidden;
+                    text-overflow: ellipsis;
+                    white-space: nowrap;
+                }
+                .indicitem{
+                    color: #409EFF;
+                    font-size: 12px;
+                    margin-right: 20px;
+                    cursor:pointer;
+                    &:hover{
+                        text-decoration: underline;
+                    }
+                }
+            }
+            .el-pagination{
+                margin-top: 20px;
+                text-align: end;
+                position: relative;
+            }
+        }
+        .el-overlay{
+            .startToDia{
+                .el-dialog__body{
+                    padding: 30px 60px 30px 20px !important;
+                    .periodFrom{
+                        .el-select, .el-input{
+                            width: 100%;
+                        }
+                        .el-input{
+                            height: 30px;
+                        }
+                    }
+                    .flowSty{
+                        width: 100%;
+                        height: 70vh;
+                    }
+                }
+            }
+        }
+    }
+    
+}
+</style>

+ 739 - 0
src/components/evaluationknowledgePage/evalRatingRulesPage.vue

@@ -0,0 +1,739 @@
+<template>
+    <div class="earlyWarningRules" v-loading="loadingImport">
+        <div class="earlyWarningRulesBtn">
+            <div class="collectSeach">
+                <div class="exceed">
+                    <span class="exceedSpan">业务属性:</span>
+                    <el-select v-model="businessStr" placeholder="请选择业务属性" clearable >
+                        <el-option
+                        v-for="item in binSectionoptions"
+                        :key="item.id"
+                        :label="item.sectionName"
+                        :value="item.id">
+                        </el-option>
+                    </el-select>
+                </div>
+                <div class="exceed">
+                    <span class="exceedSpan" style="width:100px">预警名称:</span>
+                    <el-input v-model="indicatorStr" placeholder="请输入预警名称"></el-input>
+                </div>
+                <seachs @handleSeach="getSeachData" @handleRest="reset"></seachs>
+            </div>
+            <div class="PeriodBtn">
+                <!-- $utils.havePurview('earlyWarningRules:oneLevel:add') -->
+                <btns
+                :showImport="false"
+                :showExport="false"
+                :showAdd="true"
+                :showSave="false" :showDelete="false"
+                :disSave="true" :disDelete="true" :disImport="true" :disExport="true"
+                @handleAdd="handleAdd"
+                ></btns>
+            </div>
+            <div class="earlyWarningRulesTableData">
+                <el-table :data="earlyWarningRulesData" style="width: 100%" @row-dblclick="handleEdit">
+                    <el-table-column label="序号" type="index" align="center" />
+                    <el-table-column label="预警名称" prop="ruleName" />
+                    <el-table-column label="业务属性" prop="sectionName"  width="200" />
+                    <el-table-column label="指标名称" prop="indicatorName" />
+                    <el-table-column label="预警类型" prop="type">
+                        <template #default="scope">
+                            <span v-if="scope.row.type === 'YDKP'" style="font-size: 12px;">月度考评</span>
+                            <span v-else-if="scope.row.type === 'JDKP'" style="font-size: 12px;">季度考评</span>
+                            <span v-else style="font-size: 12px;">年度考评</span>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="预警公式" prop="expression" />
+                    <el-table-column label="描述">
+                        <template #default="scope">
+                            <el-tooltip
+                                class="box-item"
+                                effect="customized"
+                                :content="scope.row.ruleDes"
+                                placement="top"
+                            >
+                                <span class="tooltipCC">{{scope.row.ruleDes}}</span>
+                            </el-tooltip>
+                        </template>
+                    </el-table-column>
+                    <el-table-column label="操作" width="100">
+                        <template #default="scope">
+                            <p class="indicitem" @click="handleDelete(scope.row)">删除</p>
+                        </template>
+                    </el-table-column>
+                </el-table>
+                <el-pagination
+                    @size-change="handleSizeChange"
+                    @current-change="handleCurrentChange"
+                    :current-page="page.currentPage"
+                    :page-size="page.pagesize"
+                    layout="total, prev, pager, next, jumper"
+                    :total="page.total">
+                </el-pagination>
+            </div>
+            <el-dialog :title="title" v-model="dialogVisible" width="60vw" :close-on-click-modal="false">
+                <div class="periodFrom">
+                    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" :validate-on-rule-change="false">
+                        <el-form-item label="预警名称" prop="ruleName">
+                            <el-input v-model="ruleForm.ruleName" placeholder="请输入预警名称"></el-input>
+                        </el-form-item>
+                        <el-row>
+                            <el-col :span="12">
+                                <el-form-item label="业务属性" prop="binSection">
+                                    <el-select v-model="ruleForm.binSection" placeholder="请选择业务属性" :disabled="isSave" @change="changeBinstation">
+                                        <el-option
+                                        v-for="item in binSectionoptions"
+                                        :key="item.id"
+                                        :label="item.sectionName"
+                                        :value="item.id">
+                                        </el-option>
+                                    </el-select>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="指标名称" prop="indicatorId">
+                                    <!-- multiple collapse-tags -->
+                                    <el-select v-model="ruleForm.indicatorId" placeholder="请选择指标名称"
+                                    @change="changeIndication"
+                                     :disabled="isSave">
+                                        <el-option
+                                        v-for="item in indicItemoptions"
+                                        :key="item.id"
+                                        :label="item.indicatorName"
+                                        :value="item.id">
+                                        </el-option>
+                                    </el-select>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="预警等级" prop="warningLevel">
+                                    <el-select v-model="ruleForm.warningLevel" placeholder="请选择预警等级">
+                                        <el-option
+                                        v-for="item in warningLeveloptions"
+                                        :key="item.value"
+                                        :label="item.label"
+                                        :value="item.value">
+                                        </el-option>
+                                    </el-select>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="预警类型" prop="warningType">
+                                    <el-select v-model="ruleForm.warningType" placeholder="请选择预警类型">
+                                        <el-option
+                                        v-for="item in warningTypeoptions"
+                                        :key="item.value"
+                                        :label="item.label"
+                                        :value="item.value">
+                                        </el-option>
+                                    </el-select>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="触发时间" prop="warningDate">
+                                    <el-row style="width:100%">
+                                        <el-col :span="22">
+                                            <el-date-picker
+                                                v-model="ruleForm.warningDate"
+                                                value-format="YYYY-MM-DD"
+                                                type="date"
+                                                placeholder="请选择触发时间"
+                                            />
+                                        </el-col>
+                                        <el-col :span="2" class="questionIcon">
+                                            <el-popover
+                                                placement="right-start"
+                                                title="提示"
+                                                :width="200"
+                                                trigger="hover"
+                                            >
+                                            <div>
+                                                <p>预警类型为年度:表示每年的今天执行;</p>
+                                                <p>预警类型为季度:1,4,7,10月份表示每个季度的第一个月执行,2,5,8,11月份表示每个季度的第二个月执行,3,6,9,12月份表示每个季度的第三个月执行;</p>
+                                                <p>预警类型为月度:表示每个月的今天执.</p>
+                                            </div>
+                                                <template #reference>
+                                                    <el-icon :size="20" color="#3B7AD1"><QuestionFilled /></el-icon>
+                                                </template>
+                                            </el-popover>
+                                        </el-col>
+                                    </el-row>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="是否启用">
+                                    <el-switch v-model="ruleForm.isEnable" />
+                                </el-form-item>
+                            </el-col>
+                        </el-row>
+                        <el-row>
+                            <el-col :span="12" class="earlyWarningRight">
+                                <el-form-item label="规则配置">
+                                    <el-tabs type="border-card">
+                                        <el-tab-pane label="指标项">
+                                            <el-table
+                                                size="mini"
+                                                :show-header="false"
+                                                :highlight-current-row="true"
+                                                :stripe="false"
+                                                :border="false"
+                                                height="240"
+                                                @row-dblclick="rowDbclick"
+                                                :data="multipleSelectionArr"
+                                            >
+                                                <el-table-column prop="optionName" />
+                                                <el-table-column prop="optionCode" />
+                                            </el-table>
+                                        </el-tab-pane>
+                                        <el-tab-pane label="函数">
+                                            <el-table
+                                                size="mini"
+                                                fit
+                                                :show-header="false"
+                                                :highlight-current-row="true"
+                                                :stripe="false"
+                                                :border="false"
+                                                height="240"
+                                                @row-dblclick="tabFuncRowClickHandle"
+                                                :data="funcMsg"
+                                            >
+                                                <el-table-column min-width="40%">
+                                                    <template #default="scope">
+                                                        <el-popover trigger="hover" placement="bottom">
+                                                        <p>描述:{{ scope.row.formulaName }}</p>
+                                                        <!-- <p>参数:{{ scope.row.param }}</p> -->
+                                                        <template #reference>
+                                                            <span size="medium" transition="fade-in-linear">{{
+                                                            scope.row.formulaName
+                                                            }}</span>
+                                                        </template>
+                                                        </el-popover>
+                                                    </template>
+                                                </el-table-column>
+                                                <el-table-column min-width="60%">
+                                                    <template #default="scope">
+                                                        <el-popover trigger="hover" placement="bottom">
+                                                        <p>描述:{{ scope.row.description }}</p>
+                                                        <!-- <p>参数:{{ scope.row.param }}</p> -->
+                                                        <template #reference>
+                                                            <span size="medium" transition="fade-in-linear">{{
+                                                            scope.row.description
+                                                            }}</span>
+                                                        </template>
+                                                        </el-popover>
+                                                    </template>
+                                                </el-table-column>
+                                            </el-table>
+                                        </el-tab-pane>
+                                        <el-tab-pane label="运算符">
+                                            <el-button-group>
+                                                <el-button
+                                                v-for="item in operator"
+                                                :key="item"
+                                                plain
+                                                @click="scorRuleSplit(item)"
+                                                style="width: 60px; margin: 7px 12px; height: 40px; border: 1px solid #409EFF;"
+                                                >
+                                                {{ item }}
+                                                </el-button>
+                                            </el-button-group>
+                                        </el-tab-pane>
+                                    </el-tabs>
+                                </el-form-item>
+                            </el-col>
+                            <el-col :span="12">
+                                <el-form-item label="规则公式" prop="representation">
+                                    <div style="display:flex">
+                                        <span style="font-size: 14px;color: #F65177;font-weight:blod">
+                                            *可双击左侧规则配置辅助写公式,符合Excel规则
+                                        </span>
+                                    </div>
+                                    <el-input
+                                    type="textarea"
+                                    rows="16"
+                                    v-model="ruleForm.representation"
+                                    id="representation"
+                                    />
+                                </el-form-item>
+                            </el-col>
+                        </el-row>
+                        <el-form-item label="描述" prop="desc">
+                            <el-input v-model="ruleForm.desc" :rows="5" type="textarea" placeholder="请输入描述"></el-input>
+                        </el-form-item>
+                    </el-form>
+                </div>
+                <template #footer>
+                    <span class="dialog-footer">
+                        <el-button @click="dialogVisible = false">取 消</el-button>
+                        <el-button type="primary" @click="saveevaluscoringruleMsg('ruleForm')">确 定</el-button>
+                    </span>
+                </template>
+            </el-dialog>
+        </div>
+    </div>
+</template>
+
+<script>
+import btns from '../elbuttonS.vue'
+import seachs from '../seachGroup.vue'
+import {apiGetevaluationWarningruleList, apiGetindicatorListAll, apiGetfunctionList,apiGetIndidicList,
+apiGetbinsectionList, apiGetevaluationWarningSave, apiPostevaluationwarningruleDelete} from '../../api/api'
+export default {
+  components: { btns,seachs },
+    data() {
+        return {
+            dialogVisible: false,
+            title: '',
+            indicItemoptions: [],
+            childerindicItemoptions: [],
+            warningLeveloptions: [],
+            warningTypeoptions: [],
+            binSectionoptions: [],
+            indicatorStr: '',
+            businessStr: '',
+            rowdataMsg: {},
+            isSave: false,
+            funcMsg: [],
+            operator: [],
+            multipleSelectionArr: [],
+            ruleForm: {
+                ruleName: '',
+                binSection: '',
+                indicatorId: '',
+                warningLevel: '',
+                warningType: '',
+                warningDate: '',
+                isEnable: true,
+                representation: '',
+                desc: ''
+            },
+            rules: {
+                ruleName: [
+                    { required: true, message: '请输入预警名称', trigger: 'blur' }
+                ],
+                binSection: [
+                    { required: true, message: '请选择业务属性', trigger: 'change' }
+                ],
+                indicatorId: [
+                    { required: true, message: '请选择指标名称', trigger: 'change' }
+                ],
+                warningLevel: [
+                    { required: true, message: '请选择预警等级', trigger: 'change' }
+                ],
+                warningType: [
+                    { required: true, message: '请选择预警类型', trigger: 'change' }
+                ],
+                warningDate: [
+                    { required: true, message: '请选择触发时间', trigger: 'change' }
+                ],
+                representation: [
+                    { required: true, message: '请输入公式', trigger: 'blur' }
+                ],
+                desc: [
+                    { required: true, message: '请输入描述', trigger: 'blur' }
+                ]
+            },
+            loadingImport: false,
+            earlyWarningRulesData:[],
+            page:{
+                pagesize: 12,
+                currentPage: 1,
+                total: 0
+            }
+        }
+    },
+    created() {
+        this.warningLeveloptions = [
+            {
+                label: '高',
+                value: 3
+            },
+            {
+                label: '中',
+                value: 2
+            },
+            {
+                label: '低',
+                value: 1
+            }
+        ]
+        this.warningTypeoptions = [
+            {
+                label: '年度考评',
+                value: 'NDKP'
+            },
+            {
+                label: '季度考评',
+                value: 'JDKP'
+            },
+            {
+                label: '月度考评',
+                value: 'YDKP'
+            }
+        ]
+        this.getEvalscoringData()
+        this.getDataDictionary()
+        this.getEvaluationData()
+        this.getFunData()
+        this.operator = ["+", "-", "*", "/", "(", ")", ">", ">=", "<", "<=", "==", "!=",
+            "&&", "||", "!", "%", "true", "false", ".", ]
+    },
+    methods:{
+        // 查询预警规则数据
+        getEvalscoringData() {
+            let that = this
+            let params = {
+                pageNum: that.page.currentPage,
+                pageSize: that.page.pagesize,
+                ruleName: that.indicatorStr,
+                binSection: that.businessStr
+            }
+            apiGetevaluationWarningruleList(params).then(datas =>{
+                if (datas && datas.data) {
+                    that.earlyWarningRulesData = datas.data.records
+                    that.page.total = datas.data.total
+                }
+            })
+        },
+        // 函数查询
+        getFunData() {
+            let that = this
+            apiGetfunctionList().then(datas =>{
+                if (datas && datas.data) {
+                    that.funcMsg = datas.data
+                }
+            })
+        },
+        // 查询模块
+        getDataDictionary() {
+            let that = this
+            apiGetbinsectionList().then(datas =>{
+                if (datas && datas.data) {
+                    that.binSectionoptions = datas.data
+                }
+            })
+        },
+        changeIndication(val) {
+            let that = this
+            that.multipleSelectionArr = []
+            let params = {
+                indicatorId: val
+            }
+            apiGetIndidicList(params).then(datas =>{
+                if (datas) {
+                    that.multipleSelectionArr = datas
+                }
+            })
+        },
+        tabFuncRowClickHandle(row) {
+            let elInput = null
+            elInput = document.getElementById("representation");
+            let startPos = elInput.selectionStart; //第0个字符到选中的字符
+            let endPos = elInput.selectionEnd; //选中字符到末尾字符
+            if (startPos === undefined || endPos === undefined) return;
+            let txt = elInput.value;
+            let func = row.formulaExpresion
+            // 将插值添加到选中光标位置
+            let result = txt.substring(0, startPos) + func + txt.substring(endPos);
+            elInput.value = result;
+            elInput.focus();
+        },
+        rowDbclick(row) {
+            this.scorRuleSplit(row.optionCode);
+        },
+        scorRuleSplit(val) {
+            let elInput = null
+            elInput = document.getElementById("representation");
+            let startPos = elInput.selectionStart;
+            let endPos = elInput.selectionEnd;
+            if (startPos === undefined || endPos === undefined) return;
+            let txt = elInput.value;
+            let txtSplit = '['+val+']';
+            let result = txt.substring(0, startPos) + txtSplit + txt.substring(endPos);
+            elInput.value = result;
+            this.ruleForm.representation = result
+            elInput.focus();
+            elInput.selectionStart = startPos + txtSplit.length;
+            elInput.selectionEnd = startPos + txtSplit.length;
+        },
+        changeBinstation(val) {
+            this.ruleForm.indicatorId = ''
+            this.indicItemoptions = []
+            this.getEvaluationData(val)
+        },
+        // 查询指标数据
+        getEvaluationData(val) {
+            let that = this
+            let params = {
+                binSection: val
+            }
+            apiGetindicatorListAll(params).then(datas =>{
+                if (datas && datas.data) {
+                    that.indicItemoptions = datas.data
+                }
+            })
+        },
+        handleAdd() {
+            this.dialogVisible = true
+            this.isSave = false
+            this.title = '新增考评预警规则'
+            this.$nextTick(() =>{
+                this.ruleForm = {
+                    ruleName: '',
+                    binSection: '',
+                    indicatorId: '',
+                    warningLevel: '',
+                    warningType: '',
+                    warningDate: '',
+                    isEnable: true,
+                    representation: '',
+                    desc: ''
+                }
+            })
+        },
+        handleEdit(row) {
+            this.dialogVisible = true
+            this.isSave = true
+            this.title = '修改考评预警规则'
+            this.rowdataMsg = row
+            this.ruleForm = {
+                ruleName: row.ruleName,
+                binSection: row.binSection,
+                indicatorId: row.indicatorId,
+                warningLevel: row.grade,
+                warningType: row.type,
+                warningDate: row.cronTime,
+                isEnable: row.enable,
+                representation: row.expression,
+                desc: row.ruleDes
+            }
+            this.getEvaluationData(row.binSection)
+        },
+        saveevaluscoringruleMsg(formName) {
+            let that = this
+            that.$refs[formName].validate((valid) => {
+                if (valid) {
+                    that.saveAndEditIndicatorData()
+                }
+            });
+        },
+        //新增/修改指标数据
+        saveAndEditIndicatorData() {
+            let that = this
+            let params = {
+                ruleName: that.ruleForm.ruleName,
+                binSection: that.ruleForm.binSection,
+                indicatorId: that.ruleForm.indicatorId,
+                grade: that.ruleForm.warningLevel,
+                type: that.ruleForm.warningType,
+                cronTime: that.ruleForm.warningDate+' 00:00:00',
+                enable: that.ruleForm.isEnable,
+                expression: encodeURI(that.ruleForm.representation),
+                ruleDes: that.ruleForm.desc
+            }
+            if (that.isSave) {
+                let evalradio = that.rowdataMsg
+                params.id = evalradio.id
+            }
+            apiGetevaluationWarningSave(params).then(datas =>{
+                if (!that.isSave) {
+                    that.$message({
+                        message: '考评预警规则新增成功',
+                        type: 'success'
+                    });
+                } else {
+                    that.$message({
+                        message: '考评预警规则修改成功',
+                        type: 'success'
+                    });
+                }
+                that.dialogVisible = false
+                that.getEvalscoringData()
+            })
+        },
+        //删除指标数据
+        handleDelete(row) {
+            this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
+                confirmButtonText: '确定',
+                cancelButtonText: '取消',
+                type: 'warning'
+            }).then(() => {
+                let that = this
+                let params = {
+                    id: row.id
+                }
+                apiPostevaluationwarningruleDelete(params).then(datas =>{
+                    if (datas) {
+                        that.$message({
+                            type: 'success',
+                            message: '删除成功!'
+                        });
+                        that.getEvalscoringData()
+                    }
+                })
+            })
+        },  
+        showCounter() {
+            this.$refs.counter.init(this.ruleForm.optionName)
+        },
+        counterStr(val) {
+            this.ruleForm.optionName = val
+        },
+        getSeachData() {
+            this.page.currentPage = 1
+            this.getEvalscoringData()
+        },
+        reset() {
+            this.page.currentPage = 1
+            this.indicatorStr = ''
+            this.businessStr = ''
+            this.getEvalscoringData()
+        },
+        handleSizeChange(val){
+            this.page.pagesize = val
+            this.getEvalscoringData()
+        },
+        handleCurrentChange(val){
+            this.page.currentPage =val
+            this.getEvalscoringData()
+        }
+    }
+}
+</script>
+
+<style lang="less">
+.earlyWarningRules{
+    .earlyWarningRulesBtn{
+        .collectSeach{
+            display: flex;
+            padding: 24px 20px;
+            border-bottom: 1px solid#D6DBEA;
+                .exceed{
+                    display: flex;
+                    .exceedSpan{
+                        width: 75px;
+                        height: 12px;
+                        font-size: 14px;
+                        font-family: Microsoft YaHei;
+                        font-weight: 400;
+                        color: #8991B0;
+                        line-height: 12px;
+                        margin-top: 14px;
+                    }
+                    .el-input{
+                        margin-right:10px;
+                        .el-input__inner{
+                            height:40px;
+                        }
+                        .el-input__suffix{
+                            .el-select__caret{
+                                line-height:30px;
+                            }
+                        }
+                    }
+                }
+                .el-select{
+                    margin-right:10px;
+                    .el-input__inner{
+                        height:30px;
+                    }
+                    .el-input__suffix{
+                        .el-select__caret{
+                            line-height:30px;
+                        }
+                    }
+                }
+        }
+        span{
+            font-size:14px;
+        }
+        .PeriodBtn{
+            display: flex;
+            justify-content: end;
+            padding: 20px 0;
+        }
+        .el-button{
+            height: 30px;
+            // width:100px;
+            padding: 0 30px ;
+            // padding-top: 8px;
+            span{
+                margin:0;
+            }
+        }
+    }
+    .earlyWarningRulesTableData{
+        .el-table{
+            .el-table__body-wrapper{
+                height: 60vh !important;
+            }
+            .el-input__inner{
+                height: 30px !important;
+            }
+            .el-radio__label{
+                display: none;
+            }
+            .tooltipCC{
+                width: 400px;
+                display: inline-block;
+                overflow: hidden;
+                text-overflow: ellipsis;
+                white-space: nowrap;
+            }
+            .indicitem{
+                color: #409EFF;
+                font-size: 12px;
+                margin-right: 20px;
+                cursor:pointer;
+                &:hover{
+                    text-decoration: underline;
+                }
+            }
+        }
+        .el-pagination{
+            margin-top: 20px;
+            text-align: end;
+            position: relative;
+        }
+    }
+    .el-overlay{
+        .el-dialog{
+            margin-top: 5vh;
+            .el-dialog__body{
+                padding: 30px 60px 30px 20px;
+                .periodFrom{
+                    .el-select, .el-input{
+                        width: 100%;
+                    }
+                    .el-input{
+                        height: 30px;
+                    }
+                    .questionIcon{
+                        .el-icon{
+                            position: relative;
+                            top: 3px;
+                            left: 10px;
+                        }
+                    }
+                    .earlyWarningRight {
+                        width: 100%;
+                        .el-tabs{
+                            width: 100%;
+                            height: 100%;
+                            .el-tabs__content{
+                                .el-table{
+                                    .el-table__body-wrapper{
+                                        .el-checkbox__inner{
+                                            border-radius: 10px;
+                                        }
+                                    }
+                                }
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+}
+</style>

+ 2 - 2
src/components/menuTreeconfig.vue

@@ -37,9 +37,9 @@ export default {
             if (item === '人员权限配置' || item === '工作流程配置') {
                 let url = ''
                 if (window.location.href.includes('10.65.78.23')) {
-                    url = 'http://10.65.78.23:81/#/login'
+                    url = 'http://10.65.78.23:9098/#/login'
                 } else {
-                    url = 'http://10.65.79.83:81/#/login'
+                    url = 'http://10.65.79.88:9098/#/login'
                 }
                 window.open(url, 'blank')
             }

+ 22 - 0
src/router/index.js

@@ -185,6 +185,17 @@ const routes = [
                             ),
                     },
                     {
+                        path: '/assessment/evaluationUnitRating',
+                        name: 'evaluationUnitRating',
+                        meta: {
+                            title: '单位考评评级',
+                        },
+                        component: () =>
+                            import(
+                                '../components/assessment/evaluationUnitRatingPage.vue'
+                            ),
+                    },
+                    {
                         path: '/assessment/evaluationReport',
                         name: 'evaluationReport',
                         meta: {
@@ -322,6 +333,17 @@ const routes = [
                             ),
                     },
                     {
+                        path: '/evaluationknowledge/evalRatingRules',
+                        name: 'evalRatingRules',
+                        meta: {
+                            title: '考评评级规则',
+                        },
+                        component: () =>
+                            import(
+                                '../components/evaluationknowledgePage/evalRatingRulesPage.vue'
+                            ),
+                    },
+                    {
                         path: '/evaluationknowledge/earlyWarningRule',
                         name: 'earlyWarningRule',
                         meta: {

+ 2 - 2
src/utils/baseUrl.js

@@ -17,8 +17,8 @@ switch (process.env.NODE_ENV) {
  
     case 'production': 
         // baseUrl.ROOT = "http://123.60.219.66:28800/"
-        baseUrl.ROOT = "http://10.65.78.23:28800/" //测试环境
-        // baseUrl.ROOT = "http://10.65.78.81:28800/"  // 正式环境
+        // baseUrl.ROOT = "http://10.65.78.23:28800/" //测试环境
+        baseUrl.ROOT = "http://10.65.78.81:28800/"  // 正式环境
         break 
 }
 

+ 2 - 0
src/views/Login.vue

@@ -66,11 +66,13 @@ export default {
     },
     created() {
         if (this.$route?.query?.iamCode && this.$route?.query?.iamAccessToken) {
+            console.log('有iamCode===>>>', this.$route )
             window.localStorage.setItem('token', this.$route.query.iamAccessToken)
             window.localStorage.setItem('code', this.$route.query.iamCode)
             // this.$router.push({ path: "/home"})
             this.getUserMsg(this.$route.query.iamCode)
         } else {
+            console.log('没有iamCode===>>>', this.$route)
             if (window.localStorage.getItem('userData')) {
                 let userData = JSON.parse(window.localStorage.getItem('userData'))
                 this.inputUser = userData.user

+ 2 - 2
src/views/homePage.vue

@@ -158,7 +158,7 @@
             //                 name: '考评预警'
             //             },
             //             {
-            //                 index: '',
+            //                 index: '/assessment/evaluationUnitRating',
             //                 name: '单位考评评级'
             //             },
             //             {
@@ -213,7 +213,7 @@
             //                 name: '考评得分规则',
             //             },
             //             {
-            //                 index: '',
+            //                 index: '/evaluationknowledge/evalRatingRules',
             //                 name: '考评评级规则',
             //             },
             //             {