lihang
2023-07-10 f4c578e2d3334e8bcb70ac0552a058029c35b5af
元数据页面修改
已修改2个文件
33 ■■■■■ 文件已修改
Source/UBCS-WEB/src/views/modeling/original.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/originalAdd.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/original.vue
@@ -54,12 +54,12 @@
            </template>
            {{ itemForm.itemData.typeValue }}
          </el-descriptions-item>
          <el-descriptions-item>
<!--          <el-descriptions-item>
            <template slot="label">
              标签
            </template>
            {{ itemForm.itemData.hashtag }}
          </el-descriptions-item>
          </el-descriptions-item>-->
          <el-descriptions-item>
            <template slot="label">
              默认值
@@ -70,7 +70,7 @@
            <template slot="label">
              允许为空
            </template>
            {{ itemForm.itemData.nullable }}
            {{ 'true' == itemForm.itemData.nullable ? '是' : '否'}}
          </el-descriptions-item>
          <el-descriptions-item>
            <template slot="label">
@@ -193,12 +193,12 @@
          prop: "name",
          align: "left",
          display: false
        }, {
        },/* {
          label: "标签",
          prop: "hashtag",
          // hide: true,
          display: false
        }, {
        },*/ {
          label: "是否使用枚举",
          prop: "usingDict",
          type: "switch",
@@ -266,7 +266,9 @@
    },
    addSave() {
      this.$refs.originalAdd.showSubmitDialog = true;
      this.$refs.originalAdd.attribute = {};
      const newAttr = {};
      newAttr.nullable = true;
      this.$refs.originalAdd.attribute = newAttr;
    },
    updateSave(row,index) {
      this.selectRow = index;
@@ -282,10 +284,17 @@
      // this.refreshChange()
    },
    deleteSave(row,index) {
      console.log(row);
      remove(row.oid).then(res => {
        this.$message.success("删除成功");
        this.refreshChange();
      this.$confirm("删除元数据将无法被恢复, 是否继续?", "提示", {
        iconClass: 'el-icon-question',
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        showClose: true,
        type: "warning"
      }).then(() => {
        remove(row.oid).then(res => {
          this.$message.success("删除成功");
          this.refreshChange();
        });
      });
    },
    onLoad(page, params = {}) {
Source/UBCS-WEB/src/views/modeling/originalAdd.vue
@@ -17,9 +17,9 @@
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="标签" label-width="100px">
<!--                <el-form-item label="标签" label-width="100px">
                    <el-input v-model="attribute.hashtag"></el-input>
                </el-form-item>
                </el-form-item>-->
                <el-form-item label="默认值" label-width="100px">
                    <el-input v-model="attribute.defaultValue"></el-input>
                </el-form-item>