@zscreate/form-component 1.1.2 → 1.1.3-ahsf-2

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.
@@ -2543,7 +2543,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
2543
2543
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2544
2544
 
2545
2545
  "use strict";
2546
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"selectDepartModal\",\n props: [\"modalWidth\", \"multi\", \"rootOpened\", \"departId\", \"departRelation\", \"departType\"],\n data() {\n return {\n visible: false,\n confirmLoading: false,\n treeData: [],\n autoExpandParent: true,\n expandedKeys: [],\n dataList: [],\n checkedKeys: [],\n checkedRows: [],\n searchValue: \"\"\n };\n },\n created() {\n this.loadDepart();\n },\n watch: {\n departId() {\n this.initDepartComponent();\n }\n },\n methods: {\n show() {\n this.visible = true;\n //有值处理回显展示\n if (!this.departId) {\n this.checkedRows = [];\n this.checkedKeys = [];\n } else {\n this.checkedRows = [];\n this.checkedKeys = this.departId.split(',');\n let list = this.flatten(this.treeData);\n this.checkedKeys.forEach(item => {\n list.forEach(check => {\n if (item == check.id) {\n this.checkedRows.push(check);\n }\n });\n });\n }\n },\n //扁平数结构\n flatten(arr) {\n var res = [];\n arr.forEach(item => {\n res.push(item);\n if (Array.isArray(item.children) && item.children.length > 0) {\n res = res.concat(this.flatten(item.children));\n }\n });\n return res;\n },\n loadDepart() {\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(\"/sysdepart/sysDepart/queryTreeList\", {\n departRelation: this.departRelation,\n departType: this.departType\n }).then(res => {\n if (res.success) {\n let arr = [...res.result];\n this.dataList = [];\n this.reWriterWithSlot(arr);\n this.treeData = arr;\n this.initDepartComponent();\n if (this.rootOpened) {\n this.initExpandedKeys(res.result);\n }\n }\n });\n },\n initDepartComponent() {\n let names = \"\";\n if (this.departId) {\n this.checkedRows = [];\n this.checkedKeys = this.departId.split(',');\n let list = this.flatten(this.treeData);\n this.checkedKeys.forEach(item => {\n list.forEach(check => {\n if (item == check.id) {\n this.checkedRows.push(check);\n }\n });\n });\n let currDepartId = this.departId;\n currDepartId = this.departId.split(',');\n for (let item of this.dataList) {\n if (currDepartId.indexOf(item.key) >= 0) {\n names += ',' + item.title;\n }\n }\n if (names) {\n names = names.substring(1);\n }\n }\n this.$emit('initComp', names);\n },\n reWriterWithSlot(arr) {\n for (let item of arr) {\n if (item.children && item.children.length > 0) {\n this.reWriterWithSlot(item.children);\n let temp = Object.assign({}, item);\n temp.children = {};\n this.dataList.push(temp);\n } else {\n this.dataList.push(item);\n item.scopedSlots = {\n title: \"title\"\n };\n }\n }\n },\n initExpandedKeys(arr) {\n if (arr && arr.length > 0) {\n let keys = [];\n for (let item of arr) {\n if (item.children && item.children.length > 0) {\n keys.push(item.id);\n }\n }\n this.expandedKeys = [...keys];\n } else {\n this.expandedKeys = [];\n }\n },\n onCheck(checkedKeys, info) {\n if (!this.multi) {\n let arr = checkedKeys.checked.filter(item => {\n return this.checkedKeys.indexOf(item) < 0;\n });\n this.checkedKeys = [...arr];\n this.checkedRows = [info.node.dataRef];\n } else {\n console.log(checkedKeys);\n console.log(info.node);\n let list = info.node.dataRef;\n if (this.checkedRows.length > 0) {\n let rows = this.checkedRows.find(item => item.id == list.id);\n if (rows) {\n this.checkedRows = this.checkedRows.filter(item => item.id != rows.id);\n } else {\n this.checkedRows.push(info.node.dataRef);\n }\n console.log(JSON.stringify(this.checkedRows));\n } else {\n this.checkedRows.push(info.node.dataRef);\n }\n this.checkedKeys = checkedKeys.checked;\n }\n //this.$emit(\"input\",this.checkedKeys.join(\",\"))\n //console.log(this.checkedKeys.join(\",\"))\n },\n\n onSelect(selectedKeys, info) {\n console.log(selectedKeys);\n let keys = [];\n keys.push(selectedKeys[0]);\n if (!this.checkedKeys || this.checkedKeys.length == 0 || !this.multi) {\n this.checkedKeys = [...keys];\n this.checkedRows = [info.node.dataRef];\n } else {\n let currKey = info.node.dataRef.key;\n if (this.checkedKeys.indexOf(currKey) >= 0) {\n this.checkedKeys = this.checkedKeys.filter(item => {\n return item != currKey;\n });\n this.checkedRows = this.checkedRows.filter(item => {\n return item.key != currKey;\n });\n } else {\n this.checkedRows.push(info.node.dataRef);\n this.checkedKeys.push(...keys);\n }\n }\n },\n onExpand(expandedKeys) {\n this.expandedKeys = expandedKeys;\n this.autoExpandParent = false;\n },\n handleSubmit() {\n if (this.searchValue) {\n this.loadDepart();\n }\n if (!this.checkedKeys || this.checkedKeys.length == 0) {\n this.$emit(\"ok\", \"\");\n } else {\n this.$emit(\"ok\", this.checkedRows, this.checkedKeys.join(\",\"));\n }\n this.handleClear();\n },\n handleCancel() {\n if (this.searchValue) {\n this.loadDepart();\n }\n this.handleClear();\n },\n handleClear() {\n this.visible = false;\n this.checkedKeys = [];\n this.searchValue = \"\";\n },\n getParentKey(currKey, treeData) {\n let parentKey;\n for (let i = 0; i < treeData.length; i++) {\n const node = treeData[i];\n if (node.children) {\n if (node.children.some(item => item.key === currKey)) {\n parentKey = node.key;\n } else if (this.getParentKey(currKey, node.children)) {\n parentKey = this.getParentKey(currKey, node.children);\n }\n }\n }\n return parentKey;\n },\n onSearch(value) {\n this.searchValue = value;\n if (!value) {\n this.loadDepart();\n return false;\n }\n this.treeData = this.dataList.filter(item => {\n return item.title.indexOf(value) > -1;\n }).map(item => {\n return Object.assign(item, {\n children: null,\n isLeaf: true\n });\n });\n // const expandedKeys = this.dataList.map((item) => {\n // if (item.title.indexOf(value) > -1) {\n //\n // return this.getParentKey(item.key,this.treeData)\n // }\n // return null\n // }).filter((item, i, self) => item && self.indexOf(item) === i)\n\n // Object.assign(this, {\n // // expandedKeys,\n // searchValue: value,\n // autoExpandParent: true,\n // })\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/common/Modals/selectDepartModal.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
2546
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"selectDepartModal\",\n props: [\"modalWidth\", \"multi\", \"rootOpened\", \"departId\", \"departRelation\", \"departType\"],\n data() {\n return {\n visible: false,\n confirmLoading: false,\n treeData: [],\n autoExpandParent: true,\n expandedKeys: [],\n dataList: [],\n checkedKeys: [],\n checkedRows: [],\n searchValue: \"\"\n };\n },\n created() {\n this.loadDepart();\n },\n watch: {\n departId() {\n this.initDepartComponent();\n }\n },\n methods: {\n show() {\n this.visible = true;\n //有值处理回显展示\n if (!this.departId) {\n this.checkedRows = [];\n this.checkedKeys = [];\n } else {\n this.checkedRows = [];\n this.checkedKeys = this.departId.split(',');\n let list = this.flatten(this.treeData);\n this.checkedKeys.forEach(item => {\n list.forEach(check => {\n if (item == check.id) {\n this.checkedRows.push(check);\n }\n });\n });\n }\n },\n //扁平数结构\n flatten(arr) {\n var res = [];\n arr.forEach(item => {\n res.push(item);\n if (Array.isArray(item.children) && item.children.length > 0) {\n res = res.concat(this.flatten(item.children));\n }\n });\n return res;\n },\n loadDepart() {\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(\"/formApi/queryTreeList\", {\n departRelation: this.departRelation,\n departType: this.departType\n }).then(res => {\n if (res.success) {\n let arr = [...res.result];\n this.dataList = [];\n this.reWriterWithSlot(arr);\n this.treeData = arr;\n this.initDepartComponent();\n if (this.rootOpened) {\n this.initExpandedKeys(res.result);\n }\n }\n });\n },\n initDepartComponent() {\n let names = \"\";\n if (this.departId) {\n this.checkedRows = [];\n this.checkedKeys = this.departId.split(',');\n let list = this.flatten(this.treeData);\n this.checkedKeys.forEach(item => {\n list.forEach(check => {\n if (item == check.id) {\n this.checkedRows.push(check);\n }\n });\n });\n let currDepartId = this.departId;\n currDepartId = this.departId.split(',');\n for (let item of this.dataList) {\n if (currDepartId.indexOf(item.key) >= 0) {\n names += ',' + item.title;\n }\n }\n if (names) {\n names = names.substring(1);\n }\n }\n this.$emit('initComp', names);\n },\n reWriterWithSlot(arr) {\n for (let item of arr) {\n if (item.children && item.children.length > 0) {\n this.reWriterWithSlot(item.children);\n let temp = Object.assign({}, item);\n temp.children = {};\n this.dataList.push(temp);\n } else {\n this.dataList.push(item);\n item.scopedSlots = {\n title: \"title\"\n };\n }\n }\n },\n initExpandedKeys(arr) {\n if (arr && arr.length > 0) {\n let keys = [];\n for (let item of arr) {\n if (item.children && item.children.length > 0) {\n keys.push(item.id);\n }\n }\n this.expandedKeys = [...keys];\n } else {\n this.expandedKeys = [];\n }\n },\n onCheck(checkedKeys, info) {\n if (!this.multi) {\n let arr = checkedKeys.checked.filter(item => {\n return this.checkedKeys.indexOf(item) < 0;\n });\n this.checkedKeys = [...arr];\n this.checkedRows = [info.node.dataRef];\n } else {\n console.log(checkedKeys);\n console.log(info.node);\n let list = info.node.dataRef;\n if (this.checkedRows.length > 0) {\n let rows = this.checkedRows.find(item => item.id == list.id);\n if (rows) {\n this.checkedRows = this.checkedRows.filter(item => item.id != rows.id);\n } else {\n this.checkedRows.push(info.node.dataRef);\n }\n console.log(JSON.stringify(this.checkedRows));\n } else {\n this.checkedRows.push(info.node.dataRef);\n }\n this.checkedKeys = checkedKeys.checked;\n }\n //this.$emit(\"input\",this.checkedKeys.join(\",\"))\n //console.log(this.checkedKeys.join(\",\"))\n },\n\n onSelect(selectedKeys, info) {\n console.log(selectedKeys);\n let keys = [];\n keys.push(selectedKeys[0]);\n if (!this.checkedKeys || this.checkedKeys.length == 0 || !this.multi) {\n this.checkedKeys = [...keys];\n this.checkedRows = [info.node.dataRef];\n } else {\n let currKey = info.node.dataRef.key;\n if (this.checkedKeys.indexOf(currKey) >= 0) {\n this.checkedKeys = this.checkedKeys.filter(item => {\n return item != currKey;\n });\n this.checkedRows = this.checkedRows.filter(item => {\n return item.key != currKey;\n });\n } else {\n this.checkedRows.push(info.node.dataRef);\n this.checkedKeys.push(...keys);\n }\n }\n },\n onExpand(expandedKeys) {\n this.expandedKeys = expandedKeys;\n this.autoExpandParent = false;\n },\n handleSubmit() {\n if (this.searchValue) {\n this.loadDepart();\n }\n if (!this.checkedKeys || this.checkedKeys.length == 0) {\n this.$emit(\"ok\", \"\");\n } else {\n this.$emit(\"ok\", this.checkedRows, this.checkedKeys.join(\",\"));\n }\n this.handleClear();\n },\n handleCancel() {\n if (this.searchValue) {\n this.loadDepart();\n }\n this.handleClear();\n },\n handleClear() {\n this.visible = false;\n this.checkedKeys = [];\n this.searchValue = \"\";\n },\n getParentKey(currKey, treeData) {\n let parentKey;\n for (let i = 0; i < treeData.length; i++) {\n const node = treeData[i];\n if (node.children) {\n if (node.children.some(item => item.key === currKey)) {\n parentKey = node.key;\n } else if (this.getParentKey(currKey, node.children)) {\n parentKey = this.getParentKey(currKey, node.children);\n }\n }\n }\n return parentKey;\n },\n onSearch(value) {\n this.searchValue = value;\n if (!value) {\n this.loadDepart();\n return false;\n }\n this.treeData = this.dataList.filter(item => {\n return item.title.indexOf(value) > -1;\n }).map(item => {\n return Object.assign(item, {\n children: null,\n isLeaf: true\n });\n });\n // const expandedKeys = this.dataList.map((item) => {\n // if (item.title.indexOf(value) > -1) {\n //\n // return this.getParentKey(item.key,this.treeData)\n // }\n // return null\n // }).filter((item, i, self) => item && self.indexOf(item) === i)\n\n // Object.assign(this, {\n // // expandedKeys,\n // searchValue: value,\n // autoExpandParent: true,\n // })\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/common/Modals/selectDepartModal.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
2547
2547
 
