Browse Source

Resources Management

tags/v1.22.8.2^2
chenshihai 3 years ago
parent
commit
a8cdd34758
7 changed files with 16 additions and 14 deletions
  1. +2
    -1
      web_src/vuepages/langs/config/en-US.js
  2. +6
    -5
      web_src/vuepages/langs/config/zh-CN.js
  3. +2
    -2
      web_src/vuepages/pages/resources/components/QueueDialog.vue
  4. +2
    -2
      web_src/vuepages/pages/resources/components/SceneDialog.vue
  5. +1
    -1
      web_src/vuepages/pages/resources/components/SpecificationDialog.vue
  6. +1
    -1
      web_src/vuepages/pages/resources/scene/index.vue
  7. +2
    -2
      web_src/vuepages/pages/resources/specification/index.vue

+ 2
- 1
web_src/vuepages/langs/config/en-US.js View File

@@ -5,6 +5,7 @@ const en = {

confirm: 'Confirm',
cancel: 'Cancel',
confirm1: 'Confirm',
pleaseCompleteTheInformationFirst: 'Please Complete the Information first!',
submittedSuccessfully: 'Submitted Successfully!',
submittedFailed: 'Submitted Failed!',
@@ -112,7 +113,7 @@ const en = {
cardsTotalNum: 'Cards Total Number',
accCardsNum: 'Acc Cards Number',
remark: 'Remark',
pleaseEnterRemark: 'Please Enter Remark',
pleaseEnterRemark: 'Please Enter Remark(The maximum length shall not exceed 255)',
pleaseEnterPositiveIntegerCardsTotalNum: 'Please Enter Positive Integer Cards Total Number!',
addResSpecificationAndPriceInfo: 'Add Resources Specification and Price Info',
addResSpecificationBtn: 'Add Resources Specification',


+ 6
- 5
web_src/vuepages/langs/config/zh-CN.js View File

@@ -3,8 +3,9 @@ const zh = {
noData: '暂无数据',
date: '日期',

confirm: '确',
confirm: '确',
cancel: '取消',
confirm1: '确认',
pleaseCompleteTheInformationFirst: '请先完善信息!',
submittedSuccessfully: '提交成功!',
submittedFailed: '提交失败!',
@@ -112,7 +113,7 @@ const zh = {
cardsTotalNum: '卡数',
accCardsNum: '卡数',
remark: '备注',
pleaseEnterRemark: '请输入备注',
pleaseEnterRemark: '请输入备注(最大长度不超过255)',
pleaseEnterPositiveIntegerCardsTotalNum: '请输入正整数的卡数!',
addResSpecificationAndPriceInfo: '新增资源规格和单价信息',
addResSpecificationBtn: '新增资源规格',
@@ -127,11 +128,11 @@ const zh = {
shareMem: '共享内存',
unitPrice: '单价',
point_hr: '积分/时',
onShelfConfirm: '请确认是否上架该规格?',
offShelfConfirm: '请确认是否下架该规格?',
onShelfConfirm: '请确认上架该规格?',
offShelfConfirm: '请确认下架该规格?',
onShelfCode1001: '上架失败,资源池(队列)不可用。',
offShelfDlgTip1: '当前资源规格已在以下场景中使用:',
offShelfDlgTip2: '请确认是否进行下架操作?',
offShelfDlgTip2: '请确认进行下架操作?',
resSceneManagement: '算力资源应用场景管理',
addResScene: '新建算力资源应用场景',
addResSceneBtn: '新增应用场景',


+ 2
- 2
web_src/vuepages/pages/resources/components/QueueDialog.vue View File

@@ -10,7 +10,7 @@
<span>{{ $t('resourcesManagement.resQueueName') }}</span>
</div>
<div class="content">
<el-input v-model="dataInfo.QueueCode" placeholder="" :disabled="type === 'edit'"></el-input>
<el-input v-model="dataInfo.QueueCode" placeholder="" :disabled="type === 'edit'" maxlength="255"></el-input>
</div>
</div>
<div class="form-row">
@@ -64,7 +64,7 @@
<div class="form-row" style="margin-top: 10px">
<div class="title"><span>{{ $t('resourcesManagement.remark') }}</span></div>
<div class="content" style="width: 400px">
<el-input type="textarea" :autosize="{ minRows: 3, maxRows: 4 }"
<el-input type="textarea" :autosize="{ minRows: 3, maxRows: 4 }" maxlength="255"
:placeholder="$t('resourcesManagement.pleaseEnterRemark')" v-model="dataInfo.Remark">
</el-input>
</div>


+ 2
- 2
web_src/vuepages/pages/resources/components/SceneDialog.vue View File

@@ -10,7 +10,7 @@
<span>{{ $t('resourcesManagement.resSceneName') }}</span>
</div>
<div class="content">
<el-input v-model="dataInfo.SceneName" placeholder=""></el-input>
<el-input v-model="dataInfo.SceneName" placeholder="" maxlength="255"></el-input>
</div>
</div>
<div class="form-row">
@@ -38,7 +38,7 @@
<span>{{ $t('resourcesManagement.exclusiveOrg') }}</span>
</div>
<div class="content">
<el-input v-model="dataInfo.ExclusiveOrg" :placeholder="$t('resourcesManagement.exclusiveOrgTips')">
<el-input v-model="dataInfo.ExclusiveOrg" :placeholder="$t('resourcesManagement.exclusiveOrgTips')" maxlength="255">
</el-input>
</div>
</div>


+ 1
- 1
web_src/vuepages/pages/resources/components/SpecificationDialog.vue View File

@@ -20,7 +20,7 @@
<span>{{ $t('resourcesManagement.sourceSpecCode') }}</span>
</div>
<div class="content">
<el-input v-model="dataInfo.SourceSpecId" :placeholder="$t('resourcesManagement.sourceSpecCodeTips')"
<el-input v-model="dataInfo.SourceSpecId" :placeholder="$t('resourcesManagement.sourceSpecCodeTips')" maxlength="255"
:disabled="type === 'edit'">
</el-input>
</div>


+ 1
- 1
web_src/vuepages/pages/resources/scene/index.vue View File

@@ -239,7 +239,7 @@ export default {
},
deleteRow(row) {
this.$confirm(this.$t('resourcesManagement.resSceneDeleteConfirm'), this.$t('tips'), {
confirmButtonText: this.$t('confirm'),
confirmButtonText: this.$t('confirm1'),
cancelButtonText: this.$t('cancel'),
type: 'warning',
lockScroll: false,


+ 2
- 2
web_src/vuepages/pages/resources/specification/index.vue View File

@@ -257,7 +257,7 @@ export default {
onShelf(data) {
const type = 'on-shelf';
this.$confirm(type === 'on-shelf' ? this.$t('resourcesManagement.onShelfConfirm') : this.$t('resourcesManagement.offShelfConfirm'), this.$t('tips'), {
confirmButtonText: this.$t('confirm'),
confirmButtonText: this.$t('confirm1'),
cancelButtonText: this.$t('cancel'),
type: 'warning',
lockScroll: false,
@@ -297,7 +297,7 @@ export default {
},
offShelfPrev(data) {
this.$confirm(this.$t('resourcesManagement.offShelfConfirm'), this.$t('tips'), {
confirmButtonText: this.$t('confirm'),
confirmButtonText: this.$t('confirm1'),
cancelButtonText: this.$t('cancel'),
type: 'warning',
lockScroll: false,


Loading…
Cancel
Save