|
@@ -10,7 +10,7 @@
|
|
<el-button class="el-button--small-yh" style="margin-left: 6px;" size="small" @click="submit">提 交
|
|
<el-button class="el-button--small-yh" style="margin-left: 6px;" size="small" @click="submit">提 交
|
|
</el-button>
|
|
</el-button>
|
|
<el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small"
|
|
<el-button class="el-button--small-yh" style="margin-left: 6px;" type="primary" size="small"
|
|
- @click="save" :disabled="form.approvalStatus == '审核提交'">保 存
|
|
|
|
|
|
+ @click="save" :disabled="form.approvalStatus != '录入'">保 存
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -19,10 +19,10 @@
|
|
<avue-form :option="optionForm" v-model="form" ref="form">
|
|
<avue-form :option="optionForm" v-model="form" ref="form">
|
|
<template slot="menuForm">
|
|
<template slot="menuForm">
|
|
<el-button icon="el-icon-search" type="primary"
|
|
<el-button icon="el-icon-search" type="primary"
|
|
- :disabled="data.length > 0 || form.approvalStatus == '审核提交'"
|
|
|
|
|
|
+ :disabled="data.length > 0 || form.approvalStatus != '录入'"
|
|
@click="searchChange">获取配置信息</el-button>
|
|
@click="searchChange">获取配置信息</el-button>
|
|
<el-button icon="el-icon-search" type="success"
|
|
<el-button icon="el-icon-search" type="success"
|
|
- :disabled="data.length == 0 || form.approvalStatus == '审核提交'"
|
|
|
|
|
|
+ :disabled="data.length == 0 || form.approvalStatus != '录入'"
|
|
@click="getData">获取原始信息</el-button>
|
|
@click="getData">获取原始信息</el-button>
|
|
</template>
|
|
</template>
|
|
</avue-form>
|
|
</avue-form>
|
|
@@ -34,10 +34,10 @@
|
|
@saveColumn="saveColumn('crud', 'option', 'optionBack', 415)">
|
|
@saveColumn="saveColumn('crud', 'option', 'optionBack', 415)">
|
|
<template slot-scope="{type,size,row,index}" slot="menu">
|
|
<template slot-scope="{type,size,row,index}" slot="menu">
|
|
<el-button size="small" type="text" icon="el-icon-edit"
|
|
<el-button size="small" type="text" icon="el-icon-edit"
|
|
- @click.stop="$refs.crud.rowEdit(row, index)" :disabled="form.approvalStatus == '审核提交'">编 辑
|
|
|
|
|
|
+ @click.stop="$refs.crud.rowEdit(row, index)" :disabled="form.approvalStatus != '录入'">编 辑
|
|
</el-button>
|
|
</el-button>
|
|
<el-button size="small" icon="el-icon-delete" type="text" @click.stop="rowDel(row, index)"
|
|
<el-button size="small" icon="el-icon-delete" type="text" @click.stop="rowDel(row, index)"
|
|
- :disabled="form.approvalStatus == '审核提交'">删
|
|
|
|
|
|
+ :disabled="form.approvalStatus != '录入'">删
|
|
除</el-button>
|
|
除</el-button>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{type,disabled}" slot="fieldValueNewNameForm">
|
|
<template slot-scope="{type,disabled}" slot="fieldValueNewNameForm">
|
|
@@ -76,6 +76,7 @@ export default {
|
|
selectionList: [],
|
|
selectionList: [],
|
|
form: {
|
|
form: {
|
|
type: 2,
|
|
type: 2,
|
|
|
|
+ approvalStatus: "录入",
|
|
updateItemList: []
|
|
updateItemList: []
|
|
},
|
|
},
|
|
rowFrom: {
|
|
rowFrom: {
|
|
@@ -289,7 +290,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
dicChange(name, row) {
|
|
dicChange(name, row) {
|
|
- if (name!='字典') {
|
|
|
|
|
|
+ if (name != '字典') {
|
|
if (row) {
|
|
if (row) {
|
|
this.rowFrom.fieldValueNew = row.id
|
|
this.rowFrom.fieldValueNew = row.id
|
|
this.rowFrom.fieldValueNewName = row.cnName
|
|
this.rowFrom.fieldValueNewName = row.cnName
|
|
@@ -335,7 +336,7 @@ export default {
|
|
getDetail({ id: id }).then(res => {
|
|
getDetail({ id: id }).then(res => {
|
|
this.form = res.data.data
|
|
this.form = res.data.data
|
|
this.data = res.data.data.updateItemList
|
|
this.data = res.data.data.updateItemList
|
|
- if (res.data.data.approvalStatus == "审核提交") {
|
|
|
|
|
|
+ if (res.data.data.approvalStatus != '录入') {
|
|
this.optionForm.disabled = true
|
|
this.optionForm.disabled = true
|
|
}
|
|
}
|
|
}).finally(() => {
|
|
}).finally(() => {
|