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