Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
5e6325e383
2 changed files with 9 additions and 4 deletions
  1. +1
    -2
      src/components/Template/CustomTable.vue
  2. +8
    -2
      src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue

+ 1
- 2
src/components/Template/CustomTable.vue View File

@ -194,7 +194,7 @@ export default {
handleClickable(col, rowIndex, colIndex) { handleClickable(col, rowIndex, colIndex) {
console.log("clickable",rowIndex,colIndex, col) console.log("clickable",rowIndex,colIndex, col)
if (this.templateFillType !== 'actFill') { if (this.templateFillType !== 'actFill') {
return
// return
} }
this.$emit("clickable", col,rowIndex) this.$emit("clickable", col,rowIndex)
}, },
@ -436,7 +436,6 @@ export default {
// //
updateDataSourceByRowIndex(rowIndex, data) { updateDataSourceByRowIndex(rowIndex, data) {
this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data }; this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data };
console.log(this.localDataSource, "this.localDataSource")
this.localDataSource = [...this.localDataSource]; this.localDataSource = [...this.localDataSource];
}, },
// //

+ 8
- 2
src/views/business/comps/template/comps/sp/SWYPFXFFXYPZBB/ZQDYJMD.vue View File

@ -251,8 +251,14 @@ export default {
}, },
methods: { methods: {
// //
handleClickable(col, rowIndex, colIndex) {
console.log("clickable",rowIndex,colIndex, col)
handleClickable(col, rowIndex) {
console.log("clickable",rowIndex, col)
if(col.prop === "sjry"){
//
}
this.$refs.tableRef.updateDataSourceByRowIndex(rowIndex,{
sjry: "我是填充进来的数据",
})
}, },
// //
async getCode(){ async getCode(){

Loading…
Cancel
Save