2548
2548
  /***/ }),
2549
2549
 
@@ -2565,7 +2565,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mix
2565
2565
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2566
2566
 
2567
2567
  "use strict";
2568
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n/* harmony import */ var _mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/mixins/JeecgListMixin */ \"./src/mixins/JeecgListMixin.js\");\n/* harmony import */ var _api_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/api/api */ \"./src/api/api.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'selectUserModal',\n props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId'],\n mixins: [{\n ..._mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_2__.JeecgListMixin,\n created: undefined\n }],\n // 取消minxin created\n data() {\n return {\n queryParam: {\n depId: undefined,\n roleId: undefined\n },\n showuser: false,\n userlist: [],\n visible: false,\n confirmLoading: false,\n treeData: [],\n autoExpandParent: true,\n expandedKeys: [],\n dataList: [],\n checkedKeys: [],\n departTreeData: [],\n checkedRows: [],\n searchValue: \"\",\n selectionRowsData: [],\n selectedRowKeys: [],\n rowSelection: {\n selectedRowKeys: this.selectedRowKeys,\n onChange: this.onSelectChange,\n type: this.multi ? \"checkbox\" : \"radio\",\n onSelect: this.onSelectOption\n },\n columns: [{\n title: \"用户名\",\n dataIndex: \"username\"\n }, {\n title: \"真实姓名\",\n dataIndex: \"realname\"\n }, {\n title: \"单位\",\n dataIndex: \"departName\"\n }\n // {\n // title: \"职务\",\n // dataIndex: \"zw\",\n // },\n // {\n // title: \"电话\",\n // dataIndex: \"phone\",\n // },\n ],\n\n url: {\n syncUser: '/process/extActProcess/doSyncUser',\n list: '/workflow/queryCandidatePersonal',\n delete: '/sys/user/delete',\n deleteBatch: '/sys/user/deleteBatch',\n exportXlsUrl: '/sys/user/exportXls',\n importExcelUrl: 'sys/user/importExcel'\n }\n };\n },\n created() {\n this.queryParam.depId = this.defaultDepartId || undefined;\n this.loadData();\n this.loadDepartTree();\n this.setDefaultUser();\n },\n mounted() {\n // this.getTreedata()\n if (this.defaultDepartId) {\n this.treechange(this.defaultDepartId);\n }\n },\n computed: {},\n watch: {\n users(v) {\n if (v.length === 0) {\n this.setDefaultUser();\n }\n },\n role(val) {\n this.role = val;\n }\n },\n methods: {\n loadData(arg) {\n if (!this.url.list) {\n this.$message.error(\"请设置url.list属性!\");\n return;\n }\n //加载数据 若传入参数1则加载第一页的内容\n if (arg === 1) {\n this.ipagination.current = 1;\n }\n if (this.role) {\n this.queryParam.roleId = this.role;\n }\n let params = this.getQueryParams(); //查询条件\n this.loading = true;\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(this.url.list, params).then(res => {\n if (res.success) {\n this.dataSource = res.result.records;\n this.ipagination.total = res.result.total;\n }\n if (res.code === 510) {\n this.$message.warning(res.message);\n } else if (res.code === 500) {\n if (res.message.length < 100) {\n this.$message.error(res.message);\n }\n }\n this.loading = false;\n });\n },\n setZindex() {\n return () => document.getElementById(\"speca\");\n },\n //获取部门\n getTreedata() {\n this.treeData = [];\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(\"sysdepart/sysDepart/queryTreeList\").then(res => {\n if (res.success) {\n for (let i = 0; i < res.result.length; i++) {\n let temp = res.result[i];\n this.treeData.push(temp);\n }\n // let ob = { value: \"\", title: \"请选择\" };\n // this.treeData.unshift(ob);\n }\n });\n },\n\n treechange(e) {\n this.queryParam.roleId = undefined;\n let params = {\n depId: e\n };\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(\"/sys/role/listWorkFlowDepRole\", params).then(res => {\n if (res.success) {\n this.userlist = res.result;\n this.showuser = true;\n }\n });\n },\n setDefaultUser() {\n var selectedRowKeys = [];\n if (Array.isArray(this.users) && this.users.length > 0) {\n selectedRowKeys = this.users.map(item => {\n return item.id;\n });\n this.selectionRowsData = this.users.map(item => {\n return {\n id: item.id,\n realname: item.realname || item.username\n };\n });\n } else {\n this.selectionRowsData = [];\n // this.selectedRowKeys = []\n this.rowSelection = {\n selectedRowKeys: [],\n onChange: this.onSelectChange,\n type: this.multi ? \"checkbox\" : \"radio\",\n onSelect: this.onSelectOption\n };\n return false;\n }\n // console.log(selectedRowKeys)\n this.rowSelection = {\n onChange: this.onSelectChange,\n type: this.multi ? \"checkbox\" : \"radio\",\n onSelect: this.onSelectOption,\n selectedRowKeys: selectedRowKeys,\n getCheckboxProps: record => {\n return {\n props: {\n defaultChecked: selectedRowKeys.includes(record.id)\n }\n };\n }\n };\n },\n loadDepartTree() {\n const that = this;\n (0,_api_api__WEBPACK_IMPORTED_MODULE_3__.queryDepartTreeList)().then(res => {\n if (res.success) {\n that.departTreeData = [];\n for (let i = 0; i < res.result.length; i++) {\n let temp = res.result[i];\n that.departTreeData.push(temp);\n }\n that.loading = false;\n }\n });\n },\n show(select, item, selectedUserIds = undefined) {\n console.log(select);\n //this.loadDepartTree();\n this.checkedRows = [];\n this.rowSelection.selectedRowKeys = select;\n this.selectionRowsData = this.selectionRows = item;\n this.queryParam.selectedUserIds = selectedUserIds;\n this.getTreedata();\n this.loadData();\n this.setDefaultUser();\n this.visible = true;\n },\n onCheck(checkedKeys, info) {\n if (!this.multi) {\n let arr = checkedKeys.checked.filter(item => {\n return this.checkedKeys.indexOf(item) < 0;\n });\n this.checkedKeys = [...arr];\n this.checkedRows = [info.node.dataRef];\n } else {\n this.checkedKeys = checkedKeys.checked;\n this.checkedRows.push(info.node.dataRef);\n }\n //this.$emit(\"input\",this.checkedKeys.join(\",\"))\n //console.log(this.checkedKeys.join(\",\"))\n },\n\n handleSubmit() {\n this.selectedRowKeys = this.rowSelection.selectedRowKeys;\n if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {\n this.$emit(\"ok\", \"\");\n } else {\n if (!this.multi) {\n this.$emit(\"ok\", this.selectionRows, this.selectedRowKeys.join(\",\"));\n } else {\n this.$emit(\"ok\", this.selectionRowsData, this.selectedRowKeys.join(\",\"));\n }\n }\n this.handleClear();\n },\n //onSelectChange\n onSelectChange(selectedRowKeys, selectionRows) {\n this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));\n this.selectionRowsData = this.selectionRows = [...selectionRows];\n },\n // //选中或者取消某一项时\n // onSelectOption(record, selected, selectedRows, nativeEvent) {\n // if (selected) {\n // this.selectionRowsData.push(record);\n // } else {\n // this.selectionRowsData = this.selectionRowsData.filter((item) => {\n // return item.id != record.id;\n // });\n // }\n // },\n handleCancel() {\n this.handleClear();\n },\n afterClose() {\n this.showuser = false;\n this.queryParam.depId = this.queryParam.roleId = this.queryParam.username = this.queryParam.realname = undefined;\n this.ipagination.current = 1;\n this.ipagination.pageSize = 10;\n this.ipagination.total = 0;\n },\n handleClear() {\n this.visible = false;\n this.checkedKeys = [];\n },\n getParentKey(currKey, treeData) {\n let parentKey;\n for (let i = 0; i < treeData.length; i++) {\n const node = treeData[i];\n if (node.children) {\n if (node.children.some(item => item.key === currKey)) {\n parentKey = node.key;\n } else if (this.getParentKey(currKey, node.children)) {\n parentKey = this.getParentKey(currKey, node.children);\n }\n }\n }\n return parentKey;\n },\n onSearch(value) {\n const expandedKeys = this.dataList.map(item => {\n if (item.title.indexOf(value) > -1) {\n return this.getParentKey(item.key, this.treeData);\n }\n return null;\n }).filter((item, i, self) => item && self.indexOf(item) === i);\n Object.assign(this, {\n expandedKeys,\n searchValue: value,\n autoExpandParent: true\n });\n },\n initDictConfig() {\n this.loadDepartTree();\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/common/Modals/selectUserModal.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
2568
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n/* harmony import */ var _mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/mixins/JeecgListMixin */ \"./src/mixins/JeecgListMixin.js\");\n/* harmony import */ var _api_api__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/api/api */ \"./src/api/api.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'selectUserModal',\n props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId'],\n mixins: [{\n ..._mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_2__.JeecgListMixin,\n created: undefined\n }],\n // 取消minxin created\n data() {\n return {\n queryParam: {\n depId: undefined,\n roleId: undefined\n },\n showuser: false,\n userlist: [],\n visible: false,\n confirmLoading: false,\n treeData: [],\n autoExpandParent: true,\n expandedKeys: [],\n dataList: [],\n checkedKeys: [],\n departTreeData: [],\n checkedRows: [],\n searchValue: \"\",\n selectionRowsData: [],\n selectedRowKeys: [],\n rowSelection: {\n selectedRowKeys: this.selectedRowKeys,\n onChange: this.onSelectChange,\n type: this.multi ? \"checkbox\" : \"radio\",\n onSelect: this.onSelectOption\n },\n columns: [{\n title: \"用户名\",\n dataIndex: \"username\"\n }, {\n title: \"真实姓名\",\n dataIndex: \"realname\"\n }, {\n title: \"单位\",\n dataIndex: \"departName\"\n }\n // {\n // title: \"职务\",\n // dataIndex: \"zw\",\n // },\n // {\n // title: \"电话\",\n // dataIndex: \"phone\",\n // },\n ],\n\n url: {\n syncUser: '/process/extActProcess/doSyncUser',\n list: '/workflow/queryCandidatePersonal',\n delete: '/sys/user/delete',\n deleteBatch: '/sys/user/deleteBatch',\n exportXlsUrl: '/sys/user/exportXls',\n importExcelUrl: 'sys/user/importExcel'\n }\n };\n },\n created() {\n this.queryParam.depId = this.defaultDepartId || undefined;\n this.loadData();\n this.loadDepartTree();\n this.setDefaultUser();\n },\n mounted() {\n // this.getTreedata()\n },\n computed: {},\n watch: {\n users(v) {\n if (v.length === 0) {\n this.setDefaultUser();\n }\n },\n role(val) {\n this.role = val;\n }\n },\n methods: {\n loadData(arg) {\n if (!this.url.list) {\n this.$message.error(\"请设置url.list属性!\");\n return;\n }\n //加载数据 若传入参数1则加载第一页的内容\n if (arg === 1) {\n this.ipagination.current = 1;\n }\n if (this.role) {\n this.queryParam.roleId = this.role;\n }\n let params = this.getQueryParams(); //查询条件\n this.loading = true;\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(this.url.list, params).then(res => {\n if (res.success) {\n this.dataSource = res.result.records;\n this.ipagination.total = res.result.total;\n }\n if (res.code === 510) {\n this.$message.warning(res.message);\n } else if (res.code === 500) {\n if (res.message.length < 100) {\n this.$message.error(res.message);\n }\n }\n this.loading = false;\n });\n },\n setZindex() {\n return () => document.getElementById(\"speca\");\n },\n //获取部门\n getTreedata() {\n this.treeData = [];\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(\"formApi/queryTreeList\").then(res => {\n if (res.success) {\n for (let i = 0; i < res.result.length; i++) {\n let temp = res.result[i];\n this.treeData.push(temp);\n }\n // let ob = { value: \"\", title: \"请选择\" };\n // this.treeData.unshift(ob);\n }\n });\n },\n\n treechange(e) {\n this.queryParam.roleId = undefined;\n let params = {\n depId: e\n };\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_1__.getAction)(\"/sys/role/listWorkFlowDepRole\", params).then(res => {\n if (res.success) {\n this.userlist = res.result;\n this.showuser = true;\n }\n });\n },\n setDefaultUser() {\n var selectedRowKeys = [];\n if (Array.isArray(this.users) && this.users.length > 0) {\n selectedRowKeys = this.users.map(item => {\n return item.id;\n });\n this.selectionRowsData = this.users.map(item => {\n return {\n id: item.id,\n realname: item.realname || item.username\n };\n });\n } else {\n this.selectionRowsData = [];\n // this.selectedRowKeys = []\n this.rowSelection = {\n selectedRowKeys: [],\n onChange: this.onSelectChange,\n type: this.multi ? \"checkbox\" : \"radio\",\n onSelect: this.onSelectOption\n };\n return false;\n }\n // console.log(selectedRowKeys)\n this.rowSelection = {\n onChange: this.onSelectChange,\n type: this.multi ? \"checkbox\" : \"radio\",\n onSelect: this.onSelectOption,\n selectedRowKeys: selectedRowKeys,\n getCheckboxProps: record => {\n return {\n props: {\n defaultChecked: selectedRowKeys.includes(record.id)\n }\n };\n }\n };\n },\n loadDepartTree() {\n const that = this;\n (0,_api_api__WEBPACK_IMPORTED_MODULE_3__.queryDepartTreeList)().then(res => {\n if (res.success) {\n that.departTreeData = [];\n for (let i = 0; i < res.result.length; i++) {\n let temp = res.result[i];\n that.departTreeData.push(temp);\n }\n that.loading = false;\n }\n });\n },\n show(select, item, selectedUserIds = undefined) {\n console.log(select);\n //this.loadDepartTree();\n this.checkedRows = [];\n this.rowSelection.selectedRowKeys = select;\n this.selectionRowsData = this.selectionRows = item;\n if (this.defaultDepartId) {\n this.queryParam.depId = this.defaultDepartId;\n this.treechange(this.defaultDepartId);\n }\n this.queryParam.selectedUserIds = selectedUserIds;\n this.getTreedata();\n this.loadData();\n this.setDefaultUser();\n this.visible = true;\n },\n onCheck(checkedKeys, info) {\n if (!this.multi) {\n let arr = checkedKeys.checked.filter(item => {\n return this.checkedKeys.indexOf(item) < 0;\n });\n this.checkedKeys = [...arr];\n this.checkedRows = [info.node.dataRef];\n } else {\n this.checkedKeys = checkedKeys.checked;\n this.checkedRows.push(info.node.dataRef);\n }\n //this.$emit(\"input\",this.checkedKeys.join(\",\"))\n //console.log(this.checkedKeys.join(\",\"))\n },\n\n handleSubmit() {\n this.selectedRowKeys = this.rowSelection.selectedRowKeys;\n if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {\n this.$emit(\"ok\", \"\");\n } else {\n if (!this.multi) {\n this.$emit(\"ok\", this.selectionRows, this.selectedRowKeys.join(\",\"));\n } else {\n this.$emit(\"ok\", this.selectionRowsData, this.selectedRowKeys.join(\",\"));\n }\n }\n this.handleClear();\n },\n //onSelectChange\n onSelectChange(selectedRowKeys, selectionRows) {\n this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));\n this.selectionRowsData = this.selectionRows = [...selectionRows];\n },\n // //选中或者取消某一项时\n // onSelectOption(record, selected, selectedRows, nativeEvent) {\n // if (selected) {\n // this.selectionRowsData.push(record);\n // } else {\n // this.selectionRowsData = this.selectionRowsData.filter((item) => {\n // return item.id != record.id;\n // });\n // }\n // },\n handleCancel() {\n this.handleClear();\n },\n afterClose() {\n this.showuser = false;\n this.queryParam.depId = this.queryParam.roleId = this.queryParam.username = this.queryParam.realname = undefined;\n this.ipagination.current = 1;\n this.ipagination.pageSize = 10;\n this.ipagination.total = 0;\n },\n handleClear() {\n this.visible = false;\n this.checkedKeys = [];\n },\n getParentKey(currKey, treeData) {\n let parentKey;\n for (let i = 0; i < treeData.length; i++) {\n const node = treeData[i];\n if (node.children) {\n if (node.children.some(item => item.key === currKey)) {\n parentKey = node.key;\n } else if (this.getParentKey(currKey, node.children)) {\n parentKey = this.getParentKey(currKey, node.children);\n }\n }\n }\n return parentKey;\n },\n onSearch(value) {\n const expandedKeys = this.dataList.map(item => {\n if (item.title.indexOf(value) > -1) {\n return this.getParentKey(item.key, this.treeData);\n }\n return null;\n }).filter((item, i, self) => item && self.indexOf(item) === i);\n Object.assign(this, {\n expandedKeys,\n searchValue: value,\n autoExpandParent: true\n });\n },\n initDictConfig() {\n this.loadDepartTree();\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/common/Modals/selectUserModal.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
2569
2569
 
