|
@@ -38,7 +38,8 @@
|
|
:tree-config="{transform: true, rowField: 'id', parentField: 'parentId'}"
|
|
:tree-config="{transform: true, rowField: 'id', parentField: 'parentId'}"
|
|
:checkbox-config="{}">
|
|
:checkbox-config="{}">
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
<vxe-column type="seq" width="60" title="序号"></vxe-column>
|
|
- <vxe-column type="checkbox" width="40" ></vxe-column>
|
|
|
|
|
|
+<!-- <vxe-column type="checkbox" width="40" ></vxe-column>-->
|
|
|
|
+ <vxe-column type="radio" width="40" ></vxe-column>
|
|
<vxe-column title="报销内容名称" field="name" align="left" tree-node></vxe-column>
|
|
<vxe-column title="报销内容名称" field="name" align="left" tree-node></vxe-column>
|
|
<vxe-column width="100" title="序号" field="sort"></vxe-column>
|
|
<vxe-column width="100" title="序号" field="sort"></vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
@@ -89,12 +90,12 @@
|
|
// 表单提交
|
|
// 表单提交
|
|
getProgramForType () {
|
|
getProgramForType () {
|
|
let rows
|
|
let rows
|
|
- if (this.commonJS.isEmpty(this.$refs.typeTable.getCheckboxRecords()) || this.$refs.typeTable.getCheckboxRecords().length > 1) {
|
|
|
|
|
|
+ if (this.commonJS.isEmpty(this.$refs.typeTable.getRadioRecord())) {
|
|
this.$message.error('请选择一条数据')
|
|
this.$message.error('请选择一条数据')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- rows = this.$refs.typeTable.getCheckboxRecords()
|
|
|
|
- if (rows[0].level !== '3' && rows[0].id !== '3') {
|
|
|
|
|
|
+ rows = this.$refs.typeTable.getRadioRecord()
|
|
|
|
+ if (rows.level !== '3') {
|
|
this.$message.error('请选择子集数据')
|
|
this.$message.error('请选择子集数据')
|
|
return
|
|
return
|
|
}
|
|
}
|