Commit 83634f44 authored by 高宇's avatar 高宇

修改再利用页面逻辑

parent d119c4ca
......@@ -9,7 +9,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="phd" style="flex-basis: 50%;" prop="phd" :rules="[{ required: this.isRequired, pattern: /^\d+$/, message: '仅能输入整数', trigger: 'blur' }]">
<el-form-item label="phd" style="flex-basis: 50%;" prop="phd" :rules="[{ required: true, pattern: /^\d+$/, message: '仅能输入整数', trigger: 'blur' }]">
<el-input ref="input2" v-model="form.phd" placeholder="请输入phd" style="width: 400px" :maxlength="10" @keyup.enter.native="handelTab(2,$event)" />
</el-form-item>
</el-col>
......@@ -46,7 +46,6 @@
clearable
placeholder="请选择pgx"
style="width: 400px"
@change="handlePgxChange"
>
<el-option
v-for="(dict,index) in pissbList"
......@@ -87,9 +86,6 @@ export default {
name: 'Role',
data() {
return {
isRequired: false,
// 对应后端配置文件cy.init.pgxList的的内容
phdList: ['003'],
// 判断是否存在缓存
exist: false,
form: {
......@@ -138,13 +134,6 @@ export default {
this.init()
},
methods: {
handlePgxChange() {
if (this.phdList.includes(this.form.pgx)){
this.isRequired = true
} else {
this.isRequired = false
}
},
resetQuery() {
this.form = {
pn: '',
......
......@@ -306,8 +306,7 @@ export default {
rows: 10,
jbcode: '',
jblot: '',
jbrank: '',
tempType: ''
jbrank: ''
},
singleDetails: {
jbcode: '',
......
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