2570
2570
  /***/ }),
2571
2571
 
@@ -3511,7 +3511,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _com
3511
3511
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3512
3512
 
3513
3513
  "use strict";
3514
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../mixins/widgetMixins */ \"./src/form/mixins/widgetMixins.js\");\n/* harmony import */ var _mixins_compareSizeMixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../mixins/compareSizeMixins */ \"./src/form/mixins/compareSizeMixins.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"timeCom\",\n mixins: [_mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _mixins_compareSizeMixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n props: {\n value: {\n type: String\n },\n widget: {\n type: Object,\n default: () => {\n return null;\n }\n }\n },\n data() {\n return {\n dataModel: null,\n startTime: \"\",\n endTime: \"\",\n time: '',\n stime: '',\n etime: ''\n };\n },\n components: {},\n created() {\n if (this.dataModel == '' || this.dataModel == null) {\n if (this.widget.options.isRange) {\n this.dataModel = [null, null];\n } else {\n this.dataModel = '';\n }\n }\n },\n watch: {\n dataModel(val) {\n if (!this.widget.options.isRange && Array.isArray(val) && val.length == 0) {\n val = \"\";\n }\n // this.pulishMsg(val);\n this.$emit(\"updateModels\", val);\n }\n },\n methods: {\n changeTime(val, dateStrings, type) {\n this.$emit('updataeModels', dateStrings);\n if (type === \"startTime\") {\n this.startTime = dateStrings;\n this.stime = val;\n } else if (type === \"endTime\") {\n this.endTime = dateStrings;\n this.etime = val;\n } else {\n this.time = val;\n }\n if (this.tableKey) {\n this.models[this.tableKey][this.tableIndex][this.widget.model] = val;\n } else {\n this.models[this.widget.model] = val;\n }\n },\n getDisabledHours() {\n let hours = [];\n let time = this.startTime;\n let timeArr = time.split(\":\");\n for (var i = 0; i < parseInt(timeArr[0]); i++) {\n hours.push(i);\n }\n return hours;\n },\n getDisabledMinutes(selectedHour) {\n let time = this.startTime;\n let timeArr = time.split(\":\");\n let minutes = [];\n if (selectedHour == parseInt(timeArr[0])) {\n for (var i = 0; i < parseInt(timeArr[1]); i++) {\n minutes.push(i);\n }\n }\n return minutes;\n },\n getDisabledSeconds(selectedHour, selectedMinute) {\n let time = this.startTime;\n let timeArr = time.split(\":\");\n let second = [];\n if (selectedHour == parseInt(timeArr[0]) && selectedMinute == parseInt(timeArr[1])) {\n for (var i = 0; i <= parseInt(timeArr[2]); i++) {\n second.push(i);\n }\n }\n return second;\n }\n\n // change(value) {\n // console.log(value);\n // var date1 = new Date(this.widget.options.defaultValue[0]);\n // var date2 = new Date(this.widget.options.defaultValue[1]);\n // if (date1.getTime() - date2.getTime() < 0) {\n // console.log(\"符合\");\n // } else {\n // console.log(\"不符合\");\n // }\n // },\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Time/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
3514
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../mixins/widgetMixins */ \"./src/form/mixins/widgetMixins.js\");\n/* harmony import */ var _mixins_compareSizeMixins__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../mixins/compareSizeMixins */ \"./src/form/mixins/compareSizeMixins.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"timeCom\",\n mixins: [_mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_1__[\"default\"], _mixins_compareSizeMixins__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n props: {\n value: {\n type: String\n },\n widget: {\n type: Object,\n default: () => {\n return null;\n }\n }\n },\n data() {\n return {\n dataModel: null,\n startTime: \"\",\n endTime: \"\",\n time: '',\n stime: '',\n etime: ''\n };\n },\n components: {},\n created() {\n if (this.dataModel == '' || this.dataModel == null) {\n if (this.widget.options.isRange) {\n this.dataModel = [null, null];\n } else {\n this.dataModel = '';\n }\n }\n },\n watch: {\n dataModel(val) {\n if (!this.widget.options.isRange && Array.isArray(val) && val.length == 0) {\n val = \"\";\n }\n // this.pulishMsg(val);\n this.$emit(\"updateModels\", val);\n }\n },\n methods: {\n changeTime(val, dateStrings, type) {\n if (type === \"startTime\") {\n this.startTime = dateStrings;\n this.stime = val;\n } else if (type === \"endTime\") {\n this.endTime = dateStrings;\n this.etime = val;\n } else {\n this.time = val;\n }\n if (this.widget.options.isRange) {\n val = [this.startTime, this.endTime];\n }\n if (this.tableKey) {\n this.models[this.tableKey][this.tableIndex][this.widget.model] = val;\n } else {\n this.models[this.widget.model] = val;\n }\n this.$emit('updateModels', val);\n },\n getDisabledHours() {\n let hours = [];\n let time = this.startTime;\n let timeArr = time.split(\":\");\n for (var i = 0; i < parseInt(timeArr[0]); i++) {\n hours.push(i);\n }\n return hours;\n },\n getDisabledMinutes(selectedHour) {\n let time = this.startTime;\n let timeArr = time.split(\":\");\n let minutes = [];\n if (selectedHour == parseInt(timeArr[0])) {\n for (var i = 0; i < parseInt(timeArr[1]); i++) {\n minutes.push(i);\n }\n }\n return minutes;\n },\n getDisabledSeconds(selectedHour, selectedMinute) {\n let time = this.startTime;\n let timeArr = time.split(\":\");\n let second = [];\n if (selectedHour == parseInt(timeArr[0]) && selectedMinute == parseInt(timeArr[1])) {\n for (var i = 0; i <= parseInt(timeArr[2]); i++) {\n second.push(i);\n }\n }\n return second;\n }\n\n // change(value) {\n // console.log(value);\n // var date1 = new Date(this.widget.options.defaultValue[0]);\n // var date2 = new Date(this.widget.options.defaultValue[1]);\n // if (date1.getTime() - date2.getTime() < 0) {\n // console.log(\"符合\");\n // } else {\n // console.log(\"不符合\");\n // }\n // },\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Time/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
3515
3515
 
