Browse Source

【网格实体化运作提报功能】考核项配置页面-王公峰-2020-12-08

master
wanggongfeng 5 years ago
parent
commit
b153535853
  1. 26
      src/views/modules/kpi/subcheckdictionary-add-or-update.vue
  2. 8
      src/views/modules/kpi/subcheckdictionary.vue

26
src/views/modules/kpi/subcheckdictionary-add-or-update.vue

@ -4,12 +4,12 @@
<el-form-item label="考核项名称" prop="checkLabel" label-width="100px"> <el-form-item label="考核项名称" prop="checkLabel" label-width="100px">
<el-input v-model="dataForm.checkLabel" placeholder="考核项名称" maxlength="128"></el-input> <el-input v-model="dataForm.checkLabel" placeholder="考核项名称" maxlength="128"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="考核类型" prop="checkType" label-width="100px"> <!--<el-form-item label="考核类型" prop="checkType" label-width="100px">-->
<el-input v-model="dataForm.checkType" placeholder="考核类型" maxlength="32"></el-input> <!--<el-input v-model="dataForm.checkType" placeholder="考核类型" maxlength="32"></el-input>-->
</el-form-item> <!--</el-form-item>-->
<el-form-item label="考核编码" prop="checkCode" label-width="100px"> <!--<el-form-item label="考核编码" prop="checkCode" label-width="100px">-->
<el-input v-model="dataForm.checkCode" placeholder="考核编码" maxlength="32"></el-input> <!--<el-input v-model="dataForm.checkCode" placeholder="考核编码" maxlength="32"></el-input>-->
</el-form-item> <!--</el-form-item>-->
<el-form-item prop="parentName" :label="$t('menu.parentName')" class="menu-list" label-width="100px"> <el-form-item prop="parentName" :label="$t('menu.parentName')" class="menu-list" label-width="100px">
<el-popover v-model="resourceListVisible" ref="resourceListPopover" placement="bottom-start" trigger="click"> <el-popover v-model="resourceListVisible" ref="resourceListPopover" placement="bottom-start" trigger="click">
<el-tree :data="resourceList" :props="{ label: 'checkLabel', children: 'children' }" node-key="id" <el-tree :data="resourceList" :props="{ label: 'checkLabel', children: 'children' }" node-key="id"
@ -29,8 +29,8 @@
</el-form-item> </el-form-item>
<el-form-item prop="showFlag" label="是否显示" size="mini" label-width="100px"> <el-form-item prop="showFlag" label="是否显示" size="mini" label-width="100px">
<el-radio-group v-model="dataForm.showFlag"> <el-radio-group v-model="dataForm.showFlag">
<el-radio label="0"></el-radio>
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
<el-radio label="0"></el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -69,12 +69,12 @@ export default {
pid: [ pid: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } { required: true, message: this.$t('validate.required'), trigger: 'blur' }
], ],
checkType: [ // checkType: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } // { required: true, message: this.$t('validate.required'), trigger: 'blur' }
], // ],
checkCode: [ // checkCode: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } // { required: true, message: this.$t('validate.required'), trigger: 'blur' }
], // ],
checkLabel: [ checkLabel: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } { required: true, message: this.$t('validate.required'), trigger: 'blur' }
], ],

8
src/views/modules/kpi/subcheckdictionary.vue

@ -7,12 +7,12 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="dataListLoading" :data="dataList" border style="width: 100%;"> <el-table v-loading="dataListLoading" :data="dataList" border style="width: 100%;">
<table-tree-column prop="checkLabel" label="考核项名称" header-align="center" width="400" show-overflow-tooltip></table-tree-column> <table-tree-column prop="checkLabel" label="考核项名称" header-align="center" width="500" show-overflow-tooltip></table-tree-column>
<el-table-column prop="checkType" label="考核类型" header-align="center" align="center"></el-table-column> <!--<el-table-column prop="checkType" label="考核类型" header-align="center" align="center"></el-table-column>-->
<el-table-column prop="checkCode" label="考核编码" header-align="center" align="center"></el-table-column> <!--<el-table-column prop="checkCode" label="考核编码" header-align="center" align="center"></el-table-column>-->
<el-table-column prop="showFlag" label="是否显示" header-align="center" align="center" :formatter="showFlagFormatter" width="100"></el-table-column> <el-table-column prop="showFlag" label="是否显示" header-align="center" align="center" :formatter="showFlagFormatter" width="100"></el-table-column>
<el-table-column prop="checkDescribe" label="描述" header-align="center" width="300" show-overflow-tooltip></el-table-column>
<el-table-column prop="sort" label="排序" header-align="center" align="center" width="100"></el-table-column> <el-table-column prop="sort" label="排序" header-align="center" align="center" width="100"></el-table-column>
<el-table-column prop="checkDescribe" label="描述" header-align="center" show-overflow-tooltip></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button> <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button>

Loading…
Cancel
Save