Dictionary Configuration

import { PageVue, UI, Dict, DropDict } from "sj.sys.ui";

  

  components: {
    'drop-dict': DropDict
  },

  

  <drop-dict
          :options="dictOptions"
          style="width:150px;"
          @select="OnSelect"
        ></drop-dict>

  

  dictOptions GET (): the any { 
    return { 
      the above mentioned id: "A10058", // dictionary ID, must pass the following parameters are not necessary to pass 
      name: "In the hospital patients dictionary", // Dictionary name (the title does not pass the dictionary pop-up display 'system dictionary') 
      label: "hospital number", // input box to the left of the label 
      // defaultFirst: to true, // first selected by default (default false) 
      height: 200, // height of the drop-down box, the default 200 
      textField: 'visitId', is provided to select the // field (if the dictionary is not arranged in the transmission spec_mark = 2 fields on the input box 
      returnField: [ 'visitId', ' Name', 'enterTime', 'WardName', ' WardId ',' CurrentDept ',' CurrentDeptName ',' AccountType ',' BedText '], set to return after // select field called places (if you do not pass the dictionary is configured in the field of spec_mark = 1 
      placeHolder: "", // placeholder 
      where: "", // where conditions, where conditions where tape,All of this dictionary data will be filtered where conditions 
      notNull: true, // NOT NULL (default false) 
      popDict: to true, // enable pop-up dictionary (enabled by default)
      valueType: "0", // 0 eject dictionary memory according to art embodiment, a press station (default 0) 
      Separator: "", // need to be selected when a plurality of values, each value separated by what symbols 
      noDataTemplate: "" the template, // no data 
      customExpression: "", // custom expressions, in the example below 
      customStyle: "", // styles to meet the data from the application of the definition of the expression, in the example below 
      // customExpression: 'data.UserName == "Lei"' // this customExpression satisfy the following data apply customStyle style 
      // customStyle: 'background-color: rgb (255,0,0);', // set to red background 
    } 
  }

  

Guess you like

Origin www.cnblogs.com/LFxanla/p/11640863.html