Merge remote-tracking branch 'origin/master'
# Conflicts:
# server/system_service/src/main/java/com/doumee/core/utils/HttpsUtil.java
| | |
| | | return { |
| | | isShowModal: false, |
| | | loadingInstance: false, |
| | | param: {}, |
| | | param: { |
| | | checkTypeId: null |
| | | }, |
| | | userInfo: this.$store.state.userInfo, |
| | | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/visitsAdmin/cloudService/public/uploadBatch', |
| | | typeList: [], |
| | |
| | | method: 'get', |
| | | data |
| | | }) |
| | | } |
| | | } |
| | |
| | | <text>*</text>
|
| | | <text>检查类型</text>
|
| | | </view>
|
| | | <view class="value" @click="openArea">
|
| | | <view class="value" @click="isShow = true">
|
| | | <text class="mr6"
|
| | | :style="{ color: param.areaName ? '#000000' : '#999999' }">{{ param.areaName ? param.areaName : "请选择" }}</text>
|
| | | :style="{ color: param.checkTypeName ? '#000000' : '#999999' }">{{ param.checkTypeName ? param.checkTypeName : "请选择" }}</text>
|
| | | <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
|
| | | </view>
|
| | | </view>
|
| | |
| | | <text>情况说明</text>
|
| | | </view>
|
| | | <view class="value">
|
| | | <textarea placeholder="请详细描述现场情况,不少于10个字" minlength="10" v-model="param.content"
|
| | | <textarea placeholder="请详细描述现场情况" v-model="param.content"
|
| | | placeholder-style="color: #999999;" />
|
| | | </view>
|
| | | </view>
|
| | |
| | | @close="isShowArea = false" @cancel="isShowArea = false"></u-picker>
|
| | | <u-picker keyName="name" :show="isShowType" closeOnClickOverlay :columns="areaType" @confirm="seletedType"
|
| | | @close="isShowType = false" @cancel="isShowType = false"></u-picker>
|
| | | <!-- 检查类型 -->
|
| | | <u-picker keyName="name" :show="isShow" closeOnClickOverlay :columns="checkTypeList" @confirm="seletedTypeVal"
|
| | | @close="isShow = false" @cancel="isShow = false"></u-picker>
|
| | | <!-- -->
|
| | | <u-datetime-picker :show="isShowTime" :formatter="formatter" :minDate="new Date().getTime()" mode="datetime" closeOnClickOverlay
|
| | | @cancel="isShowTime = false" @close="isShowTime = false" @confirm="seletedDate"></u-datetime-picker>
|
| | |
| | | param: {},
|
| | | submitFileList: [],
|
| | |
|
| | | isShow: false,
|
| | | isShowCompany: false,
|
| | | isShowArea: false,
|
| | | isShowType: false,
|
| | |
| | | deptList: [],
|
| | | areaOptions: [],
|
| | | areaType: [],
|
| | | checkTypeList: [],
|
| | | }
|
| | | },
|
| | | onLoad(option) {
|
| | |
| | | console.log(item)
|
| | | this.isShowType = false
|
| | | },
|
| | | seletedTypeVal(e) {
|
| | | const item = e.value[0]
|
| | | this.$set(this.param, 'checkTypeId', item.id)
|
| | | this.$set(this.param, 'checkTypeName', item.name)
|
| | | console.log(item)
|
| | | this.isShow = false
|
| | | },
|
| | | seletedSafety(e) {
|
| | |
|
| | | },
|
| | |
| | | this.deptList = [res.data]
|
| | | })
|
| | | DangerConfigType({
|
| | | type: '2'
|
| | | }).then(res => {
|
| | | this.checkTypeList = [res.data]
|
| | | this.$set(this.param, 'checkTypeId', res.data[0].id)
|
| | | this.$set(this.param, 'checkTypeName', res.data[0].name)
|
| | | })
|
| | | DangerConfigType({
|
| | | type: '1'
|
| | | }).then(res => {
|
| | | this.areaType = [res.data]
|
| | |
| | | // if(connection != null){ |
| | | // connection.disconnect(); |
| | | // } |
| | | |
| | | } |
| | | return null; |
| | | } |
| | |
| | | String hkToken = DESUtil.generateTokenToHk(loginUserInfo.getUsername(),Integer.valueOf( |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_TOKEN_VALIDITY).getCode() |
| | | ),redisTemplate); |
| | | String url = (type==6?"":(systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode())) |
| | | String url = (systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + |
| | | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode()) |
| | | + HKService.getMenuUrl(type,hkToken); |
| | | try { |
| | | if(redisTemplate!=null&& jwtProperties!=null){ |
| | |
| | | } |
| | | InputStream inputStream = HttpsUtil.connectionInputsteam(param.getUrl(),"GET",null,null); |
| | | if(inputStream == null){ |
| | | if(StringUtils.isBlank(param.getUrl())){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"文件下载失败,请检查文件路径是否合法!"); |
| | | } |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"文件下载失败,请检查文件路径是否合法!"); |
| | | } |
| | | if(StringUtils.isBlank(param.getFileName())){ |
| | | param.setFileName(System.currentTimeMillis()+""); |
| | |
| | | |
| | | @ApiModelProperty(value = "更新时间") |
| | | @ExcelColumn(name="更新时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "是否删除0否 1是", example = "1") |
| | |
| | | @ApiModelProperty(value = "责任部门编码(关联company)", example = "1") |
| | | @TableField(exist = false ) |
| | | private String fileurlFull; |
| | | @ApiModelProperty(value = "创建人名称", example = "1") |
| | | @TableField(exist = false ) |
| | | private String creatorName; |
| | | } |
| | |
| | | import com.doumee.dao.business.model.Company; |
| | | import com.doumee.dao.business.model.CompanyDocuments; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.CompanyDocumentsService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | | if(StringUtils.isNotBlank(companyDocuments.getFileurl())){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_LOCAL_RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.FTP,Constants.COMPANY_DOCUMENTS).getCode(); |
| | | companyDocuments.setFileurlFull(path + companyDocuments.getFileurl()); |
| | | } |
| | |
| | | queryWrapper.selectAll(CompanyDocuments.class) |
| | | .selectAs(Company::getName,CompanyDocuments::getCompanyName) |
| | | .selectAs(Category::getName,CompanyDocuments::getCategoryName) |
| | | .selectAs(SystemUser::getRealname,CompanyDocuments::getCreatorName) |
| | | .leftJoin(Company.class,Company::getId,CompanyDocuments::getCompanyId) |
| | | .leftJoin(Category.class,Category::getId,CompanyDocuments::getCategoryId) |
| | | .leftJoin(SystemUser.class,SystemUser::getId,CompanyDocuments::getCreator) |
| | | .eq(CompanyDocuments::getIsdeleted,Constants.ZERO) |
| | | .like(Objects.nonNull(queryModel)&&StringUtils.isNotBlank(queryModel.getName()),CompanyDocuments::getName,queryModel.getName()) |
| | | .eq(Objects.nonNull(queryModel)&&Objects.nonNull(queryModel.getCategoryId()),CompanyDocuments::getCategoryId,queryModel.getCategoryId()) |
| | |
| | | .orderByDesc(CompanyDocuments::getSortnum) |
| | | .orderByDesc(CompanyDocuments::getCreateDate); |
| | | IPage<CompanyDocuments> iPage = companyDocumentsMapper.selectJoinPage(page, CompanyDocuments.class,queryWrapper); |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode() |
| | | String path = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_LOCAL_RESOURCE_PATH).getCode() |
| | | +systemDictDataBiz.queryByCode(Constants.FTP,Constants.COMPANY_DOCUMENTS).getCode(); |
| | | for (CompanyDocuments companyDocuments:iPage.getRecords()) { |
| | | companyDocuments.setFileurlFull(path + companyDocuments.getFileurl()); |
| | |
| | | .leftJoin(HiddenDangerParam.class,HiddenDangerParam::getId,HiddenDanger::getCateId) |
| | | .leftJoin("company t4 on t1.company_id=t4.id") |
| | | .leftJoin("company t5 on t2.company_id=t5.id") |
| | | .leftJoin("hidden_danger_param t6 on t2.check_type_id=t6.id"); |
| | | .leftJoin("hidden_danger_param t6 on t.check_type_id=t6.id"); |
| | | queryWrapper |
| | | .eq(HiddenDanger::getId, id) |
| | | .eq(HiddenDanger::getIsdeleted, Constants.ZERO) |
| | |
| | | .leftJoin(Member.class,Member::getId,HiddenDanger::getCheckUserId) |
| | | .leftJoin(HiddenDangerParam.class,HiddenDangerParam::getId,HiddenDanger::getCateId) |
| | | .leftJoin("company t4 on t1.company_id=t4.id") |
| | | .leftJoin("hidden_danger_param t6 on t2.check_type_id=t6.id") |
| | | .leftJoin("hidden_danger_param t6 on t.check_type_id=t6.id") |
| | | .leftJoin("company t5 on t2.company_id=t5.id"); |
| | | |
| | | //数据权限开始--------------------start---------------- |