[update] 企标更改流程禁用一些修改单的字段,选择标准组件增加清空按钮
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
NODE_ENV=development
|
||||
VUE_APP_TAG_FLAG=0
|
||||
VUE_APP_LOGIN_PAGE='https://iam-uat.sinotruk.com:7011/idp/oauth2/authorize?redirect_uri=http://srms-test.sinotruk.com/dashboard/analysis&state=123&client_id=SRMS&response_type=code'
|
||||
VUE_APP_LOGIN_PAGE='/user/login'
|
||||
VUE_APP_CURRENT_SYSTEM='inner'
|
||||
VUE_APP_LOGOUT_PAGE='/user/login'
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
@input="indexClick($event)"
|
||||
:disabled="disabled || selectOnly"
|
||||
:max-length="500"
|
||||
:placeholder="placeholder"/>
|
||||
:placeholder="placeholder">
|
||||
<a-icon v-if="nameStr || value" slot="suffix" class="close-icon" type="close-circle" theme="filled" @click="clearInput" />
|
||||
</a-input>
|
||||
<a-button v-if="!disabled" type="primary" class="button-box" @click="standardClick">
|
||||
{{this.$t('standardSelect.standardSelection')}}
|
||||
</a-button>
|
||||
@@ -63,6 +65,13 @@ export default {
|
||||
}
|
||||
this.$refs.standardSelectionModal.open()
|
||||
},
|
||||
// 清空输入框
|
||||
clearInput () {
|
||||
console.log('输入框清空了')
|
||||
this.$emit('change', '')
|
||||
this.$emit('nameChange', '')
|
||||
this.$emit('listChange', [])
|
||||
},
|
||||
// 输入框输入监听
|
||||
indexClick (event) {
|
||||
this.$emit('change', event.target.value)
|
||||
@@ -101,4 +110,13 @@ export default {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
font-size: 12px;
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
transition: color 0.3s;
|
||||
}
|
||||
.close-icon:hover {
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -311,6 +311,7 @@ export default {
|
||||
},
|
||||
close () {
|
||||
this.visible = false
|
||||
this.selectedRowKeys = []
|
||||
this.ipagination = {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
|
||||
@@ -63,11 +63,11 @@
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="levelCode">
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.levelCode"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.levelCode')" />
|
||||
<j-dict-select-tag class="box-input"
|
||||
dict-code="change_level_code"
|
||||
v-model="formInline.levelCode"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.levelCode')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 有无二维或三维图 -->
|
||||
@@ -82,7 +82,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.has2d3dGraph"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.isHasGraph')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -98,7 +98,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.customerConfirmation"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.customerConfirmation')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -114,7 +114,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.refreshFileNumber"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.refreshFileNumber')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -130,7 +130,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.inventory"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.inventory')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -146,7 +146,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.workInProgress"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.workInProgress')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -162,7 +162,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.spareParts"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.spareParts')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -178,7 +178,7 @@
|
||||
<a-input class="box-input"
|
||||
v-model="formInline.relatedChanges"
|
||||
:maxLength="50"
|
||||
:disabled="disabled"
|
||||
disabled
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.relatedChanges')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user