projectAddPage.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  1. <!--新增计划/编辑计划/计划详情-->
  2. <template>
  3. <div class="page-container projectAddPage">
  4. <div class="page-top-title-box">
  5. <p class="page-top-title-name-p">{{lookInfoType?'计划详情':(propsData.planId?'编辑计划':'创建计划')}}</p>
  6. <p class="page-top-title-out-p" @click="backPage">返回</p>
  7. <p class="page-top-title-add-p" @click="submitForm" v-if="!lookInfoType">提交</p>
  8. </div>
  9. <div class="content-box">
  10. <div class="content-left-box" v-if="!lookInfoType">
  11. <div class="content-left-title-box">
  12. <span class="iconfont icon-a-gengduo4"></span>
  13. <p>计划标题快选</p>
  14. </div>
  15. <div class="content-left-for-max-box scrollbar-box">
  16. <div class="content-left-for-title-box" v-for="(item,index) in leftTitleList" :key="index">
  17. <p @click="titleFastSelect(item.planTitle)">{{item.planTitle}}</p>
  18. <p v-if="item.type" class="el-icon-circle-close" @click="delTitleFast(item)"></p>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="content-right-box scrollbar-box">
  23. <!--校级角标-->
  24. <img class="corner-mark-img" v-if="schoolCollegeType == 'school'"
  25. src="@/assets/ZDimages/safetyCheck/icon_aqjc_xx@1x.png">
  26. <!--院级角标-->
  27. <img class="corner-mark-img" v-if="schoolCollegeType == 'college'"
  28. src="@/assets/ZDimages/safetyCheck/icon_jcjh_xy@1x.png">
  29. <!--计划任务-->
  30. <el-form class="add-form-box" :model="dialogForm" ref="form" :rules="rules" label-width="180px">
  31. <div class="content-right-project-box">
  32. <p class="project-title-p">计划任务</p>
  33. <el-form-item label="计划标题" prop="planTitle" style="margin-top:20px;">
  34. <el-input v-model="dialogForm.planTitle" :disabled="lookInfoType" placeholder="请输入计划标题" maxLength="30" style="width:450px;"></el-input>
  35. </el-form-item>
  36. <div class="content-right-form-display">
  37. <el-form-item label="检查类型" prop="checkTypeValue">
  38. <el-select v-model="dialogForm.checkTypeValue" @change="checkTypeValueChange" :disabled="lookInfoType" placeholder="请选择检查类型" style="width: 450px">
  39. <el-option
  40. v-for="dict in inspectType"
  41. :key="dict.value"
  42. :label="dict.label"
  43. :value="dict.value"
  44. ></el-option>
  45. </el-select>
  46. </el-form-item>
  47. <div class="intersect-inspect-box" @click="intersectInspectCheck"
  48. :class="dialogForm.crossCheck?'intersect-inspect-check-box':''">
  49. <p>交叉互检</p>
  50. <img v-if="dialogForm.crossCheck" src="@/assets/ZDimages/safetyCheck/icom_xjjc_jcjc@1x.png">
  51. </div>
  52. </div>
  53. <div class="content-right-form-display" v-if="!lookInfoType">
  54. <el-form-item label="检查范围" prop="checkRange">
  55. <el-radio-group v-model="dialogForm.checkRange" @change="checkRangeChange" :disabled="lookInfoType" style="min-width:90px;">
  56. <el-radio :label="1" v-if="schoolCollegeType == 'school'">全校</el-radio>
  57. <el-radio :label="3" style="margin-right:40px;">实验室</el-radio>
  58. </el-radio-group>
  59. </el-form-item>
  60. <div class="sub-button-box"
  61. v-if="dialogForm.checkRange == 3">
  62. <p @click="subCheckButton(1)">待检查实验室</p>
  63. </div>
  64. <p class="sub-num-p">待检查实验室共{{dialogForm.subjectNum}}间</p>
  65. </div>
  66. <div class="content-right-form-display" v-if="lookInfoType">
  67. <el-form-item label="检查范围" prop="checkRange">
  68. </el-form-item>
  69. <p class="sub-num-p" v-if="dialogForm.checkRange == 1" style="margin-right:20px;">全校检查</p>
  70. <p class="sub-num-p" v-if="dialogForm.checkRange == 3" style="margin-right:20px;">实验室检查</p>
  71. <p class="sub-num-p" style="margin-right:20px;">待检查实验室共{{dialogForm.subjectNum}}间</p>
  72. <div class="sub-button-box" style="margin-left:0;" v-if="dialogForm.checkRange == 3">
  73. <p @click="subCheckButton(1)">查看实验室</p>
  74. </div>
  75. </div>
  76. <div class="content-right-form-display">
  77. <el-form-item label="计划周期" prop="dateRange">
  78. <el-date-picker
  79. :disabled="lookInfoType"
  80. :clearable="false"
  81. v-model="dialogForm.dateRange"
  82. style="width:450px;"
  83. value-format="yyyy-MM-dd"
  84. type="daterange"
  85. range-separator="-"
  86. :picker-options="pickerOptions"
  87. start-placeholder="开始日期"
  88. end-placeholder="结束日期"
  89. ></el-date-picker>
  90. </el-form-item>
  91. <div class="date-range-right-box" v-if="!lookInfoType">
  92. <p @click="checkTime(1)">本月</p>
  93. <p @click="checkTime(2)">本季度</p>
  94. <p @click="checkTime(3)">全年</p>
  95. </div>
  96. </div>
  97. <el-form-item label="检查组织" prop="checkGroupId">
  98. <el-select
  99. :disabled="lookInfoType"
  100. style="width:450px;"
  101. v-model="dialogForm.checkGroupId"
  102. filterable
  103. remote
  104. reserve-keyword
  105. @change="selectChange"
  106. placeholder="搜索选择督导组"
  107. :remote-method="securityCheckGroupFindGroupList">
  108. <el-option
  109. v-for="item in supervisorOptions"
  110. :key="item.groupId"
  111. :label="item.groupName"
  112. :value="item.groupId">
  113. </el-option>
  114. </el-select>
  115. <span class="user-button-span" v-if="dialogForm.checkGroupId" @click="lookMemberList">成员列表</span>
  116. </el-form-item>
  117. <el-form-item label="检查要求1:" prop="checkDemand">
  118. <el-input
  119. v-if="!lookInfoType"
  120. :disabled="lookInfoType"
  121. type="textarea"
  122. :autosize="{ minRows: 4, maxRows: 4}"
  123. placeholder="请输入检查要求"
  124. v-model="dialogForm.checkDemand"
  125. maxlength="200"
  126. resize="none"
  127. show-word-limit
  128. style="width:450px;">
  129. </el-input>
  130. <p v-if="lookInfoType" class="checkDemand-textarea-p">{{dialogForm.checkDemand?dialogForm.checkDemand:'无'}}</p>
  131. </el-form-item>
  132. <el-form-item label="材料附件:">
  133. <div class="avatar-uploader-button-box" v-if="dialogForm.uploadDtoList.length<5&&!lookInfoType">
  134. <el-upload
  135. class="avatar-uploader"
  136. :action="uploadFileUrl"
  137. :show-file-list="false"
  138. :on-success="(res)=>handleAvatarSuccess(res)"
  139. :headers="headers"
  140. :before-upload="beforeAvatarUpload">
  141. <p class="avatar-uploader-button" style="width:120px;">+ 选择文件</p>
  142. </el-upload>
  143. <p class="avatar-uploader-text">支持docx/xlsx/pdf格式文件</p>
  144. </div>
  145. <div class="up-data-table-box">
  146. <el-table class="table-box table-null-img-10" border :data="dialogForm.uploadDtoList">
  147. <el-table-column label="文件名" prop="fileName" show-overflow-tooltip/>
  148. <el-table-column label="操作" width="300" show-overflow-tooltip>
  149. <template slot-scope="scope">
  150. <div class="table-button-box">
  151. <p class="table-button-null"></p>
  152. <p class="table-button-p"
  153. @click="lookUploadFile(scope.row)"
  154. >查看</p>
  155. <p class="table-button-p"
  156. v-if="!lookInfoType"
  157. @click="delUploadFile(scope.$index, scope.row)"
  158. >删除</p>
  159. <p class="table-button-p"
  160. v-if="lookInfoType"
  161. @click="downloadButton(scope.row)"
  162. >下载</p>
  163. <p class="table-button-null"></p>
  164. </div>
  165. </template>
  166. </el-table-column>
  167. </el-table>
  168. </div>
  169. </el-form-item>
  170. <p class="project-title-p" style="margin-top:20px;border-top:1px solid #e0e0e0;">检查设置</p>
  171. <div class="inspect-for-max-big-box" v-for="(item,index) in dialogForm.checkPlanSetDtoList" :key="index">
  172. <p class="for-index-p">{{index+1}}</p>
  173. <img src="@/assets/ZDimages/safetyCheck/icon_jcsz_gb@1x.png" class="del-button" v-if="dialogForm.checkPlanSetDtoList[1]&&!lookInfoType" @click="delInspect(index)">
  174. <el-form-item label="检查名称" :prop="'checkPlanSetDtoList.'+index+'.checkName'" :rules="rules.checkName" style="margin-top:20px;">
  175. <el-input v-model="item.checkName" :disabled="lookInfoType" clearable placeholder="请输入检查名称" maxLength="20" style="width:450px;"></el-input>
  176. </el-form-item>
  177. <el-form-item label="检查开始日期" :prop="'checkPlanSetDtoList.'+index+'.checkStartTime'" :rules="rules.checkName">
  178. <el-date-picker
  179. :disabled="lookInfoType"
  180. style="width:450px;"
  181. v-model="item.checkStartTime"
  182. value-format="yyyy-MM-dd"
  183. type="date"
  184. :picker-options="pickerOptions"
  185. placeholder="请选择检查开始日期">
  186. </el-date-picker>
  187. </el-form-item>
  188. <div class="content-right-form-display">
  189. <el-form-item label="整改期限" :prop="'checkPlanSetDtoList.'+index+'.rectifyDeadline'" :rules="rules.checkName">
  190. <el-date-picker
  191. :disabled="lookInfoType"
  192. style="width:450px;"
  193. v-model="item.rectifyDeadline"
  194. value-format="yyyy-MM-dd"
  195. type="date"
  196. :picker-options="pickerOptions"
  197. placeholder="请选整改期限">
  198. </el-date-picker>
  199. </el-form-item>
  200. <div class="overdue-check-box" @click="overdueCheck(index)" v-if="!lookInfoType">
  201. <div>
  202. <p v-if="item.overdueUnrectify"></p>
  203. </div>
  204. <p class="overdue-p">逾期未完成整改关闭实验室</p>
  205. </div>
  206. <div class="overdue-check-box" v-if="lookInfoType&&item.overdueUnrectify">
  207. <p class="overdue-p" style="margin-left:20px;">逾期未完成整改关闭实验室</p>
  208. </div>
  209. </div>
  210. <div class="content-right-form-display">
  211. <el-form-item label="检查项目来源" :prop="'checkPlanSetDtoList.'+index+'.checkBasisIds'" :rules="rules.checkBasisIds">
  212. <el-select v-model="item.checkBasisIds"
  213. multiple
  214. :collapse-tags="!lookInfoType"
  215. :disabled="lookInfoType"
  216. @change="(val)=>checkBasis(val,index)"
  217. placeholder="请选择检查项目来源" style="width: 450px">
  218. <el-option
  219. v-for="dict in inspectSource"
  220. :key="dict.basisId"
  221. :label="dict.basisName"
  222. :value="dict.basisId"
  223. ></el-option>
  224. </el-select>
  225. </el-form-item>
  226. <p class="color-text" v-if="!lookInfoType">检查依据模版</p>
  227. </div>
  228. </div>
  229. </div>
  230. <p class="add-button-p" @click="addInspect" v-if="!lookInfoType">+</p>
  231. </el-form>
  232. </div>
  233. </div>
  234. <el-dialog class="memberData-dialog-box"
  235. :close-on-click-modal="false"
  236. title="成员列表" :visible.sync="lookMemberType" v-if="lookMemberType"
  237. width="600px" append-to-body>
  238. <p class="memberData-dialog-title-p">{{dialogForm.checkGroupName}}</p>
  239. <p class="memberData-dialog-user-p">督导组负责人:{{memberUserName}}</p>
  240. <div class="memberData-dialog-content-box">
  241. <el-table class="table-box" border :data="memberData">
  242. <el-table-column label="序号" type="index" width="50"/>
  243. <el-table-column label="姓名" prop="userName" show-overflow-tooltip/>
  244. <el-table-column label="工号" prop="account" width="150" show-overflow-tooltip/>
  245. <el-table-column label="所在部门" prop="deptName" width="200" show-overflow-tooltip/>
  246. </el-table>
  247. <pagination :page-sizes="[20, 30, 40, 50]"
  248. v-show="memberTotal>0"
  249. :total="memberTotal"
  250. :page.sync="memberQueryParams.page"
  251. :limit.sync="memberQueryParams.pageSize"
  252. @pagination="getUserList"
  253. />
  254. </div>
  255. <div slot="footer" class="dialog-footer dialog-footer-box">
  256. <p class="dialog-footer-button-null"></p>
  257. <p class="dialog-footer-button-primary" @click="lookMemberList()">关闭</p>
  258. <p class="dialog-footer-button-null"></p>
  259. </div>
  260. </el-dialog>
  261. <fullScreenFileLook ref="fullScreenFileLook"></fullScreenFileLook>
  262. <sub-dialog v-if="subCheckType" :subCheckData="subCheckData" :schoolCollegeType="schoolCollegeType"></sub-dialog>
  263. </div>
  264. </template>
  265. <script>
  266. import { getToken } from "@/utils/auth";
  267. import fullScreenFileLook from "@/components/fullScreenFileLook/fullScreenFileLook.vue";
  268. import subDialog from "@/views/safetyCheck/components/subDialog.vue";
  269. import {
  270. laboratorySubRelInfoGetAllSubNum,
  271. checkPlanGetHistoryPlanTitles,
  272. checkPlanHideHistoryPlanTitle,
  273. securityCheckBasisGetList,
  274. securityCheckGroupFindGroupList,
  275. securityCheckGroupMemberGroupMemberList,
  276. securityMemberPlanMemberList,
  277. securityCheckPlanAdd,
  278. securityCheckPlanUpdate,
  279. securityCheckPlanFindCheckPlan,
  280. } from '@/api/safetyCheck/index'
  281. export default {
  282. name: 'addPage',
  283. components: {
  284. fullScreenFileLook,
  285. subDialog,
  286. },
  287. props:{
  288. propsData:{},
  289. },
  290. data(){
  291. return{
  292. //查看详情状态
  293. lookInfoType:false,
  294. // 父级页面类型
  295. schoolCollegeType:null,//1.校级 2.院级
  296. uploadFileUrl: this.uploadUrl(), // 上传的图片服务器地址
  297. headers: {
  298. Authorization: getToken(),
  299. },
  300. //上传文件名称暂存
  301. upDataName:"",
  302. // 设置只能选择当前日期及之后的日期
  303. pickerOptions: {
  304. disabledDate(time) {
  305. return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
  306. }
  307. },
  308. //检查类型
  309. inspectType:[],
  310. //检查项目来源
  311. inspectSource:[],
  312. //督导组
  313. supervisorOptions:[],
  314. dialogForm:{
  315. planTitle:"",
  316. checkTypeValue:null,
  317. checkTypeName:'',
  318. crossCheck:false,
  319. checkRange:null,
  320. subIds:[],
  321. subjectNum:0,
  322. dateRange:[],
  323. checkGroupId:null,
  324. checkGroupName:'',
  325. checkDemand:"",
  326. uploadDtoList:[],
  327. checkPlanSetDtoList:[
  328. {
  329. checkName:'第1次检查',
  330. checkStartTime:'',
  331. rectifyDeadline:'',
  332. checkBasisIds:null,
  333. overdueUnrectify:false,
  334. },
  335. ],
  336. },
  337. rules:{
  338. planTitle: [
  339. { required: true, message: "请输入计划标题", trigger: "blur" },
  340. { required: true, message: "请输入计划标题", validator: this.spaceJudgment, trigger: "blur" }
  341. ],
  342. checkTypeValue: [
  343. { required: true, message: "请选择检查类型", trigger: "blur" },
  344. ],
  345. checkRange: [
  346. { required: true, message: "请选择检查范围", trigger: "blur" },
  347. ],
  348. dateRange: [
  349. { required: true, message: "请选择计划周期", trigger: "blur" },
  350. ],
  351. checkGroupId: [
  352. { required: true, message: "搜索选择督导组", trigger: "blur" },
  353. ],
  354. checkName: [
  355. { required: true, message: "请输入检查名称", trigger: "blur" },
  356. { required: true, message: "请输入检查名称", validator: this.spaceJudgment, trigger: "blur" }
  357. ],
  358. checkStartTime: [
  359. { required: true, message: "请输入检查名称", trigger: "blur" },
  360. ],
  361. rectifyDeadline: [
  362. { required: true, message: "请选择检查开始日期", trigger: "blur" },
  363. ],
  364. checkBasisIds: [
  365. { required: true, message: "请选择检查项目来源", trigger: "blur" },
  366. ],
  367. },
  368. leftTitleList:[],
  369. //实验室选择
  370. subCheckType:false,
  371. subCheckData:[],
  372. //督导组成员
  373. lookMemberType:false,
  374. memberData:[],
  375. memberTotal:0,
  376. memberQueryParams:{
  377. page:1,
  378. pageSize:20,
  379. },
  380. memberUserName:'',
  381. }
  382. },
  383. created(){
  384. this.initialize();
  385. this.securityCheckGroupFindGroupList();
  386. },
  387. mounted(){
  388. },
  389. methods:{
  390. //初始化
  391. initialize(){
  392. this.getDicts("check_type").then(response => {
  393. this.$set(this,'inspectType',response.data);
  394. });
  395. //检查依据-下拉列表
  396. this.securityCheckBasisGetList();
  397. if(this.propsData.rank == 'school'){
  398. //school学校
  399. this.$set(this,'schoolCollegeType','school');
  400. }else if (this.propsData.rank == 'college'){
  401. //college学院
  402. this.$set(this,'schoolCollegeType','college');
  403. }
  404. if(this.propsData.showType){
  405. //查看
  406. this.$set(this,'lookInfoType',true);
  407. //详情接口
  408. this.securityCheckPlanFindCheckPlan();
  409. }else{
  410. //查询历史标题列表
  411. this.checkPlanGetHistoryPlanTitles();
  412. this.$set(this,'lookInfoType',false);
  413. if (this.propsData.planId){
  414. //编辑
  415. //详情接口
  416. this.securityCheckPlanFindCheckPlan();
  417. } else {
  418. //新增
  419. if (this.propsData.rank == 'school'){
  420. this.$set(this.dialogForm,'checkRange',1);
  421. //查询全校实验室数量
  422. this.laboratorySubRelInfoGetAllSubNum();
  423. }else if(this.propsData.rank == 'college'){
  424. this.$set(this.dialogForm,'checkRange',3);
  425. this.$set(this.dialogForm,'subjectNum',this.dialogForm.subIds.length);
  426. }
  427. }
  428. }
  429. },
  430. //新增检查
  431. addInspect(){
  432. if(this.dialogForm.checkPlanSetDtoList[11]){
  433. this.msgError('最多支持12次检查');
  434. return
  435. }
  436. this.dialogForm.checkPlanSetDtoList.push({
  437. checkName:'第'+(this.dialogForm.checkPlanSetDtoList.length+1)+'次检查',
  438. checkStartTime:'',
  439. rectifyDeadline:'',
  440. checkBasisIds:null,
  441. overdueUnrectify:false,
  442. })
  443. },
  444. //删除检查
  445. delInspect(index){
  446. let self = this;
  447. self.$confirm('是否确认删除?', '', {
  448. confirmButtonText: '确定',
  449. cancelButtonText: '取消',
  450. type: 'warning'
  451. }).then(function() {
  452. //删除
  453. self.dialogForm.checkPlanSetDtoList.splice(index,1)
  454. }).then(() => {
  455. }).catch(() => {
  456. })
  457. },
  458. //选中检查类型
  459. checkTypeValueChange(val){
  460. let self = this;
  461. for(let i=0;i<self.inspectType.length;i++){
  462. if(val == self.inspectType[i].value){
  463. self.$set(self.dialogForm,'checkTypeName',self.inspectType[i].label);
  464. }
  465. }
  466. },
  467. //逾期关闭实验室操作
  468. overdueCheck(index){
  469. this.$set(this.dialogForm.checkPlanSetDtoList[index],'overdueUnrectify',!this.dialogForm.checkPlanSetDtoList[index].overdueUnrectify);
  470. },
  471. //懒加载督导组
  472. securityCheckGroupFindGroupList(e){
  473. securityCheckGroupFindGroupList({groupName:e}).then(response => {
  474. this.supervisorOptions = response.data;
  475. });
  476. },
  477. //督导组选择
  478. selectChange(e){
  479. let self = this;
  480. for(let i=0;i<self.supervisorOptions.length;i++){
  481. if(self.supervisorOptions[i].groupId == e){
  482. self.$set(self.dialogForm,"checkGroupId",self.supervisorOptions[i].groupId);
  483. self.$set(self.dialogForm,"checkGroupName",self.supervisorOptions[i].groupName);
  484. }
  485. }
  486. },
  487. //标题快选
  488. titleFastSelect(planTitle){
  489. this.$set(this.dialogForm,'planTitle',planTitle);
  490. },
  491. //删除快选标题
  492. delTitleFast(item){
  493. let self = this;
  494. self.$confirm('是否确认删除?', '', {
  495. confirmButtonText: '确定',
  496. cancelButtonText: '取消',
  497. type: 'warning'
  498. }).then(function() {
  499. //删除
  500. self.checkPlanHideHistoryPlanTitle(item);
  501. }).then(() => {
  502. }).catch(() => {
  503. })
  504. },
  505. //交叉检查选中
  506. intersectInspectCheck(){
  507. if(!this.lookInfoType){
  508. this.$set(this.dialogForm,'crossCheck',!this.dialogForm.crossCheck);
  509. }
  510. },
  511. //选中对应周期
  512. checkTime(type){
  513. let myDate = new Date();
  514. let year = myDate.getFullYear();
  515. let month = myDate.getMonth()+1;
  516. let day = myDate.getDate();
  517. let minTime = year + '-' + month + '-' + day
  518. let maxTime = '';
  519. if(type==1){
  520. maxTime = this.getMonthFinalDay(year,month);
  521. }else if(type==2){
  522. if(month>0 && month<4){
  523. maxTime = this.getMonthFinalDay(year,3);
  524. }else if(month>3 && month<7){
  525. maxTime = this.getMonthFinalDay(year,6);
  526. }else if(month>6 && month<10){
  527. maxTime = this.getMonthFinalDay(year,9);
  528. }else if(month>9 && month<13){
  529. maxTime = this.getMonthFinalDay(year,12);
  530. }
  531. }else if(type==3){
  532. maxTime = this.getMonthFinalDay(year,12);
  533. }
  534. let timeListA = minTime.split('-')
  535. minTime = timeListA[0]+'-'+(timeListA[1]<10?'0'+timeListA[1]:timeListA[1])+'-'+(timeListA[2]<10?'0'+timeListA[2]:timeListA[2])
  536. let timeListB = maxTime.split('-')
  537. maxTime = timeListB[0]+'-'+(timeListB[1]<10?'0'+timeListB[1]:timeListB[1])+'-'+(timeListB[2]<10?'0'+timeListB[2]:timeListB[2])
  538. this.$set(this.dialogForm,'dateRange',[minTime,maxTime]);
  539. },
  540. //返回指定月份最后一天
  541. getMonthFinalDay(year,month){
  542. var day='';
  543. if(year==null || year==undefined || year==''){
  544. year = new Date().getFullYear();
  545. }
  546. if(month==null || month==undefined || month==''){
  547. month = new Date().getMonth()+1;
  548. }
  549. day = new Date(new Date(year,month).setDate(0)).getDate();
  550. return year+"-"+month+"-"+day;
  551. },
  552. // 返回按钮
  553. backPage(){
  554. this.$parent.tableButton(6);
  555. },
  556. /** 提交按钮 */
  557. submitForm() {
  558. let self = this;
  559. this.$refs["form"].validate(valid => {
  560. if (valid) {
  561. //实验室检测
  562. if(self.dialogForm.checkRange == 3 && this.dialogForm.subjectNum<1){
  563. self.msgError('请选择实验室')
  564. return
  565. }
  566. //计划周期检查
  567. if(self.dialogForm.dateRange[0] == self.dialogForm.dateRange[1]){
  568. self.msgError('计划周期的开始时间与结束时间不能相同')
  569. return
  570. }
  571. //交叉检查-督导组成员数量检测
  572. if(this.dialogForm.crossCheck){
  573. for(let i=0;i<self.supervisorOptions.length;i++){
  574. if(self.supervisorOptions[i].groupId == self.dialogForm.checkGroupId){
  575. if(self.supervisorOptions[i].peopleNum < 2){
  576. self.msgError('督导组成员不足两人,无法使用交叉互检')
  577. return
  578. }
  579. }
  580. }
  581. }
  582. //日期检测
  583. for(let i=0;i<self.dialogForm.checkPlanSetDtoList.length;i++){
  584. if(self.dialogForm.checkPlanSetDtoList[i].checkStartTime == self.dialogForm.checkPlanSetDtoList[i].rectifyDeadline){
  585. self.msgError('第'+(i+1)+'个检查的检查开始日期与整改期限不能相同')
  586. return
  587. }
  588. if(self.timeToTimestamp(self.dialogForm.checkPlanSetDtoList[i].checkStartTime)<self.timeToTimestamp(self.dialogForm.dateRange[0]) ||
  589. self.timeToTimestamp(self.dialogForm.checkPlanSetDtoList[i].checkStartTime)>self.timeToTimestamp(self.dialogForm.dateRange[1])){
  590. self.msgError('第'+(i+1)+'个检查的检查开始日期必须在计划周期内')
  591. return
  592. }
  593. if(self.timeToTimestamp(self.dialogForm.checkPlanSetDtoList[i].rectifyDeadline)<self.timeToTimestamp(self.dialogForm.dateRange[0]) ||
  594. self.timeToTimestamp(self.dialogForm.checkPlanSetDtoList[i].rectifyDeadline)>self.timeToTimestamp(self.dialogForm.dateRange[1])){
  595. self.msgError('第'+(i+1)+'个检查的整改期限必须在计划周期内')
  596. return
  597. }
  598. }
  599. let obj = JSON.parse(JSON.stringify(this.dialogForm))
  600. obj.checkPlanSetDtoList.forEach((item)=>{
  601. item.checkBasisIds = item.checkBasisIds+'';
  602. })
  603. let newData = {
  604. planTitle:obj.planTitle,
  605. checkTypeName:obj.checkTypeName,
  606. checkTypeValue:obj.checkTypeValue,
  607. crossCheck:obj.crossCheck,
  608. checkRange:obj.checkRange,
  609. subIds:obj.checkRange == 1 ? '' : obj.subIds + '',
  610. subjectNum:obj.subjectNum,
  611. cycleStartTime:obj.dateRange[0],
  612. cycleEndTime:obj.dateRange[1],
  613. checkGroupId:obj.checkGroupId,
  614. checkGroupName:obj.checkGroupName,
  615. checkDemand:obj.checkDemand,
  616. checkPlanSetDtoList:obj.checkPlanSetDtoList,
  617. uploadDtoList:obj.uploadDtoList,
  618. }
  619. if(obj.planId){
  620. newData.planId = obj.planId;
  621. securityCheckPlanUpdate(newData).then(response => {
  622. this.msgSuccess(response.message)
  623. this.$parent.tableButton(6);
  624. });
  625. }else{
  626. if(this.schoolCollegeType == 'school'){
  627. newData.checkCategory = 1;
  628. }else if(this.schoolCollegeType == 'college'){
  629. newData.checkCategory = 2;
  630. }
  631. securityCheckPlanAdd(newData).then(response => {
  632. this.msgSuccess(response.message)
  633. this.$parent.tableButton(6);
  634. });
  635. }
  636. }
  637. })
  638. },
  639. //计划详情
  640. securityCheckPlanFindCheckPlan(){
  641. securityCheckPlanFindCheckPlan({planId:this.propsData.planId}).then(response => {
  642. response.data.checkPlanSetDtoList.forEach((item)=>{
  643. item.checkBasisIds = item.checkBasisIds.split(',');
  644. })
  645. let obj = {
  646. planId:response.data.planId,
  647. planTitle:response.data.planTitle,
  648. checkCategory:response.data.checkCategory,
  649. checkTypeName:response.data.checkTypeName,
  650. checkTypeValue:response.data.checkTypeValue,
  651. crossCheck:response.data.crossCheck,
  652. checkRange:response.data.checkRange,
  653. subIds:response.data.checkRange == 1 ? [] : response.data.subIds.split(','),
  654. subjectNum:response.data.subjectNum,
  655. dateRange:[response.data.cycleStartTime,response.data.cycleEndTime],
  656. checkGroupId:response.data.checkGroupId,
  657. checkGroupName:response.data.checkGroupName,
  658. checkDemand:response.data.checkDemand,
  659. checkPlanSetDtoList:response.data.checkPlanSetDtoList,
  660. uploadDtoList:response.data.uploadDtoList,
  661. };
  662. this.$set(this,'supervisorOptions',[{groupId:response.data.checkGroupId,groupName:response.data.checkGroupName,}]);
  663. this.$set(this,'dialogForm',obj);
  664. });
  665. },
  666. /*==========上传相关==========*/
  667. handleAvatarSuccess(res) {
  668. if(this.dialogForm.uploadDtoList.length>4){
  669. this.msgError('已到达上传数量上限')
  670. return
  671. }
  672. let suffixName= this.upDataName.split('.')[this.upDataName.split('.').length - 2]
  673. //判断文件名中是否有逗号和分号
  674. if(suffixName.indexOf(',')==-1 && suffixName.indexOf(';')==-1){
  675. }else{
  676. this.msgError('文件名里包含逗号或分号,请修改后重新上传!')
  677. return
  678. }
  679. let obj ={
  680. fileName:this.upDataName,
  681. fileUrl:res.data.url,
  682. fileType:1,
  683. source:1,
  684. };
  685. this.dialogForm.uploadDtoList.push(obj);
  686. this.$forceUpdate()
  687. },
  688. beforeAvatarUpload(file) {
  689. let type = false;
  690. let num = 0;
  691. for(let i=0;i<file.name.length;i++){
  692. if(file.name[i] == '.'){
  693. num++
  694. }
  695. }
  696. if(num != 1){
  697. this.msgError('文件名称不能包含 " . "')
  698. return false
  699. }
  700. if (file.type == 'application/pdf' || file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'|| file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
  701. if(file.size> 5250000){
  702. this.msgError('上传大小不能超过5M')
  703. return false
  704. }
  705. this.upDataName = file.name;
  706. type = true;
  707. }else{
  708. this.msgError('只能上传docx/xlsx/pdf格式')
  709. type = false;
  710. }
  711. return type;
  712. },
  713. //删除已上传文件
  714. delUploadFile(index,row){
  715. let self = this;
  716. self.$confirm('是否确认删除 '+row.fileName+' ?', '', {
  717. confirmButtonText: '确定',
  718. cancelButtonText: '取消',
  719. type: 'warning'
  720. }).then(function() {
  721. //删除
  722. self.dialogForm.uploadDtoList.splice(index,1)
  723. }).then(() => {
  724. }).catch(() => {
  725. })
  726. },
  727. // 单个下载按钮
  728. downloadButton(item){
  729. this.downloadUrl(item.fileUrl,item.fileName);
  730. },
  731. //预览文件
  732. lookUploadFile(item){
  733. //判断类型
  734. let type = '';
  735. if(item.fileUrl.split('.')[1] == 'docx'){
  736. type = 'docx'
  737. }else if(item.fileUrl.split('.')[1] == 'xlsx'){
  738. type = 'excel'
  739. }else if(item.fileUrl.split('.')[1] == 'pdf'){
  740. type = 'pdf'
  741. }
  742. let url = localStorage.getItem('fileBrowseEnvironment')+item.fileUrl;
  743. this.$refs['fullScreenFileLook'].initialize(item.fileName,url,type);
  744. },
  745. //检查范围切换
  746. checkRangeChange(val){
  747. if(val == 1){
  748. this.laboratorySubRelInfoGetAllSubNum();
  749. }else if(val == 3){
  750. this.$set(this.dialogForm,'subjectNum',this.dialogForm.subIds.length);
  751. }
  752. },
  753. //实验室选择相关
  754. subCheckButton(type,obj){
  755. if(type == 1){
  756. //新增-编辑
  757. if(this.lookInfoType){
  758. //查看
  759. this.$set(this,'subCheckData',{
  760. subIds:this.dialogForm.subIds,
  761. showType:true,
  762. });
  763. }else{
  764. //编辑
  765. this.$set(this,'subCheckData',{
  766. subIds:this.dialogForm.subIds,
  767. showType:false,
  768. });
  769. }
  770. this.$set(this,'subCheckType',true);
  771. }else if(type == 3){
  772. //提交
  773. this.$set(this.dialogForm,'subIds',obj);
  774. this.$set(this.dialogForm,'subjectNum',obj.length);
  775. this.$set(this,'subCheckType',false);
  776. this.$set(this,'subCheckData',{});
  777. }else if(type == 4){
  778. //关闭
  779. this.$set(this,'subCheckType',false);
  780. this.$set(this,'subCheckData',{});
  781. }
  782. },
  783. //查询全校实验室数量
  784. laboratorySubRelInfoGetAllSubNum(){
  785. laboratorySubRelInfoGetAllSubNum({}).then(response => {
  786. this.$set(this.dialogForm,'subjectNum',response.data.subCount);
  787. });
  788. },
  789. //查询历史标题列表
  790. checkPlanGetHistoryPlanTitles(){
  791. checkPlanGetHistoryPlanTitles({}).then(response => {
  792. let list = [
  793. {planTitle:"春季开学实验室安全检查",type:false,},
  794. {planTitle:"实验室安全交叉互检",type:false,},
  795. {planTitle:"重点学院实验室安全检查",type:false,},
  796. {planTitle:"实验室安全检查与专项整治集中检查",type:false,},
  797. {planTitle:"实验室危化品隐患专项排查",type:false,},
  798. {planTitle:"暑假前实验室安全检查",type:false,},
  799. {planTitle:"秋季学期末实验室安全检查",type:false,},
  800. ];
  801. for(let i=0;i<response.data.length;i++){
  802. list.push({planTitle:response.data[i].planTitle,type:true,planId:response.data[i].planId});
  803. }
  804. this.$set(this,'leftTitleList',list);
  805. });
  806. },
  807. //历史标题删除
  808. checkPlanHideHistoryPlanTitle(item){
  809. checkPlanHideHistoryPlanTitle({checkPlanId:item.planId}).then(response => {
  810. this.msgSuccess(response.message)
  811. this.checkPlanGetHistoryPlanTitles();
  812. });
  813. },
  814. //检查依据-下拉列表
  815. securityCheckBasisGetList(){
  816. securityCheckBasisGetList({}).then(response => {
  817. response.data.unshift({
  818. basisName:'全部检查项目',
  819. basisId:'0',
  820. })
  821. this.$set(this,'inspectSource',response.data);
  822. });
  823. },
  824. //选中检查依据
  825. checkBasis(val,index){
  826. if(val[val.length-1] == '0'){
  827. this.$set(this.dialogForm.checkPlanSetDtoList[index],'checkBasisIds',['0']);
  828. }else if (val[4]){
  829. val.splice(0,1)
  830. }else{
  831. let type = false;
  832. val.forEach((item)=>{
  833. if(item == 0){
  834. type = true;
  835. }
  836. })
  837. if(type){
  838. this.$set(this.dialogForm.checkPlanSetDtoList[index],'checkBasisIds',[val[val.length-1]]);
  839. }
  840. }
  841. },
  842. //查看成员列表
  843. lookMemberList(){
  844. if(this.lookMemberType){
  845. this.$set(this,'lookMemberType',false);
  846. }else{
  847. this.$set(this,'memberQueryParams',{
  848. page:1,
  849. pageSize:20,
  850. });
  851. this.$set(this,'lookMemberType',true);
  852. if (this.dialogForm.planId){
  853. this.securityMemberPlanMemberList();
  854. }else{
  855. this.securityCheckGroupMemberGroupMemberList();
  856. }
  857. }
  858. },
  859. getUserList(){
  860. if (this.dialogForm.planId){
  861. this.securityMemberPlanMemberList();
  862. }else{
  863. this.securityCheckGroupMemberGroupMemberList();
  864. }
  865. },
  866. //督导组成员查询
  867. securityCheckGroupMemberGroupMemberList(){
  868. let obj = JSON.parse(JSON.stringify(this.memberQueryParams))
  869. obj.checkGroupId = this.dialogForm.checkGroupId
  870. securityCheckGroupMemberGroupMemberList(obj).then(response => {
  871. response.data.records.forEach((item)=>{
  872. if(item.isAdmin){
  873. this.$set(this,'memberUserName',item.userName)
  874. }
  875. });
  876. this.$set(this,'memberData',response.data.records);
  877. this.$set(this,'memberTotal',response.data.total);
  878. });
  879. },
  880. //计划内督导组成员查询
  881. securityMemberPlanMemberList(){
  882. let obj = JSON.parse(JSON.stringify(this.memberQueryParams))
  883. obj.planId = this.dialogForm.planId
  884. securityMemberPlanMemberList(obj).then(response => {
  885. response.data.records.forEach((item)=>{
  886. if(item.isAdmin){
  887. this.$set(this,'memberUserName',item.userName)
  888. }
  889. });
  890. this.$set(this,'memberData',response.data.records);
  891. this.$set(this,'memberTotal',response.data.total);
  892. });
  893. },
  894. },
  895. }
  896. </script>
  897. <style scoped lang="scss">
  898. .projectAddPage{
  899. .content-box{
  900. flex:1;
  901. display: flex;
  902. overflow: hidden;
  903. .content-left-box{
  904. width:306px;
  905. display: flex;
  906. flex-direction: column;
  907. overflow: hidden;
  908. .content-left-title-box{
  909. margin:0 35px 0 21px;
  910. display: flex;
  911. border-bottom:1px solid #E0E0E0;
  912. .iconfont{
  913. display: block;
  914. width:14px;
  915. height:11px;
  916. margin:30px 18px 0 20px;
  917. color:#0183FA;
  918. font-size:16px;
  919. }
  920. p{
  921. line-height:73px;
  922. color:#0183FA;
  923. font-size:16px;
  924. }
  925. }
  926. .content-left-for-max-box{
  927. padding:10px 0;
  928. .content-left-for-title-box{
  929. display: flex;
  930. margin:0 10px 10px 10px;
  931. padding:0 10px 0 10px;
  932. cursor: pointer;
  933. p:nth-child(1){
  934. height:40px;
  935. line-height: 40px;
  936. font-size:16px;
  937. flex:1;
  938. /*单行省略号*/
  939. display:block;
  940. overflow:hidden;
  941. text-overflow:ellipsis;
  942. white-space:nowrap;
  943. }
  944. p:nth-child(2){
  945. width:18px;
  946. height:18px;
  947. font-size:18px;
  948. margin:11px 0 0 10px;
  949. font-weight:700;
  950. color:#0183FA;
  951. }
  952. }
  953. .content-left-for-title-box:hover{
  954. background: rgba(1,131,250,0.2);
  955. color:#0183FA;
  956. }
  957. }
  958. }
  959. .content-right-box{
  960. flex:1;
  961. display: flex;
  962. flex-direction: column;
  963. border-left: 1px dashed #D8D8D8;
  964. padding:20px 60px 20px 70px;
  965. position: relative;
  966. .corner-mark-img{
  967. position: absolute;
  968. top:0;
  969. left:0;
  970. width:80px;
  971. height:80px;
  972. }
  973. .content-right-project-box{
  974. border:1px solid #E0E0E0;
  975. border-bottom:none;
  976. .project-title-p{
  977. height:40px;
  978. line-height:40px;
  979. padding:0 0 0 23px;
  980. font-size:16px;
  981. background: #F5F5F5;
  982. border-bottom:1px solid #E0E0E0;
  983. }
  984. .content-right-form-display{
  985. display: flex;
  986. .intersect-inspect-box{
  987. display: inline-block;
  988. width:100px;
  989. height:40px;
  990. border: 1px solid #E0E0E0;
  991. margin-left:20px;
  992. border-radius:6px;
  993. position: relative;
  994. cursor: pointer;
  995. p{
  996. text-align: center;
  997. line-height:40px;
  998. font-size:14px;
  999. }
  1000. img{
  1001. position: absolute;
  1002. bottom:0;
  1003. right:0;
  1004. width:20px;
  1005. height:20px;
  1006. }
  1007. }
  1008. .intersect-inspect-check-box{
  1009. border: 1px solid #0183FA;
  1010. p{
  1011. color:#0183FA;
  1012. }
  1013. }
  1014. .sub-button-box{
  1015. margin:0 20px 0 0;
  1016. display: inline-block;
  1017. border-radius:6px;
  1018. cursor: pointer;
  1019. width:100px;
  1020. height:40px;
  1021. border: 1px solid #0183FA;
  1022. p{
  1023. text-align: center;
  1024. line-height:40px;
  1025. font-size:14px;
  1026. color:#0183FA;
  1027. }
  1028. }
  1029. .sub-num-p{
  1030. display: inline-block;
  1031. font-size:14px;
  1032. line-height:40px;
  1033. color:#0183FA;
  1034. }
  1035. .date-range-right-box{
  1036. display: flex;
  1037. border-radius:4px;
  1038. overflow: hidden;
  1039. border:1px solid #E0E0E0;
  1040. height:40px;
  1041. margin-left:20px;
  1042. p{
  1043. width: 70px;
  1044. height:40px;
  1045. line-height:40px;
  1046. color:#333;
  1047. font-size:14px;
  1048. text-align: center;
  1049. cursor: pointer;
  1050. }
  1051. p:hover{
  1052. color:#fff;
  1053. background: #0045AF;
  1054. }
  1055. p:nth-child(2){
  1056. border-left:1px solid #E0E0E0;
  1057. border-right:1px solid #E0E0E0;
  1058. }
  1059. }
  1060. ::v-deep .el-range-editor--medium.el-input__inner{
  1061. height:40px;
  1062. }
  1063. .color-text{
  1064. color:#999;
  1065. line-height:40px;
  1066. margin-left:34px;
  1067. font-size:14px;
  1068. }
  1069. .overdue-check-box{
  1070. display: flex;
  1071. cursor: pointer;
  1072. div{
  1073. width:16px;
  1074. height:16px;
  1075. border-radius:50%;
  1076. border:1px solid #FF6200;
  1077. margin:12px 12px 12px 34px;
  1078. p{
  1079. width:10px;
  1080. height:10px;
  1081. border-radius:50%;
  1082. background-color: #FF6200;
  1083. margin:2px;
  1084. }
  1085. }
  1086. .overdue-p{
  1087. line-height:40px;
  1088. font-size:14px;
  1089. color:#FF6200;
  1090. }
  1091. }
  1092. }
  1093. .avatar-uploader-button-box{
  1094. display: flex;
  1095. margin-bottom:20px;
  1096. .avatar-uploader-button{
  1097. width: 120px;
  1098. height: 40px;
  1099. line-height:40px;
  1100. border-radius: 4px 4px 4px 4px;
  1101. border: 1px solid #0045AF;
  1102. color:#0045AF;
  1103. }
  1104. .avatar-uploader-text{
  1105. line-height:40px;
  1106. font-size:14px;
  1107. color:#999999;
  1108. margin-left:30px;
  1109. }
  1110. }
  1111. .up-data-table-box{
  1112. width:820px;
  1113. height:161px;
  1114. display: flex;
  1115. overflow: hidden;
  1116. }
  1117. .inspect-for-max-big-box{
  1118. position: relative;
  1119. overflow: hidden;
  1120. border-bottom:1px solid #e0e0e0;
  1121. .for-index-p{
  1122. position: absolute;
  1123. top:0;
  1124. left:0;
  1125. width:40px;
  1126. height:30px;
  1127. line-height:30px;
  1128. text-align: center;
  1129. font-size:16px;
  1130. color:#fff;
  1131. background-color: #0183FA;
  1132. border-bottom-right-radius: 6px;
  1133. }
  1134. .del-button{
  1135. cursor: pointer;
  1136. position: absolute;
  1137. right:0;
  1138. bottom:0;
  1139. width:40px;
  1140. height:40px;
  1141. }
  1142. }
  1143. }
  1144. .add-button-p{
  1145. cursor: pointer;
  1146. border-radius:6px;
  1147. display: block;
  1148. border: 1px dashed #0183FA;
  1149. color:#0183FA;
  1150. width:450px;
  1151. text-align: center;
  1152. height:40px;
  1153. line-height:36px;
  1154. font-size:22px;
  1155. font-weight:700;
  1156. margin:20px auto;
  1157. }
  1158. }
  1159. .user-button-span{
  1160. display: inline-block;
  1161. color:#0183FA;
  1162. width:90px;
  1163. border:1px solid #0183FA;
  1164. border-radius:4px;
  1165. line-height:38px;
  1166. text-align: center;
  1167. margin-left:20px;
  1168. cursor: pointer;
  1169. }
  1170. .user-button-span:hover{
  1171. color:#fff;
  1172. background-color:#0183FA;
  1173. }
  1174. .checkDemand-textarea-p{
  1175. line-height:20px;
  1176. color:#333;
  1177. background-color: #F5F5F5;
  1178. border:1px solid #E0E0E0;
  1179. border-radius:4px;
  1180. width:450px;
  1181. padding:10px 15px;
  1182. font-size:14px;
  1183. word-break: break-all;
  1184. }
  1185. ::v-deep .el-input.is-disabled .el-input__inner{
  1186. background-color: #f5f5f5;
  1187. border: 1px solid #E0E0E0;
  1188. color:#333;
  1189. cursor: auto;
  1190. }
  1191. ::v-deep .el-range-editor.is-disabled{
  1192. background-color: #f5f5f5;
  1193. border: 1px solid #E0E0E0;
  1194. color:#333;
  1195. cursor: auto;
  1196. }
  1197. ::v-deep .el-range-editor.is-disabled input{
  1198. background-color: #f5f5f5;
  1199. color:#333;
  1200. cursor: auto;
  1201. }
  1202. ::v-deep .el-textarea.is-disabled .el-textarea__inner{
  1203. background-color: #f5f5f5;
  1204. border: 1px solid #E0E0E0;
  1205. color:#333;
  1206. cursor: auto;
  1207. }
  1208. ::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner{
  1209. border-color: #1890ff;
  1210. background: #1890ff;
  1211. }
  1212. ::v-deep .el-radio__input.is-disabled.is-checked .el-radio__inner::after{
  1213. background: #fff;
  1214. }
  1215. }
  1216. }
  1217. </style>
  1218. <style lang="scss">
  1219. .memberData-dialog-box{
  1220. .el-dialog__body{
  1221. padding:20px 20px;
  1222. .memberData-dialog-title-p{
  1223. line-height:20px;
  1224. font-size:14px;
  1225. font-weight:700;
  1226. }
  1227. .memberData-dialog-user-p{
  1228. line-height:20px;
  1229. font-size:14px;
  1230. margin:10px 0 20px;
  1231. }
  1232. .memberData-dialog-content-box{
  1233. height:441px;
  1234. display: flex;
  1235. flex-direction:column;
  1236. overflow: hidden;
  1237. }
  1238. }
  1239. }
  1240. </style>