3516
3516
  /***/ }),
3517
3517
 
@@ -3643,7 +3643,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
3643
3643
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3644
3644
 
3645
3645
  "use strict";
3646
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../mixins/widgetMixins */ \"./src/form/mixins/widgetMixins.js\");\n/* harmony import */ var _elSelectUserByRole_elSelectUserByRoleModal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elSelectUserByRole/elSelectUserByRoleModal */ \"./src/form/modules/components/userSelectorByRole/elSelectUserByRole/elSelectUserByRoleModal.vue\");\n/* harmony import */ var _util_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/util.js */ \"./src/form/util/util.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"UserSelectorByRole\",\n mixins: [_mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n props: {\n widget: {\n type: Object,\n default: () => {\n return {};\n }\n }\n },\n data() {\n return {\n visible: false,\n confirmLoading: false,\n userNames: \"\",\n users: \"\",\n dataModel: []\n };\n },\n components: {\n elSelectUserByRoleModal: _elSelectUserByRole_elSelectUserByRoleModal__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n created() {\n this.setUsersName(this.dataModel);\n },\n methods: {\n handleEmpty() {\n this.userNames = \"\";\n this.users = [];\n },\n openModal() {\n if (this.widget.options.disabled && !this.isdisabled) return false;\n let options = this.widget.options;\n let mutexList = [];\n // 处理互斥人员组件\n if (options.mutexs && options.mutexs.length > 0) {\n options.mutexs.forEach(item => {\n if (this.models[item]) {\n mutexList = mutexList.concat(this.models[item]);\n }\n });\n }\n let selectedUserIds = '';\n if (mutexList.length > 0) {\n selectedUserIds = mutexList.map(item => item.id).join(',');\n }\n this.$refs.elSelectUserByRoleModal.init(this.widget.options.role, this.widget.options.multiple, (0,_util_util_js__WEBPACK_IMPORTED_MODULE_2__.cloneObj)(this.dataModel), selectedUserIds);\n },\n handleOk(value) {\n this.setUsersName(value);\n },\n setUsersName(value) {\n this.userNames = \"\";\n if (value && value.length > 0) {\n value.forEach((item, index) => {\n this.userNames += \",\" + item.realname;\n });\n this.userNames = this.userNames.substring(1);\n this.users = value;\n } else {\n this.userNames = \"\";\n this.users = [];\n }\n }\n },\n watch: {\n users(val) {\n this.dataModel = val;\n },\n dataModel(val) {\n this.pulishMsg(val);\n if (Array.isArray(val) && val.length == 0) {\n this.userNames = '';\n } else {\n this.setUsersName(val); //删除子表单 值不更新\n }\n\n this.$emit(\"updateModels\", val);\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
3646
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../mixins/widgetMixins */ \"./src/form/mixins/widgetMixins.js\");\n/* harmony import */ var _elSelectUserByRole_elSelectUserByRoleModal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elSelectUserByRole/elSelectUserByRoleModal */ \"./src/form/modules/components/userSelectorByRole/elSelectUserByRole/elSelectUserByRoleModal.vue\");\n/* harmony import */ var _util_util_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../util/util.js */ \"./src/form/util/util.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"UserSelectorByRole\",\n mixins: [_mixins_widgetMixins__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n props: {\n widget: {\n type: Object,\n default: () => {\n return {};\n }\n }\n },\n data() {\n return {\n visible: false,\n confirmLoading: false,\n userNames: \"\",\n users: \"\",\n dataModel: [],\n defaultDepartId: undefined\n };\n },\n components: {\n elSelectUserByRoleModal: _elSelectUserByRole_elSelectUserByRoleModal__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n created() {\n if (this.widget.options.departRelation) {\n this.defaultDepartId = this.getUserInfo.departId;\n }\n this.setUsersName(this.dataModel);\n },\n computed: {\n getUserInfo() {\n return vue__WEBPACK_IMPORTED_MODULE_3___default().prototype.getUserInfo();\n }\n },\n methods: {\n handleEmpty() {\n this.userNames = \"\";\n this.users = [];\n },\n openModal() {\n if (this.widget.options.disabled && !this.isdisabled) return false;\n let options = this.widget.options;\n let mutexList = [];\n // 处理互斥人员组件\n if (options.mutexs && options.mutexs.length > 0) {\n options.mutexs.forEach(item => {\n if (this.models[item]) {\n mutexList = mutexList.concat(this.models[item]);\n }\n });\n }\n let selectedUserIds = '';\n if (mutexList.length > 0) {\n selectedUserIds = mutexList.map(item => item.id).join(',');\n }\n this.$refs.elSelectUserByRoleModal.init(this.widget.options.role, this.widget.options.multiple, (0,_util_util_js__WEBPACK_IMPORTED_MODULE_2__.cloneObj)(this.dataModel), selectedUserIds);\n },\n handleOk(value) {\n this.setUsersName(value);\n },\n setUsersName(value) {\n this.userNames = \"\";\n if (value && value.length > 0) {\n value.forEach((item, index) => {\n this.userNames += \",\" + item.realname;\n });\n this.userNames = this.userNames.substring(1);\n this.users = value;\n } else {\n this.userNames = \"\";\n this.users = [];\n }\n }\n },\n watch: {\n users(val) {\n this.dataModel = val;\n },\n dataModel(val) {\n this.pulishMsg(val);\n if (Array.isArray(val) && val.length == 0) {\n this.userNames = '';\n } else {\n this.setUsersName(val); //删除子表单 值不更新\n }\n\n this.$emit(\"updateModels\", val);\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
3647
3647
 
