| | |
| | | return this.currentTypeObj[this.type]["tipList"]; |
| | | }, |
| | | downloadTemplateApi() { |
| | | console.log(this.currentTypeObj[this.type], "this.type"); |
| | | return this.currentTypeObj[this.type]["downloadTemplateFun"]; |
| | | }, |
| | | action() { |
| | |
| | | } |
| | | }, |
| | | onError(err) { |
| | | console.log(err, "err"); |
| | | this.pageLoading.close(); |
| | | }, |
| | | uploadChange(file) { |
| | |
| | | limit: this.page.pageSize, |
| | | 'conditionMap[lcstatus]': lcstatus |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.tableData = res.data.data |
| | | }) |
| | | }, |
| | |
| | | const data = response.data.data; |
| | | this.transferData = data; |
| | | } |
| | | }, |
| | | handelTransferSave(val) { |
| | | console.log('发布', val) |
| | | }, |
| | | rend() { |
| | | this.tableData = this.tableHeadData; |
| | |
| | | list.push(item.oid) |
| | | }) |
| | | deleteCode({codeClassifyOid: this.codeClassifyOid, oidList: list}).then(res => { |
| | | console.log(res) |
| | | if (res.data.code === 200) { |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | this.DataVisible = false; |
| | | val.copyFromVersion = this.rowOid; |
| | | val.oid = ''; |
| | | console.log(val) |
| | | upSaveCode(val).then(res => { |
| | | console.log(res) |
| | | this.$nextTick(() => { |
| | | this.$message.warning("保存成功"); |
| | | this.onLoad() |
| | |
| | | addsHandler(event) { |
| | | this.$refs.referAttrCrud.sort("orderNum"); |
| | | var ischeck = true; |
| | | console.log('ProData',this.ProData) |
| | | this.ProData.forEach((item, index) => { |
| | | if ((item.requireFlag && item.requireFlag.toString() == 'true') && (item.readOnlyFlag && item.readOnlyFlag.toString() == 'true')) { |
| | | this.$message.warning(item.name + "(" + item.id + ")必输的属性不能是只读"); |
| | |
| | | }, |
| | | //表格行编辑 |
| | | handleCellClicks(row, column) { |
| | | console.log(row,column) |
| | | if (this.editOpenFlag) { |
| | | this.editingRows = row; |
| | | this.editShows = column.property; |
| | |
| | | }) |
| | | //调用修改属性名方法 |
| | | this.ModifyProperties(this.CloneTreedata, 'name', 'label'); |
| | | console.log(this.CloneTreedata) |
| | | this.CloneTreedata = this.CloneTreedata.map(item => { |
| | | if (item.attributes.lcStatus === "Disabled") { |
| | | item.label += '【停用】'; |
| | |
| | | }, |
| | | //树点击事件 |
| | | async nodeClick(data) { |
| | | console.log(data); |
| | | //操作新增和修改的业务类型隐藏 |
| | | this.TreeFlagCode = !data; |
| | | this.editTreeFLagCode = !data.parentId; |
| | |
| | | const {id, name} = row[0]; |
| | | this.CloneModel = {id, name}; |
| | | this.CloneSelect[0].codeclassifyoid = this.nodeClickList.oid; |
| | | console.log('row', row) |
| | | console.log('CloneSelect', this.CloneSelect) |
| | | console.log('CloneModel', this.CloneModel) |
| | | }, |
| | | //克隆表单提交 |
| | | Clonesubmit(row, done) { |
| | |
| | | downloadTemplateFun(){ |
| | | this.downloadLoading = true; |
| | | downloadBatchImportApplyTemplate({codeClassifyOid: this.codeClassifyOid}).then(res=>{ |
| | | console.log(res) |
| | | this.$utilFunc.downloadFileByBlob(res.data, "主题库分类模板.xls"); |
| | | this.downloadLoading = false; |
| | | }).catch((res)=>{ |
| | |
| | | }, |
| | | //文件上传失败 |
| | | onError(res){ |
| | | console.log(res) |
| | | this.pageLoading.close(); |
| | | }, |
| | | //文件状态改变 |
| | |
| | | }, |
| | | // 确认 |
| | | async comfirm() { |
| | | console.log(this.codeApplyForm) |
| | | const objcodekey = Object.keys(this.codeApplyForm) |
| | | console.log(objcodekey) |
| | | const filteredObj = objcodekey.reduce((acc, key) => { |
| | | const pattern = /[\u4e00-\u9fa5]/; // 匹配中文字符的正则表达式 |
| | | const patterns = /\$/; |
| | |
| | | handelAgree() { |
| | | this.isAgree = !this.isAgree |
| | | this.outerVisible = false |
| | | console.log(this.isAgree) |
| | | }, |
| | | handelRefuse() { |
| | | if (!this.opinionVal) { |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | nodeClick: (data) => { |
| | | console.log(data) |
| | | // 节点点击的时候会获取到数据 |
| | | this.form.modelName = data.name |
| | | } |
| | |
| | | async getStart() { |
| | | const response = await getStartList() |
| | | if (response.status === 200) { |
| | | console.log(response.data.data.records) |
| | | const data = response.data.data.records |
| | | let newData = data.map(item => { |
| | | const {key, name, version} = item |
| | |
| | | }, |
| | | // 新增 |
| | | async handleSave(row, done, loading) { |
| | | console.log(row) |
| | | await flowpathSave({...row, ...{templateId: this.code}}).then(response => { |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '新增数据成功!' |
| | |
| | | }, |
| | | // 编辑 |
| | | async handleEdit(row, index, done, loading) { |
| | | console.log(row) |
| | | const {modelName, modelKey, buttonTypeKey, id, description} = row |
| | | let param = {modelName, modelKey, buttonTypeKey, id, description} |
| | | await flowpathSave({...param, ...{templateId: this.code}}).then(response => { |
| | |
| | | }, |
| | | // 删除单条 |
| | | handleDelete(row) { |
| | | console.log(row) |
| | | const {id} = row |
| | | this.deleteSysInfo({id: id}) |
| | | }, |
| | |
| | | // 接口 |
| | | const response = await flowpathDelete(param) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '删除成功!' |
| | |
| | | }, |
| | | async apiDict() { |
| | | const response = await personnelDict() |
| | | console.log(response) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | const data = response.data.data |
| | | this.typeName = data.map(item => { |
| | | const { account, deptName, id, realName } = item |
| | |
| | | async canCollect(name) { |
| | | const response = await cancelCollect({ name: name }) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.apiInit() |
| | | this.isCollent = true |
| | | this.$message({ |
| | |
| | | this.done() |
| | | }, |
| | | handleConfirm() { |
| | | console.log(this.saveParam) |
| | | this.apiSave() |
| | | } |
| | | } |
| | |
| | | let param = {size: pageSize, current: currentPage} |
| | | const response = await getFlowpathList({...param, ...{templateId: this.code}}) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | this.loading = false |
| | | const data = response.data.data |
| | | this.data = data.records |
| | |
| | | // 获取阶段列表 |
| | | async getStagelist() { |
| | | this.loading = false |
| | | console.log(this.modelKey) |
| | | const response = await stagelist({modelKey: this.modelKey}) |
| | | if (response.status === 200) { |
| | | this.loading = false |
| | | console.log(response.data) |
| | | this.stageData = response.data.data |
| | | } else this.loading = false |
| | | }, |
| | |
| | | } |
| | | return item |
| | | }) |
| | | console.log(datas) |
| | | let dataValue = datas.map(item => item.checked ? item.oid : undefined) |
| | | this.attributeValue = dataValue.filter(item => item) |
| | | this.attributeData = datas |
| | |
| | | }, |
| | | // 维护 |
| | | handleMaintenance(row) { |
| | | console.log(row) |
| | | this.dialogNode = true |
| | | this.modelKey = row.modelKey |
| | | this.saveParam.modelKey = row.modelKey |
| | |
| | | }) |
| | | }, |
| | | handleRowClick(row) { |
| | | console.log(row) |
| | | this.modelKey = row.modelKey |
| | | this.saveParam.modelKey = row.modelKey |
| | | this.dialogNode = true |
| | |
| | | }) |
| | | }, |
| | | async handleSave(event) { |
| | | console.log(event) |
| | | const data = event.map(item => { |
| | | const {id, name, attributeGroup} = item |
| | | return {attrId: id, attrName: name, attrGroup: attributeGroup} |
| | |
| | | processStageAttr: data, |
| | | ...this.saveParam |
| | | } |
| | | console.log(this.saveParam) |
| | | console.log(data) |
| | | const response = await attributeSave(param) |
| | | if (response.status === 200) { |
| | | // loading() |
| | | console.log(response) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '新增数据成功!' |
| | |
| | | }, |
| | | mounted() { |
| | | this.init(); |
| | | console.log(this.$refs.transferTable) |
| | | }, |
| | | methods: { |
| | | init() { |
| | |
| | | i--; |
| | | } |
| | | } |
| | | console.log(this.rightDataList) |
| | | this.leftData = this.setData(this.leftDataList, this.searchLeft); |
| | | this.rightData = this.setData(this.rightDataList, this.searchRight); |
| | | this.$emit( |
| | |
| | | ) { |
| | | // itemsToBeMoved = [itemKey] |
| | | itemsToBeMoved = [item] |
| | | console.log(itemsToBeMoved) |
| | | } |
| | | }); |
| | | // currentValue = itemsToBeMoved |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | |