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

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  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 ref="tableRef" :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. list.sort((a, b) => b.ModTimeNum - a.ModTimeNum);
  259. this.filesList = list;
  260. this.$refs['tableRef']?.clearSort();
  261. }).catch(err => {
  262. console.log(err);
  263. });
  264. },
  265. goNextDir(item) {
  266. this.filePath.push({
  267. label: item.FileName,
  268. path: item.FileName
  269. });
  270. this.getDirFiles(item.FileName);
  271. },
  272. goBackDir(item) {
  273. const index = this.filePath.findIndex(pth => item === pth);
  274. this.filePath = this.filePath.slice(0, index + 1);
  275. this.getDirFiles(item.path);
  276. },
  277. changeVersion(version, noFileRefresh) {
  278. const data = this.modelList.filter((model) => model.version == version)[0];
  279. this.modelType = data.modelType;
  280. this.canOperate = data.isCanOper;
  281. this.canDelete = data.isCanDelete;
  282. this.state.type = data.type;
  283. this.state.typeStr = data.type == 0 ? 'CPU/GPU' : data.type == 1 ? 'NPU' : '';
  284. this.state.id = data.id;
  285. this.state.name = data.name;
  286. this.state.version = data.version;
  287. this.state.engine = data.engine.toString();
  288. this.state.engineName = getListValueWithKey(MODEL_ENGINES, data.engine.toString());
  289. this.state.modelSize = transFileSize(data.size);
  290. this.state.label = data.label || '--';
  291. this.state._label = data.label;
  292. this.state.description = data.description || '--';
  293. this.state._description = data.description;
  294. this.state.createTime = formatDate(new Date(data.createdUnix * 1000), 'yyyy-MM-dd HH:mm:ss');
  295. const trainTaskInfo = data.trainTaskInfo ? JSON.parse(data.trainTaskInfo) : '';
  296. Object.assign(this.state, {
  297. displayJobName: '--',
  298. branchName: '--',
  299. bootFile: '--',
  300. datasetName: '--',
  301. parameters: '--',
  302. workServerNumber: '--',
  303. specStr: '--',
  304. });
  305. if (trainTaskInfo) {
  306. const parameters = trainTaskInfo.Parameters ? JSON.parse(trainTaskInfo.Parameters).parameter : [];
  307. const parametersStr = parameters.map((item) => { return item.label + '=' + item.value }).join('; ');
  308. const taskType = trainTaskInfo.Type;
  309. let taskUrl = location.href.split('modelmanage')[0];
  310. if (taskType == 0) {
  311. taskUrl = taskUrl + 'cloudbrain/train-job/' + trainTaskInfo.JobID;
  312. } else if (taskType == 1) {
  313. taskUrl = taskUrl + 'modelarts/train-job/' + trainTaskInfo.JobID;
  314. } else if (taskType == 2) {
  315. taskUrl = taskUrl + 'grampus/train-job/' + trainTaskInfo.JobID;
  316. }
  317. const versionName = trainTaskInfo.VersionName;
  318. const versionHtml = versionName ? `<span class="append-txt" title="${versionName}">${versionName}</span>` : '';
  319. const codeCommitID = data.codeCommitID;
  320. const codeCommitIDHtml = codeCommitID ? `<span class="append-txt" title="${codeCommitID}">${codeCommitID.slice(0, 10)}</span>` : '';
  321. Object.assign(this.state, {
  322. displayJobName: `<a href="${taskUrl}" title="${trainTaskInfo.DisplayJobName}">${trainTaskInfo.DisplayJobName}</a>${versionHtml}`,
  323. branchName: `<span>${trainTaskInfo.BranchName}</span>${codeCommitIDHtml}`,
  324. bootFile: trainTaskInfo.BootFile,
  325. datasetName: trainTaskInfo.DatasetName,
  326. parameters: parametersStr || '--',
  327. workServerNumber: trainTaskInfo.WorkServerNumber || '--',
  328. specStr: trainTaskInfo.FlavorName || '--',
  329. });
  330. }
  331. this.curVersion = version;
  332. if (!noFileRefresh) {
  333. this.filePath = [{ label: version, path: '' }];
  334. this.getDirFiles('')
  335. }
  336. },
  337. goUploadPage() {
  338. window.location.href = `${this.repo}/modelmanage/create_local_model_2?type=1&name=${this.state.name}&id=${this.state.id}`;
  339. },
  340. backToModelListPage() {
  341. const list = window.location.href.split('/');
  342. list.pop();
  343. list.push('show_model');
  344. window.location.href = list.join('/');
  345. },
  346. labelInput() {
  347. const hasEndSpace = this.editLabel[this.editLabel.length - 1] == ' ';
  348. const list = this.editLabel.trim().split(' ').filter(label => label != '');
  349. this.editLabel = list.slice(0, MAX_LABEL_COUNT).join(' ') + (hasEndSpace && list.length < MAX_LABEL_COUNT ? ' ' : '');
  350. },
  351. submitEidt(type) {
  352. const obj = {
  353. repo: this.repo,
  354. type: this.state.type,
  355. id: this.state.id,
  356. name: this.state.name,
  357. version: this.state.version,
  358. engine: this.state.engine,
  359. label: type == 'label' ? this.editLabel : this.state.label,
  360. description: type == 'descr' ? this.editDescr : this.state.description,
  361. };
  362. modifyModel(obj).then(res => {
  363. res = res.data;
  364. if (res && res.code == '0') {
  365. if (type == 'label') {
  366. this.state.label = this.editLabel;
  367. this.state._label = this.editLabel;
  368. this.isEidtLabel = false;
  369. } else if (type == 'descr') {
  370. this.state.description = this.editDescr;
  371. this.state._description = this.editDescr;
  372. this.isEidtDescr = false;
  373. }
  374. } else {
  375. this.$message({
  376. type: 'error',
  377. message: this.$t('modelManage.infoModificationFailed'),
  378. });
  379. }
  380. }).catch(err => {
  381. console.log(err);
  382. this.$message({
  383. type: 'error',
  384. message: this.$t('modelManage.infoModificationFailed'),
  385. });
  386. });
  387. },
  388. deleteFile(file) {
  389. this.$confirm(this.$t('modelManage.deleteModelFileConfirmTips'), this.$t('tips'), {
  390. confirmButtonText: this.$t('confirm1'),
  391. cancelButtonText: this.$t('cancel'),
  392. type: 'warning',
  393. lockScroll: false,
  394. }).then(() => {
  395. this.loading = true;
  396. deleteModelFile({
  397. repo: this.repo,
  398. id: this.state.id,
  399. fileName: file.FileName,
  400. }).then(res => {
  401. res = res.data;
  402. if (res.code == '0') {
  403. setTimeout(() => {
  404. this.loading = false;
  405. this.updateModelInfo();
  406. this.getDirFiles(this.filePath[this.filePath.length - 1].path);
  407. }, 30);
  408. } else {
  409. this.loading = false;
  410. this.$message({
  411. type: 'error',
  412. message: this.$t('modelManage.modelFileDeleteFailed'),
  413. });
  414. }
  415. }).catch(err => {
  416. console.log(err);
  417. this.$message({
  418. type: 'error',
  419. message: this.$t('modelManage.modelFileDeleteFailed'),
  420. });
  421. });
  422. }).catch(() => { });
  423. },
  424. updateModelInfo() {
  425. getModelInfoByName({
  426. repo: this.repo,
  427. name: this.state.name,
  428. }).then(res => {
  429. const list = res.data || [];
  430. this.modelList = list;
  431. const noFileRefresh = true;
  432. this.changeVersion(this.curVersion, noFileRefresh);
  433. }).catch(err => {
  434. console.log(err);
  435. });
  436. },
  437. },
  438. mounted() {
  439. const urlParams = getUrlSearchParams();
  440. if (urlParams.name) {
  441. this.state.name = urlParams.name;
  442. this.loading = true;
  443. getModelInfoByName({
  444. repo: this.repo,
  445. name: urlParams.name,
  446. }).then(res => {
  447. this.loading = false;
  448. const list = res.data || [];
  449. this.modelList = list;
  450. if (list && list.length) {
  451. const data = list[0];
  452. this.changeVersion(data.version);
  453. }
  454. }).catch(err => {
  455. this.loading = false;
  456. console.log(err);
  457. this.backToModelListPage();
  458. });
  459. } else {
  460. this.backToModelListPage();
  461. }
  462. },
  463. beforeDestroy() {
  464. },
  465. };
  466. </script>
  467. <style scoped lang="less">
  468. .header {
  469. display: flex;
  470. align-items: center;
  471. .version {
  472. margin-left: 16px;
  473. width: 90px;
  474. }
  475. }
  476. .content {
  477. .title {
  478. font-weight: 550;
  479. font-size: 14px;
  480. color: rgb(16, 16, 16);
  481. margin-bottom: 10px;
  482. }
  483. .detail-info {
  484. border: 1px solid rgb(232, 232, 232);
  485. border-bottom: none;
  486. padding: 22px;
  487. padding-bottom: 1px;
  488. .area-c {
  489. display: flex;
  490. .area {
  491. flex: 1;
  492. .row {
  493. display: flex;
  494. height: 32px;
  495. margin-bottom: 4px;
  496. align-items: center;
  497. &.edit-row {
  498. height: unset;
  499. }
  500. .tit {
  501. width: 160px;
  502. text-align: right;
  503. color: rgb(136, 136, 136);
  504. }
  505. .val {
  506. flex: 1;
  507. color: rgb(16, 16, 16);
  508. position: relative;
  509. height: 20px;
  510. &.edit-val {
  511. height: unset;
  512. }
  513. .txt-wrap {
  514. position: absolute;
  515. overflow: hidden;
  516. text-overflow: ellipsis;
  517. white-space: nowrap;
  518. width: 100%;
  519. /deep/.append-txt {
  520. margin-left: 6px;
  521. background-color: gainsboro;
  522. padding: 2px;
  523. border-radius: 2px;
  524. font-size: 12px;
  525. }
  526. }
  527. }
  528. .txt-edit {
  529. padding-right: 20px;
  530. }
  531. }
  532. }
  533. }
  534. }
  535. .expand-line {
  536. display: flex;
  537. align-items: center;
  538. border: 1px solid rgb(232, 232, 232);
  539. border-top: none;
  540. border-bottom: none;
  541. padding: 16px 0;
  542. .line {
  543. flex: 1;
  544. height: 1px;
  545. background-color: rgb(232, 232, 232);
  546. margin: 0 22px;
  547. }
  548. .expand-btn {
  549. color: rgba(22, 132, 252, 1);
  550. cursor: pointer;
  551. .icon {
  552. margin-right: 2px;
  553. font-size: 14px;
  554. color: rgba(22, 132, 252, 0.8),
  555. }
  556. }
  557. }
  558. .files-info {
  559. border: 1px solid rgb(232, 232, 232);
  560. border-top: none;
  561. border-bottom: none;
  562. .top {
  563. padding: 0 22px 8px 22px;
  564. display: flex;
  565. align-items: center;
  566. justify-content: space-between;
  567. }
  568. .files-path-c {
  569. margin-bottom: 4px;
  570. height: 20px;
  571. .file-path {
  572. margin-right: 6px;
  573. float: left;
  574. .path-name {
  575. &.canback {
  576. color: #4183c4;
  577. }
  578. }
  579. }
  580. }
  581. .table-container {
  582. /deep/ .el-table__header {
  583. th {
  584. background: rgb(245, 245, 246);
  585. color: rgb(16, 16, 16);
  586. font-weight: 400;
  587. font-size: 14px;
  588. }
  589. }
  590. /deep/ .el-table__body {
  591. td {
  592. color: rgb(16, 16, 16);
  593. font-weight: 400;
  594. font-size: 14px;
  595. }
  596. }
  597. .tbl-file-name {
  598. height: 32px;
  599. display: flex;
  600. align-items: center;
  601. overflow: hidden;
  602. font-size: 16px;
  603. font-weight: 500;
  604. position: relative;
  605. a {
  606. max-width: 100%;
  607. .fitted {
  608. overflow: hidden;
  609. text-overflow: ellipsis;
  610. white-space: nowrap;
  611. max-width: 100%;
  612. }
  613. }
  614. .disabled-download {
  615. cursor: default;
  616. pointer-events: none;
  617. color: rgba(0, 0, 0, .6) !important;
  618. opacity: .45 !important;
  619. }
  620. }
  621. .btn-del {
  622. color: #0366d6;
  623. cursor: pointer;
  624. }
  625. }
  626. }
  627. }
  628. .el-select-dropdown__item.selected {
  629. color: rgba(0, 0, 0, .95);
  630. }
  631. /deep/ .el-select {
  632. .is-focus {
  633. .el-input__inner {
  634. border-color: #85b7d9;
  635. }
  636. }
  637. }
  638. .el-select {
  639. /deep/ .el-input__inner {
  640. font-weight: 600;
  641. }
  642. }
  643. /deep/ .el-input__inner {
  644. &:focus {
  645. border-color: #85b7d9;
  646. }
  647. }
  648. /deep/ .el-textarea__inner {
  649. &:focus {
  650. border-color: #85b7d9;
  651. }
  652. }
  653. </style>