3648
3648
  /***/ }),
3649
3649
 
@@ -3654,7 +3654,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mix
3654
3654
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3655
3655
 
3656
3656
  "use strict";
3657
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/mixins/JeecgListMixin */ \"./src/mixins/JeecgListMixin.js\");\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"elSelectUserByRoleModal\",\n mixins: [_mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_1__.JeecgListMixin],\n data() {\n return {\n modalWidth: \"1000px\",\n visible: false,\n confirmLoading: false,\n treeData: [],\n autoExpandParent: true,\n expandedKeys: [],\n dataList: [],\n checkedKeys: [],\n checkedRows: [],\n searchValue: \"\",\n role: [],\n //限定的角色\n rolesList: [],\n //角色列表\n radioValue: 1,\n radioStyle: {\n display: \"block\",\n height: \"30px\",\n lineHeight: \"30px\"\n },\n multi: \"\",\n cacheSeletedRowKeys: [],\n selectedRows: [],\n selectedRowKeys: [],\n columns: [{\n title: \"用户名\",\n dataIndex: \"username\",\n fixed: \"left\",\n width: 100\n }, {\n title: \"姓名\",\n dataIndex: \"realname\",\n fixed: \"left\",\n width: 100\n }, {\n title: \"所属部门\",\n dataIndex: \"departName\"\n }],\n url: {\n list: \"/sys/user/listFormUserByRole\"\n },\n queryParam: {\n roleId: \"\"\n }\n };\n },\n components: {},\n created() {},\n methods: {\n getRolesList() {\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_2__.getAction)(\"/sys/role/list\", {\n pageNo: 1,\n pageSize: 100000\n }).then(res => {\n if (res.success) {\n this.rolesList = res.result.records.filter(item => {\n return this.role.includes(item.id);\n });\n }\n });\n },\n deleteItem(item, index) {\n this.cacheSeletedRowKeys.splice(index, 1);\n this.selectedRowKeys = this.selectedRowKeys.filter(i => {\n return item.id != i;\n });\n },\n onClearSelectedCache() {\n this.onClearSelected();\n this.cacheSeletedRowKeys = [];\n },\n onSelectChange(keys, rows) {\n this.addToCacheSeletedRowKeys(keys, rows);\n this.selectedRowKeys = keys;\n this.selectedRows = rows;\n },\n addToCacheSeletedRowKeys(keys, rows) {\n let currentIds = []; //当前缓存中选中的ids\n //过滤cacheSeletedRowKeys中 已被取消的item\n currentIds = this.cacheSeletedRowKeys.map(item => {\n return item.id;\n });\n\n //增加cacheSeletedRowKeys中 未添加项的item\n if (rows.length > 0) {\n rows.forEach(item => {\n if (!currentIds.includes(item.id)) {\n currentIds.push(item.id);\n this.cacheSeletedRowKeys.push(item);\n }\n });\n }\n //如果currentIds 中id 不存在与keys 则需要删除cacheSeletedRowKeys中对应的值\n this.cacheSeletedRowKeys = this.cacheSeletedRowKeys.filter(item => {\n if (keys.includes(item.id)) {\n return item;\n }\n });\n },\n onRadioChange(e) {\n this.queryParam.roleId = e.target.value;\n this.ipagination.current = 1;\n this.loadData();\n },\n /***\n * @param {role} Array\n * @param {multi} Boolean //多选 单选\n * @param {value} Array //默认人选\n */\n init(role, multi, value, selectedUserIds = undefined) {\n this.visible = true;\n this.role = role;\n this.multi = multi;\n this.cacheSeletedRowKeys = value;\n this.queryParam.selectedUserIds = selectedUserIds;\n this.selectedRowKeys = value.map(item => {\n return item.id;\n });\n this.getRolesList();\n },\n handleCancel() {\n this.colse();\n },\n colse() {\n this.visible = false;\n this.dataSource = [];\n this.cacheSeletedRowKeys = [];\n this.selectedRows = [];\n this.selectedRowKeys = [];\n this.radioValue = \"\";\n },\n handleSubmit() {\n this.$emit(\"ok\", this.cacheSeletedRowKeys);\n this.colse();\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/elSelectUserByRole/elSelectUserByRoleModal.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
3657
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/_core-js@3.27.1@core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/mixins/JeecgListMixin */ \"./src/mixins/JeecgListMixin.js\");\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"elSelectUserByRoleModal\",\n mixins: [_mixins_JeecgListMixin__WEBPACK_IMPORTED_MODULE_1__.JeecgListMixin],\n props: {\n defaultDepartId: {\n type: String,\n default: undefined\n }\n },\n data() {\n return {\n modalWidth: \"1000px\",\n visible: false,\n confirmLoading: false,\n treeData: [],\n autoExpandParent: true,\n expandedKeys: [],\n dataList: [],\n checkedKeys: [],\n checkedRows: [],\n searchValue: \"\",\n role: [],\n //限定的角色\n rolesList: [],\n //角色列表\n radioValue: 1,\n radioStyle: {\n display: \"block\",\n height: \"30px\",\n lineHeight: \"30px\"\n },\n multi: \"\",\n cacheSeletedRowKeys: [],\n selectedRows: [],\n selectedRowKeys: [],\n columns: [{\n title: \"用户名\",\n dataIndex: \"username\",\n fixed: \"left\",\n width: 100\n }, {\n title: \"姓名\",\n dataIndex: \"realname\",\n fixed: \"left\",\n width: 100\n }, {\n title: \"所属部门\",\n dataIndex: \"departName\"\n }],\n url: {\n list: \"/formApi/listFormUserByRole\"\n },\n queryParam: {\n roleId: \"\"\n }\n };\n },\n components: {},\n created() {},\n methods: {\n getRolesList() {\n (0,_api_manage__WEBPACK_IMPORTED_MODULE_2__.getAction)(\"/sys/role/list\", {\n pageNo: 1,\n pageSize: 100000\n }).then(res => {\n if (res.success) {\n this.rolesList = res.result.records.filter(item => {\n return this.role.includes(item.id);\n });\n }\n });\n },\n deleteItem(item, index) {\n this.cacheSeletedRowKeys.splice(index, 1);\n this.selectedRowKeys = this.selectedRowKeys.filter(i => {\n return item.id != i;\n });\n },\n onClearSelectedCache() {\n this.onClearSelected();\n this.cacheSeletedRowKeys = [];\n },\n onSelectChange(keys, rows) {\n this.addToCacheSeletedRowKeys(keys, rows);\n this.selectedRowKeys = keys;\n this.selectedRows = rows;\n },\n addToCacheSeletedRowKeys(keys, rows) {\n let currentIds = []; //当前缓存中选中的ids\n //过滤cacheSeletedRowKeys中 已被取消的item\n currentIds = this.cacheSeletedRowKeys.map(item => {\n return item.id;\n });\n\n //增加cacheSeletedRowKeys中 未添加项的item\n if (rows.length > 0) {\n rows.forEach(item => {\n if (!currentIds.includes(item.id)) {\n currentIds.push(item.id);\n this.cacheSeletedRowKeys.push(item);\n }\n });\n }\n //如果currentIds 中id 不存在与keys 则需要删除cacheSeletedRowKeys中对应的值\n this.cacheSeletedRowKeys = this.cacheSeletedRowKeys.filter(item => {\n if (keys.includes(item.id)) {\n return item;\n }\n });\n },\n onRadioChange(e) {\n this.queryParam.roleId = e.target.value;\n this.ipagination.current = 1;\n this.loadData();\n },\n /***\n * @param {role} Array\n * @param {multi} Boolean //多选 单选\n * @param {value} Array //默认人选\n */\n init(role, multi, value, selectedUserIds = undefined) {\n this.visible = true;\n this.role = role;\n this.multi = multi;\n this.cacheSeletedRowKeys = value;\n this.queryParam.selectedUserIds = selectedUserIds;\n this.queryParam.depId = this.defaultDepartId;\n this.selectedRowKeys = value.map(item => {\n return item.id;\n });\n this.getRolesList();\n },\n handleCancel() {\n this.colse();\n },\n colse() {\n this.visible = false;\n this.dataSource = [];\n this.cacheSeletedRowKeys = [];\n this.selectedRows = [];\n this.selectedRowKeys = [];\n this.radioValue = \"\";\n },\n handleSubmit() {\n this.$emit(\"ok\", this.cacheSeletedRowKeys);\n this.colse();\n }\n }\n});\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/elSelectUserByRole/elSelectUserByRoleModal.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
3658
3658
 
3659
3659
  /***/ }),
3660
3660
 
@@ -4897,7 +4897,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
4897
4897
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4898
4898
 
4899
4899
  "use strict";
4900
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _vm.widget ? _c(\"div\", {\n staticClass: \"custom_form_item\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n ref: _vm.widget.model,\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol,\n prop: _vm.tableKey ? `${_vm.tableKey}.${_vm.tableIndex}.${_vm.widget.model}` : _vm.widget.model,\n rules: _vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]\n }\n }, [!_vm.widget.options.isRange ? [_c(\"a-time-picker\", {\n attrs: {\n popupStyle: {\n zIndex: \"1000000\"\n },\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n placeholder: _vm.widget.options.placeholder,\n format: _vm.widget.options.format,\n valueFormat: _vm.widget.options.format,\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode.parentNode || _vm.document.body;\n }\n },\n on: {\n change: (val, dateStrings) => _vm.changeTime(val, dateStrings, \"time\")\n },\n model: {\n value: _vm.dataModel,\n callback: function ($$v) {\n _vm.dataModel = $$v;\n },\n expression: \"dataModel\"\n }\n })] : _vm._e(), _vm.widget.options.isRange ? [_c(\"a-time-picker\", {\n attrs: {\n popupStyle: {\n zIndex: \"1000000\"\n },\n placeholder: _vm.widget.options.isRange == true ? _vm.widget.options.startPlaceholder : _vm.widget.options.placeholder,\n format: _vm.widget.options.format,\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n valueFormat: _vm.widget.options.format,\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode.parentNode || _vm.document.body;\n }\n },\n on: {\n change: (val, dateStrings) => _vm.changeTime(val, dateStrings, \"startTime\")\n },\n model: {\n value: _vm.dataModel[0],\n callback: function ($$v) {\n _vm.$set(_vm.dataModel, 0, $$v);\n },\n expression: \"dataModel[0]\"\n }\n }), _c(\"span\", [_vm._v(\" - \")]), _vm.widget.options.isRange == true ? _c(\"a-time-picker\", {\n attrs: {\n popupStyle: {\n zIndex: \"1000000\"\n },\n disabledHours: _vm.getDisabledHours,\n disabledMinutes: _vm.getDisabledMinutes,\n disabledSeconds: _vm.getDisabledSeconds,\n format: _vm.widget.options.format,\n valueFormat: _vm.widget.options.format,\n placeholder: _vm.widget.options.endPlaceholder ? _vm.widget.options.endPlaceholder : _vm.widget.options.placeholder,\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode.parentNode || _vm.document.body;\n }\n },\n on: {\n change: (val, dateStrings) => _vm.changeTime(val, dateStrings, \"endTime\")\n },\n model: {\n value: _vm.dataModel[1],\n callback: function ($$v) {\n _vm.$set(_vm.dataModel, 1, $$v);\n },\n expression: \"dataModel[1]\"\n }\n }) : _vm._e()] : _vm._e(), _c(\"div\", {\n class: [_vm.config.align, _vm.config.validate === true && _vm.widget.options.required === true ? \"is_required\" : \"no_required\"],\n style: {\n color: this.config.color\n },\n attrs: {\n slot: \"label\"\n },\n slot: \"label\"\n }, [_vm._v(_vm._s(_vm.widget.name))])], 2)], 1) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Time/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
4900
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _vm.widget ? _c(\"div\", {\n staticClass: \"custom_form_item\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n ref: _vm.widget.model,\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol,\n prop: _vm.tableKey ? `${_vm.tableKey}.${_vm.tableIndex}.${_vm.widget.model}` : _vm.widget.model,\n rules: _vm.tableKey ? _vm.rules[_vm.tableKey][_vm.widget.model] : _vm.rules[_vm.widget.model]\n }\n }, [!_vm.widget.options.isRange ? [_c(\"a-time-picker\", {\n attrs: {\n popupStyle: {\n zIndex: \"2\"\n },\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n placeholder: _vm.widget.options.placeholder,\n format: _vm.widget.options.format,\n valueFormat: _vm.widget.options.format,\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode.parentNode || _vm.document.body;\n }\n },\n on: {\n change: (val, dateStrings) => _vm.changeTime(val, dateStrings, \"time\")\n },\n model: {\n value: _vm.dataModel,\n callback: function ($$v) {\n _vm.dataModel = $$v;\n },\n expression: \"dataModel\"\n }\n })] : _vm._e(), _vm.widget.options.isRange ? [_c(\"a-time-picker\", {\n attrs: {\n popupStyle: {\n zIndex: \"2\"\n },\n placeholder: _vm.widget.options.isRange == true ? _vm.widget.options.startPlaceholder : _vm.widget.options.placeholder,\n format: _vm.widget.options.format,\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n valueFormat: _vm.widget.options.format,\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode.parentNode || _vm.document.body;\n }\n },\n on: {\n change: (val, dateStrings) => _vm.changeTime(val, dateStrings, \"startTime\")\n },\n model: {\n value: _vm.dataModel[0],\n callback: function ($$v) {\n _vm.$set(_vm.dataModel, 0, $$v);\n },\n expression: \"dataModel[0]\"\n }\n }), _c(\"span\", [_vm._v(\" - \")]), _vm.widget.options.isRange == true ? _c(\"a-time-picker\", {\n attrs: {\n popupStyle: {\n zIndex: \"2\"\n },\n disabledHours: _vm.getDisabledHours,\n disabledMinutes: _vm.getDisabledMinutes,\n disabledSeconds: _vm.getDisabledSeconds,\n format: _vm.widget.options.format,\n valueFormat: _vm.widget.options.format,\n placeholder: _vm.widget.options.endPlaceholder ? _vm.widget.options.endPlaceholder : _vm.widget.options.placeholder,\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n getPopupContainer: triggerNode => {\n return triggerNode.parentNode.parentNode || _vm.document.body;\n }\n },\n on: {\n change: (val, dateStrings) => _vm.changeTime(val, dateStrings, \"endTime\")\n },\n model: {\n value: _vm.dataModel[1],\n callback: function ($$v) {\n _vm.$set(_vm.dataModel, 1, $$v);\n },\n expression: \"dataModel[1]\"\n }\n }) : _vm._e()] : _vm._e(), _c(\"div\", {\n class: [_vm.config.align, _vm.config.validate === true && _vm.widget.options.required === true ? \"is_required\" : \"no_required\"],\n style: {\n color: this.config.color\n },\n attrs: {\n slot: \"label\"\n },\n slot: \"label\"\n }, [_vm._v(_vm._s(_vm.widget.name))])], 2)], 1) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/Time/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
4901
4901
 
4902
4902
  /***/ }),
