project.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412
  1. <template>
  2. <view class="m_right">
  3. <!-- <image src="../../../assets/home/homeBG.jpg" class="s_logo" mode=""></image> -->
  4. <view class="m_right_container">
  5. <view class="m_row_class">
  6. <view class="m_row">
  7. <view class="m_row_link">
  8. </view>
  9. <view class="m_row_title" v-text="'项目管理'">
  10. </view>
  11. <view style="position: relative;margin-left: 40rpx;">
  12. <div class="triangle_border_down">
  13. <span></span>
  14. </div>
  15. </view>
  16. </view>
  17. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  18. <thead class="m-table-hander">
  19. <tr>
  20. <th>名称</th>
  21. <th>类型</th>
  22. <th>介绍</th>
  23. <th>创始人</th>
  24. <th>修改</th>
  25. <th>删除</th>
  26. </tr>
  27. </thead>
  28. <!-- <tbody class='table'> -->
  29. <tbody>
  30. <tr v-for="(item,index) in projectData" :key="index">
  31. <th>{{item.ProjectName}}</th>
  32. <th>{{item.Type}}</th>
  33. <th style="position: relative;"><button type="default" size="mini" @click="viewIntro(item)" class="m_edit">简介</button></th>
  34. <!-- <th>{{item.Describe}}</th> -->
  35. <th>{{item.CreateUserName}}</th>
  36. <th style="position: relative;"><button type="default" size="mini" @click="editProject(index)" class="m_edit">修改</button></th>
  37. <th style="position: relative;"><button type="default" size="mini" @click="deleteProject(index)" class="m_delete">删除</button></th>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </view>
  42. <view class="m_row_class">
  43. <view class="" style="display: flex;justify-content: space-between;">
  44. <view class="m_row">
  45. <view class="m_row_link">
  46. </view>
  47. <view class="m_row_title" v-text="'文件管理'">
  48. </view>
  49. <view style="position: relative;margin-left: 40rpx;">
  50. <div class="triangle_border_down">
  51. <span></span>
  52. </div>
  53. </view>
  54. </view>
  55. <view class="">
  56. <button type="default" class="m_btn_download" size="mini" @click="onClick_addFile">添加文件</button>
  57. </view>
  58. </view>
  59. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  60. <thead class="m-table-hander">
  61. <tr>
  62. <th>文件</th>
  63. <th>文件名</th>
  64. <th>文件类型</th>
  65. <th>上传人</th>
  66. <th>上传日期</th>
  67. <th>下载</th>
  68. <th>删除</th>
  69. <th>审核</th>
  70. <th>审核状态</th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr v-for="(item,index) in fileData" :key="index">
  75. <th>{{index+1}}</th>
  76. <th>{{item.Name}}</th>
  77. <th>{{item.Type}}</th>
  78. <th>{{item.UploadUserName}}</th>
  79. <th>{{item.UPloadTime.substring(0,9)}}</th>
  80. <th style="position: relative;"><button type="default" size="mini" @click="download(index,item)" class="m_edit_1">下载</button></th>
  81. <th style="position: relative;"><button type="default" size="mini" @click="deleteFile(index,item)" class="m_delete_1">删除</button></th>
  82. <th style="position: relative;"><button type="default" size="mini" @click="audit(index,item)" class="m_audit_1">审核</button></th>
  83. <th>{{getShenheText(item.Pass)}}</th>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </view>
  88. <view class="m_row_class">
  89. <view class="" style="display: flex;justify-content: space-between;">
  90. <view class="m_row">
  91. <view class="m_row_link">
  92. </view>
  93. <view class="m_row_title" v-text="'成员管理'">
  94. </view>
  95. <view style="position: relative;margin-left: 40rpx;">
  96. <div class="triangle_border_down">
  97. <span></span>
  98. </div>
  99. </view>
  100. </view>
  101. <view class="">
  102. <button type="default" class="m_btn_download" size="mini" @click="addMember">添加学生</button>
  103. </view>
  104. </view>
  105. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  106. <thead class="m-table-hander">
  107. <tr>
  108. <th>用户名</th>
  109. <th>姓名</th>
  110. <th>专业</th>
  111. <th>班级</th>
  112. <th>职务</th>
  113. <th>电话</th>
  114. <th>删除</th>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. <tr v-for="(item,index) in projectMembers" :key="index">
  119. <th>{{item.User.IlabAccount}}</th>
  120. <th>{{item.User.Name}}</th>
  121. <th>{{item.User.Profession}}</th>
  122. <th>{{item.User.Class}}</th>
  123. <th>
  124. <div>
  125. {{item.User.Type}}
  126. </div>
  127. </th>
  128. <th>{{item.User.PhoneNum}}</th>
  129. <th><button type="default" size="mini" class="m_delete2" @click="deleteMember(item)" v-show="item.User.Id != projectData[0].CreateUserID">删除</button></th>
  130. </tr>
  131. </tbody>
  132. </table>
  133. </view>
  134. </view>
  135. <msg ref="msg" :title="title" @determine="determine" :btnArr="arr" v-show="show"></msg>
  136. <audit ref="audit" v-show="auditshow" @determine="determine"></audit>
  137. <!--修改对话框-->
  138. <view class="m_msg" v-show="editDialogshow">
  139. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  140. <thead class="m-table-hander">
  141. <tr>
  142. <th>名称</th>
  143. <th>类型</th>
  144. <th>介绍</th>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <tr>
  149. <th>
  150. <input class="uni-input" placeholder-style="color:#F76260" placeholder="名称" v-model="editDialogData.name"/>
  151. </th>
  152. <th>
  153. <picker class="form-input" @change="bindPickerChange_proType" :value="index_proType" :range="proType">
  154. <view class=" df fdr aic jcsb">
  155. <view>{{proType[index_proType]}}</view>
  156. <view>
  157. <img src="../../../assets/user/pic_user_03.png" />
  158. </view>
  159. </view>
  160. </picker>
  161. </th>
  162. <th>
  163. <input class="uni-input" placeholder-style="color:#F76260" placeholder="介绍" v-model="editDialogData.Introduction"/>
  164. </th>
  165. </tr>
  166. </tbody>
  167. </table>
  168. <view class="layout">
  169. <button type="default" size="mini" @click="editDialogDetermine(index)" class="m_edit">修改</button>
  170. <button type="default" size="mini" @click="editDialogCancel(index)" class="m_delete">取消</button>
  171. </view>
  172. </view>
  173. <!--添加用户对话框-->
  174. <view class="m_msg" v-show="isShowAddMember">
  175. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  176. <thead class="m-table-hander">
  177. <tr>
  178. <th>名称</th>
  179. <th>类型</th>
  180. </tr>
  181. </thead>
  182. <tbody>
  183. <tr>
  184. <th>
  185. <view class="addMember_input_box">
  186. <input class="addMember_input" type="string" v-model="addedMemberModel.IlabAccount" placeholder="学员id" />
  187. </view>
  188. </th>
  189. <th>
  190. <picker class="form-input" @change="bindPickerChange_proTypeadd" :value="index_addproType" :range="addproType">
  191. <view class=" df fdr aic jcsb">
  192. <view>{{addproType[index_addproType]}}</view>
  193. <view>
  194. <img src="../../../assets/user/pic_user_03.png" />
  195. </view>
  196. </view>
  197. </picker>
  198. </th>
  199. </tr>
  200. </tbody>
  201. </table>
  202. <view class="layout">
  203. <button type="default" size="mini" @click="addMemberData(index)" class="m_edit">添加</button>
  204. <button type="default" size="mini" @click="addMemberDataCancel(index)" class="m_delete">取消</button>
  205. </view>
  206. </view>
  207. <!--修改文件对话框-->
  208. <view class="pop_view" @touchmove.stop.prevent = "stopPenetrate" @click="shut_down_pop_view()" v-if='bShowEdit'>
  209. <view class="edit_form" @touchmove.stop.prevent = "stopPenetrate">
  210. <view class="edit_BG">
  211. <view class="edit_title">修改</view>
  212. <view class="edit_row">
  213. <text selectable="true"class="edit_text">名称</text>
  214. <view class="input_frame">
  215. <input class="edit_input" type="string" v-model="projectName" placeholder="" @input="onInputProjectName"/>
  216. </view>
  217. </view>
  218. <view class="edit_row">
  219. <text selectable="true"class="edit_text">类型</text>
  220. <view class="input_frame">
  221. <!-- <input class="edit_input" type="string" v-model="projectType" placeholder="" @input="onInputProjectType"/> -->
  222. <picker class="form-input" @change="onInputProjectType" :value="projectType" :range="proType">
  223. <view class=" df fdr aic jcsb">
  224. <view>{{proType[projectType]}}</view>
  225. <view>
  226. <img src="../../../assets/user/pic_user_03.png" />
  227. </view>
  228. </view>
  229. </picker>
  230. </view>
  231. </view>
  232. <view class="edit_row">
  233. <text selectable="true"class="edit_text">描述</text>
  234. <view class="input_frame">
  235. <input class="edit_input" type="string" v-model="projectDescribe" placeholder="" @input="onInputProjectDescribe"/>
  236. </view>
  237. </view>
  238. <view class='modify_btn'>
  239. <button type="default" size="mini" @click="confirm_modify()" class="modify_confirm">确认</button>
  240. <button type="default" size="mini" @click="cancel_modify()" class="modify_cancel">取消</button>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. <!--上传文件对话框-->
  246. <view class="pop_view" @touchmove.stop.prevent = "stopPenetrate" @click="shut_down_pop_view()" v-if='bShowUpLoadFile'>
  247. <view class="edit_form" @touchmove.stop.prevent = "stopPenetrate">
  248. <view class="edit_BG">
  249. <view class="edit_title">上传文件</view>
  250. <view class="edit_row">
  251. <text selectable="true"class="edit_text">名称</text>
  252. <view class="input_frame">
  253. <input class="edit_input" type="string" placeholder="文件名" @input="onSelectFileName"/>
  254. </view>
  255. </view>
  256. <view class="edit_row">
  257. <text selectable="true"class="edit_text">类型</text>
  258. <view class="input_frame">
  259. <picker class="form-input" @change="onSelectFileType" :value="fileType" :range="addFileType">
  260. <view class=" df fdr aic jcsb">
  261. <view>{{addFileType[fileType]}}</view>
  262. <view>
  263. <img src="../../../assets/user/pic_user_03.png" />
  264. </view>
  265. </view>
  266. </picker>
  267. </view>
  268. </view>
  269. <view class='modify_btn'>
  270. <button type="default" size="mini" @click="confirm_file_upload()" class="modify_confirm">确认</button>
  271. <button type="default" size="mini" @click="cancel_file_upload()" class="modify_cancel">取消</button>
  272. </view>
  273. </view>
  274. </view>
  275. </view>
  276. <!--添加学生-->
  277. <view class="pop_view" @touchmove.stop.prevent = "stopPenetrate" @click="shut_down_pop_view()" v-if='bShowAddStu'>
  278. <view class="edit_form" @touchmove.stop.prevent = "stopPenetrate">
  279. <view class="edit_BG">
  280. <view class="edit_title">添加学生</view>
  281. <view class="edit_row">
  282. <text selectable="true"class="edit_text">姓名</text>
  283. <view class="input_frame">
  284. <input class="edit_input" type="string" placeholder="姓名" @input="onInputStuName"/>
  285. </view>
  286. </view>
  287. <view class="edit_row">
  288. <text selectable="true"class="edit_text">类型</text>
  289. <view class="input_frame">
  290. <picker class="form-input" @change="onSelectStuType" :value="stuType" :range="addproType">
  291. <view class=" df fdr aic jcsb">
  292. <view>{{addproType[stuType]}}</view>
  293. <view>
  294. <img src="../../../assets/user/pic_user_03.png" />
  295. </view>
  296. </view>
  297. </picker>
  298. </view>
  299. </view>
  300. <view class='modify_btn'>
  301. <button type="default" size="mini" @click="confirm_add_stu()" class="modify_confirm">确认</button>
  302. <button type="default" size="mini" @click="cancel_add_stu()" class="modify_cancel">取消</button>
  303. </view>
  304. </view>
  305. </view>
  306. </view>
  307. <!--上传文件对话框-->
  308. <view class="m_msg" v-show="isShowAddFile">
  309. <table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">
  310. <thead class="m-table-hander">
  311. <tr>
  312. <th>名字</th>
  313. <th>类型</th>
  314. </tr>
  315. </thead>
  316. <tbody>
  317. <tr>
  318. <th>
  319. <view class="addMember_input_box">
  320. <input class="addMember_input" type="string" v-model="fileDialogData.name" placeholder="文件名字" />
  321. </view>
  322. </th>
  323. <th>
  324. <picker class="form-input" @change="bindPickerChange_fileType" :value="index_FileType" :range="addFileType">
  325. <view class=" df fdr aic jcsb">
  326. <view>{{addFileType[index_FileType]}}</view>
  327. <view>
  328. <img src="../../../assets/user/pic_user_03.png" />
  329. </view>
  330. </view>
  331. </picker>
  332. </th>
  333. </tr>
  334. </tbody>
  335. </table>
  336. <view class="layout">
  337. <button type="default" size="mini" @click="addFileData(index)" class="m_edit">添加</button>
  338. <button type="default" size="mini" @click="addFileDataCancel(index)" class="m_delete">取消</button>
  339. </view>
  340. </view>
  341. </view>
  342. </template>
  343. <script>
  344. import msg from "./msg.vue"
  345. import audit from "./audit.vue"
  346. export default {
  347. name: "home_project",
  348. data() {
  349. return {
  350. index: 1,
  351. title: "",
  352. show: false,
  353. auditshow: false,
  354. callback: "",
  355. arr: [],
  356. data: [],
  357. projectData: [],
  358. ProjectItem: [],
  359. fileData: [],
  360. projectMembers: [],
  361. isShowAddMember: false,
  362. isShowAddFile: false,
  363. addedMemberModel: {
  364. "IlabAccount": '',
  365. "type": ''
  366. },
  367. currentSelect:{section:-1,buttonType:'',index:-1},
  368. Type:'asd',
  369. editDialogshow : false,
  370. editDialogData : {name : "", type :"", Introduction : ""},
  371. // proType: ['科幻', '现实', '剧情', '历史', '爱情', '惊悚', '公路', '动画'],
  372. proType: ['科幻', '现实', 'XR', '主旋律', 'VR'],
  373. addproType: ['编剧', '摄影师' ,'录音师', '灯光师', '创建人','美术师'],
  374. addFileType: ['剧本' ,'拍摄脚本' ,'分镜头脚本' ,'气氛图', '项目简介', '项目报告' ,'场景图'],
  375. index_addproType : 0,
  376. index_proType : 0,
  377. index_FileType : 0,
  378. fileDialogData : {name : "", type :""},
  379. //修改项目信息
  380. bShowEdit:false,
  381. projectName:'',
  382. projectType:0,
  383. projectDescribe:'',
  384. //上传文件
  385. bShowUpLoadFile:false,
  386. fileName:'',
  387. fileType:0,
  388. filePath:null,
  389. //添加学生
  390. bShowAddStu:false,
  391. stuName:'',
  392. stuType:0,
  393. }
  394. },
  395. components: {
  396. msg,
  397. audit,
  398. },
  399. methods: {
  400. stopPenetrate(){
  401. return;
  402. },
  403. paging(obj) {
  404. this.index = obj;
  405. },
  406. viewIntro(item){
  407. uni.showModal({
  408. title: '简介',
  409. showCancel: false,
  410. content: item.Describe,
  411. success: function (res) {
  412. if (res.confirm) {
  413. console.log('确定');
  414. } else if (res.cancel) {
  415. console.log('取消');
  416. }
  417. }
  418. });
  419. },
  420. editProject(index) {
  421. //修改按钮赋值
  422. this.projectName=this.projectData[0].ProjectName;
  423. for(let i=0;i<this.proType.length;i++)
  424. {
  425. let item = this.proType[i];
  426. if(item == this.projectData[0].Type)
  427. {
  428. this.projectType = i;
  429. }
  430. }
  431. // this.projectType=this.projectData[0].Type;
  432. this.projectDescribe=this.projectData[0].Describe;
  433. this.bShowEdit = true;
  434. },
  435. //审核状态中文
  436. getShenheText(pass){
  437. let t = "成功"
  438. if (pass == false) {
  439. t = "失败"
  440. }
  441. return t
  442. },
  443. deleteProject(index) {
  444. this.title = "是否删除信息?";
  445. this.arr = ["删除", "取消"]
  446. this.show = true;
  447. this.currentSelect = {section:0,buttonType:'delete',index:index};
  448. },
  449. download(index,item) {
  450. this.title = "是否确定下载?";
  451. this.arr = ["确认"];
  452. this.show = true;
  453. this.currentSelect = {section:0,buttonType:'downloadIMG',index:index,item:item};
  454. },
  455. deleteFile(index,item) {
  456. this.title = "是否删除文件?";
  457. this.arr = ["删除", "取消"]
  458. this.show = true;
  459. this.currentSelect = {section:0,buttonType:'deleteFile',index:index,item:item};
  460. },
  461. audit(index,item) {
  462. this.title = "是否确认审核?";
  463. this.arr = ["通过", "未通过"]
  464. this.show = true;
  465. this.callback = "audit"
  466. // this.auditshow = true;
  467. this.currentSelect = {section:0,buttonType:'audit',index:index,item:item};
  468. },
  469. editSave() {
  470. if (this.editDialogData.name == "") {
  471. alert("请输入项目名称~");
  472. return false;
  473. }
  474. if (this.editDialogData.type == "") {
  475. alert("请输入项目类型~");
  476. return false;
  477. }
  478. if (this.editDialogData.Introduction == "") {
  479. alert("请输入项目介绍~");
  480. return false;
  481. }
  482. console.log("创建项目的用户ID",mydata_userInfo.UserID);
  483. uni.request({
  484. url: mydata_api + "/project/changeprojectinfo",
  485. data: {
  486. "UserID":this.projectData[0].CreateUserID,
  487. "ProjectID" : this.projectData[0].Id,
  488. "ProjectName":this.editDialogData.name,
  489. "Describe":this.editDialogData.Introduction, // 项目描述
  490. "Type":this.editDialogData.type
  491. },
  492. method: "POST",
  493. dataType: "json",
  494. success: res => {
  495. console.log('是否成功',res)
  496. if (res.data.Code == 100) {
  497. this.getlist()
  498. this.editDialogshow = false
  499. return true;
  500. }
  501. }
  502. })
  503. },
  504. editDialogDetermine(){
  505. this.editSave()
  506. },
  507. editDialogCancel(){
  508. this.editDialogshow = false
  509. this.editDialogData = {name : "", type :"", Introduction : ""}
  510. },
  511. determine(obj) {
  512. this.show = false;
  513. this.auditshow = false;
  514. // console.log("点了 对话框", obj);
  515. switch (this.currentSelect.section) {
  516. case 0: //項目管理
  517. switch (this.currentSelect.buttonType) {
  518. case 'delete':
  519. // console.log("点了 删除", this.currentSelect);
  520. if (obj == 0) {
  521. // console.log("点了 确定删除", this.currentSelect);
  522. this.deleteItemProject()
  523. }else if(obj == 1){
  524. // console.log("点了 取消删除", this.currentSelect);
  525. }
  526. break;
  527. case 'edit':
  528. // console.log("点了 修改", this.currentSelect);
  529. if (obj == 0) {
  530. // console.log("点了 确定修改", this.currentSelect,this.projectData[0]);
  531. this.editDialogData = {name : this.projectData[0].ProjectName, type :this.projectData[0].Type, Introduction : this.projectData[0].Describe}
  532. this.editDialogshow = true
  533. // console.log("修改数据", this.editDialogData);
  534. }else if(obj == 1){
  535. this.editDialogData = {name : "", type :"", Introduction : ""}
  536. // console.log("点了 取消修改", this.currentSelect);
  537. }
  538. break;
  539. case 'downloadIMG':
  540. // console.log("点了 下载", this.currentSelect);
  541. if (obj == 0) {
  542. // console.log("点了 确定下载", this.currentSelect,this.projectData[0]);
  543. this.DownloadFile()
  544. }else if(obj == 1){
  545. // this.editDialogData = {name : "", type :"", Introduction : ""}
  546. // console.log("点了 取消下载", this.currentSelect);
  547. }
  548. break;
  549. case 'deleteFile':
  550. // console.log("点了 删除", this.currentSelect);
  551. if (obj == 0) {
  552. // console.log("点了 确定删除", this.currentSelect,this.projectData[0]);
  553. this.delFile()
  554. }else if(obj == 1){
  555. // this.editDialogData = {name : "", type :"", Introduction : ""}
  556. // console.log("点了 取消删除", this.currentSelect);
  557. }
  558. break;
  559. case 'audit':
  560. // console.log("点了 审核", this.currentSelect);
  561. if (obj == 0) {
  562. // console.log("点了 确定审核", this.currentSelect,this.projectData[0]);
  563. let data = {
  564. ProjectItemID: this.currentSelect.item,
  565. Pass: true
  566. }
  567. this.auditPost(data);
  568. }else if(obj == 1){
  569. // this.editDialogData = {name : "", type :"", Introduction : ""}
  570. // console.log("点了 取消审核", this.currentSelect);
  571. let data = {
  572. ProjectItemID: this.currentSelect.item,
  573. Pass: false
  574. }
  575. this.auditPost(data);
  576. }
  577. break;
  578. default:
  579. break;
  580. }
  581. break;
  582. default:
  583. break;
  584. }
  585. this.currentSelect = {section:-1,buttonType:'',index:-1}
  586. // console.log(obj)
  587. },
  588. auditPost(obj) {
  589. console.log("审核信息", obj.ProjectItemID.ProjectID);
  590. let url = mydata_api + "/project/setfilepass"
  591. let data = {
  592. "ProjectItemID" : obj.ProjectItemID.Id,
  593. "Pass":obj.Pass,
  594. }
  595. console.log('审核 发送数据 '," 地址 ",url," 数据 ",data,"项目数据",this.projectData)
  596. uni.request({
  597. url: url,
  598. data: data,
  599. method: "POST",
  600. dataType: "json",
  601. success: res => {
  602. console.log('审核 返回',res)
  603. if (res.data.Code == 100) {
  604. this.getFileList();
  605. }
  606. }
  607. })
  608. },
  609. getlist() {
  610. uni.request({
  611. url: mydata_api + "/project/getprojectcontent",
  612. data: {
  613. "UserID": mydata_userInfo.UserID,
  614. "ProjectID": this.projectData[0].Id
  615. },
  616. method: "POST",
  617. dataType: "json",
  618. success: res => {
  619. if (res.data.Code == 100) {
  620. // this.projectData[0] = null
  621. this.projectData[0] = res.data.Project;
  622. // console.log('projectData=',this.projectData[0])
  623. this.$forceUpdate()
  624. }
  625. // console.log("获取了什么样子的信息", this.projectData[0]);
  626. }
  627. })
  628. },
  629. getFileList() {
  630. uni.request({
  631. url: mydata_api + "/project/getprojectcontent",
  632. data: {
  633. "UserID": mydata_userInfo.UserID,
  634. "ProjectID": this.projectData[0].Id
  635. },
  636. method: "POST",
  637. dataType: "json",
  638. success: res => {
  639. this.fileData = res.data.ProjectItem;
  640. // console.log('刷新所有文件=',this.fileData)
  641. }
  642. })
  643. },
  644. viewProject(obj,index) {
  645. // console.log('进来的什么信息',obj)
  646. this.projectData = [obj];
  647. // if(index==0){
  648. // this.fileData = [
  649. // {
  650. // "AliyunOssName": "_59458299-3b84-4895-98f6-b990cdaedc72_chrome_elf.dll",
  651. // "Id": "0b0d8876-71de-43e6-a3dd-59a3c8f6d069",
  652. // "Name": "《火星计划》气氛图",
  653. // "Pass": false,
  654. // "ProjectID": 30,
  655. // "ProjectName": "《火星计划》",
  656. // "Type": "气氛图",
  657. // "UPloadTime": "2021-05-13 18:19:12",
  658. // "URL": "https://www.yuyekeji.cn/H5/ZhongChuang/《火星计划》气氛图.jpeg",
  659. // "UpLoadUserID": "59458299-3b84-4895-98f6-b990cdaedc72",
  660. // "UploadUserDuty": "创建人",
  661. // "UploadUserName": "朱峰",
  662. // },
  663. // {
  664. // "AliyunOssName": "_59458299-3b84-4895-98f6-b990cdaedc72_chrome_elf.dll",
  665. // "Id": "0b0d8876-71de-43e6-a3dd-59a3c8f6d069",
  666. // "Name": "《火星计划》气氛图2",
  667. // "Pass": false,
  668. // "ProjectID": 30,
  669. // "ProjectName": "《火星计划》",
  670. // "Type": "气氛图",
  671. // "UPloadTime": "2021-05-13 18:19:12",
  672. // "URL": "https://www.yuyekeji.cn/H5/ZhongChuang/《火星计划》气氛图2.jpg",
  673. // "UpLoadUserID": "59458299-3b84-4895-98f6-b990cdaedc72",
  674. // "UploadUserDuty": "创建人",
  675. // "UploadUserName": "朱峰",
  676. // }
  677. // ]
  678. // return;
  679. // }
  680. this.getFileList();
  681. this.getMemberList();
  682. },
  683. getMemberList() {
  684. var temp = {
  685. "ProjectID": this.projectData[0].Id
  686. }
  687. uni.request({
  688. url: mydata_api + "/project/getmember",
  689. data: temp,
  690. method: "POST",
  691. dataType: "json",
  692. success: res => {
  693. console.log("请求学生", res);
  694. if (res.data.Code == 100) {
  695. this.projectMembers = res.data.Users;
  696. // console.log();
  697. }
  698. }
  699. })
  700. },
  701. addMember() {
  702. // this.isShowAddMember = true;
  703. this.bShowAddStu = true;
  704. },
  705. addFileData(){
  706. uni.chooseImage({
  707. success: (chooseImageRes) => {
  708. console.log('选择文件成功')
  709. const tempFilePaths = chooseImageRes.tempFilePaths;
  710. uni.uploadFile({
  711. url: mydata_api+'/project/uploadprojectfile',
  712. filePath: tempFilePaths[0],
  713. name: 'file',
  714. formData: {
  715. "UserID": this.projectData[0].CreateUserID,
  716. "Name": this.fileDialogData.name,
  717. "Type": this.fileDialogData.type,
  718. "ProjectID": this.projectData[0].Id,
  719. },
  720. success: (uploadFileRes) => {
  721. console.log('upload ok=', uploadFileRes.data);
  722. this.isShowAddFile = false
  723. this.fileDialogData = {name : "", type :""}
  724. this.getFileList();
  725. // alert("创建成功");
  726. }
  727. });
  728. }
  729. });
  730. },
  731. addFileDataCancel(){
  732. this.isShowAddFile = false
  733. },
  734. addMemberDataCancel(){
  735. this.isShowAddMember = false;
  736. },
  737. onClick_addMember_ok() {
  738. console.log("添加学生", this.addedMemberModel);
  739. var temp = {
  740. "UserID": this.projectData[0].CreateUserID, //项目创建人ID
  741. "ProjectID": this.projectData[0].Id, //项目ID
  742. "AddUserID": mydata_userInfo.UserID, //添加人员ID 支持ilabID UserID
  743. "Type": "美术师" //编剧 摄影师 录音师 灯光师 创建人
  744. }
  745. uni.request({
  746. url: mydata_api + "/project/getmember",
  747. data: temp,
  748. method: "POST",
  749. dataType: "json",
  750. success: res => {
  751. // console.log("请求学生", res);
  752. if (res.data.Code == 100) {
  753. this.projectMembers = res.data.Users;
  754. console.log();
  755. }
  756. }
  757. })
  758. },
  759. onClick_addFile(){
  760. // console.log("项目 点了添加文件")
  761. // this.isShowAddFile = true
  762. uni.chooseFile({
  763. success: (chooseImageRes) => {
  764. this.filePath = chooseImageRes.tempFilePaths;
  765. this.bShowUpLoadFile = true;
  766. }
  767. });
  768. },
  769. //删除项目
  770. deleteItemProject(){
  771. // console.log('mydata_api=',mydata_api)
  772. // console.log('UserID=',mydata_userInfo.UserID)
  773. // console.log('ProjectID=',this.projectData[0].Id)
  774. var temp = {
  775. "UserID":this.projectData[0].CreateUserID,
  776. "ProjectID" : (this.projectData[0].Id).toString(),
  777. }
  778. console.log("删除项目为",temp)
  779. uni.request({
  780. url: mydata_api + "/backstage/deleteproject",
  781. data: temp,
  782. method: "POST",
  783. dataType: "json",
  784. success: res => {
  785. console.log("delete project ok", res);
  786. this.$emit('onBackToProjectList');
  787. this.getlist()
  788. this.$forceUpdate();//强制刷新页面
  789. }
  790. })
  791. },
  792. bindPickerChange_proType: function(e) {
  793. this.index_proType = e.target.value;
  794. this.editDialogData.type = this.proType[this.index_proType];
  795. // console.log(this.model)
  796. },
  797. bindPickerChange_proTypeadd: function(e) {
  798. this.index_addproType = e.target.value;
  799. this.addedMemberModel.type = this.addproType[this.index_addproType];
  800. // console.log(this.model)
  801. },
  802. bindPickerChange_fileType: function(e) {
  803. this.index_FileType = e.target.value;
  804. this.fileDialogData.type = this.addFileType[this.index_FileType];
  805. // console.log(this.model)
  806. },
  807. deleteMember(item){
  808. console.log('删掉成员 ',item)
  809. let url = mydata_api + "/project/deletemember"
  810. let data = {
  811. "userID" : this.projectData[0].CreateUserID,
  812. "DeleteUserID":item.User.Id,
  813. "ProjectID":this.projectData[0].Id,
  814. }
  815. console.log('删掉成员 发送数据 '," 地址 ",url," 数据 ",data)
  816. uni.request({
  817. url: url,
  818. data: data,
  819. method: "POST",
  820. dataType: "json",
  821. success: res => {
  822. console.log('删掉成员 返回',res)
  823. if (res.data.Code == 100) {
  824. // this.$refs.table.getList();
  825. this.getMemberList();
  826. this.$forceUpdate();//强制刷新页面
  827. }
  828. // this.projectData.splice(index,index);
  829. }
  830. })
  831. },
  832. delFile(){
  833. // this.currentSelect
  834. console.log('删除文件', this.currentSelect)
  835. // SetFilePass
  836. let url = mydata_api + "/project/deleteprojectcontent"
  837. // "UserID":"xxxx", //上传人或者项目创建人
  838. // "ProjectItemID" : "123"
  839. let data = {
  840. "UserID" : this.projectData[0].CreateUserID,
  841. "ProjectItemID":this.currentSelect.item.Id
  842. }
  843. console.log('删除文件 发送数据 '," 地址 ",url," 数据 ",data,"项目数据",this.projectData)
  844. uni.request({
  845. url: url,
  846. data: data,
  847. method: "POST",
  848. dataType: "json",
  849. success: res => {
  850. console.log('删除文件 返回',res)
  851. if (res.data.Code == 100) {
  852. this.getFileList();
  853. }
  854. }
  855. })
  856. },
  857. DownloadFile() {
  858. window.open(this.currentSelect.item.URL);
  859. },
  860. shut_down_pop_view(){
  861. // this.bShowEdit = false;
  862. },
  863. confirm_modify(){
  864. this.bShowEdit = false;
  865. this.projectData[0].ProjectName = this.projectName;
  866. this.projectData[0].Type = this.proType[this.projectType];
  867. this.projectData[0].Describe = this.projectDescribe;
  868. uni.request({
  869. url: mydata_api + "/project/changeprojectinfo",
  870. data: {
  871. "UserID":this.projectData[0].CreateUserID,
  872. "ProjectID" : this.projectData[0].Id,
  873. "ProjectName":this.projectData[0].ProjectName,
  874. "Describe":this.projectData[0].Describe, // 项目描述
  875. "Type":this.projectData[0].Type
  876. },
  877. method: "POST",
  878. dataType: "json",
  879. success: res => {
  880. console.log('是否成功',res)
  881. if (res.data.Code == 100) {
  882. this.getlist()
  883. }
  884. }
  885. })
  886. },
  887. cancel_modify(){
  888. this.bShowEdit = false;
  889. this.projectName=this.projectData[0].ProjectName;
  890. this.projectType=this.projectData[0].Type;
  891. this.projectDescribe=this.projectData[0].Describe;
  892. },
  893. onInputProjectName(e){
  894. this.projectName=e.detail.value;
  895. },
  896. onInputProjectType(e){
  897. this.projectType=e.detail.value;
  898. },
  899. onInputProjectDescribe(e){
  900. this.projectDescribe=e.detail.value;
  901. },
  902. //添加文件
  903. onSelectFileName(e){
  904. this.fileName=e.detail.value;
  905. },
  906. onSelectFileType(e){
  907. this.fileType=e.detail.value;
  908. },
  909. confirm_file_upload(){
  910. uni.showLoading({
  911. title: '上传中'
  912. });
  913. let fileType = this.addFileType[this.fileType];
  914. uni.uploadFile({
  915. url: mydata_api+'/project/uploadprojectfile', //仅为示例,非真实的接口地址
  916. filePath: this.filePath[0],
  917. name: 'file',
  918. formData: {
  919. "UserID": this.projectData[0].CreateUserID,
  920. "Name": this.fileName,
  921. "Type": fileType,
  922. "ProjectID": this.projectData[0].Id,
  923. },
  924. success: (uploadFileRes) => {
  925. // console.log('upload ok=', uploadFileRes.data);
  926. uni.hideLoading();
  927. this.bShowUpLoadFile = false;
  928. this.getFileList();
  929. // setTimeout(function(){
  930. // alert("创建成功");
  931. // },500)
  932. }
  933. });
  934. },
  935. cancel_file_upload(){
  936. this.bShowUpLoadFile = false;
  937. this.fileName = '';
  938. this.fileType = '';
  939. this.filePath = null;
  940. },
  941. // 添加学生
  942. onInputStuName(e){
  943. this.stuName=e.detail.value;
  944. },
  945. onSelectStuType(e){
  946. // addproType[stuType]
  947. this.stuType=e.detail.value;
  948. },
  949. confirm_add_stu(){
  950. console.log("添加学生", this.stuName,this.projectData[0]);
  951. if (this.stuName == "") {
  952. alert("学员id不能为空")
  953. return
  954. }
  955. let url = mydata_api + "/project/addmember"
  956. let data = {
  957. "UserID" : this.projectData[0].CreateUserID,
  958. "ProjectID":this.projectData[0].Id,
  959. "AddUserID":this.stuName,
  960. "Type":this.addproType[this.stuType],
  961. }
  962. // console.log('添加成员 发送数据 '," 地址 ",url," 数据 ",data,"项目数据",this.projectData)
  963. uni.request({
  964. url: url,
  965. data: data,
  966. method: "POST",
  967. dataType: "json",
  968. success: res => {
  969. console.log('添加成员 返回',res)
  970. if (res.data.Code == 100) {
  971. // this.$refs.table.getList();
  972. this.getMemberList();
  973. this.$forceUpdate();
  974. this.bShowAddStu = false;
  975. // setTimeout(function(){
  976. // alert("添加成功");
  977. // },500)
  978. return;
  979. }
  980. this.bShowAddStu = false;
  981. setTimeout(function(){
  982. alert("添加有误,请检查该学生是否存在");
  983. },500)
  984. }
  985. })
  986. },
  987. cancel_add_stu(){
  988. this.bShowAddStu = false;
  989. this.stuName = '';
  990. this.stuType = 0;
  991. }
  992. },
  993. }
  994. </script>
  995. <style lang="scss">
  996. .m_right {
  997. width: 100%;
  998. margin-top: 5rpx;
  999. // padding: 0 150rpx;
  1000. background-color: #fff;
  1001. box-shadow: 3px 0px 6px 0px rgba(0, 0, 0, 0.1);
  1002. .m_right_container {
  1003. padding: 150rpx;
  1004. }
  1005. .s_logo {
  1006. width: 100%;
  1007. height: 800rpx;
  1008. }
  1009. .m_right_hander {
  1010. text-align: right;
  1011. height: 250rpx;
  1012. position: relative;
  1013. .m_btn_red {
  1014. position: absolute;
  1015. height: 80rpx;
  1016. line-height: 80rpx;
  1017. padding: 0 40rpx;
  1018. right: 0;
  1019. top: 50%;
  1020. transform: translateY(-50%);
  1021. background: #EA252C;
  1022. color: #fff;
  1023. }
  1024. }
  1025. }
  1026. .m_btn_download {
  1027. height: 80rpx;
  1028. line-height: 80rpx;
  1029. padding: 0 70rpx;
  1030. background: #EA252C;
  1031. color: #fff;
  1032. font-family: MicrosoftYaHei;
  1033. }
  1034. tbody tr {
  1035. border-top: 2rpx solid #DDDDDD !important;
  1036. }
  1037. tbody tr th:first-child {
  1038. position: relative;
  1039. }
  1040. tbody tr th {
  1041. font-weight: 400 !important;
  1042. height: 140rpx;
  1043. line-height: 140rpx;
  1044. }
  1045. tbody tr:hover {
  1046. // color: #fff;
  1047. background: #FDEBEC;
  1048. // opacity: 0.08;
  1049. }
  1050. .form-input {
  1051. width: 100%;
  1052. border: 1px solid #ece8e8;
  1053. line-height: 50rpx;
  1054. font-size: 30rpx;
  1055. border-radius: 6rpx;
  1056. padding: 10rpx 40rpx;
  1057. }
  1058. .m-table-hander {
  1059. background-color: #FFF8F7;
  1060. height: 140rpx;
  1061. line-height: 140rpx;
  1062. font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
  1063. font-weight: bold;
  1064. }
  1065. .m_edit {
  1066. position: absolute;
  1067. top: 50%;
  1068. left: 50%;
  1069. transform: translate(-50%, -50%);
  1070. background: rgb(67, 127, 250);
  1071. color: rgb(255, 255, 255);
  1072. min-width: 130rpx;
  1073. }
  1074. .m_delete {
  1075. position: absolute;
  1076. top: 50%;
  1077. left: 50%;
  1078. min-width: 130rpx;
  1079. transform: translate(-50%, -50%);
  1080. background: rgb(234, 37, 44);
  1081. color: rgb(255, 255, 255);
  1082. }
  1083. .m_delete2 {
  1084. // position: absolute;
  1085. // top: 50%;
  1086. // left: 50%;
  1087. // width: 80%;
  1088. // transform: translate(-50%, -50%);
  1089. background: rgb(234, 37, 44);
  1090. color: rgb(255, 255, 255);
  1091. // z-index: 3;
  1092. }
  1093. .m_edit_1 {
  1094. // position: absolute;
  1095. // top: 50%;
  1096. // left: 50%;
  1097. // transform: translate(-50%, -50%);
  1098. background: rgb(67, 127, 250);
  1099. color: rgb(255, 255, 255);
  1100. // min-width: 110rpx;
  1101. }
  1102. .m_delete_1 {
  1103. // position: absolute;
  1104. // top: 50%;
  1105. // left: 50%;
  1106. // min-width: 110rpx;
  1107. // transform: translate(-50%, -50%);
  1108. background: rgb(234, 37, 44);
  1109. color: rgb(255, 255, 255);
  1110. }
  1111. .m_right_footer {
  1112. margin-top: 80rpx;
  1113. }
  1114. .m_logoimg {
  1115. width: 80rpx;
  1116. height: 80rpx;
  1117. position: absolute;
  1118. top: 50%;
  1119. left: 50%;
  1120. transform: translate(-50%, -50%);
  1121. }
  1122. .m_paging {
  1123. text-align: right;
  1124. .m_paging_item {
  1125. padding: 10rpx 18rpx;
  1126. border: 1rpx solid #DDDDDD;
  1127. border-radius: 8rpx;
  1128. margin-right: 10rpx;
  1129. }
  1130. .p_act {
  1131. background: #EA252C;
  1132. color: #fff;
  1133. border: inherit;
  1134. }
  1135. }
  1136. .m_paging_item:hover {
  1137. background: #EA252C;
  1138. color: #fff;
  1139. border: inherit;
  1140. }
  1141. .m_act1 {
  1142. color: #FF0019;
  1143. }
  1144. .m_row {
  1145. display: flex;
  1146. height: 60rpx;
  1147. line-height: 60rpx;
  1148. font-size: 30rpx;
  1149. color: #ea252c;
  1150. padding: 0 0 80rpx 0;
  1151. }
  1152. .m_audit {
  1153. position: absolute;
  1154. top: 50%;
  1155. left: 50%;
  1156. min-width: 65px;
  1157. -webkit-transform: translate(-50%, -50%);
  1158. transform: translate(-50%, -50%);
  1159. color: white;
  1160. background-color: #FF791B;
  1161. }
  1162. .m_audit_1 {
  1163. // position: absolute;
  1164. // top: 50%;
  1165. // left: 50%;
  1166. // min-width: 55px;
  1167. // -webkit-transform: translate(-50%, -50%);
  1168. // transform: translate(-50%, -50%);
  1169. color: white;
  1170. background-color: #FF791B;
  1171. }
  1172. .m_row_link {
  1173. width: 10rpx;
  1174. height: 60rpx;
  1175. background-color: #ea252c;
  1176. margin-right: 40rpx;
  1177. }
  1178. .m_row_title {
  1179. color: #ea252c;
  1180. font-weight: bold;
  1181. font-size: 40rpx;
  1182. }
  1183. /*向下*/
  1184. .triangle_border_down {
  1185. width: 0;
  1186. height: 0;
  1187. border-width: 25rpx 25rpx 0;
  1188. border-style: solid;
  1189. border-color: #ea252c transparent transparent;
  1190. /*灰 透明 透明 */
  1191. margin: 20rpx auto;
  1192. position: relative;
  1193. }
  1194. .m_row_class {
  1195. margin-bottom: 60rpx;
  1196. }
  1197. .addMember_box{
  1198. margin-bottom: 50rpx;
  1199. height: 80rpx;
  1200. }
  1201. .addMember_input_box{
  1202. width: 500rpx;
  1203. height: 80rpx;
  1204. }
  1205. .addMember_input {
  1206. width: 100%;
  1207. height: 100%;
  1208. border: 1px solid #ece8e8;
  1209. line-height: 50rpx;
  1210. font-size: 30rpx;
  1211. border-radius: 6rpx;
  1212. padding: 10rpx 40rpx;
  1213. }
  1214. .addMember_btn {
  1215. width: 130rpx;
  1216. height: 80rpx;
  1217. transform: translate(-50%, -50%);
  1218. background: rgb(234, 37, 44);
  1219. color: rgb(255, 255, 255);
  1220. }
  1221. .blank{
  1222. border:1px solid black;
  1223. }
  1224. .table{
  1225. border:1px solid black;
  1226. }
  1227. .input-item {
  1228. border:1px solid black;
  1229. }
  1230. .pop_view{
  1231. position: fixed;
  1232. display: flex;
  1233. justify-content: center;
  1234. align-items:center;/*垂直居中*/
  1235. width: 100%;
  1236. height: 100%;
  1237. top: 0rpx;
  1238. left: 0rpx;
  1239. // z-index: 100;
  1240. background-color:rgba(0,0,0,0.5)
  1241. }
  1242. .edit_form{
  1243. width: 25%;
  1244. height: 50%;
  1245. background-color:rgba(255,255,255,1);
  1246. display: flex;
  1247. justify-content: center;
  1248. // justify-content: space-between;
  1249. align-items:center;
  1250. .edit_BG{
  1251. width: 90%;
  1252. height: 90%;
  1253. display: flex;
  1254. justify-content: space-between;
  1255. align-items:center;
  1256. flex-direction:column;
  1257. // border:1rpx solid #000000;
  1258. .edit_row{
  1259. width: 90%;
  1260. height: 50%;
  1261. // border:1rpx solid #000000;
  1262. display: flex;
  1263. // justify-content: space-between;
  1264. align-items:center;
  1265. flex-direction:row;
  1266. }
  1267. }
  1268. }
  1269. .edit_title
  1270. {
  1271. width: 80%;
  1272. height: 100%;
  1273. font-size: 70rpx;
  1274. color: #000000;
  1275. // border:1rpx solid #000000;
  1276. display: flex;
  1277. justify-content: center;
  1278. align-items:center;
  1279. margin-bottom:10%;
  1280. }
  1281. .edit_text{
  1282. width: 50%;
  1283. height: 50%;
  1284. font-size: 30rpx;
  1285. color: #000000;
  1286. // border:1rpx solid #000000;
  1287. }
  1288. .input_frame{
  1289. width: 100%;
  1290. height: 80%;
  1291. border:1rpx solid #000000;
  1292. border-radius: 25rpx;
  1293. display: flex;
  1294. justify-content: center;
  1295. align-items:center;
  1296. }
  1297. .edit_input{
  1298. font-size: 30rpx;
  1299. color: #000000;
  1300. width: 80%;
  1301. height: 100%;
  1302. // border:1rpx solid #000000;
  1303. }
  1304. .modify_btn
  1305. {
  1306. width: 90%;
  1307. height: 50%;
  1308. // border:1rpx solid #000000;
  1309. display: flex;
  1310. align-items:center;
  1311. flex-direction:row;
  1312. margin-top:10%;
  1313. }
  1314. .modify_confirm
  1315. {
  1316. background: rgb(67, 127, 250);
  1317. color: rgb(255, 255, 255);
  1318. min-width: 30%;
  1319. }
  1320. .modify_cancel
  1321. {
  1322. min-width: 30%;
  1323. background: rgb(234, 37, 44);
  1324. color: rgb(255, 255, 255);
  1325. }
  1326. .m_msg {
  1327. width: 1500rpx;
  1328. height: 900rpx;
  1329. padding: 0rpx 0 40rpx 0;
  1330. position: fixed;
  1331. top: 50%;
  1332. left: 50%;
  1333. border-radius: 10rpx;
  1334. transform: translate(-50%, -50%);
  1335. z-index: 100;
  1336. background-color: #fff;
  1337. opacity: 1;
  1338. .layout{
  1339. position: absolute;
  1340. left: 50%;
  1341. bottom: 2%;
  1342. }
  1343. .m_edit {
  1344. position: relative;
  1345. left: 20%;
  1346. transform: translate(-50%, -50%);
  1347. background: rgb(67, 127, 250);
  1348. color: rgb(255, 255, 255);
  1349. min-width: 130rpx;
  1350. }
  1351. .m_delete {
  1352. position: relative;
  1353. left: 50%;
  1354. min-width: 130rpx;
  1355. transform: translate(-50%, -50%);
  1356. background: rgb(234, 37, 44);
  1357. color: rgb(255, 255, 255);
  1358. }
  1359. }
  1360. </style>