Merge remote-tracking branch 'origin/master'
| | |
| | | }, |
| | | { |
| | | label: "只读", |
| | | prop: "readonlyFlag", |
| | | prop: "readOnlyFlag", |
| | | }, |
| | | { |
| | | label: "列表排序", |
| | |
| | | }, |
| | | { |
| | | label: "只读", |
| | | prop: "readonlyFlag", |
| | | prop: "readOnlyFlag", |
| | | cell: false, |
| | | edit: "switch" |
| | | }, |
| | |
| | | value: 'tableDisplayFlag', |
| | | label: '列表显示' |
| | | }, { |
| | | value: 'readonlyFlag', |
| | | value: 'readOnlyFlag', |
| | | label: '只读' |
| | | }, { |
| | | value: 'sortAttrFlag', |
| | |
| | | <!-- 左侧菜单--> |
| | | <el-aside> |
| | | <basic-container> |
| | | <div style="height: calc(100vh - 144px);!important;"> |
| | | <div style="height: calc(100vh - 144px);!important;" @click="clearNode"> |
| | | <div class="headerCon" style="display: flex; flex-wrap: wrap;margin-bottom: 5px"> |
| | | <el-button v-if="permissionList.TreeAddStatus" plain size="small" type="primary" @click="TreeAdd">添加 |
| | | </el-button> |
| | |
| | | </el-tooltip> |
| | | </template> |
| | | </avue-tree> |
| | | <div style="height: 25px"></div> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | created() { |
| | | }, |
| | | methods: { |
| | | clearNode(){ |
| | | this.$refs.tree.setCurrentKey(null); |
| | | this.nodeClickList = {}; |
| | | this.TreeFlagCode = true; |
| | | this.allButtons = false; |
| | | }, |
| | | // 分类授权对话框打开 |
| | | classifyAuthHandler() { |
| | | if (this.nodeClickList.oid === '' || this.nodeClickList.oid === undefined) { |
| | |
| | | * 不为空 |
| | | * @param val |
| | | * @returns {boolean} |
| | | * 不能判断数组和对象 如判断"null"、"undefined"会返回不为空 |
| | | */ |
| | | static notEmpty(val) { |
| | | return !this.isEmpty(val); |
| | |
| | | * 为空 |
| | | * @param val |
| | | * @returns {boolean} |
| | | * 不能判断数组和对象 如判断"null"、"undefined"会返回不为空 |
| | | */ |
| | | static isEmpty(val) { |
| | | if ( |
| | |
| | | let result = true; |
| | | let msg = ''; |
| | | var isPhone = /^0\d{2,3}-?\d{7,8}$/; |
| | | //增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678] |
| | | //增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678] |
| | | if (!validatenull(phone)) { |
| | | if (phone.length == 11) { |
| | | if (isPhone.test(phone)) { |
| | |
| | | } |
| | | /** |
| | | * 判断是否为空 |
| | | * 可以判断数组和对象 如判断"null"、"undefined"也会返回是空 |
| | | */ |
| | | export function validatenull(val) { |
| | | if (typeof val == 'boolean') { |
| | |
| | | return false; |
| | | } |
| | | return false; |
| | | } |
| | | } |