Commit 9784f2ce authored by shifangwuji's avatar shifangwuji

9/21(4)

parent 24e2fd3d
......@@ -70,7 +70,15 @@
<el-col :span="8">
<el-form-item>
<el-button type="primary" style="padding: 8px 16px;" size="small" @click="handleQuery">查询</el-button>
<el-button
v-if="queryButtonVisible"
type="primary"
style="padding: 8px 16px;"
size="small"
@click="handleQuery"
>
查询
</el-button>
</el-form-item>
</el-col>
</el-row>
......@@ -268,6 +276,7 @@ export default {
isRequired: false,
unlockButtonVisible: false,
queryInputsEnabled: false,
queryButtonVisible: true,
// 对应后端配置文件cy.init.pgxList的的内容
phdList: ['003'],
// 判断是否存在缓存
......@@ -459,6 +468,7 @@ export default {
type: 'error'
})
}
this.queryButtonVisible = false;
}
}).catch(() => {
console.log('Setting lockUserEnabled to true')
......@@ -501,6 +511,7 @@ export default {
this.lockUserEnabled = false
this.queryInputsEnabled = false
this.unlockButtonVisible = false
this.queryButtonVisible = true
this.form.jbcode = ''
this.form.wbcode = ''
this.form.wblot = ''
......@@ -548,6 +559,7 @@ export default {
this.wblotEnabled = false
this.jlcodEnabled = false
this.lockUserEnabled = false
this.queryButtonVisible = true
// 手动重置错误信息
this.$refs.form.clearValidate(); // 清空表单验证信息
this.$nextTick(() => {
......@@ -630,7 +642,6 @@ export default {
.catch(() => {
// 请求失败,设置字段状态
this.setFieldEnabledStatus(false);
this.showErrorMessage('保存失败');
this.jbcodeEnabled = false
this.wbcodeEnabled = false
this.wblotEnabled = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment