[update] 企标更改流程禁用一些修改单的字段,选择标准组件增加清空按钮
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
NODE_ENV=development
|
NODE_ENV=development
|
||||||
VUE_APP_TAG_FLAG=0
|
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_LOGIN_PAGE='/user/login'
|
||||||
VUE_APP_CURRENT_SYSTEM='inner'
|
VUE_APP_CURRENT_SYSTEM='inner'
|
||||||
VUE_APP_LOGOUT_PAGE='/user/login'
|
VUE_APP_LOGOUT_PAGE='/user/login'
|
||||||
|
|||||||
@@ -7,7 +7,9 @@
|
|||||||
@input="indexClick($event)"
|
@input="indexClick($event)"
|
||||||
:disabled="disabled || selectOnly"
|
:disabled="disabled || selectOnly"
|
||||||
:max-length="500"
|
: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">
|
<a-button v-if="!disabled" type="primary" class="button-box" @click="standardClick">
|
||||||
{{this.$t('standardSelect.standardSelection')}}
|
{{this.$t('standardSelect.standardSelection')}}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -63,6 +65,13 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$refs.standardSelectionModal.open()
|
this.$refs.standardSelectionModal.open()
|
||||||
},
|
},
|
||||||
|
// 清空输入框
|
||||||
|
clearInput () {
|
||||||
|
console.log('输入框清空了')
|
||||||
|
this.$emit('change', '')
|
||||||
|
this.$emit('nameChange', '')
|
||||||
|
this.$emit('listChange', [])
|
||||||
|
},
|
||||||
// 输入框输入监听
|
// 输入框输入监听
|
||||||
indexClick (event) {
|
indexClick (event) {
|
||||||
this.$emit('change', event.target.value)
|
this.$emit('change', event.target.value)
|
||||||
@@ -101,4 +110,13 @@ export default {
|
|||||||
margin-left: 10px;
|
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>
|
</style>
|
||||||
|
|||||||
@@ -311,6 +311,7 @@ export default {
|
|||||||
},
|
},
|
||||||
close () {
|
close () {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.selectedRowKeys = []
|
||||||
this.ipagination = {
|
this.ipagination = {
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
|||||||
@@ -63,11 +63,11 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="item-model" prop="levelCode">
|
<a-form-model-item class="item-model" prop="levelCode">
|
||||||
<a-input class="box-input"
|
<j-dict-select-tag class="box-input"
|
||||||
v-model="formInline.levelCode"
|
dict-code="change_level_code"
|
||||||
:maxLength="50"
|
v-model="formInline.levelCode"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.levelCode')" />
|
:placeholder="$t('pleaseSelect')+$t('workCenter.enStandardChange.levelCode')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
<!-- 有无二维或三维图 -->
|
<!-- 有无二维或三维图 -->
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.has2d3dGraph"
|
v-model="formInline.has2d3dGraph"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.isHasGraph')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.isHasGraph')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.customerConfirmation"
|
v-model="formInline.customerConfirmation"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.customerConfirmation')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.customerConfirmation')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.refreshFileNumber"
|
v-model="formInline.refreshFileNumber"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.refreshFileNumber')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.refreshFileNumber')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.inventory"
|
v-model="formInline.inventory"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.inventory')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.inventory')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.workInProgress"
|
v-model="formInline.workInProgress"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.workInProgress')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.workInProgress')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.spareParts"
|
v-model="formInline.spareParts"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.spareParts')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.spareParts')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
<a-input class="box-input"
|
<a-input class="box-input"
|
||||||
v-model="formInline.relatedChanges"
|
v-model="formInline.relatedChanges"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
:disabled="disabled"
|
disabled
|
||||||
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.relatedChanges')" />
|
:placeholder="$t('pleaseEnter')+$t('workCenter.enStandardChange.relatedChanges')" />
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user