evaluationIndexPage.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. <template>
  2. <div class="evaluationIndex" v-loading="loadingImport">
  3. <div class="evaluationIndexBtn">
  4. <div class="collectSeach">
  5. <div class="exceed">
  6. <span class="exceedSpan">指标名称:</span>
  7. <el-input v-model="indicatorIdS" placeholder="请输入指标名称"></el-input>
  8. </div>
  9. <el-button type="primary" style="margin-left: 10px;" @click="getSeachData">搜索</el-button>
  10. <el-button style="margin-left: 10px;" @click="resetSeach">重置</el-button>
  11. </div>
  12. <div class="PeriodBtn">
  13. <btns
  14. :disSave="changeDateSelect.length === 0 || changeDateSelect.length>1"
  15. :disDelete="changeDateSelect.length === 0"
  16. :disImport="true"
  17. :disExport="true"
  18. @handleAdd="handleAdd"
  19. @handleEdit="handleEdit"
  20. @handleDelete="handleDelete"
  21. @handleImport="handleImport"
  22. @handleExport="handleExport"
  23. ></btns>
  24. </div>
  25. <div class="evaluationIndexTableData">
  26. <el-table :data="evaluationIndexData" style="width: 100%" @select="rowClick" @select-all="rowClick">
  27. <el-table-column type="selection" label="操作" align="center"></el-table-column>
  28. <el-table-column label="指标名称" prop="indicatorName" />
  29. <el-table-column label="指标编码" prop="indicatorCode" />
  30. <el-table-column label="指标类型" prop="indicatorTypeName" />
  31. <el-table-column label="指标单位" prop="unit" />
  32. <el-table-column label="业务阶段" prop="binStageName" />
  33. <el-table-column label="业务属性" prop="binSectionName" />
  34. <!-- <el-table-column label="公司" prop="company" /> -->
  35. <el-table-column label="部门" prop="dept" />
  36. <el-table-column label="是否专项" prop="isAdditional" />
  37. <el-table-column label="是否量化" prop="isQuantified" />
  38. <el-table-column label="是否子指标">
  39. <template #default="scope">
  40. <span>{{scope.row.isChild === true?'是':'否'}}</span>
  41. </template>
  42. </el-table-column>
  43. <el-table-column label="描述">
  44. <template #default="scope">
  45. <span>{{scope.row.des}}</span>
  46. </template>
  47. </el-table-column>
  48. <el-table-column label="操作">
  49. <template #default="scope">
  50. <p class="indicitem" @click="editEvaluaIndex(scope.row)">详情</p>
  51. </template>
  52. </el-table-column>
  53. </el-table>
  54. <el-pagination
  55. @size-change="handleSizeChange"
  56. @current-change="handleCurrentChange"
  57. :current-page="page.currentPage"
  58. :page-size="page.pagesize"
  59. layout="total, prev, pager, next, jumper"
  60. :total="page.total">
  61. </el-pagination>
  62. </div>
  63. <div class="indexdialog">
  64. <el-dialog :title="title" v-model="dialogVisible" width="70vw" :close-on-click-modal="false">
  65. <el-row class="periodFrom">
  66. <el-col :span="8">
  67. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="DruleForm" :validate-on-rule-change="false">
  68. <el-form-item label="指标名称" prop="indicatorName">
  69. <el-input v-model="ruleForm.indicatorName" placeholder="请输入指标名称" :readonly="isDetail" @blur="blurInput"></el-input>
  70. </el-form-item>
  71. <el-form-item label="指标编码" prop="indicatorCode">
  72. <el-input v-model="ruleForm.indicatorCode" placeholder="请输入指标编码" :disabled="isSave" :readonly="isDetail" @blur="blurInput"></el-input>
  73. </el-form-item>
  74. <el-form-item label="指标类别" prop="indicatorType">
  75. <el-select v-model="ruleForm.indicatorType" placeholder="请选择指标类别" :disabled="isDetail">
  76. <el-option
  77. v-for="item in indicatorTypeData"
  78. :key="item.id"
  79. :label="item.typeName"
  80. :value="item.id">
  81. </el-option>
  82. </el-select>
  83. </el-form-item>
  84. <el-form-item label="指标单位" prop="indicatorUnit">
  85. <el-input v-model="ruleForm.indicatorUnit" placeholder="请输入指标单位" :readonly="isDetail"></el-input>
  86. </el-form-item>
  87. <el-form-item label="所属部门" prop="department">
  88. <el-select v-model="ruleForm.department" placeholder="请选择所属部门" :disabled="isDetail">
  89. <el-option
  90. v-for="item in departData"
  91. :key="item.dataKey"
  92. :label="item.keyName"
  93. :value="item.dataKey">
  94. </el-option>
  95. </el-select>
  96. </el-form-item>
  97. <el-form-item label="业务阶段" prop="binStage">
  98. <el-select v-model="ruleForm.binStage" placeholder="请选择业务阶段" :disabled="isDetail">
  99. <el-option
  100. v-for="item in stageData"
  101. :key="item.id"
  102. :label="item.stageName"
  103. :value="item.id">
  104. </el-option>
  105. </el-select>
  106. </el-form-item>
  107. <el-form-item label="业务属性" prop="binSection">
  108. <el-select v-model="ruleForm.binSection" placeholder="请选择业务属性" :disabled="isDetail">
  109. <el-option
  110. v-for="item in moduleData"
  111. :key="item.id"
  112. :label="item.sectionName"
  113. :value="item.id">
  114. </el-option>
  115. </el-select>
  116. </el-form-item>
  117. <el-form-item label="是否量化">
  118. <el-radio-group v-model="ruleForm.isQuantified" :disabled="isDetail">
  119. <el-radio border label="是" />
  120. <el-radio border label="否" />
  121. </el-radio-group>
  122. </el-form-item>
  123. <el-form-item label="是否专项">
  124. <el-radio-group v-model="ruleForm.isAdditional" :disabled="isDetail">
  125. <el-radio border label="是" />
  126. <el-radio border label="否" />
  127. </el-radio-group>
  128. </el-form-item>
  129. <el-form-item label="是否子指标">
  130. <el-radio-group v-model="ruleForm.isChild" @change="changeRadio" :disabled="isDetail || isSave">
  131. <el-radio border label="是" />
  132. <el-radio border label="否" />
  133. </el-radio-group>
  134. </el-form-item>
  135. <el-form-item label="指标顺序" prop="orderNum">
  136. <el-input-number v-model="ruleForm.orderNum" :min="1" :disabled="isDetail" />
  137. </el-form-item>
  138. <el-form-item label="描述" prop="desc">
  139. <el-input v-model="ruleForm.desc" :rows="5" type="textarea" placeholder="请输入描述" :readonly="isDetail"></el-input>
  140. </el-form-item>
  141. </el-form>
  142. </el-col>
  143. <el-col :span="16" class="indicatorItemBtn">
  144. <div class="PeriodBtn">
  145. <el-row :gutter="10" style="padding-left: 10px;">
  146. <p class="indItemC">指标项配置管理</p>
  147. <el-col :span="1.5">
  148. <el-button
  149. type="primary"
  150. size="mini"
  151. :disabled="ruleForm.isChild === '否' || isDetail"
  152. @click="handleAddChild"
  153. >
  154. <img :src="addW" style="margin-right: 10px">
  155. <span>新增</span>
  156. </el-button>
  157. </el-col>
  158. </el-row>
  159. </div>
  160. <div class="indicatorItemTableData">
  161. <div class="datasMsg" v-if="indicatoroptions.length>0" >
  162. <el-collapse accordion>
  163. <el-collapse-item v-for="item in indicatoroptions" :key="item" :name="item.id">
  164. <template #title>
  165. <div style="display:flex;height:30px">
  166. <div style="display:flex;height:30px">
  167. <span class="nameTit">子指标名称:</span>
  168. <el-input v-model="item.childName" placeholder="请输入子指标项名称" :readonly="isDetail"></el-input>
  169. </div>
  170. <div style="display:flex">
  171. <span class="nameTit">子指标编码:</span>
  172. <el-input v-model="item.childCode" placeholder="请输入子指标项编码" :readonly="isDetail"></el-input>
  173. </div>
  174. </div>
  175. </template>
  176. <div style="padding:10px 20px">
  177. <div class="tableBtn add" @click="handleAddTableChild(item)" v-if="!isDetail">
  178. <img :src="addIcon" alt="">
  179. <span>新增</span>
  180. </div>
  181. <el-table :data="item.list">
  182. <el-table-column label="序号" type="index" align="center" />
  183. <el-table-column label="指标项名称" prop="optionName">
  184. <template #default="scope">
  185. <el-select v-model="scope.row.optionName" filterable :disabled="isDetail" placeholder="请选择指标项名称" @change="(val)=>changeOptionName(val,scope.row)">
  186. <el-option
  187. v-for="item in indicItemoptions"
  188. :key="item.keyValue"
  189. :label="item.keyName"
  190. :value="item.keyName">
  191. </el-option>
  192. </el-select>
  193. </template>
  194. </el-table-column>
  195. <el-table-column label="指标项编码" prop="optionCode">
  196. <template #default="scope">
  197. <span>{{scope.row.optionCode}}</span>
  198. </template>
  199. </el-table-column>
  200. <el-table-column label="描述">
  201. <template #default="scope">
  202. <el-input v-model="scope.row.des" :rows="1" type="textarea" placeholder="请输入描述" :readonly="isDetail"></el-input>
  203. </template>
  204. </el-table-column>
  205. <el-table-column label="操作" width="100" v-if="!isDetail">
  206. <template #default="scope">
  207. <p class="indicitem" @click="handleDeleteTableChild(item, scope.row)">删除</p>
  208. </template>
  209. </el-table-column>
  210. </el-table>
  211. </div>
  212. </el-collapse-item>
  213. </el-collapse>
  214. </div>
  215. <div v-else>
  216. <span class="emptyData">暂无数据</span>
  217. </div>
  218. </div>
  219. </el-col>
  220. </el-row>
  221. <template #footer>
  222. <span class="dialog-footer">
  223. <el-button @click="dialogVisible = false">取 消</el-button>
  224. <el-button type="primary" @click="saveEvaluationIndexMsg('ruleForm')" v-if="!isDetail">确 定</el-button>
  225. </span>
  226. </template>
  227. </el-dialog>
  228. </div>
  229. <indicator-item ref="indicatorItem"></indicator-item>
  230. </div>
  231. <import-dailog ref="importPage" @successImport="successImport" @importLoading="importLoading"></import-dailog>
  232. </div>
  233. </template>
  234. <script>
  235. import importDailog from '../importPage/importDailog.vue'
  236. import indicatorItem from './IndicatorItemPage.vue'
  237. import btns from '../elbuttonS.vue'
  238. import addW from '../../assets/btnIcon/addW.png'
  239. import saveW from '../../assets/btnIcon/saveW.png'
  240. import addIcon from '../../assets/btnIcon/add.png'
  241. import {apiGetIndicatorList, apiPostindicatorsaveGroup, apiGetIndicatorDelete,apiGetbinsectionList,apiGetIndicatordicdeleteList,
  242. apiGetIndicatorTypeList, apiGetdatadictionaryList, apiGetbinstageList, apiGetdataZBXList, apiGetIndidicselectById} from '../../api/api'
  243. export default {
  244. components: { importDailog, indicatorItem, btns },
  245. data() {
  246. return {
  247. dialogVisible: false,
  248. title: '',
  249. isSave: false,
  250. changeDateSelect: [],
  251. indicatorIdS: '',
  252. evaluationIndexData:[],
  253. moduleData: [],
  254. stageData: [],
  255. departData: [],
  256. indicatorTypeData: [],
  257. ruleForm: {
  258. indicatorName: '',
  259. indicatorCode: '',
  260. indicatorType: '',
  261. indicatorUnit: '',
  262. department: '',
  263. binSection: '',
  264. binStage: '',
  265. isQuantified: '是',
  266. isAdditional: '否',
  267. isChild: '否',
  268. orderNum: 1,
  269. desc: ''
  270. },
  271. rules: {
  272. indicatorName: [
  273. { required: true, message: '请输入指标名称', trigger: 'blur' }
  274. ],
  275. indicatorCode: [
  276. { required: true, message: '请输入指标编码', trigger: 'blur' }
  277. ],
  278. indicatorType: [
  279. { required: true, message: '请选择指标类别', trigger: 'change' }
  280. ],
  281. indicatorUnit: [
  282. { required: true, message: '请输入指标单位', trigger: 'blur' }
  283. ],
  284. department: [
  285. { required: true, message: '请选择所属部门', trigger: 'change' }
  286. ],
  287. binSection: [
  288. { required: true, message: '请选择业务属性', trigger: 'change' }
  289. ],
  290. binStage: [
  291. { required: true, message: '请输入业务阶段', trigger: 'change' }
  292. ],
  293. orderNum: [
  294. { required: true, message: '请输入指标顺序', trigger: 'blur' }
  295. ],
  296. desc: [
  297. { required: true, message: '请输入描述', trigger: 'blur' }
  298. ]
  299. },
  300. page:{
  301. pagesize: 12,
  302. currentPage: 1,
  303. total: 0
  304. },
  305. evalradio: {},
  306. loadingImport: false,
  307. addW: addW,
  308. saveW: saveW,
  309. addIcon: addIcon,
  310. indicatoroptions: [],
  311. indicItemoptions: [],
  312. isDetail: false
  313. }
  314. },
  315. created() {
  316. this.getEvaluationData()
  317. this.getDataDictionary('BM0001') //部门//模块//阶段
  318. this.getindicatorTypeData()
  319. this.getindicItemData()
  320. },
  321. methods:{
  322. // 查询指标数据
  323. getEvaluationData(type) {
  324. let that = this
  325. let params = {
  326. pageNum: this.page.currentPage,
  327. pageSize: this.page.pagesize,
  328. }
  329. if (type) {
  330. params.indicatorName = that.indicatorIdS
  331. }
  332. apiGetIndicatorList(params).then(datas =>{
  333. if (datas && datas.data) {
  334. that.evaluationIndexData = datas.data.records
  335. that.page.total = datas.data.total
  336. }
  337. })
  338. },
  339. // 查询指标类别
  340. getindicatorTypeData() {
  341. let that = this
  342. apiGetIndicatorTypeList().then(datas =>{
  343. if (datas && datas.data) {
  344. that.indicatorTypeData = datas.data
  345. }
  346. })
  347. },
  348. changeOptionName(val, row) {
  349. this.indicItemoptions.forEach(item =>{
  350. if (item.keyName === val) {
  351. row.optionCode = item.keyValue
  352. }
  353. })
  354. },
  355. // 查询指标项条目
  356. getindicItemData() {
  357. let that = this
  358. let params = {
  359. superKey: 'ZBX0001'
  360. }
  361. apiGetdataZBXList(params).then(datas =>{
  362. if (datas && datas.data) {
  363. that.indicItemoptions = datas.data
  364. }
  365. })
  366. },
  367. // 查询部门
  368. // 查询规则模块和阶段数据
  369. getDataDictionary(val) {
  370. let that = this
  371. let params = {
  372. superKey: val
  373. }
  374. apiGetdatadictionaryList(params).then(datas =>{
  375. if (datas && datas.data) {
  376. that.departData = datas.data
  377. }
  378. })
  379. apiGetbinsectionList().then(datas =>{
  380. if (datas && datas.data) {
  381. that.moduleData = datas.data
  382. }
  383. })
  384. apiGetbinstageList().then(datas =>{
  385. if (datas && datas.data) {
  386. that.stageData = datas.data
  387. }
  388. })
  389. },
  390. changeRadio(val) {
  391. if (val === '否') {
  392. if (this.ruleForm.indicatorName !== '' && this.ruleForm.indicatorCode !== '') {
  393. let childitemForm = {
  394. childName: this.ruleForm.indicatorName,
  395. childCode: this.ruleForm.indicatorCode,
  396. list: []
  397. }
  398. this.indicatoroptions.push(childitemForm)
  399. }
  400. } else {
  401. this.indicatoroptions = []
  402. }
  403. },
  404. blurInput(val) {
  405. if (this.ruleForm.isChild === '否') {
  406. if (this.ruleForm.indicatorName !== '' && this.ruleForm.indicatorCode !== '') {
  407. let childitemForm = {
  408. childName: this.ruleForm.indicatorName,
  409. childCode: this.ruleForm.indicatorCode,
  410. list: []
  411. }
  412. this.indicatoroptions.push(childitemForm)
  413. }
  414. }
  415. },
  416. //新增子指标
  417. handleAddTableChild(row) {
  418. let childitemForm = {
  419. optionName: '',
  420. optionCode: ''
  421. }
  422. row.list.push(childitemForm)
  423. },
  424. handleAdd() {
  425. this.dialogVisible = true
  426. this.isSave = false
  427. this.isDetail = false
  428. this.title = '新增考评指标'
  429. this.$nextTick(() =>{
  430. this.$refs['ruleForm'].resetFields()
  431. this.ruleForm = {
  432. indicatorName: '',
  433. indicatorCode: '',
  434. indicatorType: '',
  435. indicatorUnit: '',
  436. department: '',
  437. binSection: '',
  438. binStage: '',
  439. isQuantified: '是',
  440. isAdditional: '否',
  441. isChild: '否',
  442. orderNum: 1,
  443. desc: ''
  444. }
  445. this.indicatoroptions = []
  446. })
  447. },
  448. handleEdit() {
  449. this.dialogVisible = true
  450. this.isSave = true
  451. this.isDetail = false
  452. this.title = '修改考评指标'
  453. this.evalradio = this.changeDateSelect[0]
  454. this.ruleForm = {
  455. indicatorName: this.evalradio.indicatorName,
  456. indicatorCode: this.evalradio.indicatorCode,
  457. indicatorType: this.evalradio.indicatorTypeId,
  458. indicatorUnit: this.evalradio.unit,
  459. department: this.evalradio.dept,
  460. binSection: this.evalradio.binSection,
  461. binStage: this.evalradio.binStage,
  462. isQuantified: this.evalradio.isQuantified,
  463. isAdditional: this.evalradio.isAdditional,
  464. isChild: this.evalradio.isChild === true? '是': '否',
  465. orderNum: this.evalradio.orderNum,
  466. desc: this.evalradio.des
  467. }
  468. this.getIndidicselectById(this.evalradio.id)
  469. },
  470. // 根据指标id获取主子指标-list
  471. getIndidicselectById(id) {
  472. let that = this
  473. let params = {
  474. id: id
  475. }
  476. apiGetIndidicselectById(params).then(datas =>{
  477. if (datas && datas.data) {
  478. that.indicatoroptions = datas.data.dtoList
  479. }
  480. })
  481. },
  482. //新增子指标
  483. handleAddChild() {
  484. this.$nextTick(() =>{
  485. let itemForm = {
  486. childName: '',
  487. childCode: '',
  488. list: [],
  489. }
  490. this.indicatoroptions.push(itemForm)
  491. })
  492. },
  493. saveEvaluationIndexMsg(formName) {
  494. let that = this
  495. that.$refs[formName].validate((valid) => {
  496. if (valid) {
  497. that.saveAndEditIndicatorData()
  498. }
  499. });
  500. },
  501. //新增/修改指标数据
  502. saveAndEditIndicatorData() {
  503. let that = this
  504. let params = {
  505. indicatorName: that.ruleForm.indicatorName,
  506. indicatorCode: that.ruleForm.indicatorCode,
  507. indicatorTypeId: that.ruleForm.indicatorType,
  508. unit: that.ruleForm.indicatorUnit,
  509. dept: that.ruleForm.department,
  510. binSection: that.ruleForm.binSection,
  511. binStage: that.ruleForm.binStage,
  512. isQuantified: that.ruleForm.isQuantified,
  513. isAdditional: that.ruleForm.isAdditional,
  514. isChild: that.ruleForm.isChild === '是'?true:false,
  515. orderNum: that.ruleForm.orderNum,
  516. des: that.ruleForm.desc,
  517. dtoList: that.indicatoroptions
  518. }
  519. if (that.isSave) {
  520. params.id = this.evalradio.id
  521. }
  522. apiPostindicatorsaveGroup(params).then(datas =>{
  523. if (!datas.success) {
  524. that.$message({
  525. message: datas.message,
  526. type: 'error'
  527. });
  528. } else {
  529. if (!that.isSave) {
  530. that.$message({
  531. message: '指标新增成功',
  532. type: 'success'
  533. });
  534. } else {
  535. that.$message({
  536. message: '指标修改成功',
  537. type: 'success'
  538. });
  539. }
  540. that.dialogVisible = false
  541. that.changeDateSelect = []
  542. that.getEvaluationData()
  543. }
  544. })
  545. },
  546. //删除指标数据
  547. handleDelete() {
  548. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  549. confirmButtonText: '确定',
  550. cancelButtonText: '取消',
  551. type: 'warning'
  552. }).then(() => {
  553. let that = this
  554. let paramsArr = []
  555. that.changeDateSelect.forEach(it =>{
  556. paramsArr.push(it.id)
  557. })
  558. apiGetIndicatorDelete(paramsArr.join(',')).then(datas =>{
  559. that.$message({
  560. type: 'success',
  561. message: '删除成功!'
  562. });
  563. that.getEvaluationData()
  564. that.changeDateSelect = []
  565. })
  566. })
  567. },
  568. //删除指标数据
  569. handleDeleteTableChild(data, row) {
  570. this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
  571. confirmButtonText: '确定',
  572. cancelButtonText: '取消',
  573. type: 'warning'
  574. }).then(() => {
  575. if (row.id) {
  576. let that = this
  577. let paramsArr = [row.id]
  578. apiGetIndicatordicdeleteList(paramsArr.join(',')).then(datas =>{
  579. that.$message({
  580. type: 'success',
  581. message: '删除成功!'
  582. });
  583. that.getIndidicselectById(this.evalradio.id)
  584. })
  585. } else {
  586. if (data.list && data.list.length>0) {
  587. data.list.forEach((it,index) =>{
  588. if (it.optionCode === row.optionCode) {
  589. data.list.splice(index, 1)
  590. }
  591. })
  592. }
  593. }
  594. })
  595. },
  596. rowClick(selection, row) {
  597. this.changeDateSelect = selection
  598. },
  599. getSeachData() {
  600. this.page.currentPage = 1
  601. this.getEvaluationData('seach')
  602. },
  603. resetSeach() {
  604. this.page.currentPage = 1
  605. this.indicatorIdS = ''
  606. this.getEvaluationData()
  607. },
  608. successImport(val) {
  609. this.loadingImport = false
  610. this.getEvaluationData()
  611. },
  612. importLoading(val) {
  613. this.loadingImport = true
  614. },
  615. handleSizeChange(val){
  616. this.page.pagesize = val
  617. this.getEvaluationData()
  618. },
  619. handleCurrentChange(val){
  620. this.page.currentPage =val
  621. this.getEvaluationData()
  622. },
  623. handleImport() {
  624. this.$refs.importPage.upload.title = "考评指标管理信息导入"
  625. this.$refs.importPage.upload.open = true
  626. },
  627. //指标项配置
  628. editEvaluaIndex(row) {
  629. // this.$refs.indicatorItem.init(row)
  630. this.title = '考评指标详情'
  631. this.isDetail = true
  632. this.dialogVisible = true
  633. this.ruleForm = {
  634. indicatorName: row.indicatorName,
  635. indicatorCode: row.indicatorCode,
  636. indicatorType: row.indicatorTypeId,
  637. indicatorUnit: row.unit,
  638. department: row.dept,
  639. binSection: row.binSection,
  640. binStage: row.binStage,
  641. isQuantified: row.isQuantified,
  642. isAdditional: row.isAdditional,
  643. isChild: row.isChild === true? '是': '否',
  644. orderNum: row.orderNum,
  645. desc: row.des
  646. }
  647. this.getIndidicselectById(row.id)
  648. }
  649. }
  650. }
  651. </script>
  652. <style lang="less">
  653. .evaluationIndex{
  654. .evaluationIndexBtn{
  655. .collectSeach{
  656. display: flex;
  657. padding: 24px 20px;
  658. border-bottom: 1px solid#D6DBEA;
  659. .exceed{
  660. display: flex;
  661. .exceedSpan{
  662. width: 100px;
  663. height: 12px;
  664. font-size: 14px;
  665. font-family: Microsoft YaHei;
  666. font-weight: 400;
  667. color: #8991B0;
  668. line-height: 12px;
  669. margin-top: 10px;
  670. }
  671. .el-input{
  672. margin-right:10px;
  673. .el-input__inner{
  674. height:30px;
  675. }
  676. .el-input__suffix{
  677. .el-select__caret{
  678. line-height:30px;
  679. }
  680. }
  681. }
  682. }
  683. .el-select{
  684. margin-right:10px;
  685. .el-input__inner, .is-disabled{
  686. height:30px !important;
  687. }
  688. .el-input__suffix{
  689. .el-select__caret{
  690. line-height:30px;
  691. }
  692. }
  693. }
  694. }
  695. span{
  696. font-size:14px;
  697. }
  698. .PeriodBtn{
  699. display: flex;
  700. justify-content: end;
  701. padding: 20px 0;
  702. }
  703. .el-button{
  704. height: 30px;
  705. // width:100px;
  706. padding: 0 30px ;
  707. // padding-top: 8px;
  708. span{
  709. margin:0;
  710. }
  711. }
  712. .indexdialog{
  713. .el-overlay{
  714. .el-dialog{
  715. margin-top: 10vh;
  716. .el-dialog__body{
  717. padding: 0px 20px 0px 20px !important;
  718. border-top: 1px solid #D6DBEA;
  719. border-bottom: 1px solid #D6DBEA;
  720. .periodFrom{
  721. .el-select, .el-input{
  722. width: 100%;
  723. }
  724. .el-select{
  725. .el-input__inner, .is-disabled{
  726. height:30px !important;
  727. }
  728. }
  729. .DruleForm{
  730. padding: 20px 60px 20px 20px;
  731. }
  732. .indicatorItemBtn{
  733. padding: 10px 20px 0 20px;
  734. border-left: 1px solid #D6DBEA;
  735. span{
  736. font-size:14px;
  737. }
  738. .PeriodBtn{
  739. display: flex;
  740. justify-content: end;
  741. padding: 20px 0;
  742. .indItemC{
  743. position: relative;
  744. left: -600px;
  745. top: 15px;
  746. font-size: 16px;
  747. font-family: Microsoft YaHei;
  748. font-weight: 600;
  749. color: #3B7AD1;
  750. }
  751. .el-button{
  752. height: 30px;
  753. padding: 0 30px ;
  754. span{
  755. margin:0;
  756. }
  757. }
  758. .is-disabled{
  759. opacity: 0.5;
  760. }
  761. }
  762. .indicatorItemTableData{
  763. height: 55vh !important;
  764. .datasMsg{
  765. .tableBtn {
  766. display: flex;
  767. justify-content: end;
  768. margin-right: 30px;
  769. img{
  770. margin-right: 5px;
  771. margin-top: 1px;
  772. width: 18px;
  773. height: 18px;
  774. }
  775. span{
  776. position: relative;
  777. top: -2px;
  778. font-size: 14px;
  779. font-family: Microsoft YaHei;
  780. font-weight: 400;
  781. }
  782. }
  783. .add{
  784. cursor: pointer;
  785. span{
  786. color: #3B7AD1;
  787. }
  788. }
  789. .el-collapse{
  790. .el-collapse-item{
  791. .el-collapse-item__header{
  792. .nameTit{
  793. display: inline-block;
  794. height: 20px;
  795. font-size: 12px;
  796. font-weight: bold;
  797. position: relative;
  798. top: -8px;
  799. }
  800. .el-input{
  801. width: 150px;
  802. margin-right: 10px;
  803. }
  804. }
  805. .el-table{
  806. .el-table__body-wrapper{
  807. }
  808. .el-input__inner{
  809. height: 30px !important;
  810. }
  811. .el-radio__label{
  812. display: none;
  813. }
  814. }
  815. .indicitem{
  816. color: #409EFF;
  817. font-size: 12px;
  818. margin-right: 20px;
  819. cursor:pointer;
  820. &:hover{
  821. text-decoration: underline;
  822. }
  823. }
  824. .el-pagination{
  825. margin-top: 20px;
  826. text-align: end;
  827. position: relative;
  828. }
  829. .el-button{
  830. height: 26px;
  831. padding: 0 15px ;
  832. span{
  833. margin:0;
  834. }
  835. }
  836. }
  837. }
  838. }
  839. .emptyData{
  840. display: inline-block;
  841. width: 100%;
  842. // border: 1px solid #d9d9d9;
  843. text-align: center;
  844. margin-top: 50px;
  845. }
  846. }
  847. }
  848. }
  849. }
  850. .el-dialog__footer{
  851. .dialog-footer{
  852. display: flex;
  853. justify-content: center;
  854. .el-button{
  855. width: 180px !important;
  856. height: 40px !important;
  857. }
  858. }
  859. }
  860. }
  861. }
  862. }
  863. }
  864. .evaluationIndexTableData{
  865. .el-table{
  866. .el-table__body-wrapper{
  867. height: 64vh !important;
  868. }
  869. .el-input__inner{
  870. height: 30px !important;
  871. }
  872. .el-radio__label{
  873. display: none;
  874. }
  875. .indicitem{
  876. color: #409EFF;
  877. font-size: 12px;
  878. margin-right: 20px;
  879. cursor:pointer;
  880. &:hover{
  881. text-decoration: underline;
  882. }
  883. }
  884. }
  885. .el-pagination{
  886. margin-top: 20px;
  887. text-align: end;
  888. position: relative;
  889. }
  890. }
  891. }
  892. </style>