@zscreate/form-component 1.1.438 → 1.1.439
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/dist/form-component.css +2 -2
- package/dist/form-component.umd.js +570 -536
- package/package.json +1 -1
|
@@ -81021,7 +81021,7 @@ let getFileExt = filename => {
|
|
|
81021
81021
|
/* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38);
|
|
81022
81022
|
/* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(6955);
|
|
81023
81023
|
/* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8029);
|
|
81024
|
-
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
|
|
81024
|
+
/* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(895);
|
|
81025
81025
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2980);
|
|
81026
81026
|
/* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
81027
81027
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7203);
|
|
@@ -84091,7 +84091,7 @@ module.exports = {
|
|
|
84091
84091
|
|
|
84092
84092
|
/***/ }),
|
|
84093
84093
|
|
|
84094
|
-
/***/
|
|
84094
|
+
/***/ 895:
|
|
84095
84095
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
84096
84096
|
|
|
84097
84097
|
"use strict";
|
|
@@ -86748,11 +86748,13 @@ var widgetSetupvue_type_template_id_434c620a_scoped_true_staticRenderFns = []
|
|
|
86748
86748
|
|
|
86749
86749
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.30.2@core-js/modules/es.array.unscopables.flat.js
|
|
86750
86750
|
var es_array_unscopables_flat = __webpack_require__(1099);
|
|
86751
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/formOneTable.vue?vue&type=template&id=
|
|
86752
|
-
var
|
|
86753
|
-
var
|
|
86751
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/formOneTable.vue?vue&type=template&id=d183f952&
|
|
86752
|
+
var formOneTablevue_type_template_id_d183f952_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{staticStyle:{"height":"80%","overflow-y":"hidden"},attrs:{"title":'字典中心',"width":800,"visible":_vm.visible,"destroyOnClose":true,"confirmLoading":_vm.confirmLoading,"centered":true,"cancelText":"关闭","wrapClassName":"ant-modal-cust-warp","zIndex":1100000,"maskClosable":false},on:{"ok":_vm.handleOk,"cancel":_vm.handleCancel}},[_c('a-form',{attrs:{"layout":"inline"}},[_c('a-row',{attrs:{"gutter":24}},[_c('a-col',{attrs:{"md":8,"sm":8}},[_c('a-input',{attrs:{"placeholder":"请输入字典名称"},model:{value:(_vm.queryParam.dictName),callback:function ($$v) {_vm.$set(_vm.queryParam, "dictName", $$v)},expression:"queryParam.dictName"}})],1),_c('a-col',{attrs:{"md":8,"sm":8}},[_c('span',{staticClass:"table-page-search-submitButtons",staticStyle:{"float":"left","overflow":"hidden"}},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.searchQuery}},[_vm._v("查询")]),_c('a-button',{staticStyle:{"margin-left":"8px"},attrs:{"type":"primary","icon":"reload"},on:{"click":_vm.searchReset}},[_vm._v("重置")])],1)])],1)],1),_c('a-table',{ref:"table",attrs:{"rowKey":"id","size":"middle","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"row-selection":{ selectedRowKeys: _vm.selectedRowKeys, onChange: _vm.onSelectChange,type:'radio' },"loading":_vm.loading},on:{"change":_vm.handleTableChange}})],1)}
|
|
86753
|
+
var formOneTablevue_type_template_id_d183f952_staticRenderFns = []
|
|
86754
86754
|
|
|
86755
86755
|
|
|
86756
|
+
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
86757
|
+
var lodash = __webpack_require__(9392);
|
|
86756
86758
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/formOneTable.vue?vue&type=script&lang=js&
|
|
86757
86759
|
//
|
|
86758
86760
|
//
|
|
@@ -86803,6 +86805,7 @@ var formOneTablevue_type_template_id_780933d0_staticRenderFns = []
|
|
|
86803
86805
|
//
|
|
86804
86806
|
//
|
|
86805
86807
|
|
|
86808
|
+
|
|
86806
86809
|
/* harmony default export */ const formOneTablevue_type_script_lang_js_ = ({
|
|
86807
86810
|
name: "formOnetable",
|
|
86808
86811
|
data() {
|
|
@@ -86839,11 +86842,13 @@ var formOneTablevue_type_template_id_780933d0_staticRenderFns = []
|
|
|
86839
86842
|
title: "字典编号",
|
|
86840
86843
|
align: "left",
|
|
86841
86844
|
dataIndex: "dict_table"
|
|
86842
|
-
}]
|
|
86845
|
+
}],
|
|
86846
|
+
userSearch: {}
|
|
86843
86847
|
};
|
|
86844
86848
|
},
|
|
86845
86849
|
methods: {
|
|
86846
86850
|
init(code) {
|
|
86851
|
+
this.userSearch = {};
|
|
86847
86852
|
this.dictCode = code;
|
|
86848
86853
|
this.selectedRowKeys = [];
|
|
86849
86854
|
this.visible = true;
|
|
@@ -86851,8 +86856,9 @@ var formOneTablevue_type_template_id_780933d0_staticRenderFns = []
|
|
|
86851
86856
|
this.searchQuery();
|
|
86852
86857
|
},
|
|
86853
86858
|
getdict() {
|
|
86859
|
+
let params = this.userSearch;
|
|
86854
86860
|
this.$http.get("form/formdesiger/getDataCenterDictList", {
|
|
86855
|
-
params
|
|
86861
|
+
params
|
|
86856
86862
|
}).then(res => {
|
|
86857
86863
|
console.log(res);
|
|
86858
86864
|
this.ipagination.total = res.result.total;
|
|
@@ -86871,15 +86877,26 @@ var formOneTablevue_type_template_id_780933d0_staticRenderFns = []
|
|
|
86871
86877
|
this.$emit("ok", this.dictCode);
|
|
86872
86878
|
this.visible = false;
|
|
86873
86879
|
},
|
|
86880
|
+
// searchQuery() {
|
|
86881
|
+
// this.queryParam.pageNo = 1;
|
|
86882
|
+
// this.ipagination.current = 1;
|
|
86883
|
+
// this.getdict();
|
|
86884
|
+
// },
|
|
86874
86885
|
searchQuery() {
|
|
86875
|
-
|
|
86876
|
-
|
|
86886
|
+
const queryParam = (0,lodash.cloneDeep)(this.queryParam);
|
|
86887
|
+
delete queryParam._clone;
|
|
86888
|
+
this.queryParam._clone = queryParam;
|
|
86889
|
+
this.userSearch = {
|
|
86890
|
+
...this.userSearch,
|
|
86891
|
+
...this.queryParam._clone
|
|
86892
|
+
};
|
|
86877
86893
|
this.getdict();
|
|
86878
86894
|
},
|
|
86879
86895
|
searchReset() {
|
|
86880
86896
|
var that = this;
|
|
86881
86897
|
that.queryParam.dictName = "";
|
|
86882
86898
|
that.queryParam.dictCode = "";
|
|
86899
|
+
this.userSearch = {};
|
|
86883
86900
|
this.searchQuery();
|
|
86884
86901
|
// that.loadData(this.ipagination.current);
|
|
86885
86902
|
},
|
|
@@ -86894,6 +86911,7 @@ var formOneTablevue_type_template_id_780933d0_staticRenderFns = []
|
|
|
86894
86911
|
console.log(pagination);
|
|
86895
86912
|
this.ipagination = pagination;
|
|
86896
86913
|
this.queryParam.pageNo = pagination.current;
|
|
86914
|
+
this.userSearch.pageNo = pagination.current;
|
|
86897
86915
|
this.getdict();
|
|
86898
86916
|
}
|
|
86899
86917
|
}
|
|
@@ -86910,8 +86928,8 @@ var formOneTablevue_type_template_id_780933d0_staticRenderFns = []
|
|
|
86910
86928
|
;
|
|
86911
86929
|
var formOneTable_component = (0,componentNormalizer/* default */.Z)(
|
|
86912
86930
|
Modals_formOneTablevue_type_script_lang_js_,
|
|
86913
|
-
|
|
86914
|
-
|
|
86931
|
+
formOneTablevue_type_template_id_d183f952_render,
|
|
86932
|
+
formOneTablevue_type_template_id_d183f952_staticRenderFns,
|
|
86915
86933
|
false,
|
|
86916
86934
|
null,
|
|
86917
86935
|
null,
|
|
@@ -86920,16 +86938,494 @@ var formOneTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
86920
86938
|
)
|
|
86921
86939
|
|
|
86922
86940
|
/* harmony default export */ const formOneTable = (formOneTable_component.exports);
|
|
86923
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectSysDict.vue?vue&type=template&id=
|
|
86924
|
-
var
|
|
86925
|
-
var
|
|
86941
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectSysDict.vue?vue&type=template&id=0579658d&scoped=true&
|
|
86942
|
+
var selectSysDictvue_type_template_id_0579658d_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-input',{attrs:{"placeholder":_vm.placeholder},on:{"click":_vm.init,"mousedown":function($event){$event.preventDefault();return (function () {}).apply(null, arguments)}},model:{value:(_vm.widget.options.dictName),callback:function ($$v) {_vm.$set(_vm.widget.options, "dictName", $$v)},expression:"widget.options.dictName"}}),_c('a-modal',{attrs:{"title":"选择字典","width":"800px"},on:{"cancel":_vm.modalCancel,"ok":_vm.handleSelect},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('a-space',{staticStyle:{"margin-bottom":"10px"}},[_c('a-input',{attrs:{"placeholder":"请输入字典名称"},model:{value:(_vm.queryParam.dictName),callback:function ($$v) {_vm.$set(_vm.queryParam, "dictName", $$v)},expression:"queryParam.dictName"}}),_c('a-input',{attrs:{"placeholder":"请输入字典编码"},model:{value:(_vm.queryParam.dictCode),callback:function ($$v) {_vm.$set(_vm.queryParam, "dictCode", $$v)},expression:"queryParam.dictCode"}}),_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.searchQuery()}}},[_vm._v("搜索")])],1),_c('a-table',{ref:"table",attrs:{"rowKey":"dictCode","size":"middle","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"row-selection":{ selectedRowKeys: _vm.selectedRowKeys, onChange: _vm.onSelectChange,type:'radio' },"loading":_vm.loading},on:{"change":_vm.handleTableChange}})],1)],1)}
|
|
86943
|
+
var selectSysDictvue_type_template_id_0579658d_scoped_true_staticRenderFns = []
|
|
86944
|
+
|
|
86945
|
+
|
|
86946
|
+
// EXTERNAL MODULE: ./src/utils/util.js
|
|
86947
|
+
var util = __webpack_require__(4948);
|
|
86948
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseKeys.js + 1 modules
|
|
86949
|
+
var _baseKeys = __webpack_require__(130);
|
|
86950
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getTag.js + 4 modules
|
|
86951
|
+
var _getTag = __webpack_require__(3288);
|
|
86952
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
|
|
86953
|
+
var isArguments = __webpack_require__(8519);
|
|
86954
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
|
|
86955
|
+
var isArray = __webpack_require__(3315);
|
|
86956
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
|
|
86957
|
+
var isArrayLike = __webpack_require__(3047);
|
|
86958
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
|
|
86959
|
+
var isBuffer = __webpack_require__(3156);
|
|
86960
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
|
|
86961
|
+
var _isPrototype = __webpack_require__(3866);
|
|
86962
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
|
|
86963
|
+
var isTypedArray = __webpack_require__(8166);
|
|
86964
|
+
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isEmpty.js
|
|
86965
|
+
|
|
86966
|
+
|
|
86967
|
+
|
|
86968
|
+
|
|
86969
|
+
|
|
86970
|
+
|
|
86971
|
+
|
|
86972
|
+
|
|
86973
|
+
|
|
86974
|
+
/** `Object#toString` result references. */
|
|
86975
|
+
var mapTag = '[object Map]',
|
|
86976
|
+
setTag = '[object Set]';
|
|
86977
|
+
|
|
86978
|
+
/** Used for built-in method references. */
|
|
86979
|
+
var objectProto = Object.prototype;
|
|
86980
|
+
|
|
86981
|
+
/** Used to check objects for own properties. */
|
|
86982
|
+
var isEmpty_hasOwnProperty = objectProto.hasOwnProperty;
|
|
86983
|
+
|
|
86984
|
+
/**
|
|
86985
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
86986
|
+
*
|
|
86987
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
86988
|
+
* properties.
|
|
86989
|
+
*
|
|
86990
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
86991
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
86992
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
86993
|
+
*
|
|
86994
|
+
* @static
|
|
86995
|
+
* @memberOf _
|
|
86996
|
+
* @since 0.1.0
|
|
86997
|
+
* @category Lang
|
|
86998
|
+
* @param {*} value The value to check.
|
|
86999
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
87000
|
+
* @example
|
|
87001
|
+
*
|
|
87002
|
+
* _.isEmpty(null);
|
|
87003
|
+
* // => true
|
|
87004
|
+
*
|
|
87005
|
+
* _.isEmpty(true);
|
|
87006
|
+
* // => true
|
|
87007
|
+
*
|
|
87008
|
+
* _.isEmpty(1);
|
|
87009
|
+
* // => true
|
|
87010
|
+
*
|
|
87011
|
+
* _.isEmpty([1, 2, 3]);
|
|
87012
|
+
* // => false
|
|
87013
|
+
*
|
|
87014
|
+
* _.isEmpty({ 'a': 1 });
|
|
87015
|
+
* // => false
|
|
87016
|
+
*/
|
|
87017
|
+
function isEmpty(value) {
|
|
87018
|
+
if (value == null) {
|
|
87019
|
+
return true;
|
|
87020
|
+
}
|
|
87021
|
+
if ((0,isArrayLike/* default */.Z)(value) &&
|
|
87022
|
+
((0,isArray/* default */.Z)(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
87023
|
+
(0,isBuffer/* default */.Z)(value) || (0,isTypedArray/* default */.Z)(value) || (0,isArguments/* default */.Z)(value))) {
|
|
87024
|
+
return !value.length;
|
|
87025
|
+
}
|
|
87026
|
+
var tag = (0,_getTag/* default */.Z)(value);
|
|
87027
|
+
if (tag == mapTag || tag == setTag) {
|
|
87028
|
+
return !value.size;
|
|
87029
|
+
}
|
|
87030
|
+
if ((0,_isPrototype/* default */.Z)(value)) {
|
|
87031
|
+
return !(0,_baseKeys/* default */.Z)(value).length;
|
|
87032
|
+
}
|
|
87033
|
+
for (var key in value) {
|
|
87034
|
+
if (isEmpty_hasOwnProperty.call(value, key)) {
|
|
87035
|
+
return false;
|
|
87036
|
+
}
|
|
87037
|
+
}
|
|
87038
|
+
return true;
|
|
87039
|
+
}
|
|
87040
|
+
|
|
87041
|
+
/* harmony default export */ const _lodash_es_4_17_21_lodash_es_isEmpty = (isEmpty);
|
|
87042
|
+
|
|
87043
|
+
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/cloneDeep.js + 29 modules
|
|
87044
|
+
var cloneDeep = __webpack_require__(3823);
|
|
87045
|
+
;// CONCATENATED MODULE: ./src/mixins/JeecgListMixinV2.js
|
|
87046
|
+
|
|
87047
|
+
/**
|
|
87048
|
+
* 新增修改完成调用 modalFormOk方法 编辑弹框组件ref定义为modalForm
|
|
87049
|
+
* 高级查询按钮调用 superQuery方法 高级查询组件ref定义为superQueryModal
|
|
87050
|
+
* data中url定义 list为查询列表 delete为删除单条记录 deleteBatch为批量删除
|
|
87051
|
+
*/
|
|
87052
|
+
|
|
87053
|
+
|
|
86926
87054
|
|
|
86927
87055
|
|
|
87056
|
+
const JeecgListMixinV2_JeecgListMixin = {
|
|
87057
|
+
data() {
|
|
87058
|
+
return {
|
|
87059
|
+
//token header
|
|
87060
|
+
tokenHeader: {
|
|
87061
|
+
'X-Access-Token': external_commonjs_vue_commonjs2_vue_root_Vue_default().prototype.getToken()
|
|
87062
|
+
},
|
|
87063
|
+
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */
|
|
87064
|
+
queryParam: {},
|
|
87065
|
+
/* 数据源 */
|
|
87066
|
+
dataSource: [],
|
|
87067
|
+
listMixinHttpType: 'get',
|
|
87068
|
+
/* 分页参数 */
|
|
87069
|
+
ipagination: {
|
|
87070
|
+
current: 1,
|
|
87071
|
+
pageSize: 10,
|
|
87072
|
+
pageSizeOptions: ['10', '20', '30'],
|
|
87073
|
+
showTotal: (total, range) => {
|
|
87074
|
+
return range[0] + "-" + range[1] + " 共" + total + "条";
|
|
87075
|
+
},
|
|
87076
|
+
showQuickJumper: true,
|
|
87077
|
+
showSizeChanger: true,
|
|
87078
|
+
total: 0
|
|
87079
|
+
},
|
|
87080
|
+
/* 排序参数 */
|
|
87081
|
+
isorter: {
|
|
87082
|
+
column: 'createTime',
|
|
87083
|
+
order: 'desc'
|
|
87084
|
+
},
|
|
87085
|
+
/* 筛选参数 */
|
|
87086
|
+
filters: {},
|
|
87087
|
+
/* table加载状态 */
|
|
87088
|
+
loading: false,
|
|
87089
|
+
/* table选中keys*/
|
|
87090
|
+
selectedRowKeys: [],
|
|
87091
|
+
/* table选中records*/
|
|
87092
|
+
selectionRows: [],
|
|
87093
|
+
/* 查询折叠 */
|
|
87094
|
+
toggleSearchStatus: false,
|
|
87095
|
+
/* 高级查询条件生效状态 */
|
|
87096
|
+
superQueryFlag: false,
|
|
87097
|
+
/* 高级查询条件 */
|
|
87098
|
+
superQueryParams: "",
|
|
87099
|
+
// 用户点击查询
|
|
87100
|
+
userSearch: {}
|
|
87101
|
+
};
|
|
87102
|
+
},
|
|
87103
|
+
created() {
|
|
87104
|
+
if (!_lodash_es_4_17_21_lodash_es_isEmpty(this.queryParam)) {
|
|
87105
|
+
this.queryParam._clone = (0,cloneDeep/* default */.Z)(this.queryParam);
|
|
87106
|
+
}
|
|
87107
|
+
if (!this.isFilter) {
|
|
87108
|
+
this.loadData();
|
|
87109
|
+
}
|
|
87110
|
+
//初始化字典配置 在自己页面定义
|
|
87111
|
+
this.initDictConfig();
|
|
87112
|
+
},
|
|
87113
|
+
methods: {
|
|
87114
|
+
loadData(arg) {
|
|
87115
|
+
if (!this.url.list) {
|
|
87116
|
+
this.$message.error("请设置url.list属性!");
|
|
87117
|
+
return;
|
|
87118
|
+
}
|
|
87119
|
+
//加载数据 若传入参数1则加载第一页的内容
|
|
87120
|
+
if (arg === 1) {
|
|
87121
|
+
this.ipagination.current = 1;
|
|
87122
|
+
}
|
|
87123
|
+
let params = this.getQueryParams(); //查询条件
|
|
87124
|
+
this.loading = true;
|
|
87125
|
+
let func = manage/* getAction */.s7;
|
|
87126
|
+
if (this.listMixinHttpType !== 'get') func = manage/* postAction */.SI;
|
|
87127
|
+
func(this.url.list, params).then(res => {
|
|
87128
|
+
if (res.success) {
|
|
87129
|
+
this.dataSource = res.result.records;
|
|
87130
|
+
// console.log(res.result.records)
|
|
87131
|
+
this.ipagination.total = res.result.total;
|
|
87132
|
+
}
|
|
87133
|
+
if (res.code === 510) {
|
|
87134
|
+
this.$message.warning(res.message);
|
|
87135
|
+
} else if (res.code === 500) {
|
|
87136
|
+
if (res.message.length < 100) {
|
|
87137
|
+
this.$message.error(res.message);
|
|
87138
|
+
}
|
|
87139
|
+
}
|
|
87140
|
+
this.loading = false;
|
|
87141
|
+
});
|
|
87142
|
+
},
|
|
87143
|
+
initDictConfig() {
|
|
87144
|
+
console.log("--这是一个假的方法!");
|
|
87145
|
+
},
|
|
87146
|
+
handleSuperQuery(arg) {
|
|
87147
|
+
//高级查询方法
|
|
87148
|
+
if (!arg) {
|
|
87149
|
+
this.superQueryParams = '';
|
|
87150
|
+
this.superQueryFlag = false;
|
|
87151
|
+
} else {
|
|
87152
|
+
this.superQueryFlag = true;
|
|
87153
|
+
this.superQueryParams = JSON.stringify(arg);
|
|
87154
|
+
}
|
|
87155
|
+
this.loadData();
|
|
87156
|
+
},
|
|
87157
|
+
getQueryParams() {
|
|
87158
|
+
//获取查询条件
|
|
87159
|
+
let sqp = {};
|
|
87160
|
+
if (this.superQueryParams) {
|
|
87161
|
+
sqp['superQueryParams'] = encodeURI(this.superQueryParams);
|
|
87162
|
+
}
|
|
87163
|
+
// var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters);
|
|
87164
|
+
let obj = this.needSearch ? this.userSearch : this.queryParam._clone;
|
|
87165
|
+
var param = Object.assign(sqp, obj, this.isorter, this.filters);
|
|
87166
|
+
param.field = this.getQueryField();
|
|
87167
|
+
param.pageNo = this.ipagination.current;
|
|
87168
|
+
param.pageSize = this.ipagination.pageSize;
|
|
87169
|
+
return (0,util.filterObj)(param);
|
|
87170
|
+
},
|
|
87171
|
+
getQueryField() {
|
|
87172
|
+
//TODO 字段权限控制
|
|
87173
|
+
var str = "id,";
|
|
87174
|
+
this.columns.forEach(function (value) {
|
|
87175
|
+
str += "," + value.dataIndex;
|
|
87176
|
+
});
|
|
87177
|
+
return str;
|
|
87178
|
+
},
|
|
87179
|
+
setQueryParamsVal(obj) {
|
|
87180
|
+
if (!_lodash_es_4_17_21_lodash_es_isEmpty(obj)) {
|
|
87181
|
+
var _this$queryParam;
|
|
87182
|
+
for (const objKey in obj) {
|
|
87183
|
+
this.$set(this.queryParam, objKey, obj[objKey]);
|
|
87184
|
+
}
|
|
87185
|
+
this.queryParam._clone = {
|
|
87186
|
+
...((_this$queryParam = this.queryParam) === null || _this$queryParam === void 0 ? void 0 : _this$queryParam._clone),
|
|
87187
|
+
...obj
|
|
87188
|
+
};
|
|
87189
|
+
}
|
|
87190
|
+
},
|
|
87191
|
+
onSelectChange(selectedRowKeys, selectionRows) {
|
|
87192
|
+
this.selectedRowKeys = selectedRowKeys;
|
|
87193
|
+
this.selectionRows = selectionRows;
|
|
87194
|
+
},
|
|
87195
|
+
onClearSelected() {
|
|
87196
|
+
this.selectedRowKeys = [];
|
|
87197
|
+
this.selectionRows = [];
|
|
87198
|
+
},
|
|
87199
|
+
searchQuery() {
|
|
87200
|
+
const queryParam = (0,cloneDeep/* default */.Z)(this.queryParam);
|
|
87201
|
+
delete queryParam._clone;
|
|
87202
|
+
this.queryParam._clone = queryParam;
|
|
87203
|
+
this.userSearch = {
|
|
87204
|
+
...this.userSearch,
|
|
87205
|
+
...this.queryParam._clone
|
|
87206
|
+
};
|
|
87207
|
+
this.loadData(1);
|
|
87208
|
+
},
|
|
87209
|
+
superQuery() {
|
|
87210
|
+
this.$refs.superQueryModal.show();
|
|
87211
|
+
},
|
|
87212
|
+
searchReset() {
|
|
87213
|
+
this.queryParam = this.$options.data().queryParam || {};
|
|
87214
|
+
this.userSearch = {};
|
|
87215
|
+
this.loadData(1);
|
|
87216
|
+
},
|
|
87217
|
+
batchDel: function () {
|
|
87218
|
+
if (!this.url.deleteBatch) {
|
|
87219
|
+
this.$message.error("请设置url.deleteBatch属性!");
|
|
87220
|
+
return;
|
|
87221
|
+
}
|
|
87222
|
+
if (this.selectedRowKeys.length <= 0) {
|
|
87223
|
+
this.$message.warning('请选择一条记录!');
|
|
87224
|
+
return;
|
|
87225
|
+
} else {
|
|
87226
|
+
var ids = this.selectedRowKeys.join(",");
|
|
87227
|
+
var that = this;
|
|
87228
|
+
this.$confirm({
|
|
87229
|
+
title: "确认删除",
|
|
87230
|
+
content: "是否删除选中数据?",
|
|
87231
|
+
onOk: function () {
|
|
87232
|
+
(0,manage/* deleteAction */.mn)(that.url.deleteBatch, {
|
|
87233
|
+
ids: ids
|
|
87234
|
+
}).then(res => {
|
|
87235
|
+
if (res.success) {
|
|
87236
|
+
that.$message.success(res.message);
|
|
87237
|
+
that.loadData();
|
|
87238
|
+
that.onClearSelected();
|
|
87239
|
+
} else {
|
|
87240
|
+
that.$message.warning(res.message);
|
|
87241
|
+
}
|
|
87242
|
+
});
|
|
87243
|
+
}
|
|
87244
|
+
});
|
|
87245
|
+
}
|
|
87246
|
+
},
|
|
87247
|
+
handleModule: function (value) {
|
|
87248
|
+
this.$refs.ModuleDownForm.edit(value);
|
|
87249
|
+
this.$refs.ModuleDownForm.title = "模板下载";
|
|
87250
|
+
this.$refs.ModuleDownForm.disableSubmit = false;
|
|
87251
|
+
},
|
|
87252
|
+
handleDelete: function (id) {
|
|
87253
|
+
if (!this.url.delete) {
|
|
87254
|
+
this.$message.error("请设置url.delete属性!");
|
|
87255
|
+
return;
|
|
87256
|
+
}
|
|
87257
|
+
const onlyOne = this.dataSource.length === 1;
|
|
87258
|
+
var that = this;
|
|
87259
|
+
(0,manage/* deleteAction */.mn)(that.url.delete, {
|
|
87260
|
+
id: id
|
|
87261
|
+
}).then(res => {
|
|
87262
|
+
if (res.success) {
|
|
87263
|
+
that.$message.success(res.message);
|
|
87264
|
+
this.selectedRowKeys = this.selectedRowKeys.filter(item => item !== id);
|
|
87265
|
+
if (onlyOne) {
|
|
87266
|
+
const curr = this.ipagination.current - 1;
|
|
87267
|
+
this.ipagination.current = curr;
|
|
87268
|
+
return that.loadData(curr < 1 ? 1 : curr);
|
|
87269
|
+
}
|
|
87270
|
+
that.loadData();
|
|
87271
|
+
} else {
|
|
87272
|
+
that.$message.warning(res.message);
|
|
87273
|
+
}
|
|
87274
|
+
});
|
|
87275
|
+
},
|
|
87276
|
+
handleEdit: function (record) {
|
|
87277
|
+
record.isView = false;
|
|
87278
|
+
this.$refs.modalForm.edit(record);
|
|
87279
|
+
this.$refs.modalForm.title = "编辑";
|
|
87280
|
+
this.$refs.modalForm.disableSubmit = false;
|
|
87281
|
+
},
|
|
87282
|
+
handleView: function (record) {
|
|
87283
|
+
record.isView = true;
|
|
87284
|
+
this.$refs.modalForm.edit(record);
|
|
87285
|
+
this.$refs.modalForm.title = "查看";
|
|
87286
|
+
this.$refs.modalForm.disableSubmit = false;
|
|
87287
|
+
},
|
|
87288
|
+
//文件上传公共组件title:弹框标题;tableName:业务表名称;proId:课题ID
|
|
87289
|
+
handleUploadFile: function (title, tableName, proId) {
|
|
87290
|
+
if (title == '优秀论文推荐') {
|
|
87291
|
+
this.$refs.uploadForm.edit(tableName, proId, true);
|
|
87292
|
+
} else {
|
|
87293
|
+
this.$refs.uploadForm.edit(tableName, proId, false);
|
|
87294
|
+
}
|
|
87295
|
+
this.$refs.uploadForm.title = title;
|
|
87296
|
+
},
|
|
87297
|
+
handleViewFile: function (title, tableName, tableId, proId) {
|
|
87298
|
+
if (tableId == null || tableId == "") {
|
|
87299
|
+
this.$message.warning("未上传文件");
|
|
87300
|
+
} else {
|
|
87301
|
+
this.$refs.uploadViewForm.edit(tableName, tableId, proId);
|
|
87302
|
+
this.$refs.uploadViewForm.title = title;
|
|
87303
|
+
}
|
|
87304
|
+
},
|
|
87305
|
+
handleAuditFile: function (title, tableName, tableId, dictCode, proId, detail) {
|
|
87306
|
+
if (tableId == null || tableId == "") {
|
|
87307
|
+
this.$message.warning("未上传文件");
|
|
87308
|
+
} else {
|
|
87309
|
+
this.$refs.uploadAuditForm.edit(tableName, tableId, dictCode, proId);
|
|
87310
|
+
this.$refs.uploadAuditForm.title = title;
|
|
87311
|
+
this.$refs.detail = detail;
|
|
87312
|
+
}
|
|
87313
|
+
},
|
|
87314
|
+
handleAdd: function () {
|
|
87315
|
+
this.$refs.modalForm.add();
|
|
87316
|
+
this.$refs.modalForm.title = "新增";
|
|
87317
|
+
this.$refs.modalForm.disableSubmit = false;
|
|
87318
|
+
},
|
|
87319
|
+
handleTableChange(pagination, filters, sorter) {
|
|
87320
|
+
//分页、排序、筛选变化时触发
|
|
87321
|
+
//TODO 筛选
|
|
87322
|
+
if (Object.keys(sorter).length > 0) {
|
|
87323
|
+
this.isorter.column = sorter.field;
|
|
87324
|
+
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc";
|
|
87325
|
+
}
|
|
87326
|
+
this.ipagination = pagination;
|
|
87327
|
+
this.loadData();
|
|
87328
|
+
},
|
|
87329
|
+
handleToggleSearch() {
|
|
87330
|
+
this.toggleSearchStatus = !this.toggleSearchStatus;
|
|
87331
|
+
},
|
|
87332
|
+
modalFormOk() {
|
|
87333
|
+
// 新增/修改 成功时,重载列表
|
|
87334
|
+
console.log('===selectedRowKeys', this.selectedRowKeys);
|
|
87335
|
+
this.loadData();
|
|
87336
|
+
},
|
|
87337
|
+
handleDetail: function (record) {
|
|
87338
|
+
this.$refs.modalForm.edit(record);
|
|
87339
|
+
this.$refs.modalForm.title = "详情";
|
|
87340
|
+
this.$refs.modalForm.disableSubmit = true;
|
|
87341
|
+
},
|
|
87342
|
+
/* 导出 */
|
|
87343
|
+
handleExportXls2() {
|
|
87344
|
+
let paramsStr = encodeURI(JSON.stringify(this.getQueryParams()));
|
|
87345
|
+
let url = `${window._CONFIG['domianURL']}/${this.url.exportXlsUrl}?paramsStr=${paramsStr}`;
|
|
87346
|
+
window.location.href = url;
|
|
87347
|
+
},
|
|
87348
|
+
handleExportXls(fileName) {
|
|
87349
|
+
console.log(fileName);
|
|
87350
|
+
if (!fileName || typeof fileName != "string") {
|
|
87351
|
+
fileName = "导出文件";
|
|
87352
|
+
}
|
|
87353
|
+
let param = {
|
|
87354
|
+
...this.queryParam._clone
|
|
87355
|
+
};
|
|
87356
|
+
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
|
87357
|
+
param['selections'] = this.selectedRowKeys.join(",");
|
|
87358
|
+
param['ids'] = this.selectedRowKeys.join(",");
|
|
87359
|
+
}
|
|
87360
|
+
console.log("导出参数", param);
|
|
87361
|
+
(0,manage/* downFile */.zd)(this.url.exportXlsUrl, param).then(data => {
|
|
87362
|
+
if (!data) {
|
|
87363
|
+
this.$message.warning("文件下载失败");
|
|
87364
|
+
return;
|
|
87365
|
+
}
|
|
87366
|
+
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
87367
|
+
window.navigator.msSaveBlob(new Blob([data]), fileName + '.xls');
|
|
87368
|
+
} else {
|
|
87369
|
+
let url = window.URL.createObjectURL(new Blob([data]));
|
|
87370
|
+
let link = document.createElement('a');
|
|
87371
|
+
link.style.display = 'none';
|
|
87372
|
+
link.href = url;
|
|
87373
|
+
link.setAttribute('download', fileName + '.xls');
|
|
87374
|
+
document.body.appendChild(link);
|
|
87375
|
+
link.click();
|
|
87376
|
+
document.body.removeChild(link); //下载完成移除元素
|
|
87377
|
+
window.URL.revokeObjectURL(url); //释放掉blob对象
|
|
87378
|
+
}
|
|
87379
|
+
});
|
|
87380
|
+
},
|
|
87381
|
+
|
|
87382
|
+
/* 导入 */
|
|
87383
|
+
handleImportExcel(info) {
|
|
87384
|
+
if (info.file.status !== 'uploading') {
|
|
87385
|
+
console.log(info.file, info.fileList);
|
|
87386
|
+
}
|
|
87387
|
+
if (info.file.status === 'done') {
|
|
87388
|
+
if (info.file.response.success) {
|
|
87389
|
+
this.$message.success(info.file.response.result || `${info.file.name} 文件上传成功`);
|
|
87390
|
+
this.loadData();
|
|
87391
|
+
} else {
|
|
87392
|
+
this.$message.error(info.file.response.result || `${info.file.name} ${info.file.response.message}.`);
|
|
87393
|
+
}
|
|
87394
|
+
} else if (info.file.status === 'error') {
|
|
87395
|
+
this.$message.error(`文件上传失败: ${info.file.msg} `);
|
|
87396
|
+
}
|
|
87397
|
+
},
|
|
87398
|
+
/* 图片预览 */
|
|
87399
|
+
getImgView(text) {
|
|
87400
|
+
if (text && text.indexOf(",") > 0) {
|
|
87401
|
+
text = text.substring(0, text.indexOf(","));
|
|
87402
|
+
}
|
|
87403
|
+
return (window._CONFIG['imgDomainURL'] || window._CONFIG['imgUrl']) + "/" + text;
|
|
87404
|
+
},
|
|
87405
|
+
/* 文件下载 */
|
|
87406
|
+
uploadFile(text) {
|
|
87407
|
+
if (!text) {
|
|
87408
|
+
this.$message.warning("未知的文件");
|
|
87409
|
+
return;
|
|
87410
|
+
}
|
|
87411
|
+
if (text.indexOf(",") > 0) {
|
|
87412
|
+
text = text.substring(0, text.indexOf(","));
|
|
87413
|
+
}
|
|
87414
|
+
window.open((window._CONFIG['fileDomainURL'] || window._CONFIG['domianURL']) + "/sys/common/download/" + text);
|
|
87415
|
+
},
|
|
87416
|
+
modalCancel() {
|
|
87417
|
+
this.ipagination.current = 1;
|
|
87418
|
+
this.ipagination.pageSize = 10;
|
|
87419
|
+
this.queryParam = this.$options.data().queryParam;
|
|
87420
|
+
this.visible = false;
|
|
87421
|
+
}
|
|
87422
|
+
}
|
|
87423
|
+
};
|
|
86928
87424
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectSysDict.vue?vue&type=script&lang=js&
|
|
86929
87425
|
|
|
86930
87426
|
/* harmony default export */ const selectSysDictvue_type_script_lang_js_ = ({
|
|
86931
87427
|
name: "selectSysDict",
|
|
86932
|
-
mixins: [
|
|
87428
|
+
mixins: [JeecgListMixinV2_JeecgListMixin],
|
|
86933
87429
|
props: {
|
|
86934
87430
|
widget: {
|
|
86935
87431
|
type: Object,
|
|
@@ -86943,7 +87439,7 @@ var selectSysDictvue_type_template_id_6fd9fc0a_scoped_true_staticRenderFns = []
|
|
|
86943
87439
|
return {
|
|
86944
87440
|
visible: false,
|
|
86945
87441
|
url: {
|
|
86946
|
-
list: "/sys/dict/
|
|
87442
|
+
list: "/sys/dict/queryList"
|
|
86947
87443
|
},
|
|
86948
87444
|
queryParam: {},
|
|
86949
87445
|
expandedRowKeys: [],
|
|
@@ -86969,9 +87465,13 @@ var selectSysDictvue_type_template_id_6fd9fc0a_scoped_true_staticRenderFns = []
|
|
|
86969
87465
|
},
|
|
86970
87466
|
handleSelect() {
|
|
86971
87467
|
var _this$selectionRows;
|
|
86972
|
-
if (!((_this$selectionRows = this.selectionRows) !== null && _this$selectionRows !== void 0 && _this$selectionRows.length)) this.$message.warn('请选择一条数据');
|
|
87468
|
+
if (!((_this$selectionRows = this.selectionRows) !== null && _this$selectionRows !== void 0 && _this$selectionRows.length)) return this.$message.warn('请选择一条数据');
|
|
86973
87469
|
this.widget.options.dictName = this.selectedRowKeys[0];
|
|
86974
87470
|
this.modalCancel();
|
|
87471
|
+
},
|
|
87472
|
+
modalCancel() {
|
|
87473
|
+
this.queryParam = {};
|
|
87474
|
+
this.visible = false;
|
|
86975
87475
|
}
|
|
86976
87476
|
}
|
|
86977
87477
|
});
|
|
@@ -86987,26 +87487,26 @@ var selectSysDictvue_type_template_id_6fd9fc0a_scoped_true_staticRenderFns = []
|
|
|
86987
87487
|
;
|
|
86988
87488
|
var selectSysDict_component = (0,componentNormalizer/* default */.Z)(
|
|
86989
87489
|
Modals_selectSysDictvue_type_script_lang_js_,
|
|
86990
|
-
|
|
86991
|
-
|
|
87490
|
+
selectSysDictvue_type_template_id_0579658d_scoped_true_render,
|
|
87491
|
+
selectSysDictvue_type_template_id_0579658d_scoped_true_staticRenderFns,
|
|
86992
87492
|
false,
|
|
86993
87493
|
null,
|
|
86994
|
-
"
|
|
87494
|
+
"0579658d",
|
|
86995
87495
|
null
|
|
86996
87496
|
|
|
86997
87497
|
)
|
|
86998
87498
|
|
|
86999
87499
|
/* harmony default export */ const selectSysDict = (selectSysDict_component.exports);
|
|
87000
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/CascaderSelect/components/selectClassifyDict.vue?vue&type=template&id=
|
|
87001
|
-
var
|
|
87002
|
-
var
|
|
87500
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/CascaderSelect/components/selectClassifyDict.vue?vue&type=template&id=6a916818&scoped=true&
|
|
87501
|
+
var selectClassifyDictvue_type_template_id_6a916818_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-input',{attrs:{"placeholder":"关联分类字典"},on:{"click":_vm.init,"mousedown":function($event){$event.preventDefault();return (function () {}).apply(null, arguments)}},model:{value:(_vm.widget.options.code),callback:function ($$v) {_vm.$set(_vm.widget.options, "code", $$v)},expression:"widget.options.code"}}),_c('a-modal',{attrs:{"title":"关联分类字典","width":"800px"},on:{"cancel":_vm.modalCancel,"ok":_vm.handleSelect},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('a-space',{staticStyle:{"margin-bottom":"10px"}},[_c('a-input',{attrs:{"placeholder":"请输入字典名称"},model:{value:(_vm.queryParam.name),callback:function ($$v) {_vm.$set(_vm.queryParam, "name", $$v)},expression:"queryParam.name"}}),_c('a-input',{attrs:{"placeholder":"请输入字典编码"},model:{value:(_vm.queryParam.code),callback:function ($$v) {_vm.$set(_vm.queryParam, "code", $$v)},expression:"queryParam.code"}}),_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.searchQuery()}}},[_vm._v("搜索")])],1),_c('a-table',{ref:"table",attrs:{"rowKey":"code","size":"middle","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"row-selection":{ selectedRowKeys: _vm.selectedRowKeys, onChange: _vm.onSelectChange,type:'radio' },"loading":_vm.loading},on:{"change":_vm.handleTableChange}})],1)],1)}
|
|
87502
|
+
var selectClassifyDictvue_type_template_id_6a916818_scoped_true_staticRenderFns = []
|
|
87003
87503
|
|
|
87004
87504
|
|
|
87005
87505
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/CascaderSelect/components/selectClassifyDict.vue?vue&type=script&lang=js&
|
|
87006
87506
|
|
|
87007
87507
|
/* harmony default export */ const selectClassifyDictvue_type_script_lang_js_ = ({
|
|
87008
87508
|
name: "selectClassifyDict",
|
|
87009
|
-
mixins: [
|
|
87509
|
+
mixins: [JeecgListMixinV2_JeecgListMixin],
|
|
87010
87510
|
props: {
|
|
87011
87511
|
widget: {
|
|
87012
87512
|
type: Object,
|
|
@@ -87045,7 +87545,7 @@ var selectClassifyDictvue_type_template_id_6430cbe8_scoped_true_staticRenderFns
|
|
|
87045
87545
|
},
|
|
87046
87546
|
handleSelect(record) {
|
|
87047
87547
|
var _this$selectionRows;
|
|
87048
|
-
if (!((_this$selectionRows = this.selectionRows) !== null && _this$selectionRows !== void 0 && _this$selectionRows.length)) this.$message.warn('请选择一条数据');
|
|
87548
|
+
if (!((_this$selectionRows = this.selectionRows) !== null && _this$selectionRows !== void 0 && _this$selectionRows.length)) return this.$message.warn('请选择一条数据');
|
|
87049
87549
|
this.$set(this.widget.options, 'code', this.selectedRowKeys[0]);
|
|
87050
87550
|
this.visible = false;
|
|
87051
87551
|
}
|
|
@@ -87063,11 +87563,11 @@ var selectClassifyDictvue_type_template_id_6430cbe8_scoped_true_staticRenderFns
|
|
|
87063
87563
|
;
|
|
87064
87564
|
var selectClassifyDict_component = (0,componentNormalizer/* default */.Z)(
|
|
87065
87565
|
components_selectClassifyDictvue_type_script_lang_js_,
|
|
87066
|
-
|
|
87067
|
-
|
|
87566
|
+
selectClassifyDictvue_type_template_id_6a916818_scoped_true_render,
|
|
87567
|
+
selectClassifyDictvue_type_template_id_6a916818_scoped_true_staticRenderFns,
|
|
87068
87568
|
false,
|
|
87069
87569
|
null,
|
|
87070
|
-
"
|
|
87570
|
+
"6a916818",
|
|
87071
87571
|
null
|
|
87072
87572
|
|
|
87073
87573
|
)
|
|
@@ -87505,10 +88005,6 @@ var componentvue_type_template_id_734262fe_scoped_true_staticRenderFns = []
|
|
|
87505
88005
|
var es_array_reduce = __webpack_require__(5444);
|
|
87506
88006
|
// EXTERNAL MODULE: ./src/components/MessageBox/confirmBox.vue + 3 modules
|
|
87507
88007
|
var confirmBox = __webpack_require__(5276);
|
|
87508
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/cloneDeep.js + 29 modules
|
|
87509
|
-
var cloneDeep = __webpack_require__(3823);
|
|
87510
|
-
// EXTERNAL MODULE: ./src/utils/util.js
|
|
87511
|
-
var util = __webpack_require__(4948);
|
|
87512
88008
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/Table/component.vue?vue&type=script&lang=js&
|
|
87513
88009
|
|
|
87514
88010
|
|
|
@@ -97934,7 +98430,7 @@ var componentvue_type_template_id_5b813936_scoped_true_staticRenderFns = []
|
|
|
97934
98430
|
|
|
97935
98431
|
|
|
97936
98432
|
// EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
|
|
97937
|
-
var selectUserModal = __webpack_require__(
|
|
98433
|
+
var selectUserModal = __webpack_require__(5994);
|
|
97938
98434
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/UserSelector/component.vue?vue&type=script&lang=js&
|
|
97939
98435
|
|
|
97940
98436
|
//
|
|
@@ -98636,485 +99132,11 @@ var userLinkage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
98636
99132
|
)
|
|
98637
99133
|
|
|
98638
99134
|
/* harmony default export */ const userLinkage = (userLinkage_component.exports);
|
|
98639
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/listCommonModal.vue?vue&type=template&id=
|
|
98640
|
-
var
|
|
98641
|
-
var
|
|
99135
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/listCommonModal.vue?vue&type=template&id=525b4c71&scoped=true&
|
|
99136
|
+
var listCommonModalvue_type_template_id_525b4c71_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":_vm.init,"mousedown":function($event){$event.preventDefault();return (function () {}).apply(null, arguments)}}},[_c('a-input',{staticStyle:{"width":"100%"},attrs:{"placeholder":_vm.placeholder,"read-only":""},model:{value:(_vm.modelStr),callback:function ($$v) {_vm.modelStr=$$v},expression:"modelStr"}},[_c('a-icon',{attrs:{"slot":"prefix","type":"setting","title":"选择"},slot:"prefix"}),(_vm.modelStr)?_c('a-icon',{staticStyle:{"cursor":"pointer"},attrs:{"slot":"suffix","type":"close-circle","title":"清空"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handleEmpty.apply(null, arguments)}},slot:"suffix"}):_vm._e()],1),_c('a-modal',{attrs:{"title":_vm.title,"width":"800px"},on:{"cancel":_vm.modalCancel,"ok":_vm.handleSelect},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('a-space',{staticStyle:{"margin-bottom":"10px"}},[_c('a-form',{on:{"submit":function($event){$event.preventDefault();return _vm.searchQuery.apply(null, arguments)}}},[_vm._t("default",null,{"queryParam":_vm.queryParam})],2),_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.searchQuery()}}},[_vm._v("搜索")])],1),_c('a-table',{ref:"table",attrs:{"rowKey":_vm.rowKey,"size":"middle","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"row-selection":_vm.rowSelection,"loading":_vm.loading},on:{"change":_vm.handleTableChange}})],1)],1)}
|
|
99137
|
+
var listCommonModalvue_type_template_id_525b4c71_scoped_true_staticRenderFns = []
|
|
98642
99138
|
|
|
98643
99139
|
|
|
98644
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseKeys.js + 1 modules
|
|
98645
|
-
var _baseKeys = __webpack_require__(130);
|
|
98646
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getTag.js + 4 modules
|
|
98647
|
-
var _getTag = __webpack_require__(3288);
|
|
98648
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
|
|
98649
|
-
var isArguments = __webpack_require__(8519);
|
|
98650
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
|
|
98651
|
-
var isArray = __webpack_require__(3315);
|
|
98652
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
|
|
98653
|
-
var isArrayLike = __webpack_require__(3047);
|
|
98654
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
|
|
98655
|
-
var isBuffer = __webpack_require__(3156);
|
|
98656
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
|
|
98657
|
-
var _isPrototype = __webpack_require__(3866);
|
|
98658
|
-
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
|
|
98659
|
-
var isTypedArray = __webpack_require__(8166);
|
|
98660
|
-
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isEmpty.js
|
|
98661
|
-
|
|
98662
|
-
|
|
98663
|
-
|
|
98664
|
-
|
|
98665
|
-
|
|
98666
|
-
|
|
98667
|
-
|
|
98668
|
-
|
|
98669
|
-
|
|
98670
|
-
/** `Object#toString` result references. */
|
|
98671
|
-
var mapTag = '[object Map]',
|
|
98672
|
-
setTag = '[object Set]';
|
|
98673
|
-
|
|
98674
|
-
/** Used for built-in method references. */
|
|
98675
|
-
var objectProto = Object.prototype;
|
|
98676
|
-
|
|
98677
|
-
/** Used to check objects for own properties. */
|
|
98678
|
-
var isEmpty_hasOwnProperty = objectProto.hasOwnProperty;
|
|
98679
|
-
|
|
98680
|
-
/**
|
|
98681
|
-
* Checks if `value` is an empty object, collection, map, or set.
|
|
98682
|
-
*
|
|
98683
|
-
* Objects are considered empty if they have no own enumerable string keyed
|
|
98684
|
-
* properties.
|
|
98685
|
-
*
|
|
98686
|
-
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
98687
|
-
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
98688
|
-
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
98689
|
-
*
|
|
98690
|
-
* @static
|
|
98691
|
-
* @memberOf _
|
|
98692
|
-
* @since 0.1.0
|
|
98693
|
-
* @category Lang
|
|
98694
|
-
* @param {*} value The value to check.
|
|
98695
|
-
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
98696
|
-
* @example
|
|
98697
|
-
*
|
|
98698
|
-
* _.isEmpty(null);
|
|
98699
|
-
* // => true
|
|
98700
|
-
*
|
|
98701
|
-
* _.isEmpty(true);
|
|
98702
|
-
* // => true
|
|
98703
|
-
*
|
|
98704
|
-
* _.isEmpty(1);
|
|
98705
|
-
* // => true
|
|
98706
|
-
*
|
|
98707
|
-
* _.isEmpty([1, 2, 3]);
|
|
98708
|
-
* // => false
|
|
98709
|
-
*
|
|
98710
|
-
* _.isEmpty({ 'a': 1 });
|
|
98711
|
-
* // => false
|
|
98712
|
-
*/
|
|
98713
|
-
function isEmpty(value) {
|
|
98714
|
-
if (value == null) {
|
|
98715
|
-
return true;
|
|
98716
|
-
}
|
|
98717
|
-
if ((0,isArrayLike/* default */.Z)(value) &&
|
|
98718
|
-
((0,isArray/* default */.Z)(value) || typeof value == 'string' || typeof value.splice == 'function' ||
|
|
98719
|
-
(0,isBuffer/* default */.Z)(value) || (0,isTypedArray/* default */.Z)(value) || (0,isArguments/* default */.Z)(value))) {
|
|
98720
|
-
return !value.length;
|
|
98721
|
-
}
|
|
98722
|
-
var tag = (0,_getTag/* default */.Z)(value);
|
|
98723
|
-
if (tag == mapTag || tag == setTag) {
|
|
98724
|
-
return !value.size;
|
|
98725
|
-
}
|
|
98726
|
-
if ((0,_isPrototype/* default */.Z)(value)) {
|
|
98727
|
-
return !(0,_baseKeys/* default */.Z)(value).length;
|
|
98728
|
-
}
|
|
98729
|
-
for (var key in value) {
|
|
98730
|
-
if (isEmpty_hasOwnProperty.call(value, key)) {
|
|
98731
|
-
return false;
|
|
98732
|
-
}
|
|
98733
|
-
}
|
|
98734
|
-
return true;
|
|
98735
|
-
}
|
|
98736
|
-
|
|
98737
|
-
/* harmony default export */ const _lodash_es_4_17_21_lodash_es_isEmpty = (isEmpty);
|
|
98738
|
-
|
|
98739
|
-
;// CONCATENATED MODULE: ./src/mixins/JeecgListMixinV2.js
|
|
98740
|
-
|
|
98741
|
-
/**
|
|
98742
|
-
* 新增修改完成调用 modalFormOk方法 编辑弹框组件ref定义为modalForm
|
|
98743
|
-
* 高级查询按钮调用 superQuery方法 高级查询组件ref定义为superQueryModal
|
|
98744
|
-
* data中url定义 list为查询列表 delete为删除单条记录 deleteBatch为批量删除
|
|
98745
|
-
*/
|
|
98746
|
-
|
|
98747
|
-
|
|
98748
|
-
|
|
98749
|
-
|
|
98750
|
-
const JeecgListMixinV2_JeecgListMixin = {
|
|
98751
|
-
data() {
|
|
98752
|
-
return {
|
|
98753
|
-
//token header
|
|
98754
|
-
tokenHeader: {
|
|
98755
|
-
'X-Access-Token': external_commonjs_vue_commonjs2_vue_root_Vue_default().prototype.getToken()
|
|
98756
|
-
},
|
|
98757
|
-
/* 查询条件-请不要在queryParam中声明非字符串值的属性 */
|
|
98758
|
-
queryParam: {},
|
|
98759
|
-
/* 数据源 */
|
|
98760
|
-
dataSource: [],
|
|
98761
|
-
listMixinHttpType: 'get',
|
|
98762
|
-
/* 分页参数 */
|
|
98763
|
-
ipagination: {
|
|
98764
|
-
current: 1,
|
|
98765
|
-
pageSize: 10,
|
|
98766
|
-
pageSizeOptions: ['10', '20', '30'],
|
|
98767
|
-
showTotal: (total, range) => {
|
|
98768
|
-
return range[0] + "-" + range[1] + " 共" + total + "条";
|
|
98769
|
-
},
|
|
98770
|
-
showQuickJumper: true,
|
|
98771
|
-
showSizeChanger: true,
|
|
98772
|
-
total: 0
|
|
98773
|
-
},
|
|
98774
|
-
/* 排序参数 */
|
|
98775
|
-
isorter: {
|
|
98776
|
-
column: 'createTime',
|
|
98777
|
-
order: 'desc'
|
|
98778
|
-
},
|
|
98779
|
-
/* 筛选参数 */
|
|
98780
|
-
filters: {},
|
|
98781
|
-
/* table加载状态 */
|
|
98782
|
-
loading: false,
|
|
98783
|
-
/* table选中keys*/
|
|
98784
|
-
selectedRowKeys: [],
|
|
98785
|
-
/* table选中records*/
|
|
98786
|
-
selectionRows: [],
|
|
98787
|
-
/* 查询折叠 */
|
|
98788
|
-
toggleSearchStatus: false,
|
|
98789
|
-
/* 高级查询条件生效状态 */
|
|
98790
|
-
superQueryFlag: false,
|
|
98791
|
-
/* 高级查询条件 */
|
|
98792
|
-
superQueryParams: "",
|
|
98793
|
-
// 用户点击查询
|
|
98794
|
-
userSearch: {}
|
|
98795
|
-
};
|
|
98796
|
-
},
|
|
98797
|
-
created() {
|
|
98798
|
-
if (!_lodash_es_4_17_21_lodash_es_isEmpty(this.queryParam)) {
|
|
98799
|
-
this.queryParam._clone = (0,cloneDeep/* default */.Z)(this.queryParam);
|
|
98800
|
-
}
|
|
98801
|
-
if (!this.isFilter) {
|
|
98802
|
-
this.loadData();
|
|
98803
|
-
}
|
|
98804
|
-
//初始化字典配置 在自己页面定义
|
|
98805
|
-
this.initDictConfig();
|
|
98806
|
-
},
|
|
98807
|
-
methods: {
|
|
98808
|
-
loadData(arg) {
|
|
98809
|
-
if (!this.url.list) {
|
|
98810
|
-
this.$message.error("请设置url.list属性!");
|
|
98811
|
-
return;
|
|
98812
|
-
}
|
|
98813
|
-
//加载数据 若传入参数1则加载第一页的内容
|
|
98814
|
-
if (arg === 1) {
|
|
98815
|
-
this.ipagination.current = 1;
|
|
98816
|
-
}
|
|
98817
|
-
let params = this.getQueryParams(); //查询条件
|
|
98818
|
-
this.loading = true;
|
|
98819
|
-
let func = manage/* getAction */.s7;
|
|
98820
|
-
if (this.listMixinHttpType !== 'get') func = manage/* postAction */.SI;
|
|
98821
|
-
func(this.url.list, params).then(res => {
|
|
98822
|
-
if (res.success) {
|
|
98823
|
-
this.dataSource = res.result.records;
|
|
98824
|
-
// console.log(res.result.records)
|
|
98825
|
-
this.ipagination.total = res.result.total;
|
|
98826
|
-
}
|
|
98827
|
-
if (res.code === 510) {
|
|
98828
|
-
this.$message.warning(res.message);
|
|
98829
|
-
} else if (res.code === 500) {
|
|
98830
|
-
if (res.message.length < 100) {
|
|
98831
|
-
this.$message.error(res.message);
|
|
98832
|
-
}
|
|
98833
|
-
}
|
|
98834
|
-
this.loading = false;
|
|
98835
|
-
});
|
|
98836
|
-
},
|
|
98837
|
-
initDictConfig() {
|
|
98838
|
-
console.log("--这是一个假的方法!");
|
|
98839
|
-
},
|
|
98840
|
-
handleSuperQuery(arg) {
|
|
98841
|
-
//高级查询方法
|
|
98842
|
-
if (!arg) {
|
|
98843
|
-
this.superQueryParams = '';
|
|
98844
|
-
this.superQueryFlag = false;
|
|
98845
|
-
} else {
|
|
98846
|
-
this.superQueryFlag = true;
|
|
98847
|
-
this.superQueryParams = JSON.stringify(arg);
|
|
98848
|
-
}
|
|
98849
|
-
this.loadData();
|
|
98850
|
-
},
|
|
98851
|
-
getQueryParams() {
|
|
98852
|
-
//获取查询条件
|
|
98853
|
-
let sqp = {};
|
|
98854
|
-
if (this.superQueryParams) {
|
|
98855
|
-
sqp['superQueryParams'] = encodeURI(this.superQueryParams);
|
|
98856
|
-
}
|
|
98857
|
-
// var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters);
|
|
98858
|
-
let obj = this.needSearch ? this.userSearch : this.queryParam._clone;
|
|
98859
|
-
var param = Object.assign(sqp, obj, this.isorter, this.filters);
|
|
98860
|
-
param.field = this.getQueryField();
|
|
98861
|
-
param.pageNo = this.ipagination.current;
|
|
98862
|
-
param.pageSize = this.ipagination.pageSize;
|
|
98863
|
-
return (0,util.filterObj)(param);
|
|
98864
|
-
},
|
|
98865
|
-
getQueryField() {
|
|
98866
|
-
//TODO 字段权限控制
|
|
98867
|
-
var str = "id,";
|
|
98868
|
-
this.columns.forEach(function (value) {
|
|
98869
|
-
str += "," + value.dataIndex;
|
|
98870
|
-
});
|
|
98871
|
-
return str;
|
|
98872
|
-
},
|
|
98873
|
-
setQueryParamsVal(obj) {
|
|
98874
|
-
if (!_lodash_es_4_17_21_lodash_es_isEmpty(obj)) {
|
|
98875
|
-
var _this$queryParam;
|
|
98876
|
-
for (const objKey in obj) {
|
|
98877
|
-
this.$set(this.queryParam, objKey, obj[objKey]);
|
|
98878
|
-
}
|
|
98879
|
-
this.queryParam._clone = {
|
|
98880
|
-
...((_this$queryParam = this.queryParam) === null || _this$queryParam === void 0 ? void 0 : _this$queryParam._clone),
|
|
98881
|
-
...obj
|
|
98882
|
-
};
|
|
98883
|
-
}
|
|
98884
|
-
},
|
|
98885
|
-
onSelectChange(selectedRowKeys, selectionRows) {
|
|
98886
|
-
this.selectedRowKeys = selectedRowKeys;
|
|
98887
|
-
this.selectionRows = selectionRows;
|
|
98888
|
-
},
|
|
98889
|
-
onClearSelected() {
|
|
98890
|
-
this.selectedRowKeys = [];
|
|
98891
|
-
this.selectionRows = [];
|
|
98892
|
-
},
|
|
98893
|
-
searchQuery() {
|
|
98894
|
-
const queryParam = (0,cloneDeep/* default */.Z)(this.queryParam);
|
|
98895
|
-
delete queryParam._clone;
|
|
98896
|
-
this.queryParam._clone = queryParam;
|
|
98897
|
-
this.userSearch = {
|
|
98898
|
-
...this.userSearch,
|
|
98899
|
-
...this.queryParam._clone
|
|
98900
|
-
};
|
|
98901
|
-
this.loadData(1);
|
|
98902
|
-
},
|
|
98903
|
-
superQuery() {
|
|
98904
|
-
this.$refs.superQueryModal.show();
|
|
98905
|
-
},
|
|
98906
|
-
searchReset() {
|
|
98907
|
-
this.queryParam = this.$options.data().queryParam || {};
|
|
98908
|
-
this.userSearch = {};
|
|
98909
|
-
this.loadData(1);
|
|
98910
|
-
},
|
|
98911
|
-
batchDel: function () {
|
|
98912
|
-
if (!this.url.deleteBatch) {
|
|
98913
|
-
this.$message.error("请设置url.deleteBatch属性!");
|
|
98914
|
-
return;
|
|
98915
|
-
}
|
|
98916
|
-
if (this.selectedRowKeys.length <= 0) {
|
|
98917
|
-
this.$message.warning('请选择一条记录!');
|
|
98918
|
-
return;
|
|
98919
|
-
} else {
|
|
98920
|
-
var ids = this.selectedRowKeys.join(",");
|
|
98921
|
-
var that = this;
|
|
98922
|
-
this.$confirm({
|
|
98923
|
-
title: "确认删除",
|
|
98924
|
-
content: "是否删除选中数据?",
|
|
98925
|
-
onOk: function () {
|
|
98926
|
-
(0,manage/* deleteAction */.mn)(that.url.deleteBatch, {
|
|
98927
|
-
ids: ids
|
|
98928
|
-
}).then(res => {
|
|
98929
|
-
if (res.success) {
|
|
98930
|
-
that.$message.success(res.message);
|
|
98931
|
-
that.loadData();
|
|
98932
|
-
that.onClearSelected();
|
|
98933
|
-
} else {
|
|
98934
|
-
that.$message.warning(res.message);
|
|
98935
|
-
}
|
|
98936
|
-
});
|
|
98937
|
-
}
|
|
98938
|
-
});
|
|
98939
|
-
}
|
|
98940
|
-
},
|
|
98941
|
-
handleModule: function (value) {
|
|
98942
|
-
this.$refs.ModuleDownForm.edit(value);
|
|
98943
|
-
this.$refs.ModuleDownForm.title = "模板下载";
|
|
98944
|
-
this.$refs.ModuleDownForm.disableSubmit = false;
|
|
98945
|
-
},
|
|
98946
|
-
handleDelete: function (id) {
|
|
98947
|
-
if (!this.url.delete) {
|
|
98948
|
-
this.$message.error("请设置url.delete属性!");
|
|
98949
|
-
return;
|
|
98950
|
-
}
|
|
98951
|
-
const onlyOne = this.dataSource.length === 1;
|
|
98952
|
-
var that = this;
|
|
98953
|
-
(0,manage/* deleteAction */.mn)(that.url.delete, {
|
|
98954
|
-
id: id
|
|
98955
|
-
}).then(res => {
|
|
98956
|
-
if (res.success) {
|
|
98957
|
-
that.$message.success(res.message);
|
|
98958
|
-
this.selectedRowKeys = this.selectedRowKeys.filter(item => item !== id);
|
|
98959
|
-
if (onlyOne) {
|
|
98960
|
-
const curr = this.ipagination.current - 1;
|
|
98961
|
-
this.ipagination.current = curr;
|
|
98962
|
-
return that.loadData(curr < 1 ? 1 : curr);
|
|
98963
|
-
}
|
|
98964
|
-
that.loadData();
|
|
98965
|
-
} else {
|
|
98966
|
-
that.$message.warning(res.message);
|
|
98967
|
-
}
|
|
98968
|
-
});
|
|
98969
|
-
},
|
|
98970
|
-
handleEdit: function (record) {
|
|
98971
|
-
record.isView = false;
|
|
98972
|
-
this.$refs.modalForm.edit(record);
|
|
98973
|
-
this.$refs.modalForm.title = "编辑";
|
|
98974
|
-
this.$refs.modalForm.disableSubmit = false;
|
|
98975
|
-
},
|
|
98976
|
-
handleView: function (record) {
|
|
98977
|
-
record.isView = true;
|
|
98978
|
-
this.$refs.modalForm.edit(record);
|
|
98979
|
-
this.$refs.modalForm.title = "查看";
|
|
98980
|
-
this.$refs.modalForm.disableSubmit = false;
|
|
98981
|
-
},
|
|
98982
|
-
//文件上传公共组件title:弹框标题;tableName:业务表名称;proId:课题ID
|
|
98983
|
-
handleUploadFile: function (title, tableName, proId) {
|
|
98984
|
-
if (title == '优秀论文推荐') {
|
|
98985
|
-
this.$refs.uploadForm.edit(tableName, proId, true);
|
|
98986
|
-
} else {
|
|
98987
|
-
this.$refs.uploadForm.edit(tableName, proId, false);
|
|
98988
|
-
}
|
|
98989
|
-
this.$refs.uploadForm.title = title;
|
|
98990
|
-
},
|
|
98991
|
-
handleViewFile: function (title, tableName, tableId, proId) {
|
|
98992
|
-
if (tableId == null || tableId == "") {
|
|
98993
|
-
this.$message.warning("未上传文件");
|
|
98994
|
-
} else {
|
|
98995
|
-
this.$refs.uploadViewForm.edit(tableName, tableId, proId);
|
|
98996
|
-
this.$refs.uploadViewForm.title = title;
|
|
98997
|
-
}
|
|
98998
|
-
},
|
|
98999
|
-
handleAuditFile: function (title, tableName, tableId, dictCode, proId, detail) {
|
|
99000
|
-
if (tableId == null || tableId == "") {
|
|
99001
|
-
this.$message.warning("未上传文件");
|
|
99002
|
-
} else {
|
|
99003
|
-
this.$refs.uploadAuditForm.edit(tableName, tableId, dictCode, proId);
|
|
99004
|
-
this.$refs.uploadAuditForm.title = title;
|
|
99005
|
-
this.$refs.detail = detail;
|
|
99006
|
-
}
|
|
99007
|
-
},
|
|
99008
|
-
handleAdd: function () {
|
|
99009
|
-
this.$refs.modalForm.add();
|
|
99010
|
-
this.$refs.modalForm.title = "新增";
|
|
99011
|
-
this.$refs.modalForm.disableSubmit = false;
|
|
99012
|
-
},
|
|
99013
|
-
handleTableChange(pagination, filters, sorter) {
|
|
99014
|
-
//分页、排序、筛选变化时触发
|
|
99015
|
-
//TODO 筛选
|
|
99016
|
-
if (Object.keys(sorter).length > 0) {
|
|
99017
|
-
this.isorter.column = sorter.field;
|
|
99018
|
-
this.isorter.order = "ascend" == sorter.order ? "asc" : "desc";
|
|
99019
|
-
}
|
|
99020
|
-
this.ipagination = pagination;
|
|
99021
|
-
this.loadData();
|
|
99022
|
-
},
|
|
99023
|
-
handleToggleSearch() {
|
|
99024
|
-
this.toggleSearchStatus = !this.toggleSearchStatus;
|
|
99025
|
-
},
|
|
99026
|
-
modalFormOk() {
|
|
99027
|
-
// 新增/修改 成功时,重载列表
|
|
99028
|
-
console.log('===selectedRowKeys', this.selectedRowKeys);
|
|
99029
|
-
this.loadData();
|
|
99030
|
-
},
|
|
99031
|
-
handleDetail: function (record) {
|
|
99032
|
-
this.$refs.modalForm.edit(record);
|
|
99033
|
-
this.$refs.modalForm.title = "详情";
|
|
99034
|
-
this.$refs.modalForm.disableSubmit = true;
|
|
99035
|
-
},
|
|
99036
|
-
/* 导出 */
|
|
99037
|
-
handleExportXls2() {
|
|
99038
|
-
let paramsStr = encodeURI(JSON.stringify(this.getQueryParams()));
|
|
99039
|
-
let url = `${window._CONFIG['domianURL']}/${this.url.exportXlsUrl}?paramsStr=${paramsStr}`;
|
|
99040
|
-
window.location.href = url;
|
|
99041
|
-
},
|
|
99042
|
-
handleExportXls(fileName) {
|
|
99043
|
-
console.log(fileName);
|
|
99044
|
-
if (!fileName || typeof fileName != "string") {
|
|
99045
|
-
fileName = "导出文件";
|
|
99046
|
-
}
|
|
99047
|
-
let param = {
|
|
99048
|
-
...this.queryParam._clone
|
|
99049
|
-
};
|
|
99050
|
-
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
|
99051
|
-
param['selections'] = this.selectedRowKeys.join(",");
|
|
99052
|
-
param['ids'] = this.selectedRowKeys.join(",");
|
|
99053
|
-
}
|
|
99054
|
-
console.log("导出参数", param);
|
|
99055
|
-
(0,manage/* downFile */.zd)(this.url.exportXlsUrl, param).then(data => {
|
|
99056
|
-
if (!data) {
|
|
99057
|
-
this.$message.warning("文件下载失败");
|
|
99058
|
-
return;
|
|
99059
|
-
}
|
|
99060
|
-
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
99061
|
-
window.navigator.msSaveBlob(new Blob([data]), fileName + '.xls');
|
|
99062
|
-
} else {
|
|
99063
|
-
let url = window.URL.createObjectURL(new Blob([data]));
|
|
99064
|
-
let link = document.createElement('a');
|
|
99065
|
-
link.style.display = 'none';
|
|
99066
|
-
link.href = url;
|
|
99067
|
-
link.setAttribute('download', fileName + '.xls');
|
|
99068
|
-
document.body.appendChild(link);
|
|
99069
|
-
link.click();
|
|
99070
|
-
document.body.removeChild(link); //下载完成移除元素
|
|
99071
|
-
window.URL.revokeObjectURL(url); //释放掉blob对象
|
|
99072
|
-
}
|
|
99073
|
-
});
|
|
99074
|
-
},
|
|
99075
|
-
|
|
99076
|
-
/* 导入 */
|
|
99077
|
-
handleImportExcel(info) {
|
|
99078
|
-
if (info.file.status !== 'uploading') {
|
|
99079
|
-
console.log(info.file, info.fileList);
|
|
99080
|
-
}
|
|
99081
|
-
if (info.file.status === 'done') {
|
|
99082
|
-
if (info.file.response.success) {
|
|
99083
|
-
this.$message.success(info.file.response.result || `${info.file.name} 文件上传成功`);
|
|
99084
|
-
this.loadData();
|
|
99085
|
-
} else {
|
|
99086
|
-
this.$message.error(info.file.response.result || `${info.file.name} ${info.file.response.message}.`);
|
|
99087
|
-
}
|
|
99088
|
-
} else if (info.file.status === 'error') {
|
|
99089
|
-
this.$message.error(`文件上传失败: ${info.file.msg} `);
|
|
99090
|
-
}
|
|
99091
|
-
},
|
|
99092
|
-
/* 图片预览 */
|
|
99093
|
-
getImgView(text) {
|
|
99094
|
-
if (text && text.indexOf(",") > 0) {
|
|
99095
|
-
text = text.substring(0, text.indexOf(","));
|
|
99096
|
-
}
|
|
99097
|
-
return (window._CONFIG['imgDomainURL'] || window._CONFIG['imgUrl']) + "/" + text;
|
|
99098
|
-
},
|
|
99099
|
-
/* 文件下载 */
|
|
99100
|
-
uploadFile(text) {
|
|
99101
|
-
if (!text) {
|
|
99102
|
-
this.$message.warning("未知的文件");
|
|
99103
|
-
return;
|
|
99104
|
-
}
|
|
99105
|
-
if (text.indexOf(",") > 0) {
|
|
99106
|
-
text = text.substring(0, text.indexOf(","));
|
|
99107
|
-
}
|
|
99108
|
-
window.open((window._CONFIG['fileDomainURL'] || window._CONFIG['domianURL']) + "/sys/common/download/" + text);
|
|
99109
|
-
},
|
|
99110
|
-
modalCancel() {
|
|
99111
|
-
this.ipagination.current = 1;
|
|
99112
|
-
this.ipagination.pageSize = 10;
|
|
99113
|
-
this.queryParam = this.$options.data().queryParam;
|
|
99114
|
-
this.visible = false;
|
|
99115
|
-
}
|
|
99116
|
-
}
|
|
99117
|
-
};
|
|
99118
99140
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/listCommonModal.vue?vue&type=script&lang=js&
|
|
99119
99141
|
|
|
99120
99142
|
|
|
@@ -99236,7 +99258,7 @@ const JeecgListMixinV2_JeecgListMixin = {
|
|
|
99236
99258
|
},
|
|
99237
99259
|
handleSelect() {
|
|
99238
99260
|
var _this$selectionRowsDa;
|
|
99239
|
-
if (!((_this$selectionRowsDa = this.selectionRowsData) !== null && _this$selectionRowsDa !== void 0 && _this$selectionRowsDa.length)) this.$message.warn('请选择一条数据');
|
|
99261
|
+
if (!((_this$selectionRowsDa = this.selectionRowsData) !== null && _this$selectionRowsDa !== void 0 && _this$selectionRowsDa.length)) return this.$message.warn('请选择一条数据');
|
|
99240
99262
|
this.$emit('ok', this.rowSelection.selectedRowKeys, this.selectionRowsData);
|
|
99241
99263
|
this.modalCancel();
|
|
99242
99264
|
},
|
|
@@ -99259,11 +99281,11 @@ const JeecgListMixinV2_JeecgListMixin = {
|
|
|
99259
99281
|
;
|
|
99260
99282
|
var listCommonModal_component = (0,componentNormalizer/* default */.Z)(
|
|
99261
99283
|
Modals_listCommonModalvue_type_script_lang_js_,
|
|
99262
|
-
|
|
99263
|
-
|
|
99284
|
+
listCommonModalvue_type_template_id_525b4c71_scoped_true_render,
|
|
99285
|
+
listCommonModalvue_type_template_id_525b4c71_scoped_true_staticRenderFns,
|
|
99264
99286
|
false,
|
|
99265
99287
|
null,
|
|
99266
|
-
"
|
|
99288
|
+
"525b4c71",
|
|
99267
99289
|
null
|
|
99268
99290
|
|
|
99269
99291
|
)
|
|
@@ -123408,9 +123430,9 @@ return [_c('a-input',{attrs:{"placeholder":"应用名称"},model:{value:(queryPa
|
|
|
123408
123430
|
var selectAppModalvue_type_template_id_43d62e6f_scoped_true_staticRenderFns = []
|
|
123409
123431
|
|
|
123410
123432
|
|
|
123411
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/workflowApp/component/AuthorityModal.vue?vue&type=template&id=
|
|
123412
|
-
var
|
|
123413
|
-
var
|
|
123433
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/workflowApp/component/AuthorityModal.vue?vue&type=template&id=0f0fbe0b&
|
|
123434
|
+
var AuthorityModalvue_type_template_id_0f0fbe0b_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-modal',{attrs:{"title":_vm.title,"width":"800px","wrapClassName":"cus-modal-warp","visible":_vm.visible,"destroyOnClose":true,"footer":null},on:{"cancel":_vm.handleModalCancel}},[_c('a-button',{staticStyle:{"margin":"-10px 0 10px 0"},attrs:{"type":"primary"},on:{"click":_vm.handleAdd}},[_vm._v("权限配置")]),_c('a-table',{attrs:{"columns":_vm.columns,"data-source":_vm.dataSource},scopedSlots:_vm._u([{key:"action",fn:function(text, record, idx){return _c('span',{},[_c('a-popconfirm',{attrs:{"title":"确定要删除吗?","ok-text":"确定","cancel-text":"取消","overlayStyle":{width: '200px'}},on:{"confirm":function($event){return _vm.handledelete(idx,record)}}},[_c('a',{attrs:{"href":"#"}},[_vm._v("删除")])])],1)}}])})],1),_c('authorModal',{ref:"authorModal",on:{"ok":_vm.ok}})],1)}
|
|
123435
|
+
var AuthorityModalvue_type_template_id_0f0fbe0b_staticRenderFns = []
|
|
123414
123436
|
|
|
123415
123437
|
|
|
123416
123438
|
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/workflowApp/component/authorModal.vue?vue&type=template&id=709355dd&scoped=true&
|
|
@@ -123705,10 +123727,12 @@ var authorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
123705
123727
|
ok(record) {
|
|
123706
123728
|
this.dataSource.push(record);
|
|
123707
123729
|
},
|
|
123708
|
-
handledelete(index) {
|
|
123709
|
-
console.log(index);
|
|
123710
|
-
this.dataSource.
|
|
123730
|
+
handledelete(index, record) {
|
|
123731
|
+
console.log(index, record);
|
|
123732
|
+
this.dataSource = this.dataSource.filter(item => item.roleId !== record.roleId);
|
|
123733
|
+
// this.dataSource.splice(index, 1)
|
|
123711
123734
|
},
|
|
123735
|
+
|
|
123712
123736
|
handleAdd() {
|
|
123713
123737
|
this.$refs.authorModal.init(this.widget.options.appId, this.widget.options.auth.map(item => item.roleId));
|
|
123714
123738
|
},
|
|
@@ -123729,8 +123753,8 @@ var authorModal_component = (0,componentNormalizer/* default */.Z)(
|
|
|
123729
123753
|
;
|
|
123730
123754
|
var AuthorityModal_component = (0,componentNormalizer/* default */.Z)(
|
|
123731
123755
|
component_AuthorityModalvue_type_script_lang_js_,
|
|
123732
|
-
|
|
123733
|
-
|
|
123756
|
+
AuthorityModalvue_type_template_id_0f0fbe0b_render,
|
|
123757
|
+
AuthorityModalvue_type_template_id_0f0fbe0b_staticRenderFns,
|
|
123734
123758
|
false,
|
|
123735
123759
|
null,
|
|
123736
123760
|
null,
|
|
@@ -148632,7 +148656,7 @@ var staticRenderFns = []
|
|
|
148632
148656
|
|
|
148633
148657
|
|
|
148634
148658
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 954 modules
|
|
148635
|
-
var components = __webpack_require__(
|
|
148659
|
+
var components = __webpack_require__(895);
|
|
148636
148660
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/CorrectionItem.vue?vue&type=script&lang=js&
|
|
148637
148661
|
//
|
|
148638
148662
|
//
|
|
@@ -149084,7 +149108,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
149084
149108
|
|
|
149085
149109
|
/***/ }),
|
|
149086
149110
|
|
|
149087
|
-
/***/
|
|
149111
|
+
/***/ 5994:
|
|
149088
149112
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
149089
149113
|
|
|
149090
149114
|
"use strict";
|
|
@@ -149094,12 +149118,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
149094
149118
|
"Z": () => (/* binding */ selectUserModal)
|
|
149095
149119
|
});
|
|
149096
149120
|
|
|
149097
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=template&id=
|
|
149121
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=template&id=143fb95d&scoped=true&
|
|
149098
149122
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{attrs:{"title":"选择用户","width":_vm.modalWidth,"visible":_vm.visible,"confirmLoading":_vm.confirmLoading,"afterClose":_vm.afterClose,"cancelText":"关闭","zIndex":1100000},on:{"ok":_vm.handleSubmit,"cancel":_vm.handleCancel}},[_c('a-spin',{attrs:{"tip":"Loading...","spinning":false}},[_c('a-card',{attrs:{"bordered":false}},[_c('div',{staticClass:"table-page-search-wrapper"},[_c('a-form',{attrs:{"layout":"inline","label-col":{ span: 0 },"wrapper-col":{ span: 24 }}},[_c('a-row',{attrs:{"gutter":24}},[(!_vm.tagId)?[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-tree-select',{staticStyle:{"width":"100%"},attrs:{"id":"speca","dropdown-style":{ maxHeight: '400px', overflow: 'auto' },"placeholder":"请选择部门","tree-data":_vm.treeData,"getPopupContainer":function (triggerNode) {
|
|
149099
149123
|
return triggerNode.parentNode || _vm.document.body;
|
|
149100
149124
|
},"disabled":_vm.applyId ? true : false,"allow-clear":""},on:{"change":_vm.treechange},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}})],1)],1),(_vm.showuser && !this.role)?_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{attrs:{"placeholder":"请选择角色","getPopupContainer":function (triggerNode) {
|
|
149101
149125
|
return triggerNode.parentNode || _vm.document.body;
|
|
149102
|
-
}},model:{value:(_vm.queryParam.roleId),callback:function ($$v) {_vm.$set(_vm.queryParam, "roleId", $$v)},expression:"queryParam.roleId"}},_vm._l((_vm.userlist),function(item){return _c('a-select-option',{key:item.id,attrs:{"value":item.id}},[_vm._v(_vm._s(item.roleName))])}),1)],1)],1):_vm._e()]:[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"请选择部门","dropdown-style":{ maxHeight: '400px',zIndex: 1100000 }},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}},_vm._l((_vm.tagDeparts),function(depart){return _c('a-select-option',{attrs:{"value":depart.departId,"title":depart.departName}},[_vm._v(_vm._s(depart.departName))])}),1)],1)],1)],_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',[_c('a-input',{attrs:{"placeholder":"用户名/真实姓名查询"},model:{value:(_vm.queryParam.realname),callback:function ($$v) {_vm.$set(_vm.queryParam, "realname", $$v)},expression:"queryParam.realname"}})],1)],1),_c('a-col',{attrs:{"md":6,"sm":6}},[_c('div',{staticClass:"table-page-search-submitButtons",staticStyle:{"height":"40px","overflow":"hidden"}},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.searchQuery}},[_vm._v("查询")])],1)])],2)],1)],1),_c('div',[_c('a-table',{ref:"table",attrs:{"bordered":"","size":"middle","rowKey":"id","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"loading":_vm.loading,"rowSelection":_vm.rowSelection,"customRow":_vm.handleCustomRow},on:{"change":_vm.handleTableChange}})],1)])],1)],1)}
|
|
149126
|
+
}},model:{value:(_vm.queryParam.roleId),callback:function ($$v) {_vm.$set(_vm.queryParam, "roleId", $$v)},expression:"queryParam.roleId"}},_vm._l((_vm.userlist),function(item){return _c('a-select-option',{key:item.id,attrs:{"value":item.id}},[_vm._v(_vm._s(item.roleName))])}),1)],1)],1):_vm._e()]:[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"请选择部门","allow-clear":"","dropdown-style":{ maxHeight: '400px',zIndex: 1100000 }},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}},_vm._l((_vm.tagDeparts),function(depart){return _c('a-select-option',{attrs:{"value":depart.departId,"title":depart.departName}},[_vm._v(_vm._s(depart.departName))])}),1)],1)],1)],_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',[_c('a-input',{attrs:{"placeholder":"用户名/真实姓名查询"},model:{value:(_vm.queryParam.realname),callback:function ($$v) {_vm.$set(_vm.queryParam, "realname", $$v)},expression:"queryParam.realname"}})],1)],1),_c('a-col',{attrs:{"md":6,"sm":6}},[_c('div',{staticClass:"table-page-search-submitButtons",staticStyle:{"height":"40px","overflow":"hidden"}},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.searchQuery}},[_vm._v("查询")])],1)])],2)],1)],1),_c('div',[_c('a-table',{ref:"table",attrs:{"bordered":"","size":"middle","rowKey":"id","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"loading":_vm.loading,"rowSelection":_vm.rowSelection,"customRow":_vm.handleCustomRow},on:{"change":_vm.handleTableChange}})],1)])],1)],1)}
|
|
149103
149127
|
var staticRenderFns = []
|
|
149104
149128
|
|
|
149105
149129
|
|
|
@@ -149111,6 +149135,8 @@ var manage = __webpack_require__(1474);
|
|
|
149111
149135
|
var JeecgListMixin = __webpack_require__(9013);
|
|
149112
149136
|
// EXTERNAL MODULE: ./src/api/api.js
|
|
149113
149137
|
var api = __webpack_require__(3558);
|
|
149138
|
+
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
149139
|
+
var lodash = __webpack_require__(9392);
|
|
149114
149140
|
;// CONCATENATED MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js&
|
|
149115
149141
|
|
|
149116
149142
|
//
|
|
@@ -149227,6 +149253,8 @@ var api = __webpack_require__(3558);
|
|
|
149227
149253
|
//
|
|
149228
149254
|
//
|
|
149229
149255
|
//
|
|
149256
|
+
//
|
|
149257
|
+
|
|
149230
149258
|
|
|
149231
149259
|
|
|
149232
149260
|
|
|
@@ -149296,7 +149324,8 @@ var api = __webpack_require__(3558);
|
|
|
149296
149324
|
importExcelUrl: 'sys/user/importExcel'
|
|
149297
149325
|
},
|
|
149298
149326
|
tagDeparts: [],
|
|
149299
|
-
deptId: ''
|
|
149327
|
+
deptId: '',
|
|
149328
|
+
needSearch: true
|
|
149300
149329
|
};
|
|
149301
149330
|
},
|
|
149302
149331
|
created() {
|
|
@@ -149304,6 +149333,7 @@ var api = __webpack_require__(3558);
|
|
|
149304
149333
|
this.queryParam.depId = this.deptId;
|
|
149305
149334
|
this.queryParam.applyId = this.applyId || undefined;
|
|
149306
149335
|
this.queryParam.tagId = this.tagId;
|
|
149336
|
+
this.userSearch = (0,lodash.cloneDeep)(this.queryParam);
|
|
149307
149337
|
this.loadData(false, 'first');
|
|
149308
149338
|
this.loadDepartTree();
|
|
149309
149339
|
this.setDefaultUser();
|
|
@@ -149337,6 +149367,7 @@ var api = __webpack_require__(3558);
|
|
|
149337
149367
|
}
|
|
149338
149368
|
if (this.role) {
|
|
149339
149369
|
this.queryParam.roleId = this.role;
|
|
149370
|
+
this.userSearch.roleId = this.role;
|
|
149340
149371
|
}
|
|
149341
149372
|
let params = this.getQueryParams(); //查询条件
|
|
149342
149373
|
this.loading = true;
|
|
@@ -149348,6 +149379,7 @@ var api = __webpack_require__(3558);
|
|
|
149348
149379
|
debugger;
|
|
149349
149380
|
this.deptId = res.result.params.depId;
|
|
149350
149381
|
this.queryParam.depId = this.deptId;
|
|
149382
|
+
this.userSearch.depId = this.role;
|
|
149351
149383
|
this.treechange(this.deptId);
|
|
149352
149384
|
}
|
|
149353
149385
|
}
|
|
@@ -149363,7 +149395,9 @@ var api = __webpack_require__(3558);
|
|
|
149363
149395
|
},
|
|
149364
149396
|
getTagDepart() {
|
|
149365
149397
|
this.tagDeparts = [];
|
|
149366
|
-
(0,manage/* getAction */.s7)("/zhxymatrix/user/
|
|
149398
|
+
(0,manage/* getAction */.s7)("/zhxymatrix/user/listDepartsByTagId", {
|
|
149399
|
+
tagId: this.tagId
|
|
149400
|
+
}).then(res => {
|
|
149367
149401
|
if (res.success) {
|
|
149368
149402
|
this.tagDeparts = res.result || [];
|
|
149369
149403
|
}
|
|
@@ -149622,10 +149656,10 @@ var api = __webpack_require__(3558);
|
|
|
149622
149656
|
});
|
|
149623
149657
|
;// CONCATENATED MODULE: ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js&
|
|
149624
149658
|
/* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js_ = (selectUserModalvue_type_script_lang_js_);
|
|
149625
|
-
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=
|
|
149659
|
+
;// CONCATENATED MODULE: ./node_modules/_mini-css-extract-plugin@2.7.5@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.7.3@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=143fb95d&prod&scoped=true&lang=css&
|
|
149626
149660
|
// extracted by mini-css-extract-plugin
|
|
149627
149661
|
|
|
149628
|
-
;// CONCATENATED MODULE: ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=
|
|
149662
|
+
;// CONCATENATED MODULE: ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=143fb95d&prod&scoped=true&lang=css&
|
|
149629
149663
|
|
|
149630
149664
|
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
149631
149665
|
var componentNormalizer = __webpack_require__(8412);
|
|
@@ -149644,7 +149678,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
149644
149678
|
staticRenderFns,
|
|
149645
149679
|
false,
|
|
149646
149680
|
null,
|
|
149647
|
-
"
|
|
149681
|
+
"143fb95d",
|
|
149648
149682
|
null
|
|
149649
149683
|
|
|
149650
149684
|
)
|
|
@@ -150663,7 +150697,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
150663
150697
|
|
|
150664
150698
|
/* harmony default export */ const CorrectionModal = (component.exports);
|
|
150665
150699
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 954 modules
|
|
150666
|
-
var components = __webpack_require__(
|
|
150700
|
+
var components = __webpack_require__(895);
|
|
150667
150701
|
// EXTERNAL MODULE: ./node_modules/_pubsub-js@1.9.4@pubsub-js/src/pubsub.js
|
|
150668
150702
|
var pubsub = __webpack_require__(2980);
|
|
150669
150703
|
var pubsub_default = /*#__PURE__*/__webpack_require__.n(pubsub);
|
|
@@ -151816,7 +151850,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
151816
151850
|
// EXTERNAL MODULE: ./src/api/manage.js
|
|
151817
151851
|
var manage = __webpack_require__(1474);
|
|
151818
151852
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 954 modules
|
|
151819
|
-
var components = __webpack_require__(
|
|
151853
|
+
var components = __webpack_require__(895);
|
|
151820
151854
|
// EXTERNAL MODULE: ./src/form/util/Bus.js
|
|
151821
151855
|
var Bus = __webpack_require__(767);
|
|
151822
151856
|
// EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
|
|
@@ -162488,7 +162522,7 @@ function toString(value) {
|
|
|
162488
162522
|
/***/ ((module) => {
|
|
162489
162523
|
|
|
162490
162524
|
"use strict";
|
|
162491
|
-
module.exports = {"i8":"1.1.
|
|
162525
|
+
module.exports = {"i8":"1.1.439"};
|
|
162492
162526
|
|
|
162493
162527
|
/***/ })
|
|
162494
162528
|
|
|
@@ -176977,7 +177011,7 @@ var es_array_sort = __webpack_require__(8284);
|
|
|
176977
177011
|
// EXTERNAL MODULE: ./src/form/util/util.js
|
|
176978
177012
|
var util_util = __webpack_require__(6955);
|
|
176979
177013
|
// EXTERNAL MODULE: ./src/form/modules/components/index.js + 954 modules
|
|
176980
|
-
var components = __webpack_require__(
|
|
177014
|
+
var components = __webpack_require__(895);
|
|
176981
177015
|
// EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
|
|
176982
177016
|
var widgetFormItem = __webpack_require__(1765);
|
|
176983
177017
|
// EXTERNAL MODULE: ./src/form/modules/WidgetIdeaSignItem.vue + 5 modules
|
|
@@ -179551,7 +179585,7 @@ var toLinkageWidget_component = (0,componentNormalizer/* default */.Z)(
|
|
|
179551
179585
|
// EXTERNAL MODULE: ./src/form/modules/common/querySelectDict.vue + 3 modules
|
|
179552
179586
|
var querySelectDict = __webpack_require__(7813);
|
|
179553
179587
|
// EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
|
|
179554
|
-
var selectUserModal = __webpack_require__(
|
|
179588
|
+
var selectUserModal = __webpack_require__(5994);
|
|
179555
179589
|
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/formLinkage/component/linkageSelectUser.vue?vue&type=template&id=7fd8ad34&scoped=true&
|
|
179556
179590
|
var linkageSelectUservue_type_template_id_7fd8ad34_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-input',{on:{"mousedown":function($event){$event.preventDefault();return _vm.openModal.apply(null, arguments)}},model:{value:(_vm.userNames),callback:function ($$v) {_vm.userNames=$$v},expression:"userNames"}},[_c('a-icon',{attrs:{"slot":"prefix","type":"user","title":"用户选择"},slot:"prefix"}),_c('a-icon',{staticStyle:{"cursor":"pointer"},attrs:{"slot":"suffix","type":"close-circle","title":"清空"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handleEmpty.apply(null, arguments)}},slot:"suffix"})],1),_c('select-user-modal',{ref:"selectUserModal",attrs:{"modal-width":"1000px","users":_vm.value,"multi":_vm.multiple},on:{"ok":_vm.handleOK,"initComp":_vm.initComp}})],1)}
|
|
179557
179591
|
var linkageSelectUservue_type_template_id_7fd8ad34_scoped_true_staticRenderFns = []
|