|
@@ -2,7 +2,12 @@
|
|
|
<div>
|
|
|
<containerTitle title="费用明细"></containerTitle>
|
|
|
<basic-container>
|
|
|
- <avue-crud :ref="feeCrud" :data="feeData" :option="feeOption">
|
|
|
+ <avue-crud
|
|
|
+ ref="feeCrud"
|
|
|
+ :data="feeData"
|
|
|
+ :option="feeOption"
|
|
|
+ @saveColumn="saveColumn"
|
|
|
+ >
|
|
|
<template slot="menuLeft">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -144,7 +149,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
option: option,
|
|
|
- feeOption: feeOption,
|
|
|
+ feeOption:{},
|
|
|
feeDialog: false,
|
|
|
treeOption: {
|
|
|
nodeKey: "id",
|
|
@@ -204,6 +209,12 @@ export default {
|
|
|
return micrometerFormat(val);
|
|
|
}
|
|
|
},
|
|
|
+ async created() {
|
|
|
+ this.feeOption = await this.getColumnData(
|
|
|
+ this.getColumnName(33),
|
|
|
+ feeOption
|
|
|
+ );
|
|
|
+ },
|
|
|
methods: {
|
|
|
rowDel(row, index) {
|
|
|
console.log(row, index);
|
|
@@ -366,6 +377,17 @@ export default {
|
|
|
},
|
|
|
submitData() {
|
|
|
return this.feeData;
|
|
|
+ },
|
|
|
+ async saveColumn() {
|
|
|
+ const inSave = await this.saveColumnData(
|
|
|
+ this.getColumnName(33),
|
|
|
+ this.feeOption
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs.feeCrud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -377,7 +399,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.feeName{
|
|
|
+.feeName {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|