jinlin
2024-07-19 1d201842264ce4065af198f69d44f3a8c56912ee
web/src/views/modules/basicInfo/XhProductModel.vue
@@ -26,15 +26,15 @@
            <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:30}"
                      row-key="id"
                      @selection-change="table.selectionChangeHandle"
            >
              <el-table-column prop="name" label="名称"/>
                      :header-cell-style="{'text-align':'center'}">
              <el-table-column prop="name" label="名称" />
              <zt-table-column-dict prop="productType" label="节点类型" dict="product"/>
              <el-table-column prop="operatImg" label="运行图片" align="center">
                <template v-slot="{ row }">
                  <el-image v-if="row.operatImg" :src="url+row.operatImg" style="height: 50px;width: 50px"></el-image>
                </template>
              </el-table-column>
              <el-table-column prop="sort" label="排序" width="100px"/>
              <el-table-column prop="sort" label="排序" width="100px" align="center"/>
              <zt-table-column-handle :table="table" width="180px">
                <template v-slot="{ row }">
                  <zt-table-button v-if="productType==='1'" size="small" type="primary"
@@ -84,18 +84,8 @@
    },
    methods: {
      add() {
        console.log(this.dataForm.type,'this.dataForm.type')
        this.dataForm.type = this.productType
        if (this.dataForm.type !== '1') {
          if (this.dataForm.type !== '3') {
            this.dataForm.type = this.dataForm.type + 1
          } else if (this.dataForm.type === '3') {
            this.dataForm.type = this.dataForm.type + 2
          } else if (this.dataForm.type === '0') {
            this.$alert("当前节点不可新增子节点,请重新设置")
            return
          }
          console.log(this.dataForm.type,'this.dataForm.type')
          this.$refs.SelectTyModel.$refs.dialog.init(null, {type: this.dataForm.type, id: this.dataForm.pid})
        } else {
          this.$refs.AddOrUpdate.$refs.dialog.init(null, {id: null, type: 'zt', pid: this.dataForm.pid})