田源
2023-07-24 2e7f611bdfb28fdc16e2bc4fc19498851fe364d1
Source/UBCS-WEB/src/components/Tree/attrCrud.vue
@@ -1,6 +1,6 @@
<template>
  <div>
    <div style="display: flex;flex-wrap: wrap;" v-if="this.crudArrayFlag">
    <div style="display: flex;flex-wrap: wrap;" v-if="this.crudArrayFlag"class="app">
      <!--新增-->
      <el-button v-if="attrEditVisible == false && attrFlagChiledren==false && crudLCStatus=='Editing'" size="small" type="primary" icon="el-icon-plus" @click="busineHandle">添加 {{ msg }}</el-button>
@@ -72,11 +72,6 @@
          <el-table :data="tableData" style="width: 100%" @cell-click="handleCellClick"
                    @selection-change="handleSelectionChange">
            <!-- 渲染表格列及传参 -->
            <el-table-column label="序号" type="index"></el-table-column>
            <el-table-column
              type="selection"
              width="55">
            </el-table-column>
            <el-table-column label="选项值" prop="key">
              <template slot-scope="{ row }">
                <!-- 编辑和展示逻辑 -->
@@ -1477,7 +1472,8 @@
            sortAttrFlag: 'false',
            queryAttrFlag: 'true',
            seniorQueryAttrFlag: 'true',
            attrTableWidth: 120
            attrTableWidth: 120,
            ts:""
          })
          this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
        }
@@ -1487,7 +1483,8 @@
    },
    //业务类型选择
    businessSelect(selection, row) {
      this.busineSelectList = selection
      this.busineSelectList = selection;
      console.log(selection)
    },
    // 从业务类型中选择数据弹窗
    busineHandle() {
@@ -1817,9 +1814,9 @@
    //组合规则确定
    updataFormlaContent(val) {
      if(this.CurrentCell){
        this.$set(this.CurrentCell, 'componentRule', JSON.stringify(val))
        this.$set(this.CurrentCell, 'componentRule', val.replace(/"/g, ''))
      }else {
        this.$set(this.attrRow, 'componentRule', JSON.stringify(val))
        this.$set(this.attrRow, 'componentRule', val.replace(/"/g, ''))
      }
    },
@@ -1851,7 +1848,9 @@
</script>
<style scoped lang="scss" >
/deep/ .el-button {
  margin: 0 10px 10px 0;
.app {
   /deep/ .el-button {
   margin: 0 10px 10px 0;
   }
}
</style>