Merge branch 'develop' into 'test'
Develop See merge request LAWS/laws-system-front-FOTON!164
This commit is contained in:
@@ -269,7 +269,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="排序号" prop="showIndex" class="add-form-item">
|
<el-form-item label="排序号" prop="showIndex" class="add-form-item">
|
||||||
<el-input v-model="displayLocationDialogFormData.showIndex" placeholder="请输入排序号"></el-input>
|
<el-input v-model.number="displayLocationDialogFormData.showIndex" placeholder="请输入排序号"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
@@ -333,7 +333,7 @@ export default {
|
|||||||
showIndex: [
|
showIndex: [
|
||||||
{ required: true, message: '排序号不能为空且为正整数', trigger: 'blur'},
|
{ required: true, message: '排序号不能为空且为正整数', trigger: 'blur'},
|
||||||
{ type: 'string', validator: this.verify.validStandNumInCompile2, trigger: 'blur'},
|
{ type: 'string', validator: this.verify.validStandNumInCompile2, trigger: 'blur'},
|
||||||
{ min: 0, max: 999, message: '请输入0-999之间的整数', trigger: 'blur' }
|
{ type: 'number', min: 0, max: 999, message: '请输入0-999之间的整数', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
attributeDataLoading: false,
|
attributeDataLoading: false,
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
:data="treeData"
|
:data="treeData"
|
||||||
:props="defaultProps"
|
:props="defaultProps"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
|
:current-node-key="nodeKeyId"
|
||||||
|
node-key="id"
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
highlight-current
|
highlight-current
|
||||||
ref="tree"
|
ref="tree"
|
||||||
@@ -166,6 +168,7 @@ export default {
|
|||||||
name: 'MechanismManage',
|
name: 'MechanismManage',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
nodeKeyId:'',
|
||||||
searchForm: {
|
searchForm: {
|
||||||
uname:"",
|
uname:"",
|
||||||
email:""
|
email:""
|
||||||
@@ -279,8 +282,12 @@ export default {
|
|||||||
_this: this,
|
_this: this,
|
||||||
loading: 'treeLoading'
|
loading: 'treeLoading'
|
||||||
}, res => {
|
}, res => {
|
||||||
console.log(res);
|
|
||||||
this.treeData = res.data
|
this.treeData = res.data
|
||||||
|
console.log(this.treeData);
|
||||||
|
this.nodeKeyId = this.treeData[0].id
|
||||||
|
this.$nextTick(function () {
|
||||||
|
this.$refs.tree.setCurrentKey(this.nodeKeyId)
|
||||||
|
})
|
||||||
this.id = res.data[0].id
|
this.id = res.data[0].id
|
||||||
this.getData()
|
this.getData()
|
||||||
}, e => {
|
}, e => {
|
||||||
|
|||||||
Reference in New Issue
Block a user