project.vue 39 KB

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