4903
4903
 
@@ -5029,7 +5029,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
5029
5029
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5030
5030
 
5031
5031
  "use strict";
5032
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _vm.widget ? _c(\"div\", {\n staticClass: \"custom_form_item\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n ref: _vm.widget.model,\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol,\n prop: _vm.widget.model\n }\n }, [_c(\"a-input\", {\n staticStyle: {\n width: \"100%\"\n },\n attrs: {\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n placeholder: _vm.widget.options.placeholder,\n \"read-only\": \"\"\n },\n nativeOn: {\n click: function ($event) {\n return _vm.openModal.apply(null, arguments);\n }\n },\n model: {\n value: _vm.userNames,\n callback: function ($$v) {\n _vm.userNames = $$v;\n },\n expression: \"userNames\"\n }\n }, [_c(\"a-icon\", {\n attrs: {\n slot: \"prefix\",\n type: \"user\",\n title: \"用户选择\"\n },\n slot: \"prefix\"\n }), !_vm.widget.options.disabled || _vm.isdisabled ? _c(\"a-icon\", {\n staticStyle: {\n cursor: \"pointer\"\n },\n attrs: {\n slot: \"suffix\",\n type: \"close-circle\",\n title: \"清空\"\n },\n nativeOn: {\n click: function ($event) {\n $event.stopPropagation();\n return _vm.handleEmpty.apply(null, arguments);\n }\n },\n slot: \"suffix\"\n }) : _vm._e()], 1), _c(\"div\", {\n class: _vm.config.align,\n style: {\n color: this.config.color\n },\n attrs: {\n slot: \"label\"\n },\n slot: \"label\"\n }, [_vm._v(\" \" + _vm._s(_vm.widget.name) + \" \")])], 1), _c(\"el-select-user-by-role-modal\", {\n ref: \"elSelectUserByRoleModal\",\n on: {\n ok: _vm.handleOk\n }\n })], 1) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
5032
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _vm.widget ? _c(\"div\", {\n staticClass: \"custom_form_item\",\n style: {\n height: _vm.widget.options.height + \"px\"\n }\n }, [_c(\"a-form-model-item\", {\n ref: _vm.widget.model,\n attrs: {\n colon: false,\n \"label-col\": _vm.labelCol,\n wrapperCol: _vm.wrapperCol,\n prop: _vm.widget.model\n }\n }, [_c(\"a-input\", {\n staticStyle: {\n width: \"100%\"\n },\n attrs: {\n disabled: _vm.isdisabled ? _vm.show : _vm.widget.options.disabled,\n placeholder: _vm.widget.options.placeholder,\n \"read-only\": \"\"\n },\n nativeOn: {\n click: function ($event) {\n return _vm.openModal.apply(null, arguments);\n }\n },\n model: {\n value: _vm.userNames,\n callback: function ($$v) {\n _vm.userNames = $$v;\n },\n expression: \"userNames\"\n }\n }, [_c(\"a-icon\", {\n attrs: {\n slot: \"prefix\",\n type: \"user\",\n title: \"用户选择\"\n },\n slot: \"prefix\"\n }), !_vm.widget.options.disabled || _vm.isdisabled ? _c(\"a-icon\", {\n staticStyle: {\n cursor: \"pointer\"\n },\n attrs: {\n slot: \"suffix\",\n type: \"close-circle\",\n title: \"清空\"\n },\n nativeOn: {\n click: function ($event) {\n $event.stopPropagation();\n return _vm.handleEmpty.apply(null, arguments);\n }\n },\n slot: \"suffix\"\n }) : _vm._e()], 1), _c(\"div\", {\n class: _vm.config.align,\n style: {\n color: this.config.color\n },\n attrs: {\n slot: \"label\"\n },\n slot: \"label\"\n }, [_vm._v(\" \" + _vm._s(_vm.widget.name) + \" \")])], 1), _c(\"el-select-user-by-role-modal\", {\n ref: \"elSelectUserByRoleModal\",\n attrs: {\n defaultDepartId: _vm.defaultDepartId\n },\n on: {\n ok: _vm.handleOk\n }\n })], 1) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/component.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
5033
5033
 
5034
5034
  /***/ }),
5035
5035
 
@@ -5062,7 +5062,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
5062
5062
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5063
5063
 
5064
5064
  "use strict";
