Commit 9784f2ce authored by shifangwuji's avatar shifangwuji

9/21(4)

parent 24e2fd3d
...@@ -70,7 +70,15 @@ ...@@ -70,7 +70,15 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -268,6 +276,7 @@ export default { ...@@ -268,6 +276,7 @@ export default {
isRequired: false, isRequired: false,
unlockButtonVisible: false, unlockButtonVisible: false,
queryInputsEnabled: false, queryInputsEnabled: false,
queryButtonVisible: true,
// 对应后端配置文件cy.init.pgxList的的内容 // 对应后端配置文件cy.init.pgxList的的内容
phdList: ['003'], phdList: ['003'],
// 判断是否存在缓存 // 判断是否存在缓存
...@@ -459,6 +468,7 @@ export default { ...@@ -459,6 +468,7 @@ export default {
type: 'error' type: 'error'
}) })
} }
this.queryButtonVisible = false;
} }
}).catch(() => { }).catch(() => {
console.log('Setting lockUserEnabled to true') console.log('Setting lockUserEnabled to true')
...@@ -501,6 +511,7 @@ export default { ...@@ -501,6 +511,7 @@ export default {
this.lockUserEnabled = false this.lockUserEnabled = false
this.queryInputsEnabled = false this.queryInputsEnabled = false
this.unlockButtonVisible = false this.unlockButtonVisible = false
this.queryButtonVisible = true
this.form.jbcode = '' this.form.jbcode = ''
this.form.wbcode = '' this.form.wbcode = ''
this.form.wblot = '' this.form.wblot = ''
...@@ -548,6 +559,7 @@ export default { ...@@ -548,6 +559,7 @@ export default {
this.wblotEnabled = false this.wblotEnabled = false
this.jlcodEnabled = false this.jlcodEnabled = false
this.lockUserEnabled = false this.lockUserEnabled = false
this.queryButtonVisible = true
// 手动重置错误信息 // 手动重置错误信息
this.$refs.form.clearValidate(); // 清空表单验证信息 this.$refs.form.clearValidate(); // 清空表单验证信息
this.$nextTick(() => { this.$nextTick(() => {
...@@ -630,7 +642,6 @@ export default { ...@@ -630,7 +642,6 @@ export default {
.catch(() => { .catch(() => {
// 请求失败,设置字段状态 // 请求失败,设置字段状态
this.setFieldEnabledStatus(false); this.setFieldEnabledStatus(false);
this.showErrorMessage('保存失败');
this.jbcodeEnabled = false this.jbcodeEnabled = false
this.wbcodeEnabled = false this.wbcodeEnabled = false
this.wblotEnabled = 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