| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div style="padding: 0px 10px"> |
| | | <div > |
| | | <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" |
| | | > |
| | | <el-menu-item index="0">省厅考核</el-menu-item> |
| | | <el-menu-item index="1">区县考核</el-menu-item> |
| | | </el-menu> |
| | | </div> |
| | | <el-container> |
| | | <el-main> |
| | | <h2>考核规则</h2> |
| | |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | > |
| | | <el-form-item label="考核月度" prop="name"> |
| | | <el-date-picker |
| | | v-model="queryParams.date" |
| | | format="yyyy-MM" |
| | | value-format="yyyy-MM" |
| | | type="month" |
| | | placeholder="选择日期" |
| | | @change="dateChange" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="考核季度"> |
| | | <!-- <el-form-item label="考核月度" prop="name">--> |
| | | <!-- <el-date-picker--> |
| | | <!-- v-model="queryParams.date"--> |
| | | <!-- format="yyyy-MM"--> |
| | | <!-- value-format="yyyy-MM"--> |
| | | <!-- type="month"--> |
| | | <!-- placeholder="选择日期"--> |
| | | <!-- @change="dateChange"--> |
| | | <!-- >--> |
| | | <!-- </el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="考核时间"> |
| | | <el-date-picker |
| | | :clearable="false" |
| | | v-model="queryParams.quarter" |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ translateDeptId(scope.row.dept_id) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="考核标签" |
| | | align="center" |
| | | prop="dept_id" |
| | | width="120px" |
| | | fixed |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.examine_tag === 0 ? '省厅考核' : '区县考核' }} |
| | | </template> |
| | | </el-table-column> |
| | | <template v-for="item in tableData"> |
| | |
| | | queryParams: { |
| | | id: null, |
| | | date: null, |
| | | quarter: null |
| | | quarter: null, |
| | | examineTag: null |
| | | }, |
| | | // 表单校验 |
| | | rules: {}, |
| | |
| | | if (this.$route.query.id) { |
| | | this.queryParams.id = this.$route.query.id; |
| | | } |
| | | let examineTag = this.$route.query.examineTag; |
| | | this.activeIndex = examineTag; |
| | | this.queryParams.examineTag = examineTag; |
| | | // 考核积分列表 |
| | | this.getList(); |
| | | this.areaSelect(); |
| | |
| | | this.indexOpen = true; |
| | | this.title = "修改考核指标"; |
| | | }, |
| | | /** 导航切换 */ |
| | | handleSelect(key) { |
| | | this.activeIndex = key; |
| | | this.queryParams.examineTag = key; |
| | | // 考核积分列表 |
| | | this.getList(); |
| | | |
| | | |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleRuleUpdate(row) { |
| | | this.reset("ruleForm"); |
| | |
| | | }, |
| | | `考核指标_${new Date().getTime()}.xlsx` |
| | | ); |
| | | }, |
| | | handleSelect(key, keyPath) { |
| | | console.log(key, keyPath); |
| | | }, |
| | | }, |
| | | }; |