|
|
@ -16,30 +16,30 @@
|
|
|
|
<a-button class="btn" type="primary" @click="AddLlist">新增费用字段</a-button>
|
|
|
|
<a-button class="btn" type="primary" @click="AddLlist">新增费用字段</a-button>
|
|
|
|
<a-button class="btn btn-delete">删除费用字段</a-button>
|
|
|
|
<a-button class="btn btn-delete">删除费用字段</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div style="position: relative">
|
|
|
|
<div style="position: relative">
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
class="ds-tb-check"
|
|
|
|
class="ds-tb-check"
|
|
|
|
type="checkbox"
|
|
|
|
type="checkbox"
|
|
|
|
v-model="allCheckL"
|
|
|
|
v-model="allCheckL"
|
|
|
|
:indeterminate="someCheckL"
|
|
|
|
:indeterminate="someCheckL"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<hot-table ref="hotTbL" :data="Llist" :settings="Lsettings"></hot-table>
|
|
|
|
<hot-table :data="Llist" :settings="Lsettings"> </hot-table>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="BoxUnit">
|
|
|
|
<div class="BoxUnit">
|
|
|
|
<div class="model-botton-box">
|
|
|
|
<div class="model-botton-box">
|
|
|
|
<a-button class="btn" type="primary">新增字段</a-button>
|
|
|
|
<a-button class="btn" type="primary">新增字段</a-button>
|
|
|
|
<a-button class="btn btn-delete">删除字段</a-button>
|
|
|
|
<a-button class="btn btn-delete">删除字段</a-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div style="position: relative">
|
|
|
|
<div style="position: relative">
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
class="ds-tb-check"
|
|
|
|
class="ds-tb-check"
|
|
|
|
type="checkbox"
|
|
|
|
type="checkbox"
|
|
|
|
v-model="allCheckR"
|
|
|
|
v-model="allCheckR"
|
|
|
|
:indeterminate="someCheckR"
|
|
|
|
:indeterminate="someCheckR"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<hot-table ref="hotTbR" :data="Rlist" :settings="Rsettings"></hot-table>
|
|
|
|
<hot-table :data="Rlist" :settings="Rsettings"></hot-table>
|
|
|
|
</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
@ -224,7 +224,7 @@
|
|
|
|
]
|
|
|
|
]
|
|
|
|
const Lsettings = {
|
|
|
|
const Lsettings = {
|
|
|
|
height: '400',
|
|
|
|
height: '400',
|
|
|
|
width: '100%',
|
|
|
|
// width: '100%',
|
|
|
|
autoWrapRow: true,
|
|
|
|
autoWrapRow: true,
|
|
|
|
autoWrapCol: true,
|
|
|
|
autoWrapCol: true,
|
|
|
|
// 每行的高度
|
|
|
|
// 每行的高度
|
|
|
@ -320,43 +320,36 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
const Rsettings = {
|
|
|
|
const Rsettings = {
|
|
|
|
height: '200',
|
|
|
|
height: '400',
|
|
|
|
width: '100%',
|
|
|
|
// width: '100%',
|
|
|
|
autoWrapRow: true,
|
|
|
|
autoWrapRow: true,
|
|
|
|
autoWrapCol: true,
|
|
|
|
autoWrapCol: true,
|
|
|
|
// 每行的高度
|
|
|
|
// 每行的高度
|
|
|
|
rowHeights: 32,
|
|
|
|
rowHeights: 32,
|
|
|
|
fixedColumnsLeft: 1,
|
|
|
|
fixedColumnsLeft: 1,
|
|
|
|
|
|
|
|
// 需要隐藏的列
|
|
|
|
// 控制回车移动
|
|
|
|
// hiddenColumns: {
|
|
|
|
enterMoves: 'row',
|
|
|
|
// columns: [1],
|
|
|
|
|
|
|
|
// indicators: true,
|
|
|
|
|
|
|
|
// },
|
|
|
|
columnSorting: true,
|
|
|
|
columnSorting: true,
|
|
|
|
|
|
|
|
// 设置排序的列和方向
|
|
|
|
|
|
|
|
// columnSorting: {
|
|
|
|
|
|
|
|
// column: 2, // 根据第三列排序
|
|
|
|
|
|
|
|
// sortOrder: ['asc', 'desc'] // 允许升序和降序排序
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// 如果通过复制或者填写校验出现错误,清空输入框
|
|
|
|
|
|
|
|
// afterValidate: function (isValid, value, row, prop, source) {
|
|
|
|
|
|
|
|
// if (!isValid) {
|
|
|
|
|
|
|
|
// hotTb.value.hotInstance.setDataAtRowProp(row, prop, '')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
columns: RColumns,
|
|
|
|
columns: RColumns,
|
|
|
|
//只读
|
|
|
|
|
|
|
|
readOnly: true,
|
|
|
|
|
|
|
|
// 此行直接复制,必须(非商用)
|
|
|
|
// 此行直接复制,必须(非商用)
|
|
|
|
licenseKey: 'non-commercial-and-evaluation',
|
|
|
|
licenseKey: 'non-commercial-and-evaluation',
|
|
|
|
|
|
|
|
enterMoves: 'row',
|
|
|
|
// 定义所有单元格发生变化的回调处理
|
|
|
|
// 定义所有单元格发生变化的回调处理
|
|
|
|
afterChange(changes, source) {
|
|
|
|
afterChange(changes, source) {},
|
|
|
|
// if (source === 'edit' || source === 'Autofill.fill' || source === 'CopyPaste.paste') {
|
|
|
|
|
|
|
|
// // 控制表格单选
|
|
|
|
|
|
|
|
// if (changes[0][1] == 'selected' && changes[0][3]) {
|
|
|
|
|
|
|
|
// let Arr: any = []
|
|
|
|
|
|
|
|
// moreTList.value.forEach((e, i) => {
|
|
|
|
|
|
|
|
// if (i !== changes[0][0]) {
|
|
|
|
|
|
|
|
// Arr.push({ ...e, selected: false })
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// moreSelectNum.value = i
|
|
|
|
|
|
|
|
// Arr.push({ ...e, selected: true })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// moreTList.value.splice(0)
|
|
|
|
|
|
|
|
// Arr.forEach((e) => {
|
|
|
|
|
|
|
|
// moreTList.value.push(e)
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
|