5065
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n staticClass: \"control\"\n }, [_c(\"div\", {\n staticClass: \"form_wrap\"\n }, [_c(\"div\", {\n staticClass: \"form\"\n }, [_vm.widget.type == \"userSelectorByRole\" ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"角色配置:\"\n }\n }, [_c(\"a-checkbox-group\", {\n model: {\n value: _vm.widget.options.role,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"role\", $$v);\n },\n expression: \"widget.options.role\"\n }\n }, _vm._l(_vm.Roles, function (Role) {\n return _c(\"a-checkbox\", {\n key: Role.id,\n attrs: {\n value: Role.id\n }\n }, [_vm._v(_vm._s(Role.roleName))]);\n }), 1)], 1) : _vm._e()], 1)])]);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/widgetSetup.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
5065
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; },\n/* harmony export */ \"staticRenderFns\": function() { return /* binding */ staticRenderFns; }\n/* harmony export */ });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"div\", {\n staticClass: \"control\"\n }, [_c(\"div\", {\n staticClass: \"form_wrap\"\n }, [_c(\"div\", {\n staticClass: \"form\"\n }, [_c(\"a-form-model-item\", {\n attrs: {\n label: \"是否与申请人部门关联:\"\n }\n }, [_c(\"a-switch\", {\n model: {\n value: _vm.widget.options.departRelation,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"departRelation\", $$v);\n },\n expression: \"widget.options.departRelation\"\n }\n })], 1), _vm.widget.type == \"userSelectorByRole\" ? _c(\"a-form-model-item\", {\n attrs: {\n label: \"角色配置:\"\n }\n }, [_c(\"a-checkbox-group\", {\n model: {\n value: _vm.widget.options.role,\n callback: function ($$v) {\n _vm.$set(_vm.widget.options, \"role\", $$v);\n },\n expression: \"widget.options.role\"\n }\n }, _vm._l(_vm.Roles, function (Role) {\n return _c(\"a-checkbox\", {\n key: Role.id,\n attrs: {\n value: Role.id\n }\n }, [_vm._v(_vm._s(Role.roleName))]);\n }), 1)], 1) : _vm._e()], 1)])]);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://form-component/./src/form/modules/components/userSelectorByRole/widgetSetup.vue?./node_modules/_babel-loader@8.3.0@babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??ruleSet%5B1%5D.rules%5B3%5D!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options");
5066
5066
 
5067
5067
  /***/ }),
5068
5068
 
@@ -5204,7 +5204,7 @@ eval("__webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modul
5204
5204
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
5205
5205
 
5206
5206
  "use strict";
5207
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ajaxGetDictItems\": function() { return /* binding */ ajaxGetDictItems; },\n/* harmony export */ \"duplicateCheck\": function() { return /* binding */ duplicateCheck; },\n/* harmony export */ \"getSignature\": function() { return /* binding */ getSignature; },\n/* harmony export */ \"queryDepartTreeList\": function() { return /* binding */ queryDepartTreeList; },\n/* harmony export */ \"queryTreeList\": function() { return /* binding */ queryTreeList; }\n/* harmony export */ });\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n\nconst queryTreeList = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(\"/sys/permission/queryTreeList\", params);\n\n// 部门管理\nconst queryDepartTreeList = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(\"/sysdepart/sysDepart/queryTreeList\", params);\n\n//字典标签专用(通过code获取字典数组)\nconst ajaxGetDictItems = (code, params) => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(`/sys/dict/getDictItems/${code}`, params);\n\n// 重复校验\nconst duplicateCheck = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(\"/sys/duplicate/check\", params);\n\n// 表单 签名\nconst getSignature = () => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)('workhall/userseal/queryById');\n\n\n//# sourceURL=webpack://form-component/./src/api/api.js?");
5207
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ajaxGetDictItems\": function() { return /* binding */ ajaxGetDictItems; },\n/* harmony export */ \"duplicateCheck\": function() { return /* binding */ duplicateCheck; },\n/* harmony export */ \"getSignature\": function() { return /* binding */ getSignature; },\n/* harmony export */ \"queryDepartTreeList\": function() { return /* binding */ queryDepartTreeList; },\n/* harmony export */ \"queryTreeList\": function() { return /* binding */ queryTreeList; }\n/* harmony export */ });\n/* harmony import */ var _api_manage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/api/manage */ \"./src/api/manage.js\");\n\nconst queryTreeList = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(\"/sys/permission/queryTreeList\", params);\n\n// 部门管理\nconst queryDepartTreeList = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(\"/formApi/queryTreeList\", params);\n\n//字典标签专用(通过code获取字典数组)\nconst ajaxGetDictItems = (code, params) => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(`/sys/dict/getDictItems/${code}`, params);\n\n// 重复校验\nconst duplicateCheck = params => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)(\"/sys/duplicate/check\", params);\n\n// 表单 签名\nconst getSignature = () => (0,_api_manage__WEBPACK_IMPORTED_MODULE_0__.getAction)('workhall/userseal/queryById');\n\n\n//# sourceURL=webpack://form-component/./src/api/api.js?");
5208
5208
 
5209
5209
  /***/ }),
5210
5210
 
@@ -12325,7 +12325,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
12325
12325
  /***/ (function(module) {
12326
12326
 
12327
12327
  "use strict";
12328
- eval("module.exports = JSON.parse('{\"name\":\"@zscreate/form-component\",\"version\":\"1.1.2\",\"private\":false,\"description\":\"\",\"main\":\"dist/form-component.umd.js\",\"unpkg\":\"dist/form-component.umd.js\",\"scripts\":{\"build\":\"vue-cli-service build --target lib --name form-component src/main.js --formats umd --report\",\"build:watch\":\"vue-cli-service build --target lib --name form-component src/main.js --formats umd --watch\"},\"exports\":{\".\":{\"import\":{\"default\":\"./dist/form-component.umd.js\"},\"require\":\"./dist/form-component.common.js\"}},\"publishConfig\":{\"access\":\"public\",\"registry\":\"https://registry.npmjs.org/\"},\"files\":[\"/dist/*\"],\"exclude\":[\"node_modules\"],\"keywords\":[],\"author\":\"\",\"license\":\"ISC\",\"dependencies\":{\"core-js\":\"^3.8.3\",\"vue\":\"^2.6.14\",\"pubsub-js\":\"^1.9.3\",\"vue-draggable-resizable\":\"2.2.0\",\"vue-draggable-resizable-gorkys\":\"2.0.0\",\"vue-grid-layout\":\"^2.3.12\",\"vue-signature-pad\":\"^2.0.2\",\"vuedraggable\":\"^2.24.3\",\"moment\":\"^2.29.1\"},\"devDependencies\":{\"clipboard\":\"2.0.4\",\"codemirror\":\"^5.46.0\",\"vue-codemirror\":\"^4.0.6\",\"@vue/cli-plugin-babel\":\"~5.0.0\",\"@vue/cli-service\":\"~5.0.0\",\"vue-template-compiler\":\"^2.6.14\",\"less\":\"^3.0.4\",\"less-loader\":\"^5.0.0\",\"node-sass\":\"^4.11.0\",\"sass-loader\":\"^7.0.1\"}}');\n\n//# sourceURL=webpack://form-component/./package.json?");
12328
+ eval("module.exports = JSON.parse('{\"name\":\"@zscreate/form-component\",\"version\":\"1.1.3-ahsf-2\",\"private\":false,\"description\":\"\",\"main\":\"dist/form-component.umd.js\",\"unpkg\":\"dist/form-component.umd.js\",\"scripts\":{\"build\":\"vue-cli-service build --target lib --name form-component src/main.js --formats umd --report\",\"build:watch\":\"vue-cli-service build --target lib --name form-component src/main.js --formats umd --watch\"},\"exports\":{\".\":{\"import\":{\"default\":\"./dist/form-component.umd.js\"},\"require\":\"./dist/form-component.common.js\"}},\"publishConfig\":{\"access\":\"public\",\"registry\":\"https://registry.npmjs.org/\"},\"files\":[\"/dist/*\"],\"exclude\":[\"node_modules\"],\"keywords\":[],\"author\":\"\",\"license\":\"ISC\",\"dependencies\":{\"core-js\":\"^3.8.3\",\"vue\":\"^2.6.14\",\"pubsub-js\":\"^1.9.3\",\"vue-draggable-resizable\":\"2.2.0\",\"vue-draggable-resizable-gorkys\":\"2.0.0\",\"vue-grid-layout\":\"^2.3.12\",\"vue-signature-pad\":\"^2.0.2\",\"vuedraggable\":\"^2.24.3\",\"moment\":\"^2.29.1\"},\"devDependencies\":{\"clipboard\":\"2.0.4\",\"codemirror\":\"^5.46.0\",\"vue-codemirror\":\"^4.0.6\",\"@vue/cli-plugin-babel\":\"~5.0.0\",\"@vue/cli-service\":\"~5.0.0\",\"vue-template-compiler\":\"^2.6.14\",\"less\":\"^3.0.4\",\"less-loader\":\"^5.0.0\",\"node-sass\":\"^4.11.0\",\"sass-loader\":\"^7.0.1\"}}');\n\n//# sourceURL=webpack://form-component/./package.json?");
12329
12329
 
12330
12330
  /***/ })
12331
12331
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.2",
3
+ "version": "1.1.3-ahsf-2",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",