yuxc
2023-04-21 09db48299939cc576ae3e925e722f60c42e673bd
路径名字改动
已修改3个文件
82 ■■■■ 文件已修改
Source/UBCS-WEB/src/views/code/addbasiccode.vue 72 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/modeling/original.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/omd/dict.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/code/addbasiccode.vue
@@ -13,10 +13,10 @@
          <el-form-item label="码段类型" :label-width="leftFormLabelWidth" prop="codefixedsec">
            <el-select v-model="form.sectype" placeholder="请选择" @change="changeSectypeFormItems">
              <el-option
              <el-option
                v-for="item in sectypeList"
                :key="item.dictValue"
                :label="item.dictValue"
                :label="item.dictValue"
                :value="item.dictKey">
              </el-option>
            </el-select>
@@ -34,7 +34,7 @@
          <el-form-item label="是否为空:" :label-width="leftFormLabelWidth">
            <el-switch v-model="form.nullableFlag"></el-switch>
          </el-form-item>
      </el-form>
    </span>
    <el-divider direction="vertical"></el-divider>
@@ -44,10 +44,10 @@
      <el-form v-show="form.sectype==='codefixedsec' ? true:false">
        <el-form-item label="码段长度类型:" :label-width="rightFormLabelWidth">
            <el-select v-model="form.codeSecLengthType" placeholder="请选择">
              <el-option
              <el-option
              v-for="item in codeSecLengthType"
              :key="item.dictValue"
              :label="item.dictValue"
              :label="item.dictValue"
              :value="item.dictKey">
            </el-option>
            </el-select>
@@ -69,7 +69,7 @@
          <el-input v-model="form.getValueClass"></el-input>
        </el-form-item>
      </el-form>
      <!-- 流水码段 -->
      <el-form v-show="form.sectype==='codeserialsec' ? true:false">
        <el-form-item label="码段的长度:" :label-width="rightFormLabelWidth">
@@ -93,10 +93,10 @@
        </el-form-item>
        <el-form-item label="补位时的字符:" :label-width="rightFormLabelWidth">
          <el-select v-model="form.codeFillSeparatorSelect" filterable placeholder="请选择">
            <el-option
            <el-option
                v-for="item in codeFillSeparator"
                :key="item.dictValue"
                :label="item.dictValue"
                :label="item.dictValue"
                :value="item.dictKey">
            </el-option>
          </el-select>
@@ -119,10 +119,10 @@
      <el-form v-show="form.sectype==='codelevelsec' ? true:false">
        <el-form-item label="层级类型:" :label-width="rightFormLabelWidth">
          <el-select v-model="form.codeLevelType" placeholder="请选择">
            <el-option
            <el-option
                v-for="item in codeLevelType"
                :key="item.dictValue"
                :label="item.dictValue"
                :label="item.dictValue"
                :value="item.dictKey">
              </el-option>
          </el-select>
@@ -135,7 +135,7 @@
            <el-option
              v-for="item in codeCutType"
              :key="item.dictValue"
              :label="item.dictValue"
              :label="item.dictValue"
              :value="item.dictKey">
            </el-option>
          </el-select>
@@ -145,7 +145,7 @@
            <el-option
              v-for="item in codeGetValueType"
              :key="item.dictValue"
              :label="item.dictValue"
              :label="item.dictValue"
              :value="item.dictKey">
            </el-option>
          </el-select>
@@ -161,7 +161,7 @@
          <el-input v-model="form.referConfig"></el-input>
        </el-form-item>
      </el-form>
      <!-- 日期码段 -->
      <el-form v-show="form.sectype==='codedatesec' ? true:false">
        <el-form-item label="日期格式:" :label-width="rightFormLabelWidth">
@@ -173,10 +173,10 @@
      <el-form v-show="form.sectype==='codeclassifysec' ? true:false">
        <el-form-item label="码段长度类型:" :label-width="rightFormLabelWidth">
          <el-select v-model="form.codeSecLengthType" placeholder="请选择">
            <el-option
            <el-option
                v-for="item in codeSecLengthType"
                :key="item.dictValue"
                :label="item.dictValue"
                :label="item.dictValue"
                :value="item.dictKey">
            </el-option>
          </el-select>
@@ -199,20 +199,20 @@
        </el-form-item>
        <el-form-item label="编码补位方式:" :label-width="rightFormLabelWidth">
          <el-select v-model="form.codeFillType" placeholder="请选择">
            <el-option
            <el-option
                v-for="item in codeFillType"
                :key="item.dictValue"
                :label="item.dictValue"
                :label="item.dictValue"
                :value="item.dictKey">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="补位时的字符:" :label-width="rightFormLabelWidth">
          <el-select v-model="form.codeFillSeparatorSelect" placeholder="请选择">
            <el-option
            <el-option
                v-for="item in codeFillSeparator"
                :key="item.dictValue"
                :label="item.dictValue"
                :label="item.dictValue"
                :value="item.dictKey">
            </el-option>
          </el-select>
