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