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.umd.js
CHANGED
|
@@ -98648,8 +98648,8 @@ PageInfo.install = function (Vue) {
|
|
|
98648
98648
|
};
|
|
98649
98649
|
|
|
98650
98650
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
98651
|
-
// 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=
|
|
98652
|
-
var
|
|
98651
|
+
// 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&
|
|
98652
|
+
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) {
|
|
98653
98653
|
var column = ref.column;
|
|
98654
98654
|
var prop = ref.prop;
|
|
98655
98655
|
var order = ref.order;
|
|
@@ -98681,7 +98681,7 @@ return [_vm._t(item.key,function(){return [(item.type === 'org')?[(_vm.getPropBy
|
|
|
98681
98681
|
? _vm.getPropByPath(row, item.key)
|
|
98682
98682
|
: '',"base-data-name":item.commonType === 'baseDataName'
|
|
98683
98683
|
? _vm.getPropByPath(row, item.key)
|
|
98684
|
-
: '',"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(
|
|
98684
|
+
: '',"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(
|
|
98685
98685
|
','
|
|
98686
98686
|
)),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":[
|
|
98687
98687
|
'/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){
|
|
@@ -98691,10 +98691,10 @@ return [_vm._t('header_' + item.key,function(){return [_vm._v(_vm._s(item.title)
|
|
|
98691
98691
|
var node = ref.node;
|
|
98692
98692
|
var data = ref.data;
|
|
98693
98693
|
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)}
|
|
98694
|
-
var
|
|
98694
|
+
var HtTablevue_type_template_id_a0e92c78_scoped_true_staticRenderFns = []
|
|
98695
98695
|
|
|
98696
98696
|
|
|
98697
|
-
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
98697
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=a0e92c78&scoped=true&
|
|
98698
98698
|
|
|
98699
98699
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
98700
98700
|
var es_string_replace = __webpack_require__("5319");
|
|
@@ -99530,6 +99530,362 @@ HtOrgInfo.install = function (Vue) {
|
|
|
99530
99530
|
};
|
|
99531
99531
|
|
|
99532
99532
|
/* harmony default export */ var packages_HtOrgInfo = (HtOrgInfo);
|
|
99533
|
+
// 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&
|
|
99534
|
+
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":{
|
|
99535
|
+
label: 'name',
|
|
99536
|
+
expandTrigger: 'click',
|
|
99537
|
+
emitPath: false,
|
|
99538
|
+
checkStrictly: _vm.checkStrictly,
|
|
99539
|
+
multiple: _vm.multiple,
|
|
99540
|
+
},"options":_vm.options},on:{"change":_vm.handleChange},model:{value:(_vm.state.value),callback:function ($$v) {_vm.$set(_vm.state, "value", $$v)},expression:"state.value"}})}
|
|
99541
|
+
var HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_staticRenderFns = []
|
|
99542
|
+
|
|
99543
|
+
|
|
99544
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.vue?vue&type=template&id=1b5206b0&scoped=true&
|
|
99545
|
+
|
|
99546
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
99547
|
+
function _arrayLikeToArray(arr, len) {
|
|
99548
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
99549
|
+
|
|
99550
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
99551
|
+
arr2[i] = arr[i];
|
|
99552
|
+
}
|
|
99553
|
+
|
|
99554
|
+
return arr2;
|
|
99555
|
+
}
|
|
99556
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
99557
|
+
|
|
99558
|
+
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
99559
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
99560
|
+
}
|
|
99561
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
99562
|
+
var es_array_from = __webpack_require__("a630");
|
|
99563
|
+
|
|
99564
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
99565
|
+
|
|
99566
|
+
|
|
99567
|
+
|
|
99568
|
+
|
|
99569
|
+
|
|
99570
|
+
|
|
99571
|
+
|
|
99572
|
+
|
|
99573
|
+
function iterableToArray_iterableToArray(iter) {
|
|
99574
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
99575
|
+
}
|
|
99576
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
99577
|
+
var es_regexp_test = __webpack_require__("00b4");
|
|
99578
|
+
|
|
99579
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
99580
|
+
|
|
99581
|
+
|
|
99582
|
+
|
|
99583
|
+
|
|
99584
|
+
|
|
99585
|
+
|
|
99586
|
+
|
|
99587
|
+
|
|
99588
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
99589
|
+
if (!o) return;
|
|
99590
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
99591
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
99592
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
99593
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
99594
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
99595
|
+
}
|
|
99596
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
99597
|
+
|
|
99598
|
+
function nonIterableSpread_nonIterableSpread() {
|
|
99599
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
99600
|
+
}
|
|
99601
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
99602
|
+
|
|
99603
|
+
|
|
99604
|
+
|
|
99605
|
+
|
|
99606
|
+
function toConsumableArray_toConsumableArray(arr) {
|
|
99607
|
+
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
99608
|
+
}
|
|
99609
|
+
// 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&
|
|
99610
|
+
|
|
99611
|
+
|
|
99612
|
+
|
|
99613
|
+
|
|
99614
|
+
|
|
99615
|
+
|
|
99616
|
+
|
|
99617
|
+
|
|
99618
|
+
|
|
99619
|
+
|
|
99620
|
+
|
|
99621
|
+
|
|
99622
|
+
|
|
99623
|
+
|
|
99624
|
+
|
|
99625
|
+
|
|
99626
|
+
|
|
99627
|
+
|
|
99628
|
+
var HtSelectUnitvue_type_script_lang_ts_HtSelectUser = /*#__PURE__*/function (_Vue) {
|
|
99629
|
+
_inherits(HtSelectUser, _Vue);
|
|
99630
|
+
|
|
99631
|
+
var _super = _createSuper(HtSelectUser);
|
|
99632
|
+
|
|
99633
|
+
function HtSelectUser() {
|
|
99634
|
+
var _this;
|
|
99635
|
+
|
|
99636
|
+
_classCallCheck(this, HtSelectUser);
|
|
99637
|
+
|
|
99638
|
+
_this = _super.apply(this, arguments);
|
|
99639
|
+
/** 数据 */
|
|
99640
|
+
|
|
99641
|
+
_this.state = {
|
|
99642
|
+
loading: false,
|
|
99643
|
+
value: undefined,
|
|
99644
|
+
allUnitList: [],
|
|
99645
|
+
unitCategory: []
|
|
99646
|
+
};
|
|
99647
|
+
return _this;
|
|
99648
|
+
}
|
|
99649
|
+
/** 生命周期 */
|
|
99650
|
+
|
|
99651
|
+
|
|
99652
|
+
_createClass(HtSelectUser, [{
|
|
99653
|
+
key: "created",
|
|
99654
|
+
value: function created() {
|
|
99655
|
+
var unitCategory = window.sessionStorage.getItem('unitCategory');
|
|
99656
|
+
var allUnitList = window.sessionStorage.getItem('allUnitList');
|
|
99657
|
+
|
|
99658
|
+
if (unitCategory) {
|
|
99659
|
+
this.state.unitCategory = JSON.parse(unitCategory);
|
|
99660
|
+
} else {
|
|
99661
|
+
this.getCategoy();
|
|
99662
|
+
}
|
|
99663
|
+
|
|
99664
|
+
if (allUnitList) {
|
|
99665
|
+
this.state.allUnitList = JSON.parse(allUnitList);
|
|
99666
|
+
}
|
|
99667
|
+
}
|
|
99668
|
+
/** 获取单位分类列表 */
|
|
99669
|
+
|
|
99670
|
+
}, {
|
|
99671
|
+
key: "getCategoy",
|
|
99672
|
+
value: function getCategoy() {
|
|
99673
|
+
var _this2 = this;
|
|
99674
|
+
|
|
99675
|
+
plugins_axios.get('/Unit/api/unit/unit-category/get-list?MaxResultCount=999&SkipCount=0').then(function (res) {
|
|
99676
|
+
var data = res.data.items || [];
|
|
99677
|
+
window.sessionStorage.setItem('unitCategory', JSON.stringify(data));
|
|
99678
|
+
_this2.state.unitCategory = data;
|
|
99679
|
+
|
|
99680
|
+
_this2.getAllUnit();
|
|
99681
|
+
});
|
|
99682
|
+
}
|
|
99683
|
+
/** 获取单位列表 */
|
|
99684
|
+
|
|
99685
|
+
}, {
|
|
99686
|
+
key: "getAllUnit",
|
|
99687
|
+
value: function getAllUnit() {
|
|
99688
|
+
var _this3 = this;
|
|
99689
|
+
|
|
99690
|
+
plugins_axios.get('/Unit/api/unit/unit/get-list?MaxResultCount=999&SkipCount=0').then(function (res) {
|
|
99691
|
+
var data = res.data.items || [];
|
|
99692
|
+
window.sessionStorage.setItem('allUnitList', JSON.stringify(data));
|
|
99693
|
+
_this3.state.allUnitList = data;
|
|
99694
|
+
});
|
|
99695
|
+
}
|
|
99696
|
+
/** 方法 */
|
|
99697
|
+
|
|
99698
|
+
/**部门选择回调 */
|
|
99699
|
+
|
|
99700
|
+
}, {
|
|
99701
|
+
key: "handleChange",
|
|
99702
|
+
value: function handleChange(e) {
|
|
99703
|
+
var allData = [].concat(toConsumableArray_toConsumableArray(this.state.allUnitList), toConsumableArray_toConsumableArray(this.state.unitCategory));
|
|
99704
|
+
|
|
99705
|
+
if (!e || !e.length) {
|
|
99706
|
+
this.$emit('input', e);
|
|
99707
|
+
this.$emit('change', e);
|
|
99708
|
+
} else {
|
|
99709
|
+
var seletId = {};
|
|
99710
|
+
|
|
99711
|
+
if (Array.isArray(e)) {
|
|
99712
|
+
e.forEach(function (item) {
|
|
99713
|
+
seletId = _objectSpread2(_objectSpread2({}, seletId), {}, defineProperty_defineProperty({}, item, true));
|
|
99714
|
+
});
|
|
99715
|
+
} else {
|
|
99716
|
+
seletId = defineProperty_defineProperty({}, e, true);
|
|
99717
|
+
}
|
|
99718
|
+
|
|
99719
|
+
var data = allData.filter(function (item) {
|
|
99720
|
+
return seletId[item.id];
|
|
99721
|
+
});
|
|
99722
|
+
this.$emit('input', e, data);
|
|
99723
|
+
this.$emit('change', e, data);
|
|
99724
|
+
}
|
|
99725
|
+
}
|
|
99726
|
+
}, {
|
|
99727
|
+
key: "setValue",
|
|
99728
|
+
value: function setValue(val) {
|
|
99729
|
+
this.state.value = val;
|
|
99730
|
+
}
|
|
99731
|
+
}, {
|
|
99732
|
+
key: "options",
|
|
99733
|
+
get: function get() {
|
|
99734
|
+
var _this4 = this;
|
|
99735
|
+
|
|
99736
|
+
var _this$state = this.state,
|
|
99737
|
+
unitCategory = _this$state.unitCategory,
|
|
99738
|
+
allUnitList = _this$state.allUnitList;
|
|
99739
|
+
|
|
99740
|
+
function getCurrentUnit(id) {
|
|
99741
|
+
var dataUnit = [];
|
|
99742
|
+
allUnitList.forEach(function (item) {
|
|
99743
|
+
if (item.unitCategoryId === id) {
|
|
99744
|
+
dataUnit.push({
|
|
99745
|
+
value: item.id,
|
|
99746
|
+
name: "".concat(item.name).concat(item.code ? "(".concat(item.code, ")") : ''),
|
|
99747
|
+
code: item.code,
|
|
99748
|
+
label: item.name
|
|
99749
|
+
});
|
|
99750
|
+
}
|
|
99751
|
+
});
|
|
99752
|
+
return dataUnit.length ? dataUnit : undefined;
|
|
99753
|
+
}
|
|
99754
|
+
|
|
99755
|
+
var data = [];
|
|
99756
|
+
|
|
99757
|
+
if (this.categoyId) {
|
|
99758
|
+
data = getCurrentUnit(this.categoyId) || [];
|
|
99759
|
+
} else {
|
|
99760
|
+
unitCategory.forEach(function (item) {
|
|
99761
|
+
data.push({
|
|
99762
|
+
value: item.id,
|
|
99763
|
+
name: "".concat(item.name).concat(item.code ? "(".concat(item.code, ")") : ''),
|
|
99764
|
+
label: item.name,
|
|
99765
|
+
code: item.code,
|
|
99766
|
+
children: _this4.onlyCategoy ? undefined : getCurrentUnit(item.id)
|
|
99767
|
+
});
|
|
99768
|
+
});
|
|
99769
|
+
}
|
|
99770
|
+
|
|
99771
|
+
return data;
|
|
99772
|
+
}
|
|
99773
|
+
/** 计算属性 */
|
|
99774
|
+
|
|
99775
|
+
}, {
|
|
99776
|
+
key: "getName",
|
|
99777
|
+
get: function get() {
|
|
99778
|
+
var _this5 = this;
|
|
99779
|
+
|
|
99780
|
+
var allData = [].concat(toConsumableArray_toConsumableArray(this.state.allUnitList), toConsumableArray_toConsumableArray(this.state.unitCategory));
|
|
99781
|
+
var data = allData.find(function (item) {
|
|
99782
|
+
return item.id === _this5.value;
|
|
99783
|
+
});
|
|
99784
|
+
return data ? "".concat(data.name).concat(data.code ? "(".concat(data.code, ")") : '') : '';
|
|
99785
|
+
}
|
|
99786
|
+
}]);
|
|
99787
|
+
|
|
99788
|
+
return HtSelectUser;
|
|
99789
|
+
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
99790
|
+
|
|
99791
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "value", void 0);
|
|
99792
|
+
|
|
99793
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "org", void 0);
|
|
99794
|
+
|
|
99795
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "size", void 0);
|
|
99796
|
+
|
|
99797
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "disabled", void 0);
|
|
99798
|
+
|
|
99799
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "heightAuto", void 0);
|
|
99800
|
+
|
|
99801
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "placeholder", void 0);
|
|
99802
|
+
|
|
99803
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "clearable", void 0);
|
|
99804
|
+
|
|
99805
|
+
__decorate([Prop({
|
|
99806
|
+
default: true
|
|
99807
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "show", void 0);
|
|
99808
|
+
|
|
99809
|
+
__decorate([Prop({
|
|
99810
|
+
default: false
|
|
99811
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "multiple", void 0);
|
|
99812
|
+
|
|
99813
|
+
__decorate([Prop({
|
|
99814
|
+
default: true
|
|
99815
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "showAllLevels", void 0);
|
|
99816
|
+
|
|
99817
|
+
__decorate([Prop({
|
|
99818
|
+
default: false
|
|
99819
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "checkStrictly", void 0);
|
|
99820
|
+
|
|
99821
|
+
__decorate([Prop({
|
|
99822
|
+
default: false
|
|
99823
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "readonly", void 0);
|
|
99824
|
+
|
|
99825
|
+
__decorate([Prop({
|
|
99826
|
+
default: false
|
|
99827
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "panel", void 0);
|
|
99828
|
+
|
|
99829
|
+
__decorate([Prop({
|
|
99830
|
+
default: false
|
|
99831
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "collapseTags", void 0);
|
|
99832
|
+
|
|
99833
|
+
__decorate([Prop({
|
|
99834
|
+
default: true
|
|
99835
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "appendToBody", void 0);
|
|
99836
|
+
|
|
99837
|
+
__decorate([Prop()], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "categoyId", void 0);
|
|
99838
|
+
|
|
99839
|
+
__decorate([Prop({
|
|
99840
|
+
default: false
|
|
99841
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "onlyCategoy", void 0);
|
|
99842
|
+
|
|
99843
|
+
__decorate([Watch('value', {
|
|
99844
|
+
immediate: true
|
|
99845
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser.prototype, "setValue", null);
|
|
99846
|
+
|
|
99847
|
+
HtSelectUnitvue_type_script_lang_ts_HtSelectUser = __decorate([vue_class_component_esm({
|
|
99848
|
+
name: 'HtSelectUnit'
|
|
99849
|
+
})], HtSelectUnitvue_type_script_lang_ts_HtSelectUser);
|
|
99850
|
+
/* harmony default export */ var HtSelectUnitvue_type_script_lang_ts_ = (HtSelectUnitvue_type_script_lang_ts_HtSelectUser);
|
|
99851
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.vue?vue&type=script&lang=ts&
|
|
99852
|
+
/* harmony default export */ var packages_HtSelectUnitvue_type_script_lang_ts_ = (HtSelectUnitvue_type_script_lang_ts_);
|
|
99853
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.vue
|
|
99854
|
+
|
|
99855
|
+
|
|
99856
|
+
|
|
99857
|
+
|
|
99858
|
+
|
|
99859
|
+
/* normalize component */
|
|
99860
|
+
|
|
99861
|
+
var HtSelectUnit_component = normalizeComponent(
|
|
99862
|
+
packages_HtSelectUnitvue_type_script_lang_ts_,
|
|
99863
|
+
HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_render,
|
|
99864
|
+
HtSelectUnitvue_type_template_id_1b5206b0_scoped_true_staticRenderFns,
|
|
99865
|
+
false,
|
|
99866
|
+
null,
|
|
99867
|
+
"1b5206b0",
|
|
99868
|
+
null
|
|
99869
|
+
|
|
99870
|
+
)
|
|
99871
|
+
|
|
99872
|
+
/* harmony default export */ var HtSelectUnit = (HtSelectUnit_component.exports);
|
|
99873
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectUnit/index.ts
|
|
99874
|
+
/*
|
|
99875
|
+
* @Descripttion:选择资产单位
|
|
99876
|
+
* @version:
|
|
99877
|
+
* @Author: hutao
|
|
99878
|
+
* @Date: 2021-11-15 15:00:57
|
|
99879
|
+
* @LastEditors: hutao
|
|
99880
|
+
* @LastEditTime: 2023-01-12 16:58:07
|
|
99881
|
+
*/
|
|
99882
|
+
|
|
99883
|
+
|
|
99884
|
+
HtSelectUnit.install = function (Vue) {
|
|
99885
|
+
Vue.component("HtSelectUnit", HtSelectUnit);
|
|
99886
|
+
};
|
|
99887
|
+
|
|
99888
|
+
/* harmony default export */ var packages_HtSelectUnit = (HtSelectUnit);
|
|
99533
99889
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
|
99534
99890
|
var element_ui_common = __webpack_require__("5c96");
|
|
99535
99891
|
var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_common);
|
|
@@ -99557,6 +99913,7 @@ var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_co
|
|
|
99557
99913
|
|
|
99558
99914
|
|
|
99559
99915
|
|
|
99916
|
+
|
|
99560
99917
|
|
|
99561
99918
|
|
|
99562
99919
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(element_ui_common_default.a);
|
|
@@ -99908,6 +100265,22 @@ __decorate([Prop({
|
|
|
99908
100265
|
|
|
99909
100266
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
99910
100267
|
|
|
100268
|
+
__decorate([Prop({
|
|
100269
|
+
default: false
|
|
100270
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "showSummary", void 0);
|
|
100271
|
+
|
|
100272
|
+
__decorate([Prop({
|
|
100273
|
+
default: '合计'
|
|
100274
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "sumText", void 0);
|
|
100275
|
+
|
|
100276
|
+
__decorate([Prop({
|
|
100277
|
+
default: false
|
|
100278
|
+
})], HtTablevue_type_script_lang_ts_HtTable.prototype, "defaultExpandAll", void 0);
|
|
100279
|
+
|
|
100280
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "expandRowKeys", void 0);
|
|
100281
|
+
|
|
100282
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "summaryMethod", void 0);
|
|
100283
|
+
|
|
99911
100284
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "keyName", void 0);
|
|
99912
100285
|
|
|
99913
100286
|
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "spanMethod", void 0);
|
|
@@ -99988,7 +100361,8 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
99988
100361
|
PageInfo: PageInfo,
|
|
99989
100362
|
HtUploadFiles: packages_HtUploadFiles,
|
|
99990
100363
|
HtShowBaseData: packages_HtShowBaseData,
|
|
99991
|
-
HtOrgInfo: packages_HtOrgInfo
|
|
100364
|
+
HtOrgInfo: packages_HtOrgInfo,
|
|
100365
|
+
HtSelectUnit: packages_HtSelectUnit
|
|
99992
100366
|
}
|
|
99993
100367
|
})], HtTablevue_type_script_lang_ts_HtTable);
|
|
99994
100368
|
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
|
|
@@ -100004,11 +100378,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
|
100004
100378
|
|
|
100005
100379
|
var HtTable_component = normalizeComponent(
|
|
100006
100380
|
packages_HtTablevue_type_script_lang_ts_,
|
|
100007
|
-
|
|
100008
|
-
|
|
100381
|
+
HtTablevue_type_template_id_a0e92c78_scoped_true_render,
|
|
100382
|
+
HtTablevue_type_template_id_a0e92c78_scoped_true_staticRenderFns,
|
|
100009
100383
|
false,
|
|
100010
100384
|
null,
|
|
100011
|
-
"
|
|
100385
|
+
"a0e92c78",
|
|
100012
100386
|
null
|
|
100013
100387
|
|
|
100014
100388
|
)
|
|
@@ -100254,69 +100628,6 @@ var HtUploadvue_type_template_id_36e44ba3_staticRenderFns = []
|
|
|
100254
100628
|
|
|
100255
100629
|
// CONCATENATED MODULE: ./src/packages/HtUpload/index.vue?vue&type=template&id=36e44ba3&
|
|
100256
100630
|
|
|
100257
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
100258
|
-
function _arrayLikeToArray(arr, len) {
|
|
100259
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
100260
|
-
|
|
100261
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
100262
|
-
arr2[i] = arr[i];
|
|
100263
|
-
}
|
|
100264
|
-
|
|
100265
|
-
return arr2;
|
|
100266
|
-
}
|
|
100267
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
100268
|
-
|
|
100269
|
-
function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
|
100270
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
100271
|
-
}
|
|
100272
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
100273
|
-
var es_array_from = __webpack_require__("a630");
|
|
100274
|
-
|
|
100275
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
100276
|
-
|
|
100277
|
-
|
|
100278
|
-
|
|
100279
|
-
|
|
100280
|
-
|
|
100281
|
-
|
|
100282
|
-
|
|
100283
|
-
|
|
100284
|
-
function iterableToArray_iterableToArray(iter) {
|
|
100285
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
100286
|
-
}
|
|
100287
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.test.js
|
|
100288
|
-
var es_regexp_test = __webpack_require__("00b4");
|
|
100289
|
-
|
|
100290
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
100291
|
-
|
|
100292
|
-
|
|
100293
|
-
|
|
100294
|
-
|
|
100295
|
-
|
|
100296
|
-
|
|
100297
|
-
|
|
100298
|
-
|
|
100299
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
100300
|
-
if (!o) return;
|
|
100301
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
100302
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
100303
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
100304
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
100305
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
100306
|
-
}
|
|
100307
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
100308
|
-
|
|
100309
|
-
function nonIterableSpread_nonIterableSpread() {
|
|
100310
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
100311
|
-
}
|
|
100312
|
-
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
100313
|
-
|
|
100314
|
-
|
|
100315
|
-
|
|
100316
|
-
|
|
100317
|
-
function toConsumableArray_toConsumableArray(arr) {
|
|
100318
|
-
return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || _unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
|
100319
|
-
}
|
|
100320
100631
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
100321
100632
|
var es_regexp_to_string = __webpack_require__("25f0");
|
|
100322
100633
|
|
|
@@ -103210,7 +103521,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
103210
103521
|
* @Author: hutao
|
|
103211
103522
|
* @Date: 2021-10-25 17:05:17
|
|
103212
103523
|
* @LastEditors: hutao
|
|
103213
|
-
* @LastEditTime: 2023-01-
|
|
103524
|
+
* @LastEditTime: 2023-01-15 16:03:39
|
|
103214
103525
|
*/
|
|
103215
103526
|
|
|
103216
103527
|
/** 初始的默认条数 */
|
|
@@ -105252,6 +105563,295 @@ HtMore.install = function (Vue) {
|
|
|
105252
105563
|
};
|
|
105253
105564
|
|
|
105254
105565
|
/* harmony default export */ var packages_HtMore = (HtMore);
|
|
105566
|
+
// 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&
|
|
105567
|
+
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":{
|
|
105568
|
+
label: _vm.defalutName,
|
|
105569
|
+
value: 'id',
|
|
105570
|
+
expandTrigger: 'click',
|
|
105571
|
+
emitPath: false,
|
|
105572
|
+
checkStrictly: _vm.checkStrictly,
|
|
105573
|
+
multiple: _vm.multiple,
|
|
105574
|
+
},"options":_vm.options},on:{"change":_vm.handleChange},model:{value:(_vm.state.value),callback:function ($$v) {_vm.$set(_vm.state, "value", $$v)},expression:"state.value"}})}
|
|
105575
|
+
var HtSelectPositionvue_type_template_id_548e1d72_scoped_true_staticRenderFns = []
|
|
105576
|
+
|
|
105577
|
+
|
|
105578
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.vue?vue&type=template&id=548e1d72&scoped=true&
|
|
105579
|
+
|
|
105580
|
+
// 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&
|
|
105581
|
+
|
|
105582
|
+
|
|
105583
|
+
|
|
105584
|
+
|
|
105585
|
+
|
|
105586
|
+
|
|
105587
|
+
|
|
105588
|
+
|
|
105589
|
+
|
|
105590
|
+
|
|
105591
|
+
|
|
105592
|
+
|
|
105593
|
+
|
|
105594
|
+
|
|
105595
|
+
|
|
105596
|
+
|
|
105597
|
+
var HtSelectPositionvue_type_script_lang_ts_HtSelectUser = /*#__PURE__*/function (_Vue) {
|
|
105598
|
+
_inherits(HtSelectUser, _Vue);
|
|
105599
|
+
|
|
105600
|
+
var _super = _createSuper(HtSelectUser);
|
|
105601
|
+
|
|
105602
|
+
function HtSelectUser() {
|
|
105603
|
+
var _this;
|
|
105604
|
+
|
|
105605
|
+
_classCallCheck(this, HtSelectUser);
|
|
105606
|
+
|
|
105607
|
+
_this = _super.apply(this, arguments);
|
|
105608
|
+
/** 数据 */
|
|
105609
|
+
|
|
105610
|
+
_this.state = {
|
|
105611
|
+
loading: false,
|
|
105612
|
+
value: undefined,
|
|
105613
|
+
positionName: undefined,
|
|
105614
|
+
allPositionList: [],
|
|
105615
|
+
unitCategory: []
|
|
105616
|
+
};
|
|
105617
|
+
return _this;
|
|
105618
|
+
}
|
|
105619
|
+
/** 生命周期 */
|
|
105620
|
+
|
|
105621
|
+
|
|
105622
|
+
_createClass(HtSelectUser, [{
|
|
105623
|
+
key: "created",
|
|
105624
|
+
value: function created() {//
|
|
105625
|
+
}
|
|
105626
|
+
/** 根据id获取单个 */
|
|
105627
|
+
|
|
105628
|
+
}, {
|
|
105629
|
+
key: "getSingle",
|
|
105630
|
+
value: function getSingle(val) {
|
|
105631
|
+
var _this2 = this;
|
|
105632
|
+
|
|
105633
|
+
if (val) {
|
|
105634
|
+
/** 有数据就缓存 没有数据就调用接口 */
|
|
105635
|
+
var positionName = window.sessionStorage.getItem("position".concat(val));
|
|
105636
|
+
|
|
105637
|
+
if (positionName) {
|
|
105638
|
+
this.state.positionName = positionName;
|
|
105639
|
+
} else {
|
|
105640
|
+
plugins_axios.get("/PositionManagement/api/position-management/position/get?id=".concat(val)).then(function (res) {
|
|
105641
|
+
var data = res.data;
|
|
105642
|
+
_this2.state.positionName = "".concat(data.displayName).concat(data.positionCode ? "(".concat(data.positionCode, ")") : '');
|
|
105643
|
+
/** 缓存位置信息 */
|
|
105644
|
+
|
|
105645
|
+
window.sessionStorage.setItem("position".concat(val), _this2.state.positionName);
|
|
105646
|
+
});
|
|
105647
|
+
}
|
|
105648
|
+
} else {
|
|
105649
|
+
this.state.positionName = '';
|
|
105650
|
+
}
|
|
105651
|
+
}
|
|
105652
|
+
/** 获取单位列表 */
|
|
105653
|
+
|
|
105654
|
+
}, {
|
|
105655
|
+
key: "getAllList",
|
|
105656
|
+
value: function getAllList(org) {
|
|
105657
|
+
var _this3 = this;
|
|
105658
|
+
|
|
105659
|
+
plugins_axios.post('/PositionManagement/api/position-management/position/get-list-all', {
|
|
105660
|
+
parentId: this.parentId,
|
|
105661
|
+
manageOrganizationUnitId: org,
|
|
105662
|
+
positionPurposeCode: this.purposeCode,
|
|
105663
|
+
isTree: true
|
|
105664
|
+
}).then(function (res) {
|
|
105665
|
+
var data = res.data.items || [];
|
|
105666
|
+
_this3.state.allPositionList = data;
|
|
105667
|
+
});
|
|
105668
|
+
}
|
|
105669
|
+
/** 方法 */
|
|
105670
|
+
|
|
105671
|
+
/**选择回调 */
|
|
105672
|
+
|
|
105673
|
+
}, {
|
|
105674
|
+
key: "handleChange",
|
|
105675
|
+
value: function handleChange(e) {
|
|
105676
|
+
var allData = toConsumableArray_toConsumableArray(this.state.allPositionList);
|
|
105677
|
+
|
|
105678
|
+
if (!e || !e.length) {
|
|
105679
|
+
this.$emit('input', e);
|
|
105680
|
+
this.$emit('change', e);
|
|
105681
|
+
} else {
|
|
105682
|
+
var seletId = {};
|
|
105683
|
+
|
|
105684
|
+
if (Array.isArray(e)) {
|
|
105685
|
+
e.forEach(function (item) {
|
|
105686
|
+
seletId = _objectSpread2(_objectSpread2({}, seletId), {}, defineProperty_defineProperty({}, item, true));
|
|
105687
|
+
});
|
|
105688
|
+
} else {
|
|
105689
|
+
seletId = defineProperty_defineProperty({}, e, true);
|
|
105690
|
+
}
|
|
105691
|
+
|
|
105692
|
+
var data = allData.filter(function (item) {
|
|
105693
|
+
return seletId[item.id];
|
|
105694
|
+
});
|
|
105695
|
+
this.$emit('input', e, data);
|
|
105696
|
+
this.$emit('change', e, data);
|
|
105697
|
+
}
|
|
105698
|
+
}
|
|
105699
|
+
}, {
|
|
105700
|
+
key: "setValue",
|
|
105701
|
+
value: function setValue(val) {
|
|
105702
|
+
this.state.value = val;
|
|
105703
|
+
|
|
105704
|
+
if (this.readonly) {
|
|
105705
|
+
this.getSingle(val);
|
|
105706
|
+
} else {// this.getAllList(this.org);
|
|
105707
|
+
}
|
|
105708
|
+
}
|
|
105709
|
+
}, {
|
|
105710
|
+
key: "getList",
|
|
105711
|
+
value: function getList(val) {
|
|
105712
|
+
if (this.readonly) {//
|
|
105713
|
+
} else {
|
|
105714
|
+
this.getAllList(val);
|
|
105715
|
+
}
|
|
105716
|
+
}
|
|
105717
|
+
}, {
|
|
105718
|
+
key: "formatData",
|
|
105719
|
+
value: function formatData(data) {
|
|
105720
|
+
for (var i = 0; i < data.length; i++) {
|
|
105721
|
+
var item = data[i];
|
|
105722
|
+
item.name = "".concat(item.displayName).concat(item.positionCode ? "(".concat(item.positionCode, ")") : '');
|
|
105723
|
+
|
|
105724
|
+
if (item.children.length < 1) {
|
|
105725
|
+
item.children = undefined;
|
|
105726
|
+
} else {
|
|
105727
|
+
this.formatData(item.children);
|
|
105728
|
+
}
|
|
105729
|
+
}
|
|
105730
|
+
|
|
105731
|
+
return data;
|
|
105732
|
+
}
|
|
105733
|
+
}, {
|
|
105734
|
+
key: "options",
|
|
105735
|
+
get: function get() {
|
|
105736
|
+
var allPositionList = this.state.allPositionList;
|
|
105737
|
+
var allData = this.formatData(allPositionList);
|
|
105738
|
+
return allData;
|
|
105739
|
+
}
|
|
105740
|
+
}]);
|
|
105741
|
+
|
|
105742
|
+
return HtSelectUser;
|
|
105743
|
+
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
105744
|
+
|
|
105745
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "value", void 0);
|
|
105746
|
+
|
|
105747
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "org", void 0);
|
|
105748
|
+
|
|
105749
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "size", void 0);
|
|
105750
|
+
|
|
105751
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "disabled", void 0);
|
|
105752
|
+
|
|
105753
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "heightAuto", void 0);
|
|
105754
|
+
|
|
105755
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "placeholder", void 0);
|
|
105756
|
+
|
|
105757
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "clearable", void 0);
|
|
105758
|
+
|
|
105759
|
+
__decorate([Prop({
|
|
105760
|
+
default: true
|
|
105761
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "show", void 0);
|
|
105762
|
+
|
|
105763
|
+
__decorate([Prop({
|
|
105764
|
+
default: false
|
|
105765
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "multiple", void 0);
|
|
105766
|
+
|
|
105767
|
+
__decorate([Prop({
|
|
105768
|
+
default: true
|
|
105769
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "showAllLevels", void 0);
|
|
105770
|
+
|
|
105771
|
+
__decorate([Prop({
|
|
105772
|
+
default: false
|
|
105773
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "checkStrictly", void 0);
|
|
105774
|
+
|
|
105775
|
+
__decorate([Prop({
|
|
105776
|
+
default: false
|
|
105777
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "readonly", void 0);
|
|
105778
|
+
|
|
105779
|
+
__decorate([Prop({
|
|
105780
|
+
default: false
|
|
105781
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "panel", void 0);
|
|
105782
|
+
|
|
105783
|
+
__decorate([Prop({
|
|
105784
|
+
default: false
|
|
105785
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "collapseTags", void 0);
|
|
105786
|
+
|
|
105787
|
+
__decorate([Prop({
|
|
105788
|
+
default: true
|
|
105789
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "appendToBody", void 0);
|
|
105790
|
+
|
|
105791
|
+
__decorate([Prop({
|
|
105792
|
+
default: 'name'
|
|
105793
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "defalutName", void 0);
|
|
105794
|
+
|
|
105795
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "parentId", void 0);
|
|
105796
|
+
|
|
105797
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "purposeCode", void 0);
|
|
105798
|
+
|
|
105799
|
+
__decorate([Prop()], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "categoyId", void 0);
|
|
105800
|
+
|
|
105801
|
+
__decorate([Prop({
|
|
105802
|
+
default: false
|
|
105803
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "onlyCategoy", void 0);
|
|
105804
|
+
|
|
105805
|
+
__decorate([Watch('value', {
|
|
105806
|
+
immediate: true
|
|
105807
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "setValue", null);
|
|
105808
|
+
|
|
105809
|
+
__decorate([Watch('org', {
|
|
105810
|
+
immediate: true
|
|
105811
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser.prototype, "getList", null);
|
|
105812
|
+
|
|
105813
|
+
HtSelectPositionvue_type_script_lang_ts_HtSelectUser = __decorate([vue_class_component_esm({
|
|
105814
|
+
name: 'HtSelectPosition'
|
|
105815
|
+
})], HtSelectPositionvue_type_script_lang_ts_HtSelectUser);
|
|
105816
|
+
/* harmony default export */ var HtSelectPositionvue_type_script_lang_ts_ = (HtSelectPositionvue_type_script_lang_ts_HtSelectUser);
|
|
105817
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.vue?vue&type=script&lang=ts&
|
|
105818
|
+
/* harmony default export */ var packages_HtSelectPositionvue_type_script_lang_ts_ = (HtSelectPositionvue_type_script_lang_ts_);
|
|
105819
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.vue
|
|
105820
|
+
|
|
105821
|
+
|
|
105822
|
+
|
|
105823
|
+
|
|
105824
|
+
|
|
105825
|
+
/* normalize component */
|
|
105826
|
+
|
|
105827
|
+
var HtSelectPosition_component = normalizeComponent(
|
|
105828
|
+
packages_HtSelectPositionvue_type_script_lang_ts_,
|
|
105829
|
+
HtSelectPositionvue_type_template_id_548e1d72_scoped_true_render,
|
|
105830
|
+
HtSelectPositionvue_type_template_id_548e1d72_scoped_true_staticRenderFns,
|
|
105831
|
+
false,
|
|
105832
|
+
null,
|
|
105833
|
+
"548e1d72",
|
|
105834
|
+
null
|
|
105835
|
+
|
|
105836
|
+
)
|
|
105837
|
+
|
|
105838
|
+
/* harmony default export */ var HtSelectPosition = (HtSelectPosition_component.exports);
|
|
105839
|
+
// CONCATENATED MODULE: ./src/packages/HtSelectPosition/index.ts
|
|
105840
|
+
/*
|
|
105841
|
+
* @Descripttion:选择资产单位
|
|
105842
|
+
* @version:
|
|
105843
|
+
* @Author: hutao
|
|
105844
|
+
* @Date: 2021-11-15 15:00:57
|
|
105845
|
+
* @LastEditors: hutao
|
|
105846
|
+
* @LastEditTime: 2023-01-15 14:45:42
|
|
105847
|
+
*/
|
|
105848
|
+
|
|
105849
|
+
|
|
105850
|
+
HtSelectPosition.install = function (Vue) {
|
|
105851
|
+
Vue.component("HtSelectPosition", HtSelectPosition);
|
|
105852
|
+
};
|
|
105853
|
+
|
|
105854
|
+
/* harmony default export */ var packages_HtSelectPosition = (HtSelectPosition);
|
|
105255
105855
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
105256
105856
|
|
|
105257
105857
|
|
|
@@ -105262,7 +105862,7 @@ HtMore.install = function (Vue) {
|
|
|
105262
105862
|
* @Author: hutao
|
|
105263
105863
|
* @Date: 2021-10-21 10:08:41
|
|
105264
105864
|
* @LastEditors: hutao
|
|
105265
|
-
* @LastEditTime: 2023-01-
|
|
105865
|
+
* @LastEditTime: 2023-01-15 15:54:18
|
|
105266
105866
|
*/
|
|
105267
105867
|
|
|
105268
105868
|
/** 下拉table选择控件 */
|
|
@@ -105286,9 +105886,11 @@ HtMore.install = function (Vue) {
|
|
|
105286
105886
|
|
|
105287
105887
|
|
|
105288
105888
|
|
|
105889
|
+
|
|
105890
|
+
|
|
105289
105891
|
// 存储组件列表
|
|
105290
105892
|
|
|
105291
|
-
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 注册插件,则所有的组件都将被注册
|
|
105893
|
+
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 注册插件,则所有的组件都将被注册
|
|
105292
105894
|
|
|
105293
105895
|
var install = function install(Vue) {
|
|
105294
105896
|
// 判断是否安装
|
|
@@ -105309,6 +105911,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
105309
105911
|
install: install,
|
|
105310
105912
|
// 以下是具体的组件列表
|
|
105311
105913
|
HtSelectTable: packages_SelectTable,
|
|
105914
|
+
HtSelectPosition: packages_HtSelectPosition,
|
|
105312
105915
|
HtPagination: packages_PageInfo,
|
|
105313
105916
|
HtShowBaseType: src_packages_HtShowBaseType,
|
|
105314
105917
|
HtTable: src_packages_HtTable,
|
|
@@ -105318,6 +105921,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
105318
105921
|
HtCountDown: src_packages_HtCountDown,
|
|
105319
105922
|
HtUploadFiles: src_packages_HtUploadFiles,
|
|
105320
105923
|
HtMore: packages_HtMore,
|
|
105924
|
+
HtSelectUnit: packages_HtSelectUnit,
|
|
105321
105925
|
HtSelectBaseData: src_packages_HtSelectBaseData,
|
|
105322
105926
|
HtSelectOrg: src_packages_HtSelectOrg,
|
|
105323
105927
|
HtSelectUser: src_packages_HtSelectUser,
|