@@ -225,7 +225,7 @@
<script>
import { addSave } from "@/api/code/codebasic";
import { getDictionary } from "@/api/omd/dictbiz";
import { getDictionary } from "@/api/omd/dict";
export default {
  name: "addBasicCode",
  data() {
@@ -274,7 +274,7 @@
          window.console.log(error);
      });
    },
    loadCodeSecType(){
      getDictionary({code: "codeBasicSecType"}).then(res=>{
        this.sectypeList = res.data.data;
@@ -319,19 +319,19 @@
        console.log(this.codeGetValueType);
      })
    },
    // 码段类型改变时,增加对应的form表单中的属性
    changeSectypeFormItems(){
      if(this.form.sectype==='codefixedsec'){
        //固定码段
        this.form = Object.assign({}, this.form,{
          codeSecLength: '',
        this.form = Object.assign({}, this.form,{
          codeSecLength: '',
          codeSecLengthType: 'code_sec_length_variable'
        });
        this.loadCodeSecLength();
      }else if(this.form.sectype==='codeattrsec'){
        //属性码段
        this.form = Object.assign({}, this.form, {
        this.form = Object.assign({}, this.form, {
          referCodeClassifyOid: '',     //属性id
          referCodeClassifyOidName: '', //属性所在分类
          referAttributeId: '',    //属性编号
@@ -340,7 +340,7 @@
      });
      }else if(this.form.sectype==='codeserialsec'){
        //流水码段
        this.form = Object.assign({}, this.form,{
        this.form = Object.assign({}, this.form,{
          codeSecLength: '', //码段的长度
          serialStart: '1',  //流水号起始值
          serialStep: '1',   //流水的步长
@@ -356,9 +356,9 @@
        this.loadCodeFillSeparator();
      }else if(this.form.sectype==='codelevelsec'){
        //层级码段
        this.form = Object.assign({}, this.form,{
        this.form = Object.assign({}, this.form,{
          codeLevelType: 'code_level_min',     //层级类型  枚举查询
          codeLevelValue: '',    //层级的值
          codeLevelValue: '',    //层级的值
          valueCutType: 'code_cut_none',      //字符截取类型 枚举查询
          valueCutLength: '',    //
          codeGetValueType: 'code_get_value_all_up',  //取值类型 枚举查询
@@ -368,19 +368,19 @@
        this.loadCodeGetValueType();
      }else if(this.form.sectype==='coderefersec'){
        //引用码段
        this.form = Object.assign({}, this.form,{
        this.form = Object.assign({}, this.form,{
          referBtmId: '',   //参照引用的业务类型,的id
          referBtmName: '', //参照引用的业务类型
          referConfig: ''   //参照配置
        });
      }else if(this.form.sectype==='codedatesec'){
        //日期码段
        this.form = Object.assign({}, this.form,{
        this.form = Object.assign({}, this.form,{
          codeDateFormatStr: '',   //日期格式
        });
      }else if(this.form.sectype==='codeclassifysec'){
        //分类码段
        this.form = Object.assign({}, this.form,{
        this.form = Object.assign({}, this.form,{
          codeSecLengthType: 'code_sec_length_variable',    //码段长度类型
          codeSecLength: '',  //码段的长度
          matchClassifyValueFlag: 'false',  //是否自动匹配值
@@ -390,7 +390,7 @@
        this.loadCodeSecLength();
      }else if(this.form.sectype==='codevariablesec'){
        //可变码段
        this.form = Object.assign({}, this.form,{
        this.form = Object.assign({}, this.form,{
          codeSecLength: '',            //码段的长度
          codeFillType: 'code_fill_right',             //编码部位方式,枚举查询
          codeFillSeparatorSelect: '0',  //选中的补位时的字符的下标
@@ -414,7 +414,7 @@
  .total{
    height: 420px;
    width: 100%;
  }
  .total .el-input__inner,.el-textarea__inner {
@@ -426,14 +426,14 @@
      height: 31.5em;
      margin: 0 5px;
  }
 .left {
    float: left;
    width: 49%;
    /* border-right: 2px rgb(0, 0, 0); */
 }
 .right {
    float: right;
    float: right;
    width: 49%;
    /* border-left: 2px rgb(0, 0, 0); */
 }
@@ -444,4 +444,4 @@
 .el-input-number > .el-input > .el-input__inner{
    width: 180px;
 }
</style>
</style>
Source/UBCS-WEB/src/views/modeling/original.vue
@@ -51,7 +51,7 @@
import {
  getDictionary
} from "@/api/omd/dictbiz";
} from "@/api/omd/dict";
export default {
  name: "original.vue",
Source/UBCS-WEB/src/views/omd/dict.vue
@@ -26,7 +26,7 @@
          type="danger"
          size="small"
          icon="el-icon-delete"
          v-if="permission.dictbiz_delete"
          v-if="permission.dict_delete"
          plain
          @click="handleDelete"
        >删 除
@@ -149,9 +149,9 @@
      ...mapGetters(["userInfo", "permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.dictbiz_add, false),
          delBtn: this.vaildData(this.permission.dictbiz_delete, false),
          editBtn: this.vaildData(this.permission.dictbiz_edit, false),
          addBtn: this.vaildData(this.permission.dict_add, false),
          delBtn: this.vaildData(this.permission.dict_delete, false),
          editBtn: this.vaildData(this.permission.dict_edit, false),
          viewBtn: false,
        };
      },