hyingbo
12 小时以前 3d67e444d9308f9b85597eb14058dcfbafbedfcc
src/views/system/modules/UserModal.vue
@@ -111,7 +111,7 @@
            v-model="model.userType"
            :defaultValue="0"
          >
            <a-radio :value="1">刀具管理</a-radio>
            <a-radio :value="1" v-if="secretNetwork === 'secret_network'">刀具管理</a-radio>
            <a-radio :value="2">mdc</a-radio>
            <a-radio :value="3">dnc</a-radio>
            <a-radio :value="4">设备管理</a-radio>
@@ -395,6 +395,7 @@
      confirmDirty: false,
      userId: '', //保存用户id
      disableSubmit: false,
      secretNetwork: '',
      dateFormat: 'YYYY-MM-DD',
      validatorRules: {
        workNo:[{ required: true, message: '请输入工号!' }],
@@ -421,7 +422,6 @@
      departIdShow: false,
      title: '操作',
      visible: false,
      model: {},
      labelCol: {
        xs: { span: 24 },
        sm: { span: 5 }
@@ -476,6 +476,7 @@
    this.initRoleList()
    this.initTenantList()
    this.queryTreeData()
    this.getTwoNetworkIdentification()
  },
  computed: {
    uploadAction: function() {
@@ -498,6 +499,16 @@
      }).finally(() => {
      })
    },
    //获取两网标识(区分工控网/密网)
    getTwoNetworkIdentification() {
      getAction(`/system/sysParams/query/by/settingKey?settingKey=two_network_identification`).then(res => {
        if (res.success) {
          this.secretNetwork = res.result.settingValue
        }
      })
    },
    add() {
      this.refresh()
      this.edit({