| | |
| | | open (title, target, categorys, categoryType, parentId) { |
| | | this.title = title |
| | | this.categorys = JSON.parse(JSON.stringify(categorys||[])); |
| | | console.log(this.categorys) |
| | | console.log(parentId) |
| | | this.visible = true |
| | | this.form = { |
| | | id: null, |
| | |
| | | this.title = title |
| | | this.categorys = JSON.parse(JSON.stringify(categorys||[])); |
| | | // this.categorys = this.getTreeData(this.categorys) |
| | | console.log(this.categorys) |
| | | console.log(parentId) |
| | | this.visible = true |
| | | this.form = { |
| | | id: null, |
| | |
| | | remark: '', |
| | | categoryList: [], |
| | | sortnum: null, |
| | | parentId: parentId |
| | | parentId: parentId || null |
| | | } |
| | | this.form.type = categoryType |
| | | // 新建 |
| | |
| | | status: '', |
| | | sortnum: '', |
| | | imgurl: '', |
| | | type: '', |
| | | parentId: '', |
| | | code: '', |
| | | type: null, |
| | | parentId: null, |
| | | code: null, |
| | | qwId: '', |
| | | namePath: '', |
| | | idPath: '' |
| | |
| | | <div class="value">{{ info.submitDate }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">发生时间</div> |
| | | <div class="label">发现时间</div> |
| | | <div class="value">{{ info.happenTime}}</div> |
| | | </div> |
| | | <div class="item"> |
| | |
| | | <div class="label">风险描述</div> |
| | | <div class="value">{{ info.riskInfo }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="label">通知人</div> |
| | | <div class="value">{{ info.memberNames }}</div> |
| | | </div> |
| | | <div class="item" style="width: 100%"> |
| | | <div class="label">图片</div> |
| | | <div class="value" v-if="info.multifileList ==null || !info.multifileList.length">无</div> |
| | |
| | | <div class="table_info"> |
| | | <div class="title">不符合项工单列表</div> |
| | | <el-table :data="info.dcaChildList" border fit> |
| | | <el-table-column prop="index" label="序号" width="55" fixed="left"> |
| | | <template slot-scope="scope">{{ scope.$index+1}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="工单号" prop="code" min-width="100"> |
| | | <template slot-scope="{row}"> |
| | | <span style="color: #2E68EC;cursor: pointer" @click="$refs.OperaWorkorderDetailDcaInfoWindow.open('DCA不符合项工单详情', row)" >{{ row.code || '-'}}</span> |
| | |
| | | <!--<el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:workorder:delete']">删除</el-button>--> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div class="table_info"> |
| | | <div class="title">符合项列表</div> |
| | | <el-table :data="dataList2" border fit> |
| | | <el-table-column prop="index" label="序号" width="55" fixed="left"> |
| | | <template slot-scope="scope">{{ scope.$index+1}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="一级主题" prop="typeName" min-width="160"> </el-table-column> |
| | | <el-table-column label="二级主题" prop="categoryName" min-width="150"> </el-table-column> |
| | | <el-table-column label="观察项" prop="problemTitle" min-width="400"> </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | |
| | | type: null, |
| | | title: '工单详情', |
| | | info: {}, |
| | | dataList2: [], |
| | | statusMap: { |
| | | 0: '待分配WTS', |
| | | 1: '待分配任务', |
| | |
| | | getDetail () { |
| | | getById(this.info.id).then(res => { |
| | | this.info = res |
| | | this.getDataListByRemak() |
| | | if (this.info.logList && this.info.logList.length > 0) { |
| | | this.info.logList.forEach(item => { |
| | | if (item.approveList && item.approveList.length == 1 && item.type !== 1) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getDataListByRemak () { |
| | | this.dataList2 =[] |
| | | if(this.info.remark){ |
| | | var obj = JSON.parse(this.info.remark) |
| | | console.log(obj) |
| | | if(obj && obj.childMapList){ |
| | | obj.childMapList.forEach(item =>{ |
| | | if(item && item.problemMapList){ |
| | | item.problemMapList.forEach(item1 =>{ |
| | | if(item1 && item1.status === 1){ |
| | | this.dataList2.push({'typeName':this.info.typeName, 'categoryName':item.childTitle,'problemTitle':item1.title}) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | } |
| | | }, |
| | | reject () { }, |
| | | handleAvatarSuccess () { }, |
| | | beforeAvatarUpload () { } |
| | |
| | | const height3 = getEleHeghtByClassName('main-header', 0) |
| | | // const height4 = getEleHeghtByClassName('table-pagination', 0,-20) |
| | | const height2 = getEleHeghtByClassName('toolbar', 0) |
| | | console.log('defualtlength', document.getElementsByClassName('table-search-form').length) |
| | | // console.log('defualtlength', document.getElementsByClassName('table-search-form').length) |
| | | router.app.$store.commit('setTableHeightNew', height - height4 - height3 - height2 - height1 - height5 - height13) |
| | | console.log('gableHeightNew', router.app.$store.state.tableHeightNew) |
| | | // console.log('gableHeightNew', router.app.$store.state.tableHeightNew) |
| | | } |
| | | |
| | | function getEleHeghtByClassName (name, dv, margin) { |
| | |
| | | sortnum: '', |
| | | imgurl: '', |
| | | type: '', |
| | | parentId: '', |
| | | parentId: null, |
| | | namePath: '', |
| | | idPath: '' |
| | | } |
| | |
| | | keyword: '', |
| | | type: 2, |
| | | isRoot: 1, |
| | | parentId: '', |
| | | parentId: null, |
| | | parentIdPath: null |
| | | }, |
| | | loading: false, |
| | |
| | | name: '', |
| | | keyword: '', |
| | | type: 1, |
| | | parentId: '', |
| | | parentId: null, |
| | | isRoot: 1, |
| | | parentIdPath: null |
| | | }, |
| | |
| | | keyword: '', |
| | | type: 3, |
| | | isRoot: 1, |
| | | parentId: '', |
| | | parentId: null, |
| | | parentIdPath: null |
| | | }, |
| | | loading: false, |
| | |
| | | name: '', |
| | | keyword: '', |
| | | type: 4, |
| | | parentId: '', |
| | | parentId: null, |
| | | isRoot: 1, |
| | | parentIdPath: null |
| | | }, |
| | |
| | | name: '', |
| | | keyword: '', |
| | | type: 5, |
| | | parentId: '', |
| | | parentId: null, |
| | | isRoot: 1, |
| | | parentIdPath: null |
| | | }, |
| | |
| | | name: '', |
| | | keyword: '', |
| | | type: 0, |
| | | parentId: '', |
| | | parentId: null, |
| | | isRoot: 1, |
| | | parentIdPath: null |
| | | }, |
| | |
| | | sortnum: '', |
| | | imgurl: '', |
| | | type: '', |
| | | parentId: '', |
| | | parentId: null, |
| | | code: '', |
| | | qwId: '', |
| | | namePath: '', |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyName" label="所属部门" min-width="100px"></el-table-column> |
| | | <el-table-column prop="memberNames" label="通知人" min-width="100px"></el-table-column> |
| | | <el-table-column prop="createDate" label="创建时间" min-width="150px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:workorder:update', 'business:workorder:delete'])" |
| | |
| | | import org.springframework.web.server.ServerWebExchange; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigInteger; |
| | | import java.security.MessageDigest; |
| | | import java.security.NoSuchAlgorithmException; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.UUID; |
| | | |
| | | /** |
| | | * JWT获取令牌和刷新令牌接口 |
| | |
| | | return ApiResponse.failed( "登录已失效"); |
| | | } |
| | | |
| | | @ApiOperation("获取企业微信JS签名") |
| | | @PostMapping("/getQwSignature") |
| | | @ResponseBody |
| | | public ApiResponse<Object> getQwSignature(@RequestBody String url) { |
| | | |
| | | /* Map jsapiTicket = s; |
| | | String ticket = jsapiTicket.get("ticket").toString(); |
| | | String noncestr = UUID.randomUUID().toString(); |
| | | Long timestamp = System.currentTimeMillis() / 1000; |
| | | |
| | | String jsapiTicketStr = ticket + "&noncestr=" + noncestr + "×tamp=" + timestamp + "&url=" + url; |
| | | try { |
| | | MessageDigest instance = MessageDigest.getInstance("SHA-1"); |
| | | instance.update(jsapiTicketStr.getBytes()); |
| | | byte[] digest = instance.digest(); |
| | | BigInteger bigInteger = new BigInteger(1, digest); |
| | | String string = bigInteger.toString(); |
| | | Map<String, Object> result = new HashMap<>(); |
| | | result.put("noncestr", noncestr); |
| | | result.put("jsapi_ticket", string); |
| | | result.put("timestamp", timestamp); |
| | | result.put("url", url); |
| | | result.put("ticket", ticket); |
| | | return ApiResponse.success( result); |
| | | } catch (NoSuchAlgorithmException e) { |
| | | throw new RuntimeException(e); |
| | | }*/ |
| | | return ApiResponse.failed( "获取签名失败"); |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty("提报人员所属部门") |
| | | @ExcelColumn(name="所属部门",index =14,width = 8) |
| | | private String companyName; |
| | | @ApiModelProperty("通知人") |
| | | @ExcelColumn(name="通知人",index =15,width = 10) |
| | | private String memberNames; |
| | | @ApiModelProperty(value = "提交时间") |
| | | @ExcelColumn(name="提交时间",index =15 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10) |
| | | @ExcelColumn(name="提交时间",index =16 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10) |
| | | private Date createDate; |
| | | |
| | | |
| | |
| | | @ExcelColumn(name="发现时间",index =6 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10) |
| | | private Date happenTime; |
| | | @ApiModelProperty(value = "符合项数量", example = "1") |
| | | @ExcelColumn(name="符合项数量",index =7,width = 4) |
| | | @ExcelColumn(name="符合项数量",index =7,width = 8) |
| | | private Integer dcaYesNum; |
| | | @ApiModelProperty(value = "不符合项数量", example = "1") |
| | | @ExcelColumn(name="不符合项数量",index =8,width = 4) |
| | | @ExcelColumn(name="不符合项数量",index =8,width = 8) |
| | | private Integer dcaNoNum; |
| | | @ApiModelProperty(value = "位置", example = "1") |
| | | @ExcelColumn(name="位置",index =9 ,width = 10) |
| | |
| | | |
| | | @Override |
| | | public List<Category> findList(Category category) { |
| | | category.setIsdeleted(Constants.ZERO); |
| | | MPJLambdaWrapper<Category> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Category.class); |
| | | queryWrapper.selectAs(SystemUser::getUsername,Category::getEditorName); |