htui-yllkbz 1.3.87 → 1.3.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/htui.common.js +679 -75
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +679 -75
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +1 -1
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/App.vue +277 -37
- package/src/packages/HtSelectPosition/index.ts +14 -0
- package/src/packages/HtSelectPosition/index.vue +203 -0
- package/src/packages/HtSelectUnit/index.ts +14 -0
- package/src/packages/HtSelectUnit/index.vue +189 -0
- package/src/packages/HtTable/index.vue +30 -1
- package/src/packages/index.ts +7 -3
- package/src/packages/type.ts +3 -3
package/lib/htui.common.js
CHANGED
|
@@ -98639,8 +98639,8 @@ PageInfo.install = function (Vue) {
|
|
|
98639
98639
|
};
|
|
98640
98640
|
|
|
98641
98641
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
98642
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"16dd95d0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
98643
|
-
var
|
|
98642
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"16dd95d0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=template&id=a0e92c78&scoped=true&
|
|
98643
|
+
var HtTablevue_type_template_id_a0e92c78_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}],staticStyle:{"background":"#fff"}},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"sum-text":_vm.sumText,"show-summary":_vm.showSummary,"summary-method":_vm.summaryMethod,"border":_vm.border,"default-expand-all":_vm.defaultExpandAll,"expand-row-keys":_vm.expandRowKeys,"stripe":_vm.stripe !== undefined ? _vm.stripe : true,"size":_vm.size || 'small',"fit":_vm.fit,"span-method":_vm.spanMethod,"header-row-style":_vm.headerRowStyle || { background: 'var(--primary-92)' },"header-row-class-name":_vm.headerRowClassName,"header-cell-class-name":_vm.headerCellClassName,"header-cell-style":_vm.headerCellStyle,"show-header":_vm.showHeader,"empty-text":_vm.emptyText || '暂无数据',"row-style":_vm.rowStyle,"row-class-name":_vm.rowClassName,"current-row-key":_vm.currentRowKey,"highlight-current-row":_vm.highlightCurrentRow,"row-key":_vm.rowKey || 'id',"data":_vm.data,"tooltip-effect":"dark"},on:{"row-click":function (row, column, event) { return _vm.$emit('row-click', row, column, event); },"row-contextmenu":function (row, column, event) { return _vm.$emit('row-contextmenu', row, column, event); },"row-dblclick":function (row, column, event) { return _vm.$emit('row-dblclick', row, column, event); },"header-click":function (column, event) { return _vm.$emit('header-click', column, event); },"header-contextmenu":function (column, event) { return _vm.$emit('header-contextmenu', column, event); },"sort-change":function (ref) {
|
|
98644
98644
|
var column = ref.column;
|
|
98645
98645
|
var prop = ref.prop;
|
|
98646
98646
|
var order = ref.order;
|
|
@@ -98672,7 +98672,7 @@ return [_vm._t(item.key,function(){return [(item.type === 'org')?[(_vm.getPropBy
|
|
|
98672
98672
|
? _vm.getPropByPath(row, item.key)
|
|
98673
98673
|
: '',"base-data-name":item.commonType === 'baseDataName'
|
|
98674
98674
|
? _vm.getPropByPath(row, item.key)
|
|
98675
|
-
: '',"base-data-info":true}}):_c('span',[_vm._v("--")])]:(item.type === 'userId')?[(_vm.getPropByPath(row, item.key))?_c('HtShowBaseData',{attrs:{"user-id":JSON.stringify(_vm.getPropByPath(row, item.key)),"base-data-info":true}}):_c('span',[_vm._v("--")])]:(item.type === 'time')?[(_vm.getPropByPath(row, item.key))?_c('div',{staticClass:"ht-column-cell"},[(!item.spread)?_c('span',[_vm._v(" "+_vm._s(_vm.getPropByPath(row, item.key) .replace('T', ' ') .slice(0, 19)))]):[_c('p',{staticStyle:{"color":"var(--primary)","margin":"0","padding":"0"}},[_vm._v(" "+_vm._s(_vm.getPropByPath(row, item.key).slice(11, 19))+" ")]),_c('p',{staticStyle:{"margin":"0","padding":"0"}},[_vm._v(" "+_vm._s(_vm.getPropByPath(row, item.key) .replace('T', ' ') .slice(0, 10))+" ")])]],2):_c('span',[_vm._v("--")])]:(item.type === 'boolean')?[(_vm.getPropByPath(row, item.key))?_c('el-tag',{attrs:{"type":'success',"size":'small'}},[_vm._v("是")]):_c('el-tag',{attrs:{"type":"danger","size":'small'}},[_vm._v("否")])]:(item.type === 'img')?[(_vm.getPropByPath(row, item.key))?_c('span',_vm._l((_vm.getPropByPath(row, item.key).split(
|
|
98675
|
+
: '',"base-data-info":true}}):_c('span',[_vm._v("--")])]:(item.type === 'userId')?[(_vm.getPropByPath(row, item.key))?_c('HtShowBaseData',{attrs:{"user-id":JSON.stringify(_vm.getPropByPath(row, item.key)),"base-data-info":true}}):_c('span',[_vm._v("--")])]:(item.type === 'time')?[(_vm.getPropByPath(row, item.key))?_c('div',{staticClass:"ht-column-cell"},[(!item.spread)?_c('span',[_vm._v(" "+_vm._s(_vm.getPropByPath(row, item.key) .replace('T', ' ') .slice(0, 19)))]):[_c('p',{staticStyle:{"color":"var(--primary)","margin":"0","padding":"0"}},[_vm._v(" "+_vm._s(_vm.getPropByPath(row, item.key).slice(11, 19))+" ")]),_c('p',{staticStyle:{"margin":"0","padding":"0"}},[_vm._v(" "+_vm._s(_vm.getPropByPath(row, item.key) .replace('T', ' ') .slice(0, 10))+" ")])]],2):_c('span',[_vm._v("--")])]:(item.type === 'boolean')?[(_vm.getPropByPath(row, item.key))?_c('el-tag',{attrs:{"type":'success',"size":'small'}},[_vm._v("是")]):_c('el-tag',{attrs:{"type":"danger","size":'small'}},[_vm._v("否")])]:(item.type === 'unit')?[_c('HtSelectUnit',{attrs:{"readonly":true,"value":_vm.getPropByPath(row, item.key)}})]:(item.type === 'position')?[_c('HtSelectPosition',{attrs:{"readonly":true,"value":_vm.getPropByPath(row, item.key)}})]:(item.type === 'img')?[(_vm.getPropByPath(row, item.key))?_c('span',_vm._l((_vm.getPropByPath(row, item.key).split(
|
|
98676
98676
|
','
|
|
98677
98677
|
)),function(fileToken){return _c('el-image',{key:fileToken,staticStyle:{"width":"38px","height":"38px","margin-right":"5px"},attrs:{"src":'/files/api/filing/file/download/' + fileToken,"preview-src-list":[
|
|
98678
98678
|
'/files/api/filing/file/download/' + fileToken ]}})}),1):_vm._e()]:(item.type === 'file')?[(_vm.getPropByPath(row, item.key))?_c('span',[_c('i',{staticClass:"el-icon-paperclip",staticStyle:{"color":"var(--primary)","cursor":"pointer"},on:{"click":function($event){_vm.showFiles(_vm.getPropByPath(row, item.key))}}},[_vm._v(_vm._s(Array.isArray(_vm.getPropByPath(row, item.key)) ? _vm.getPropByPath(row, item.key).length : _vm.getPropByPath(row, item.key).split(',').length))])]):_c('span',[_vm._v("--")])]:_c('span',[_vm._v(_vm._s(_vm.getPropByPath(row, item.key)))])]},{"row":row,"column":column,"rowIndex":$index})]}},{key:"header",fn:function(ref){
|
|
@@ -98682,10 +98682,10 @@ return [_vm._t('header_' + item.key,function(){return [_vm._v(_vm._s(item.title)
|
|
|
98682
98682
|
var node = ref.node;
|
|
98683
98683
|
var data = ref.data;
|
|
98684
98684
|
return _c('span',{staticClass:"custom-tree-node"},[_vm._t('header_' + data.key,function(){return [_vm._v(_vm._s(data.title)),_c('span',{staticStyle:{"color":"#C0C4CC"}},[_vm._v(_vm._s(data.property ? ("(" + (data.property) + ")") : ''))])]},{"column":data})],2)}}],null,true)})],1)],1),_c('span',{attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.confirmSortAndshow}},[_vm._v("确定")]),_c('el-button',{on:{"click":function($event){_vm.state.visibleFilter = false}}},[_vm._v("取消")]),_c('el-button',{on:{"click":_vm.resetColumn}},[_vm._v("重置")])],1)]):_vm._e(),(_vm.state.visibleFile)?_c('el-dialog',{attrs:{"visible":_vm.state.visibleFile,"title":"附件查看","append-to-body":true,"modal-append-to-body":true,"close-on-click-modal":true,"width":"400px","center":true},on:{"update:visible":function($event){return _vm.$set(_vm.state, "visibleFile", $event)}}},[_c('p',{staticStyle:{"font-weight":"700","font-size":"18px","float":"left","margin":"0"},attrs:{"slot":"title"},slot:"title"},[_vm._v(" 附件查看 ")]),_c('div',{staticStyle:{"overflow":"hidden","height":"calc(30vh)"}},[_c('el-scrollbar',{staticStyle:{"height":"calc(100% + 17px)"}},[_c('HtUploadFiles',{attrs:{"disabled":true},model:{value:(_vm.state.files),callback:function ($$v) {_vm.$set(_vm.state, "files", $$v)},expression:"state.files"}})],1)],1)]):_vm._e()],1)}
|
|
98685
|
-
var
|
|
98685
|
+
var HtTablevue_type_template_id_a0e92c78_scoped_true_staticRenderFns = []
|
|
98686
98686
|
|
|
98687
98687
|
|
|
98688
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
98688
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=a0e92c78&scoped=true&
|
|
98689
98689
|
|
|
98690
98690
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
98691
98691
|
var es_string_replace = __webpack_require__("5319");
|
|
@@ -99521,6 +99521,362 @@ HtOrgInfo.install = function (Vue) {
|
|
|
99521
99521
|
};
|
|
99522
99522
|
|
|
99523
99523
|
/* harmony default export */ var packages_HtOrgInfo = (HtOrgInfo);
|
|
99524
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"16dd95d0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtSelectUnit/index.vue?vue&type=template&id=1b5206b0&scoped=true&
|
|
99525
|
+
var HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.readonly)?_c('span',[_vm._v(" "+_vm._s(_vm.getName)+" ")]):_c('el-cascader',{ref:"htSelectUnit",staticClass:"component-item",staticStyle:{"width":"100%"},attrs:{"size":_vm.size,"popper-class":"ht-cascader-poper","placeholder":_vm.placeholder || "请选择","disabled":!!_vm.disabled,"filterable":true,"clearable":_vm.clearable,"collapse-tags":_vm.collapseTags,"show-all-levels":_vm.showAllLevels,"props":{
|
|
99526
|
+
label: 'name',
|
|
99527
|
+
expandTrigger: 'click',
|
|
99528
|
+
emitPath: false,
|
|
99529
|
+
checkStrictly: _vm.checkStrictly,
|
|
99530
|
+
multiple: _vm.multiple,
|
|
99531
|
+
},"options":_vm.options},on:{"change":_vm.handleChange},model:{value:(_vm.state.value),callback:function ($$v) {_vm.$set(_vm.state, "value", $$v)},expression:"state.value"}})}
|
|
99532
|
+
var HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_staticRenderFns = []
|
|
99533
|
+
|
|
99534
|
+
|
|
99535
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.vue?vue&type=template&id=1b5206b0&scoped=true&
|
|
99536
|
+
|
|
99537
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
99538
|
+
function _arrayLikeToArray(arr, len) {
|
|
99539
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
99540
|
+
|
|
99541
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
99542
|
+
arr2[i] = arr[i];
|
|
99543
|
+
}
|
|
99544
|
+
|
|
99545
|
+
return arr2;
|
|
99546
|
+
}
|
|
99547
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
99548
|
+
|
|
99549
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
99550
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
99551
|
+
}
|
|
99552
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
99553
|
+
var es_array_from = __webpack_require__("a630");
|
|
99554
|
+
|
|
99555
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
99556
|
+
|
|
99557
|
+
|
|
99558
|
+
|
|
99559
|
+
|
|
99560
|
+
|
|
99561
|
+
|
|
99562
|
+
|
|
99563
|
+
|
|
99564
|
+
function iterableToArray_iterableToArray(iter) {
|
|
99565
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
99566
|
+
}
|
|
99567
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
99568
|
+
var es_regexp_test = __webpack_require__("00b4");
|
|
99569
|
+
|
|
99570
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
99571
|
+
|
|
99572
|
+
|
|
99573
|
+
|
|
99574
|
+
|
|
99575
|
+
|
|
99576
|
+
|
|
99577
|
+
|
|
99578
|
+
|
|
99579
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
99580
|
+
if (!o) return;
|
|
99581
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
99582
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
99583
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
99584
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
99585
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
99586
|
+
}
|
|
99587
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
99588
|
+
|
|
99589
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
99590
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
99591
|
+
}
|
|
99592
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
99593
|
+
|
|
99594
|
+
|
|
99595
|
+
|
|
99596
|
+
|
|
99597
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
99598
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
99599
|
+
}
|
|
99600
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtSelectUnit/index.vue?vue&type=script&lang=ts&
|
|
99601
|
+
|
|
99602
|
+
|
|
99603
|
+
|
|
99604
|
+
|
|
99605
|
+
|
|
99606
|
+
|
|
99607
|
+
|
|
99608
|
+
|
|
99609
|
+
|
|
99610
|
+
|
|
99611
|
+
|
|
99612
|
+
|
|
99613
|
+
|
|
99614
|
+
|
|
99615
|
+
|
|
99616
|
+
|
|
99617
|
+
|
|
99618
|
+
|
|
99619
|
+
var HtSelectUnitvue_type_script_lang_ts_HtSelectUser = /*#__PURE__*/function (_Vue) {
|
|
99620
|
+
_inherits(HtSelectUser, _Vue);
|
|
99621
|
+
|
|
99622
|
+
var _super = _createSuper(HtSelectUser);
|
|
99623
|
+
|
|
99624
|
+
function HtSelectUser() {
|
|
99625
|
+
var _this;
|
|
99626
|
+
|
|
99627
|
+
_classCallCheck(this, HtSelectUser);
|
|
99628
|
+
|
|
99629
|
+
_this = _super.apply(this, arguments);
|
|
99630
|
+
/** 数据 */
|
|
99631
|
+
|
|
99632
|
+
_this.state = {
|
|
99633
|
+
loading: false,
|
|
99634
|
+
value: undefined,
|
|
99635
|
+
allUnitList: [],
|
|
99636
|
+
unitCategory: []
|
|
99637
|
+
};
|
|
99638
|
+
return _this;
|
|
99639
|
+
}
|
|
99640
|
+
/** 生命周期 */
|
|
99641
|
+
|
|
99642
|
+
|
|
99643
|
+
_createClass(HtSelectUser, [{
|
|
99644
|
+
key: "created",
|
|
99645
|
+
value: function created() {
|
|
99646
|
+
var unitCategory = window.sessionStorage.getItem('unitCategory');
|
|
99647
|
+
var allUnitList = window.sessionStorage.getItem('allUnitList');
|
|
99648
|
+
|
|
99649
|
+
if (unitCategory) {
|
|
99650
|
+
this.state.unitCategory = JSON.parse(unitCategory);
|
|
99651
|
+
} else {
|
|
99652
|
+
this.getCategoy();
|
|
99653
|
+
}
|
|
99654
|
+
|
|
99655
|
+
if (allUnitList) {
|
|
99656
|
+
this.state.allUnitList = JSON.parse(allUnitList);
|
|
99657
|
+
}
|
|
99658
|
+
}
|
|
99659
|
+
/** 获取单位分类列表 */
|
|
99660
|
+
|
|
99661
|
+
}, {
|
|
99662
|
+
key: "getCategoy",
|
|
99663
|
+
value: function getCategoy() {
|
|
99664
|
+
var _this2 = this;
|
|
99665
|
+
|
|
99666
|
+
plugins_axios.get('/Unit/api/unit/unit-category/get-list?MaxResultCount=999&SkipCount=0').then(function (res) {
|
|
99667
|
+
var data = res.data.items || [];
|
|
99668
|
+
window.sessionStorage.setItem('unitCategory', JSON.stringify(data));
|
|
99669
|
+
_this2.state.unitCategory = data;
|
|
99670
|
+
|
|
99671
|
+
_this2.getAllUnit();
|
|
99672
|
+
});
|
|
99673
|
+
}
|
|
99674
|
+
/** 获取单位列表 */
|
|
99675
|
+
|
|
99676
|
+
}, {
|
|
99677
|
+
key: "getAllUnit",
|
|
99678
|
+
value: function getAllUnit() {
|
|
99679
|
+
var _this3 = this;
|
|
99680
|
+
|
|
99681
|
+
plugins_axios.get('/Unit/api/unit/unit/get-list?MaxResultCount=999&SkipCount=0').then(function (res) {
|
|
99682
|
+
var data = res.data.items || [];
|
|
99683
|
+
window.sessionStorage.setItem('allUnitList', JSON.stringify(data));
|
|
99684
|
+
_this3.state.allUnitList = data;
|
|
99685
|
+
});
|
|
99686
|
+
}
|
|
99687
|
+
/** 方法 */
|
|
99688
|
+
|
|
99689
|
+
/**部门选择回调 */
|
|
99690
|
+
|
|
99691
|
+
}, {
|
|
99692
|
+
key: "handleChange",
|
|
99693
|
+
value: function handleChange(e) {
|
|
99694
|
+
var allData = [].concat(toConsumableArray_toConsumableArray(this.state.allUnitList), toConsumableArray_toConsumableArray(this.state.unitCategory));
|
|
99695
|
+
|
|
99696
|
+
if (!e || !e.length) {
|
|
99697
|
+
this.$emit('input', e);
|
|
99698
|
+
this.$emit('change', e);
|
|
99699
|
+
} else {
|
|
99700
|
+
var seletId = {};
|
|
99701
|
+
|
|
99702
|
+
if (Array.isArray(e)) {
|
|
99703
|
+
e.forEach(function (item) {
|
|
99704
|
+
seletId = _objectSpread2(_objectSpread2({}, seletId), {}, defineProperty_defineProperty({}, item, true));
|
|
99705
|
+
});
|
|
99706
|
+
} else {
|
|
99707
|
+
seletId = defineProperty_defineProperty({}, e, true);
|
|
99708
|
+
}
|
|
99709
|
+
|
|
99710
|
+
var data = allData.filter(function (item) {
|
|
99711
|
+
return seletId[item.id];
|
|
99712
|
+
});
|
|
99713
|
+
this.$emit('input', e, data);
|
|
99714
|
+
this.$emit('change', e, data);
|
|
99715
|
+
}
|
|
99716
|
+
}
|
|
99717
|
+
}, {
|
|
99718
|
+
key: "setValue",
|
|
99719
|
+
value: function setValue(val) {
|
|
99720
|
+
this.state.value = val;
|
|
99721
|
+
}
|
|
99722
|
+
}, {
|
|
99723
|
+
key: "options",
|
|
99724
|
+
get: function get() {
|
|
99725
|
+
var _this4 = this;
|
|
99726
|
+
|
|
99727
|
+
var _this$state = this.state,
|
|
99728
|
+
unitCategory = _this$state.unitCategory,
|
|
99729
|
+
allUnitList = _this$state.allUnitList;
|
|
99730
|
+
|
|
99731
|
+
function getCurrentUnit(id) {
|
|
99732
|
+
var dataUnit = [];
|
|
99733
|
+
allUnitList.forEach(function (item) {
|
|
99734
|
+
if (item.unitCategoryId === id) {
|
|
99735
|
+
dataUnit.push({
|
|
99736
|
+
value: item.id,
|
|
99737
|
+
name: "".concat(item.name).concat(item.code ? "(".concat(item.code, ")") : ''),
|
|
99738
|
+
code: item.code,
|
|
99739
|
+
label: item.name
|
|
99740
|
+
});
|
|
99741
|
+
}
|
|
99742
|
+
});
|
|
99743
|
+
return dataUnit.length ? dataUnit : undefined;
|
|
99744
|
+
}
|
|
99745
|
+
|
|
99746
|
+
var data = [];
|
|
99747
|
+
|
|
99748
|
+
if (this.categoyId) {
|
|
99749
|
+
data = getCurrentUnit(this.categoyId) || [];
|
|
99750
|
+
} else {
|
|
99751
|
+
unitCategory.forEach(function (item) {
|
|
99752
|
+
data.push({
|
|
99753
|
+
value: item.id,
|
|
99754
|
+
name: "".concat(item.name).concat(item.code ? "(".concat(item.code, ")") : ''),
|
|
99755
|
+
label: item.name,
|
|
99756
|
+
code: item.code,
|
|
99757
|
+
children: _this4.onlyCategoy ? undefined : getCurrentUnit(item.id)
|
|
99758
|
+
});
|
|
99759
|
+
});
|
|
99760
|
+
}
|
|
99761
|
+
|
|
99762
|
+
return data;
|
|
99763
|
+
}
|
|
99764
|
+
/** 计算属性 */
|
|
99765
|
+
|
|
99766
|
+
}, {
|
|
99767
|
+
key: "getName",
|
|
99768
|
+
get: function get() {
|
|
99769
|
+
var _this5 = this;
|
|
99770
|
+
|
|
99771
|
+
var allData = [].concat(toConsumableArray_toConsumableArray(this.state.allUnitList), toConsumableArray_toConsumableArray(this.state.unitCategory));
|
|
99772
|
+
var data = allData.find(function (item) {
|
|
99773
|
+
return item.id === _this5.value;
|
|
99774
|
+
});
|
|
99775
|
+
return data ? "".concat(data.name).concat(data.code ? "(".concat(data.code, ")") : '') : '';
|
|
99776
|
+
}
|
|
99777
|
+
}]);
|
|
99778
|
+
|
|
99779
|
+
return HtSelectUser;
|
|
99780
|
+
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
99781
|
+
|
|
99782
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "value", void 0);
|
|
99783
|
+
|
|
99784
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "org", void 0);
|
|
99785
|
+
|
|
99786
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "size", void 0);
|
|
99787
|
+
|
|
99788
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "disabled", void 0);
|
|
99789
|
+
|
|
99790
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "heightAuto", void 0);
|
|
99791
|
+
|
|
99792
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "placeholder", void 0);
|
|
99793
|
+
|
|
99794
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "clearable", void 0);
|
|
99795
|
+
|
|
99796
|
+
__decorate([Prop({
|
|
99797
|
+
default: true
|
|
99798
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "show", void 0);
|
|
99799
|
+
|
|
99800
|
+
__decorate([Prop({
|
|
99801
|
+
default: false
|
|
99802
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "multiple", void 0);
|
|
99803
|
+
|
|
99804
|
+
__decorate([Prop({
|
|
99805
|
+
default: true
|
|
99806
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "showAllLevels", void 0);
|
|
99807
|
+
|
|
99808
|
+
__decorate([Prop({
|
|
99809
|
+
default: false
|
|
99810
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "checkStrictly", void 0);
|
|
99811
|
+
|
|
99812
|
+
__decorate([Prop({
|
|
99813
|
+
default: false
|
|
99814
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "readonly", void 0);
|
|
99815
|
+
|
|
99816
|
+
__decorate([Prop({
|
|
99817
|
+
default: false
|
|
99818
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "panel", void 0);
|
|
99819
|
+
|
|
99820
|
+
__decorate([Prop({
|
|
99821
|
+
default: false
|
|
99822
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "collapseTags", void 0);
|
|
99823
|
+
|
|
99824
|
+
__decorate([Prop({
|
|
99825
|
+
default: true
|
|
99826
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "appendToBody", void 0);
|
|
99827
|
+
|
|
99828
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "categoyId", void 0);
|
|
99829
|
+
|
|
99830
|
+
__decorate([Prop({
|
|
99831
|
+
default: false
|
|
99832
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "onlyCategoy", void 0);
|
|
99833
|
+
|
|
99834
|
+
__decorate([Watch('value', {
|
|
99835
|
+
immediate: true
|
|
99836
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "setValue", null);
|
|
99837
|
+
|
|
99838
|
+
HtSelectUnitvue_type_script_lang_ts_HtSelectUser = __decorate([vue_class_component_esm({
|
|
99839
|
+
name: 'HtSelectUnit'
|
|
99840
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser);
|
|
99841
|
+
/* harmony default export */ var HtSelectUnitvue_type_script_lang_ts_ = (HtSelectUnitvue_type_script_lang_ts_HtSelectUser);
|
|
99842
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.vue?vue&type=script&lang=ts&
|
|
99843
|
+
/* harmony default export */ var packages_HtSelectUnitvue_type_script_lang_ts_ = (HtSelectUnitvue_type_script_lang_ts_);
|
|
99844
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.vue
|
|
99845
|
+
|
|
99846
|
+
|
|
99847
|
+
|
|
99848
|
+
|
|
99849
|
+
|
|
99850
|
+
/* normalize component */
|
|
99851
|
+
|
|
99852
|
+
var HtSelectUnit_component = normalizeComponent(
|
|
99853
|
+
packages_HtSelectUnitvue_type_script_lang_ts_,
|
|
99854
|
+
HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_render,
|
|
99855
|
+
HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_staticRenderFns,
|
|
99856
|
+
false,
|
|
99857
|
+
null,
|
|
99858
|
+
"1b5206b0",
|
|
99859
|
+
null
|
|
99860
|
+
|
|
99861
|
+
)
|
|
99862
|
+
|
|
99863
|
+
/* harmony default export */ var HtSelectUnit = (HtSelectUnit_component.exports);
|
|
99864
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.ts
|
|
99865
|
+
/*
|
|
99866
|
+
* @Descripttion:选择资产单位
|
|
99867
|
+
* @version:
|
|
99868
|
+
* @Author: hutao
|
|
99869
|
+
* @Date: 2021-11-15 15:00:57
|
|
99870
|
+
* @LastEditors: hutao
|
|
99871
|
+
* @LastEditTime: 2023-01-12 16:58:07
|
|
99872
|
+
*/
|
|
99873
|
+
|
|
99874
|
+
|
|
99875
|
+
HtSelectUnit.install = function (Vue) {
|
|
99876
|
+
Vue.component("HtSelectUnit", HtSelectUnit);
|
|
99877
|
+
};
|
|
99878
|
+
|
|
99879
|
+
/* harmony default export */ var packages_HtSelectUnit = (HtSelectUnit);
|
|
99524
99880
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
|
99525
99881
|
var element_ui_common = __webpack_require__("5c96");
|
|
99526
99882
|
var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_common);
|
|
@@ -99548,6 +99904,7 @@ var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_co
|
|
|
99548
99904
|
|
|
99549
99905
|
|
|
99550
99906
|
|
|
99907
|
+
|
|
99551
99908
|
|
|
99552
99909
|
|
|
99553
99910
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(element_ui_common_default.a);
|
|
@@ -99899,6 +100256,22 @@ __decorate([Prop({
|
|
|
99899
100256
|
|
|
99900
100257
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
99901
100258
|
|
|
100259
|
+
__decorate([Prop({
|
|
100260
|
+
default: false
|
|
100261
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "showSummary", void 0);
|
|
100262
|
+
|
|
100263
|
+
__decorate([Prop({
|
|
100264
|
+
default: '合计'
|
|
100265
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "sumText", void 0);
|
|
100266
|
+
|
|
100267
|
+
__decorate([Prop({
|
|
100268
|
+
default: false
|
|
100269
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "defaultExpandAll", void 0);
|
|
100270
|
+
|
|
100271
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "expandRowKeys", void 0);
|
|
100272
|
+
|
|
100273
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "summaryMethod", void 0);
|
|
100274
|
+
|
|
99902
100275
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "keyName", void 0);
|
|
99903
100276
|
|
|
99904
100277
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "spanMethod", void 0);
|
|
@@ -99979,7 +100352,8 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
99979
100352
|
PageInfo: PageInfo,
|
|
99980
100353
|
HtUploadFiles: packages_HtUploadFiles,
|
|
99981
100354
|
HtShowBaseData: packages_HtShowBaseData,
|
|
99982
|
-
HtOrgInfo: packages_HtOrgInfo
|
|
100355
|
+
HtOrgInfo: packages_HtOrgInfo,
|
|
100356
|
+
HtSelectUnit: packages_HtSelectUnit
|
|
99983
100357
|
}
|
|
99984
100358
|
})], HtTablevue_type_script_lang_ts_HtTable);
|
|
99985
100359
|
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
|
|
@@ -99995,11 +100369,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
99995
100369
|
|
|
99996
100370
|
var HtTable_component = normalizeComponent(
|
|
99997
100371
|
packages_HtTablevue_type_script_lang_ts_,
|
|
99998
|
-
|
|
99999
|
-
|
|
100372
|
+
HtTablevue_type_template_id_a0e92c78_scoped_true_render,
|
|
100373
|
+
HtTablevue_type_template_id_a0e92c78_scoped_true_staticRenderFns,
|
|
100000
100374
|
false,
|
|
100001
100375
|
null,
|
|
100002
|
-
"
|
|
100376
|
+
"a0e92c78",
|
|
100003
100377
|
null
|
|
100004
100378
|
|
|
100005
100379
|
)
|
|
@@ -100245,69 +100619,6 @@ var HtUploadvue_type_template_id_36e44ba3_staticRenderFns = []
|
|
|
100245
100619
|
|
|
100246
100620
|
// CONCATENATED MODULE: ./src/packages/HtUpload/index.vue?vue&type=template&id=36e44ba3&
|
|
100247
100621
|
|
|
100248
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
100249
|
-
function _arrayLikeToArray(arr, len) {
|
|
100250
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
100251
|
-
|
|
100252
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
100253
|
-
arr2[i] = arr[i];
|
|
100254
|
-
}
|
|
100255
|
-
|
|
100256
|
-
return arr2;
|
|
100257
|
-
}
|
|
100258
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
100259
|
-
|
|
100260
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
100261
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
100262
|
-
}
|
|
100263
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
100264
|
-
var es_array_from = __webpack_require__("a630");
|
|
100265
|
-
|
|
100266
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
100267
|
-
|
|
100268
|
-
|
|
100269
|
-
|
|
100270
|
-
|
|
100271
|
-
|
|
100272
|
-
|
|
100273
|
-
|
|
100274
|
-
|
|
100275
|
-
function iterableToArray_iterableToArray(iter) {
|
|
100276
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
100277
|
-
}
|
|
100278
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
100279
|
-
var es_regexp_test = __webpack_require__("00b4");
|
|
100280
|
-
|
|
100281
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
100282
|
-
|
|
100283
|
-
|
|
100284
|
-
|
|
100285
|
-
|
|
100286
|
-
|
|
100287
|
-
|
|
100288
|
-
|
|
100289
|
-
|
|
100290
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
100291
|
-
if (!o) return;
|
|
100292
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
100293
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
100294
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
100295
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
100296
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
100297
|
-
}
|
|
100298
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
100299
|
-
|
|
100300
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
100301
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
100302
|
-
}
|
|
100303
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
100304
|
-
|
|
100305
|
-
|
|
100306
|
-
|
|
100307
|
-
|
|
100308
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
100309
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
100310
|
-
}
|
|
100311
100622
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
100312
100623
|
var es_regexp_to_string = __webpack_require__("25f0");
|
|
100313
100624
|
|
|
@@ -103201,7 +103512,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
103201
103512
|
* @Author: hutao
|
|
103202
103513
|
* @Date: 2021-10-25 17:05:17
|
|
103203
103514
|
* @LastEditors: hutao
|
|
103204
|
-
* @LastEditTime: 2023-01-
|
|
103515
|
+
* @LastEditTime: 2023-01-15 16:03:39
|
|
103205
103516
|
*/
|
|
103206
103517
|
|
|
103207
103518
|
/** 初始的默认条数 */
|
|
@@ -105243,6 +105554,295 @@ HtMore.install = function (Vue) {
|
|
|
105243
105554
|
};
|
|
105244
105555
|
|
|
105245
105556
|
/* harmony default export */ var packages_HtMore = (HtMore);
|
|
105557
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"16dd95d0-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtSelectPosition/index.vue?vue&type=template&id=548e1d72&scoped=true&
|
|
105558
|
+
var HtSelectPositionvue_type_template_id_548e1d72_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.readonly)?_c('span',[_vm._v(" "+_vm._s(_vm.state.positionName)+" ")]):_c('el-cascader',{ref:"HtSelectPosition",staticClass:"component-item",staticStyle:{"width":"100%"},attrs:{"size":_vm.size,"popper-class":"ht-cascader-poper","placeholder":_vm.placeholder || "请选择","disabled":!!_vm.disabled,"filterable":true,"clearable":_vm.clearable,"collapse-tags":_vm.collapseTags,"show-all-levels":_vm.showAllLevels,"props":{
|
|
105559
|
+
label: _vm.defalutName,
|
|
105560
|
+
value: 'id',
|
|
105561
|
+
expandTrigger: 'click',
|
|
105562
|
+
emitPath: false,
|
|
105563
|
+
checkStrictly: _vm.checkStrictly,
|
|
105564
|
+
multiple: _vm.multiple,
|
|
105565
|
+
},"options":_vm.options},on:{"change":_vm.handleChange},model:{value:(_vm.state.value),callback:function ($$v) {_vm.$set(_vm.state, "value", $$v)},expression:"state.value"}})}
|
|
105566
|
+
var HtSelectPositionvue_type_template_id_548e1d72_scoped_true_staticRenderFns = []
|
|
105567
|
+
|
|
105568
|
+
|
|
105569
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.vue?vue&type=template&id=548e1d72&scoped=true&
|
|
105570
|
+
|
|
105571
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--15-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--15-3!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtSelectPosition/index.vue?vue&type=script&lang=ts&
|
|
105572
|
+
|
|
105573
|
+
|
|
105574
|
+
|
|
105575
|
+
|
|
105576
|
+
|
|
105577
|
+
|
|
105578
|
+
|
|
105579
|
+
|
|
105580
|
+
|
|
105581
|
+
|
|
105582
|
+
|
|
105583
|
+
|
|
105584
|
+
|
|
105585
|
+
|
|
105586
|
+
|
|
105587
|
+
|
|
105588
|
+
var HtSelectPositionvue_type_script_lang_ts_HtSelectUser = /*#__PURE__*/function (_Vue) {
|
|
105589
|
+
_inherits(HtSelectUser, _Vue);
|
|
105590
|
+
|
|
105591
|
+
var _super = _createSuper(HtSelectUser);
|
|
105592
|
+
|
|
105593
|
+
function HtSelectUser() {
|
|
105594
|
+
var _this;
|
|
105595
|
+
|
|
105596
|
+
_classCallCheck(this, HtSelectUser);
|
|
105597
|
+
|
|
105598
|
+
_this = _super.apply(this, arguments);
|
|
105599
|
+
/** 数据 */
|
|
105600
|
+
|
|
105601
|
+
_this.state = {
|
|
105602
|
+
loading: false,
|
|
105603
|
+
value: undefined,
|
|
105604
|
+
positionName: undefined,
|
|
105605
|
+
allPositionList: [],
|
|
105606
|
+
unitCategory: []
|
|
105607
|
+
};
|
|
105608
|
+
return _this;
|
|
105609
|
+
}
|
|
105610
|
+
/** 生命周期 */
|
|
105611
|
+
|
|
105612
|
+
|
|
105613
|
+
_createClass(HtSelectUser, [{
|
|
105614
|
+
key: "created",
|
|
105615
|
+
value: function created() {//
|
|
105616
|
+
}
|
|
105617
|
+
/** 根据id获取单个 */
|
|
105618
|
+
|
|
105619
|
+
}, {
|
|
105620
|
+
key: "getSingle",
|
|
105621
|
+
value: function getSingle(val) {
|
|
105622
|
+
var _this2 = this;
|
|
105623
|
+
|
|
105624
|
+
if (val) {
|
|
105625
|
+
/** 有数据就缓存 没有数据就调用接口 */
|
|
105626
|
+
var positionName = window.sessionStorage.getItem("position".concat(val));
|
|
105627
|
+
|
|
105628
|
+
if (positionName) {
|
|
105629
|
+
this.state.positionName = positionName;
|
|
105630
|
+
} else {
|
|
105631
|
+
plugins_axios.get("/PositionManagement/api/position-management/position/get?id=".concat(val)).then(function (res) {
|
|
105632
|
+
var data = res.data;
|
|
105633
|
+
_this2.state.positionName = "".concat(data.displayName).concat(data.positionCode ? "(".concat(data.positionCode, ")") : '');
|
|
105634
|
+
/** 缓存位置信息 */
|
|
105635
|
+
|
|
105636
|
+
window.sessionStorage.setItem("position".concat(val), _this2.state.positionName);
|
|
105637
|
+
});
|
|
105638
|
+
}
|
|
105639
|
+
} else {
|
|
105640
|
+
this.state.positionName = '';
|
|
105641
|
+
}
|
|
105642
|
+
}
|
|
105643
|
+
/** 获取单位列表 */
|
|
105644
|
+
|
|
105645
|
+
}, {
|
|
105646
|
+
key: "getAllList",
|
|
105647
|
+
value: function getAllList(org) {
|
|
105648
|
+
var _this3 = this;
|
|
105649
|
+
|
|
105650
|
+
plugins_axios.post('/PositionManagement/api/position-management/position/get-list-all', {
|
|
105651
|
+
parentId: this.parentId,
|
|
105652
|
+
manageOrganizationUnitId: org,
|
|
105653
|
+
positionPurposeCode: this.purposeCode,
|
|
105654
|
+
isTree: true
|
|
105655
|
+
}).then(function (res) {
|
|
105656
|
+
var data = res.data.items || [];
|
|
105657
|
+
_this3.state.allPositionList = data;
|
|
105658
|
+
});
|
|
105659
|
+
}
|
|
105660
|
+
/** 方法 */
|
|
105661
|
+
|
|
105662
|
+
/**选择回调 */
|
|
105663
|
+
|
|
105664
|
+
}, {
|
|
105665
|
+
key: "handleChange",
|
|
105666
|
+
value: function handleChange(e) {
|
|
105667
|
+
var allData = toConsumableArray_toConsumableArray(this.state.allPositionList);
|
|
105668
|
+
|
|
105669
|
+
if (!e || !e.length) {
|
|
105670
|
+
this.$emit('input', e);
|
|
105671
|
+
this.$emit('change', e);
|
|
105672
|
+
} else {
|
|
105673
|
+
var seletId = {};
|
|
105674
|
+
|
|
105675
|
+
if (Array.isArray(e)) {
|
|
105676
|
+
e.forEach(function (item) {
|
|
105677
|
+
seletId = _objectSpread2(_objectSpread2({}, seletId), {}, defineProperty_defineProperty({}, item, true));
|
|
105678
|
+
});
|
|
105679
|
+
} else {
|
|
105680
|
+
seletId = defineProperty_defineProperty({}, e, true);
|
|
105681
|
+
}
|
|
105682
|
+
|
|
105683
|
+
var data = allData.filter(function (item) {
|
|
105684
|
+
return seletId[item.id];
|
|
105685
|
+
});
|
|
105686
|
+
this.$emit('input', e, data);
|
|
105687
|
+
this.$emit('change', e, data);
|
|
105688
|
+
}
|
|
105689
|
+
}
|
|
105690
|
+
}, {
|
|
105691
|
+
key: "setValue",
|
|
105692
|
+
value: function setValue(val) {
|
|
105693
|
+
this.state.value = val;
|
|
105694
|
+
|
|
105695
|
+
if (this.readonly) {
|
|
105696
|
+
this.getSingle(val);
|
|
105697
|
+
} else {// this.getAllList(this.org);
|
|
105698
|
+
}
|
|
105699
|
+
}
|
|
105700
|
+
}, {
|
|
105701
|
+
key: "getList",
|
|
105702
|
+
value: function getList(val) {
|
|
105703
|
+
if (this.readonly) {//
|
|
105704
|
+
} else {
|
|
105705
|
+
this.getAllList(val);
|
|
105706
|
+
}
|
|
105707
|
+
}
|
|
105708
|
+
}, {
|
|
105709
|
+
key: "formatData",
|
|
105710
|
+
value: function formatData(data) {
|
|
105711
|
+
for (var i = 0; i < data.length; i++) {
|
|
105712
|
+
var item = data[i];
|
|
105713
|
+
item.name = "".concat(item.displayName).concat(item.positionCode ? "(".concat(item.positionCode, ")") : '');
|
|
105714
|
+
|
|
105715
|
+
if (item.children.length < 1) {
|
|
105716
|
+
item.children = undefined;
|
|
105717
|
+
} else {
|
|
105718
|
+
this.formatData(item.children);
|
|
105719
|
+
}
|
|
105720
|
+
}
|
|
105721
|
+
|
|
105722
|
+
return data;
|
|
105723
|
+
}
|
|
105724
|
+
}, {
|
|
105725
|
+
key: "options",
|
|
105726
|
+
get: function get() {
|
|
105727
|
+
var allPositionList = this.state.allPositionList;
|
|
105728
|
+
var allData = this.formatData(allPositionList);
|
|
105729
|
+
return allData;
|
|
105730
|
+
}
|
|
105731
|
+
}]);
|
|
105732
|
+
|
|
105733
|
+
return HtSelectUser;
|
|
105734
|
+
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
105735
|
+
|
|
105736
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "value", void 0);
|
|
105737
|
+
|
|
105738
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "org", void 0);
|
|
105739
|
+
|
|
105740
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "size", void 0);
|
|
105741
|
+
|
|
105742
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "disabled", void 0);
|
|
105743
|
+
|
|
105744
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "heightAuto", void 0);
|
|
105745
|
+
|
|
105746
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "placeholder", void 0);
|
|
105747
|
+
|
|
105748
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "clearable", void 0);
|
|
105749
|
+
|
|
105750
|
+
__decorate([Prop({
|
|
105751
|
+
default: true
|
|
105752
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "show", void 0);
|
|
105753
|
+
|
|
105754
|
+
__decorate([Prop({
|
|
105755
|
+
default: false
|
|
105756
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "multiple", void 0);
|
|
105757
|
+
|
|
105758
|
+
__decorate([Prop({
|
|
105759
|
+
default: true
|
|
105760
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "showAllLevels", void 0);
|
|
105761
|
+
|
|
105762
|
+
__decorate([Prop({
|
|
105763
|
+
default: false
|
|
105764
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "checkStrictly", void 0);
|
|
105765
|
+
|
|
105766
|
+
__decorate([Prop({
|
|
105767
|
+
default: false
|
|
105768
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "readonly", void 0);
|
|
105769
|
+
|
|
105770
|
+
__decorate([Prop({
|
|
105771
|
+
default: false
|
|
105772
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "panel", void 0);
|
|
105773
|
+
|
|
105774
|
+
__decorate([Prop({
|
|
105775
|
+
default: false
|
|
105776
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "collapseTags", void 0);
|
|
105777
|
+
|
|
105778
|
+
__decorate([Prop({
|
|
105779
|
+
default: true
|
|
105780
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "appendToBody", void 0);
|
|
105781
|
+
|
|
105782
|
+
__decorate([Prop({
|
|
105783
|
+
default: 'name'
|
|
105784
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "defalutName", void 0);
|
|
105785
|
+
|
|
105786
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "parentId", void 0);
|
|
105787
|
+
|
|
105788
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "purposeCode", void 0);
|
|
105789
|
+
|
|
105790
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "categoyId", void 0);
|
|
105791
|
+
|
|
105792
|
+
__decorate([Prop({
|
|
105793
|
+
default: false
|
|
105794
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "onlyCategoy", void 0);
|
|
105795
|
+
|
|
105796
|
+
__decorate([Watch('value', {
|
|
105797
|
+
immediate: true
|
|
105798
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "setValue", null);
|
|
105799
|
+
|
|
105800
|
+
__decorate([Watch('org', {
|
|
105801
|
+
immediate: true
|
|
105802
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "getList", null);
|
|
105803
|
+
|
|
105804
|
+
HtSelectPositionvue_type_script_lang_ts_HtSelectUser = __decorate([vue_class_component_esm({
|
|
105805
|
+
name: 'HtSelectPosition'
|
|
105806
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser);
|
|
105807
|
+
/* harmony default export */ var HtSelectPositionvue_type_script_lang_ts_ = (HtSelectPositionvue_type_script_lang_ts_HtSelectUser);
|
|
105808
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.vue?vue&type=script&lang=ts&
|
|
105809
|
+
/* harmony default export */ var packages_HtSelectPositionvue_type_script_lang_ts_ = (HtSelectPositionvue_type_script_lang_ts_);
|
|
105810
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.vue
|
|
105811
|
+
|
|
105812
|
+
|
|
105813
|
+
|
|
105814
|
+
|
|
105815
|
+
|
|
105816
|
+
/* normalize component */
|
|
105817
|
+
|
|
105818
|
+
var HtSelectPosition_component = normalizeComponent(
|
|
105819
|
+
packages_HtSelectPositionvue_type_script_lang_ts_,
|
|
105820
|
+
HtSelectPositionvue_type_template_id_548e1d72_scoped_true_render,
|
|
105821
|
+
HtSelectPositionvue_type_template_id_548e1d72_scoped_true_staticRenderFns,
|
|
105822
|
+
false,
|
|
105823
|
+
null,
|
|
105824
|
+
"548e1d72",
|
|
105825
|
+
null
|
|
105826
|
+
|
|
105827
|
+
)
|
|
105828
|
+
|
|
105829
|
+
/* harmony default export */ var HtSelectPosition = (HtSelectPosition_component.exports);
|
|
105830
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.ts
|
|
105831
|
+
/*
|
|
105832
|
+
* @Descripttion:选择资产单位
|
|
105833
|
+
* @version:
|
|
105834
|
+
* @Author: hutao
|
|
105835
|
+
* @Date: 2021-11-15 15:00:57
|
|
105836
|
+
* @LastEditors: hutao
|
|
105837
|
+
* @LastEditTime: 2023-01-15 14:45:42
|
|
105838
|
+
*/
|
|
105839
|
+
|
|
105840
|
+
|
|
105841
|
+
HtSelectPosition.install = function (Vue) {
|
|
105842
|
+
Vue.component("HtSelectPosition", HtSelectPosition);
|
|
105843
|
+
};
|
|
105844
|
+
|
|
105845
|
+
/* harmony default export */ var packages_HtSelectPosition = (HtSelectPosition);
|
|
105246
105846
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
105247
105847
|
|
|
105248
105848
|
|
|
@@ -105253,7 +105853,7 @@ HtMore.install = function (Vue) {
|
|
|
105253
105853
|
* @Author: hutao
|
|
105254
105854
|
* @Date: 2021-10-21 10:08:41
|
|
105255
105855
|
* @LastEditors: hutao
|
|
105256
|
-
* @LastEditTime: 2023-01-
|
|
105856
|
+
* @LastEditTime: 2023-01-15 15:54:18
|
|
105257
105857
|
*/
|
|
105258
105858
|
|
|
105259
105859
|
/** 下拉table选择控件 */
|
|
@@ -105277,9 +105877,11 @@ HtMore.install = function (Vue) {
|
|
|
105277
105877
|
|
|
105278
105878
|
|
|
105279
105879
|
|
|
105880
|
+
|
|
105881
|
+
|
|
105280
105882
|
// 存储组件列表
|
|
105281
105883
|
|
|
105282
|
-
var components = [packages_HtMore, packages_HtSelectTimeSlot, packages_HtSelectCron, packages_HtBaseData, packages_HtDrawer, src_packages_HtShowBaseType, packages_SelectTable, packages_PageInfo, src_packages_HtTable, src_packages_HtExport, src_packages_HtUpload, src_packages_HtMd, src_packages_HtCountDown, src_packages_HtUploadFiles, src_packages_HtSelectBaseData, src_packages_HtSelectOrg, src_packages_HtSelectUser, packages_HtShowBaseData, packages_HtOrgInfo]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
105884
|
+
var components = [packages_HtSelectUnit, packages_HtSelectPosition, packages_HtMore, packages_HtSelectTimeSlot, packages_HtSelectCron, packages_HtBaseData, packages_HtDrawer, src_packages_HtShowBaseType, packages_SelectTable, packages_PageInfo, src_packages_HtTable, src_packages_HtExport, src_packages_HtUpload, src_packages_HtMd, src_packages_HtCountDown, src_packages_HtUploadFiles, src_packages_HtSelectBaseData, src_packages_HtSelectOrg, src_packages_HtSelectUser, packages_HtShowBaseData, packages_HtOrgInfo]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
105283
105885
|
|
|
105284
105886
|
var install = function install(Vue) {
|
|
105285
105887
|
// 判断是否安装
|
|
@@ -105300,6 +105902,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
105300
105902
|
install: install,
|
|
105301
105903
|
// 以下是具体的组件列表
|
|
105302
105904
|
HtSelectTable: packages_SelectTable,
|
|
105905
|
+
HtSelectPosition: packages_HtSelectPosition,
|
|
105303
105906
|
HtPagination: packages_PageInfo,
|
|
105304
105907
|
HtShowBaseType: src_packages_HtShowBaseType,
|
|
105305
105908
|
HtTable: src_packages_HtTable,
|
|
@@ -105309,6 +105912,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
105309
105912
|
HtCountDown: src_packages_HtCountDown,
|
|
105310
105913
|
HtUploadFiles: src_packages_HtUploadFiles,
|
|
105311
105914
|
HtMore: packages_HtMore,
|
|
105915
|
+
HtSelectUnit: packages_HtSelectUnit,
|
|
105312
105916
|
HtSelectBaseData: src_packages_HtSelectBaseData,
|
|
105313
105917
|
HtSelectOrg: src_packages_HtSelectOrg,
|
|
105314
105918
|
HtSelectUser: src_packages_HtSelectUser,
|