You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

modelmanage-common-detail.vue 24 kB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  1. <template>
  2. <div>
  3. <div class="ui header">
  4. <div class="ui breadcrumb">
  5. <a class="section" :href="`${repo}/modelmanage/show_model`">{{ $t('modelManage.modelManage') }}</a>
  6. <div class="divider"> / </div>
  7. <div class="active section">{{ this.state.name }}</div>
  8. </div>
  9. <div class="version">
  10. <el-select v-model="curVersion" @change="changeVersion" placeholder="">
  11. <el-option v-for="item in modelList" :value="item.version" :key="item.version" :label="item.version">
  12. </el-option>
  13. </el-select>
  14. </div>
  15. </div>
  16. <div class="content">
  17. <div class="detail-info">
  18. <div class="title">{{ $t('modelManage.basicInfo') }}:</div>
  19. <div class="area-c">
  20. <div class="area">
  21. <div class="row">
  22. <div class="tit">{{ $t('modelManage.useCluster') }}:</div>
  23. <div class="val">
  24. <div class="txt-wrap" :title="state.typeStr">
  25. {{ state.typeStr }}
  26. </div>
  27. </div>
  28. </div>
  29. <div v-show="isExpanded" class="row">
  30. <div class="tit">{{ $t('modelManage.modelSize') }}:</div>
  31. <div class="val">
  32. <div class="txt-wrap" :title="state.modelSize">{{ state.modelSize }}</div>
  33. </div>
  34. </div>
  35. <div v-show="isExpanded" class="row" :class="isEidtDescr ? 'edit-row' : ''">
  36. <div class="tit">{{ $t('modelManage.descr') }}:</div>
  37. <div class="val" :class="isEidtDescr ? 'edit-val' : ''">
  38. <div v-if="!isEidtDescr" class="txt-wrap" :title="state.description"
  39. style="max-width:100%;width:unset;padding-right:20px;">
  40. <span>{{ state.description }}</span>
  41. <i v-if="canOperate" style="position:absolute;right:0;top:3px;color:rgb(22, 132, 252);cursor:pointer;"
  42. class="el-icon-edit" @click="editDescr = state._description; isEidtDescr = true;"></i>
  43. </div>
  44. <div class="txt-edit" v-if="isEidtDescr">
  45. <el-input type="textarea" v-model="editDescr" :maxLength="255"
  46. :placeholder="$t('modelManage.modelDescrInputTips')"></el-input>
  47. <i style="position:absolute;right:-4px;bottom:20px;color:rgb(255, 37, 37);cursor:pointer;"
  48. class="icon times" @click="isEidtDescr = false;"></i>
  49. <i style="position:absolute;right:-5px;bottom:2px;color:rgb(39, 177, 72);cursor:pointer;"
  50. @click="submitEidt('descr')" class="icon check"></i>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="area">
  56. <div class="row">
  57. <div class="tit">{{ $t('modelManage.modelEngine') }}:</div>
  58. <div class="val">
  59. <div class="txt-wrap" :title="state.engineName">{{ state.engineName }}</div>
  60. </div>
  61. </div>
  62. <div v-show="isExpanded" class="row">
  63. <div class="tit">{{ $t('modelManage.createTime') }}:</div>
  64. <div class="val">
  65. <div class="txt-wrap" :title="state.createTime">{{ state.createTime }}</div>
  66. </div>
  67. </div>
  68. <div v-show="isExpanded" class="row" :class="isEidtLabel ? 'edit-row' : ''">
  69. <div class="tit">{{ $t('modelManage.label') }}:</div>
  70. <div class="val" :class="isEidtLabel ? 'edit-val' : ''">
  71. <div v-if="!isEidtLabel" class="txt-wrap" :title="state.label"
  72. style="max-width:100%;width:unset;padding-right:20px;">
  73. <span>{{ state.label }}</span>
  74. <i v-if="canOperate" style="position:absolute;right:0;top:3px;color:rgb(22, 132, 252);cursor:pointer;"
  75. class="el-icon-edit" @click="editLabel = state._label; isEidtLabel = true;"></i>
  76. </div>
  77. <div class="txt-edit" v-if="isEidtLabel">
  78. <el-input v-model="editLabel" :maxLength="255" :placeholder="$t('modelManage.modelLabelInputTips')"
  79. @input="labelInput"></el-input>
  80. <i style="position:absolute;right:-5px;bottom:20px;color:rgb(255, 37, 37);cursor:pointer;"
  81. class="icon times" @click="isEidtLabel = false;"></i>
  82. <i style="position:absolute;right:-5px;bottom:2px;color:rgb(39, 177, 72);cursor:pointer;"
  83. @click="submitEidt('label')" class="icon check"></i>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <div v-show="isExpanded" style="margin-top:8px;" class="title">{{ $t('modelManage.trainTaskInfo') }}:</div>
  90. <div v-show="isExpanded" class="area-c">
  91. <div class="area">
  92. <div class="row">
  93. <div class="tit">{{ $t('modelManage.trainTask') }}:</div>
  94. <div class="val">
  95. <div class="txt-wrap" v-html="state.displayJobName"></div>
  96. </div>
  97. </div>
  98. <div class="row">
  99. <div class="tit">{{ $t('modelManage.codeBranch') }}:</div>
  100. <div class="val">
  101. <div class="txt-wrap" v-html="state.branchName"></div>
  102. </div>
  103. </div>
  104. <div class="row">
  105. <div class="tit">{{ $t('modelManage.bootFile') }}:</div>
  106. <div class="val">
  107. <div class="txt-wrap" :title="state.bootFile">{{ state.bootFile }}</div>
  108. </div>
  109. </div>
  110. <div class="row">
  111. <div class="tit">{{ $t('modelManage.trainDataset') }}:</div>
  112. <div class="val">
  113. <div class="txt-wrap" :title="state.datasetName">{{ state.datasetName }}</div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="area">
  118. <div class="row">
  119. <div class="tit">{{ $t('modelManage.specInfo') }}:</div>
  120. <div class="val">
  121. <div class="txt-wrap" :title="state.specStr">{{ state.specStr }}</div>
  122. </div>
  123. </div>
  124. <div class="row">
  125. <div class="tit">{{ $t('modelManage.workServerNumber') }}:</div>
  126. <div class="val">
  127. <div class="txt-wrap" :title="state.workServerNumber">{{ state.workServerNumber }}</div>
  128. </div>
  129. </div>
  130. <div class="row">
  131. <div class="tit">{{ $t('modelManage.runParameters') }}:</div>
  132. <div class="val">
  133. <div class="txt-wrap" :title="state.parameters">{{ state.parameters }}</div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <div class="expand-line">
  140. <div class="line"></div>
  141. <div class="expand-btn" @click="isExpanded = !isExpanded">
  142. <i class="icon chevron circle down" :class="isExpanded ? 'up' : ''"></i>
  143. <span>{{ isExpanded ? $t('modelManage.collapseDetails') : $t('modelManage.seeMore') }}</span>
  144. </div>
  145. <div class="line"></div>
  146. </div>
  147. <div class="files-info">
  148. <div class="top">
  149. <div style="width:100%;margin-right:20px;">
  150. <div class="title">{{ $t('modelManage.modelFilesList') }}:</div>
  151. <div class="title files-path-c" style="margin-top:8px;margin-bottom:4px">
  152. <div class="file-path" v-for="(item, index) in filePath">
  153. <span v-if="index == filePath.length - 1" class="path-name">{{ item.label }}</span>
  154. <a v-if="index != filePath.length - 1" class="path-name canback" @click="goBackDir(item)">{{ item.label
  155. }}</a>
  156. <span style="color:rgba(0,0,0,.4);" class="divider"> / </span>
  157. </div>
  158. </div>
  159. </div>
  160. <div>
  161. <el-button v-if="modelType == 1 && canOperate" type="primary" icon="el-icon-upload" @click="goUploadPage">
  162. {{ $t('modelManage.uploadModelFiles') }}
  163. </el-button>
  164. </div>
  165. </div>
  166. <div class="table-container">
  167. <el-table :data="filesList" row-key="sn" style="width: 100%" v-loading="loading" stripe>
  168. <el-table-column column-key="FileName" prop="FileName" sortable
  169. :sort-method="(a, b) => a.FileName.toLocaleLowerCase().localeCompare(b.FileName.toLocaleLowerCase())"
  170. :label="$t('modelManage.fileName')" align="left" header-align="left">
  171. <template slot-scope="scope">
  172. <div class="tbl-file-name">
  173. <a v-if="scope.row.IsDir" @click="goNextDir(scope.row)" href="javascript:;">
  174. <div class="fitted" :title="scope.row.FileName">
  175. <i class="icon folder" width="16" height="16" aria-hidden="true"></i>
  176. <span>{{ scope.row.FileName }}</span>
  177. </div>
  178. </a>
  179. <a v-else :class="!canOperate ? 'disabled-download' : ''"
  180. :href="canOperate ? `${repo}/modelmanage/${state.id}/downloadsingle?parentDir=${filePath[filePath.length - 1].path ? filePath[filePath.length - 1].path + '/' : ''}&fileName=${scope.row.FileName}` : 'javascript:;'">
  181. <div class="fitted" :title="scope.row.FileName">
  182. <i class="icon file" width="16" height="16" aria-hidden="true"></i>
  183. <span>{{ scope.row.FileName }}</span>
  184. </div>
  185. </a>
  186. </div>
  187. </template>
  188. </el-table-column>
  189. <el-table-column column-key="SizeShow" prop="SizeShow" sortable :sort-method="(a, b) => a.Size - b.Size"
  190. :label="$t('modelManage.fileSize')" align="center" header-align="center" width="200">
  191. </el-table-column>
  192. <el-table-column column-key="ModTime" prop="ModTime" sortable
  193. :sort-method="(a, b) => a.ModTimeNum - b.ModTimeNum" :label="$t('modelManage.updateTime')" align="center"
  194. header-align="center" width="200">
  195. </el-table-column>
  196. <el-table-column v-if="modelType == 1 && canDelete" column-key="operate" prop="operate"
  197. :label="$t('modelManage.operate')" align="center" header-align="center" width="200">
  198. <template slot-scope="scope">
  199. <span v-if="!scope.row.IsDir" class="btn-del" @click="deleteFile(scope.row)">{{ $t('modelManage.delete')
  200. }}</span>
  201. </template>
  202. </el-table-column>
  203. </el-table>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. </template>
  209. <script>
  210. import { getModelInfoByName, modifyModel, getModelFiles, deleteModelFile } from '~/apis/modules/modelmanage';
  211. import { getUrlSearchParams, getListValueWithKey, transFileSize } from '~/utils';
  212. import { MODEL_ENGINES } from '~/const';
  213. import { formatDate } from 'element-ui/lib/utils/date-util';
  214. const REPO_NAME = location.pathname.split('/')[2];
  215. const MAX_LABEL_COUNT = 5;
  216. export default {
  217. data() {
  218. return {
  219. modelType: '0', // 1-本地, 0-线上
  220. canOperate: false,
  221. canDelete: false,
  222. isExpanded: false,
  223. loading: false,
  224. repo: location.pathname.split('/').slice(0, 3).join('/'),
  225. state: {
  226. type: 0,
  227. id: '',
  228. name: '',
  229. version: '0.0.1',
  230. engine: '0',
  231. label: '',
  232. description: '',
  233. },
  234. editDescr: '',
  235. isEidtDescr: false,
  236. editLabel: '',
  237. isEidtLabel: false,
  238. engineList: MODEL_ENGINES,
  239. curVersion: '',
  240. modelList: [],
  241. filesList: [],
  242. filePath: [],
  243. };
  244. },
  245. components: {},
  246. methods: {
  247. getDirFiles(dir) {
  248. getModelFiles({
  249. repo: this.repo,
  250. ID: this.state.id,
  251. parentDir: dir || '',
  252. }).then(res => {
  253. const list = res.data || [];
  254. list.forEach(item => {
  255. item.SizeShow = item.IsDir ? '' : transFileSize(item.Size);
  256. item.ModTimeNum = new Date(item.ModTime).getTime();
  257. })
  258. this.filesList = list;
  259. }).catch(err => {
  260. console.log(err);
  261. })
  262. },
  263. goNextDir(item) {
  264. this.filePath.push({
  265. label: item.FileName,
  266. path: item.FileName
  267. });
  268. this.getDirFiles(item.FileName);
  269. },
  270. goBackDir(item) {
  271. const index = this.filePath.findIndex(pth => item === pth);
  272. this.filePath = this.filePath.slice(0, index + 1);
  273. this.getDirFiles(item.path);
  274. },
  275. changeVersion(version, noFileRefresh) {
  276. const data = this.modelList.filter((model) => model.version == version)[0];
  277. this.modelType = data.modelType;
  278. this.canOperate = data.isCanOper;
  279. this.canDelete = data.isCanDelete;
  280. this.state.type = data.type;
  281. this.state.typeStr = data.type == 0 ? 'CPU/GPU' : data.type == 1 ? 'NPU' : '';
  282. this.state.id = data.id;
  283. this.state.name = data.name;
  284. this.state.version = data.version;
  285. this.state.engine = data.engine.toString();
  286. this.state.engineName = getListValueWithKey(MODEL_ENGINES, data.engine.toString());
  287. this.state.modelSize = transFileSize(data.size);
  288. this.state.label = data.label || '--';
  289. this.state._label = data.label;
  290. this.state.description = data.description || '--';
  291. this.state._description = data.description;
  292. this.state.createTime = formatDate(new Date(data.createdUnix * 1000), 'yyyy-MM-dd HH:mm:ss');
  293. const trainTaskInfo = data.trainTaskInfo ? JSON.parse(data.trainTaskInfo) : '';
  294. Object.assign(this.state, {
  295. displayJobName: '--',
  296. branchName: '--',
  297. bootFile: '--',
  298. datasetName: '--',
  299. parameters: '--',
  300. workServerNumber: '--',
  301. specStr: '--',
  302. });
  303. if (trainTaskInfo) {
  304. const parameters = trainTaskInfo.Parameters ? JSON.parse(trainTaskInfo.Parameters).parameter : [];
  305. const parametersStr = parameters.map((item) => { return item.label + '=' + item.value }).join('; ');
  306. const taskType = trainTaskInfo.Type;
  307. let taskUrl = location.href.split('modelmanage')[0];
  308. if (taskType == 0) {
  309. taskUrl = taskUrl + 'cloudbrain/train-job/' + trainTaskInfo.JobID;
  310. } else if (taskType == 1) {
  311. taskUrl = taskUrl + 'modelarts/train-job/' + trainTaskInfo.JobID;
  312. } else if (taskType == 2) {
  313. taskUrl = taskUrl + 'grampus/train-job/' + trainTaskInfo.JobID;
  314. }
  315. const versionName = trainTaskInfo.VersionName;
  316. const versionHtml = versionName ? `<span class="append-txt" title="${versionName}">${versionName}</span>` : '';
  317. const codeCommitID = data.codeCommitID;
  318. const codeCommitIDHtml = codeCommitID ? `<span class="append-txt" title="${codeCommitID}">${codeCommitID.slice(0, 10)}</span>` : '';
  319. Object.assign(this.state, {
  320. displayJobName: `<a href="${taskUrl}" title="${trainTaskInfo.DisplayJobName}">${trainTaskInfo.DisplayJobName}</a>${versionHtml}`,
  321. branchName: `<span>${trainTaskInfo.BranchName}</span>${codeCommitIDHtml}`,
  322. bootFile: trainTaskInfo.BootFile,
  323. datasetName: trainTaskInfo.DatasetName,
  324. parameters: parametersStr || '--',
  325. workServerNumber: trainTaskInfo.WorkServerNumber || '--',
  326. specStr: trainTaskInfo.FlavorName || '--',
  327. });
  328. }
  329. this.curVersion = version;
  330. if (!noFileRefresh) {
  331. this.filePath = [{ label: version, path: '' }];
  332. this.getDirFiles('')
  333. }
  334. },
  335. goUploadPage() {
  336. window.location.href = `${this.repo}/modelmanage/create_local_model_2?type=1&name=${this.state.name}&id=${this.state.id}`;
  337. },
  338. backToModelListPage() {
  339. const list = window.location.href.split('/');
  340. list.pop();
  341. list.push('show_model');
  342. window.location.href = list.join('/');
  343. },
  344. labelInput() {
  345. const hasEndSpace = this.editLabel[this.editLabel.length - 1] == ' ';
  346. const list = this.editLabel.trim().split(' ').filter(label => label != '');
  347. this.editLabel = list.slice(0, MAX_LABEL_COUNT).join(' ') + (hasEndSpace && list.length < MAX_LABEL_COUNT ? ' ' : '');
  348. },
  349. submitEidt(type) {
  350. const obj = {
  351. repo: this.repo,
  352. type: this.state.type,
  353. id: this.state.id,
  354. name: this.state.name,
  355. version: this.state.version,
  356. engine: this.state.engine,
  357. label: type == 'label' ? this.editLabel : this.state.label,
  358. description: type == 'descr' ? this.editDescr : this.state.description,
  359. };
  360. modifyModel(obj).then(res => {
  361. res = res.data;
  362. if (res && res.code == '0') {
  363. if (type == 'label') {
  364. this.state.label = this.editLabel;
  365. this.state._label = this.editLabel;
  366. this.isEidtLabel = false;
  367. } else if (type == 'descr') {
  368. this.state.description = this.editDescr;
  369. this.state._description = this.editDescr;
  370. this.isEidtDescr = false;
  371. }
  372. } else {
  373. this.$message({
  374. type: 'error',
  375. message: this.$t('modelManage.infoModificationFailed'),
  376. });
  377. }
  378. }).catch(err => {
  379. console.log(err);
  380. this.$message({
  381. type: 'error',
  382. message: this.$t('modelManage.infoModificationFailed'),
  383. });
  384. });
  385. },
  386. deleteFile(file) {
  387. this.$confirm(this.$t('modelManage.deleteModelFileConfirmTips'), this.$t('tips'), {
  388. confirmButtonText: this.$t('confirm1'),
  389. cancelButtonText: this.$t('cancel'),
  390. type: 'warning',
  391. lockScroll: false,
  392. }).then(() => {
  393. this.loading = true;
  394. deleteModelFile({
  395. repo: this.repo,
  396. id: this.state.id,
  397. fileName: file.FileName,
  398. }).then(res => {
  399. res = res.data;
  400. if (res.code == '0') {
  401. setTimeout(() => {
  402. this.loading = false;
  403. this.updateModelInfo();
  404. this.getDirFiles(this.filePath[this.filePath.length - 1].path);
  405. }, 30);
  406. } else {
  407. this.loading = false;
  408. this.$message({
  409. type: 'error',
  410. message: this.$t('modelManage.modelFileDeleteFailed'),
  411. });
  412. }
  413. }).catch(err => {
  414. console.log(err);
  415. this.$message({
  416. type: 'error',
  417. message: this.$t('modelManage.modelFileDeleteFailed'),
  418. });
  419. });
  420. }).catch(() => { });
  421. },
  422. updateModelInfo() {
  423. getModelInfoByName({
  424. repo: this.repo,
  425. name: this.state.name,
  426. }).then(res => {
  427. const list = res.data || [];
  428. this.modelList = list;
  429. const noFileRefresh = true;
  430. this.changeVersion(this.curVersion, noFileRefresh);
  431. }).catch(err => {
  432. console.log(err);
  433. });
  434. },
  435. },
  436. mounted() {
  437. const urlParams = getUrlSearchParams();
  438. if (urlParams.name) {
  439. this.state.name = urlParams.name;
  440. this.loading = true;
  441. getModelInfoByName({
  442. repo: this.repo,
  443. name: urlParams.name,
  444. }).then(res => {
  445. this.loading = false;
  446. const list = res.data || [];
  447. this.modelList = list;
  448. if (list && list.length) {
  449. const data = list[0];
  450. this.changeVersion(data.version);
  451. }
  452. }).catch(err => {
  453. this.loading = false;
  454. console.log(err);
  455. this.backToModelListPage();
  456. });
  457. } else {
  458. this.backToModelListPage();
  459. }
  460. },
  461. beforeDestroy() {
  462. },
  463. };
  464. </script>
  465. <style scoped lang="less">
  466. .header {
  467. display: flex;
  468. align-items: center;
  469. .version {
  470. margin-left: 16px;
  471. width: 90px;
  472. }
  473. }
  474. .content {
  475. .title {
  476. font-weight: 550;
  477. font-size: 14px;
  478. color: rgb(16, 16, 16);
  479. margin-bottom: 10px;
  480. }
  481. .detail-info {
  482. border: 1px solid rgb(232, 232, 232);
  483. border-bottom: none;
  484. padding: 22px;
  485. padding-bottom: 1px;
  486. .area-c {
  487. display: flex;
  488. .area {
  489. flex: 1;
  490. .row {
  491. display: flex;
  492. height: 32px;
  493. margin-bottom: 4px;
  494. align-items: center;
  495. &.edit-row {
  496. height: unset;
  497. }
  498. .tit {
  499. width: 160px;
  500. text-align: right;
  501. color: rgb(136, 136, 136);
  502. }
  503. .val {
  504. flex: 1;
  505. color: rgb(16, 16, 16);
  506. position: relative;
  507. height: 20px;
  508. &.edit-val {
  509. height: unset;
  510. }
  511. .txt-wrap {
  512. position: absolute;
  513. overflow: hidden;
  514. text-overflow: ellipsis;
  515. white-space: nowrap;
  516. width: 100%;
  517. /deep/.append-txt {
  518. margin-left: 6px;
  519. background-color: gainsboro;
  520. padding: 2px;
  521. border-radius: 2px;
  522. font-size: 12px;
  523. }
  524. }
  525. }
  526. .txt-edit {
  527. padding-right: 20px;
  528. }
  529. }
  530. }
  531. }
  532. }
  533. .expand-line {
  534. display: flex;
  535. align-items: center;
  536. border: 1px solid rgb(232, 232, 232);
  537. border-top: none;
  538. border-bottom: none;
  539. padding: 16px 0;
  540. .line {
  541. flex: 1;
  542. height: 1px;
  543. background-color: rgb(232, 232, 232);
  544. margin: 0 22px;
  545. }
  546. .expand-btn {
  547. color: rgba(22, 132, 252, 1);
  548. cursor: pointer;
  549. .icon {
  550. margin-right: 2px;
  551. font-size: 14px;
  552. color: rgba(22, 132, 252, 0.8),
  553. }
  554. }
  555. }
  556. .files-info {
  557. border: 1px solid rgb(232, 232, 232);
  558. border-top: none;
  559. border-bottom: none;
  560. .top {
  561. padding: 0 22px 8px 22px;
  562. display: flex;
  563. align-items: center;
  564. justify-content: space-between;
  565. }
  566. .files-path-c {
  567. margin-bottom: 4px;
  568. height: 20px;
  569. .file-path {
  570. margin-right: 6px;
  571. float: left;
  572. .path-name {
  573. &.canback {
  574. color: #4183c4;
  575. }
  576. }
  577. }
  578. }
  579. .table-container {
  580. /deep/ .el-table__header {
  581. th {
  582. background: rgb(245, 245, 246);
  583. color: rgb(16, 16, 16);
  584. font-weight: 400;
  585. font-size: 14px;
  586. }
  587. }
  588. /deep/ .el-table__body {
  589. td {
  590. color: rgb(16, 16, 16);
  591. font-weight: 400;
  592. font-size: 14px;
  593. }
  594. }
  595. .tbl-file-name {
  596. height: 32px;
  597. display: flex;
  598. align-items: center;
  599. overflow: hidden;
  600. font-size: 16px;
  601. font-weight: 500;
  602. position: relative;
  603. a {
  604. max-width: 100%;
  605. .fitted {
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. white-space: nowrap;
  609. max-width: 100%;
  610. }
  611. }
  612. .disabled-download {
  613. cursor: default;
  614. pointer-events: none;
  615. color: rgba(0, 0, 0, .6) !important;
  616. opacity: .45 !important;
  617. }
  618. }
  619. .btn-del {
  620. color: #0366d6;
  621. cursor: pointer;
  622. }
  623. }
  624. }
  625. }
  626. .el-select-dropdown__item.selected {
  627. color: rgba(0, 0, 0, .95);
  628. }
  629. /deep/ .el-select {
  630. .is-focus {
  631. .el-input__inner {
  632. border-color: #85b7d9;
  633. }
  634. }
  635. }
  636. .el-select {
  637. /deep/ .el-input__inner {
  638. font-weight: 600;
  639. }
  640. }
  641. /deep/ .el-input__inner {
  642. &:focus {
  643. border-color: #85b7d9;
  644. }
  645. }
  646. /deep/ .el-textarea__inner {
  647. &:focus {
  648. border-color: #85b7d9;
  649. }
  650. }
  651. </style>