Browse Source

元公式管理界面修改、机构新增界面修改

master
尹作梅 6 years ago
parent
commit
9b9b54b6d3
  1. 7
      src/views/modules/kpi/kpiformula-add-or-update.vue
  2. 1
      src/views/modules/kpi/kpiformula.vue
  3. 8
      src/views/modules/sys/dept-add-or-update.vue

7
src/views/modules/kpi/kpiformula-add-or-update.vue

@ -6,6 +6,9 @@
</el-form-item>
<el-form-item label="公式编码" prop="code">
<el-input v-model="dataForm.code" placeholder="公式编码"></el-input>
</el-form-item>
<el-form-item label="方法名" prop="functionName">
<el-input v-model="dataForm.functionName" placeholder="方法名"></el-input>
</el-form-item>
<el-form-item label="公式运行方法" prop="formula">
<el-input v-model="dataForm.formula" placeholder="公式运行方法(Javascript)" type="textarea"></el-input>
@ -55,6 +58,7 @@ export default {
id: '',
code: '',
name: '',
functionName: '',
formula: '',
paramAmount: '',
description: '',
@ -77,6 +81,9 @@ export default {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
functionName: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
formula: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],

1
src/views/modules/kpi/kpiformula.vue

@ -21,6 +21,7 @@
<el-table-column prop="id" label="主键" header-align="center" align="center" v-if="false"></el-table-column>
<el-table-column prop="code" label="公式编码" header-align="center" align="center" v-if="false"></el-table-column>
<el-table-column prop="name" label="公式名称" header-align="center" align="center"></el-table-column>
<el-table-column prop="functionName" label="方法名" header-align="center" align="center"></el-table-column>
<el-table-column prop="formula" label="公式运行方法" header-align="center" align="center"></el-table-column>
<el-table-column prop="paramAmount" label="公式参数数量" header-align="center" align="center" ></el-table-column>
<el-table-column prop="description" label="公式描述" header-align="center" align="center"></el-table-column>

8
src/views/modules/sys/dept-add-or-update.vue

@ -13,7 +13,8 @@
<el-input v-model="dataForm.name"
:placeholder="$t('dept.name')"></el-input>
</el-form-item>
<el-form-item :label="$t('dept.partyCode')">
<el-form-item prop="partyCode"
:label="$t('dept.partyCode')">
<el-input v-model="dataForm.partyCode"
:placeholder="$t('dept.partyCode')"></el-input>
</el-form-item>
@ -49,7 +50,7 @@
prop="typeKey">
<el-select v-model="dataForm.typeKey"
@change="changeOrgType"
placeholder="街道类型">
placeholder="机构类型">
<el-option v-for="item in secondOrgDictList"
:key="item.dictValue"
:label="item.dictName"
@ -100,6 +101,9 @@ export default {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
partyCode: [
{ required: true, message: this.$t('validate.required'), trigger: 'change' }
],
parentName: [
{ required: true, message: this.$t('validate.required'), trigger: 'change' }
],

Loading…
Cancel
Save