[update] 54853
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
>
|
>
|
||||||
<a-row :gutter='24'>
|
<a-row :gutter='24'>
|
||||||
<a-col :span='24'>
|
<a-col :span='24'>
|
||||||
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='region'>
|
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='querySdt'>
|
||||||
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt">
|
<a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt">
|
||||||
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
|
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
|
||||||
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||||
@@ -212,9 +212,9 @@
|
|||||||
areaVisible: false,
|
areaVisible: false,
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
// templatetitle: [
|
querySdt: [
|
||||||
// { required: true, message: this.$t('enterTitle'), trigger: 'blur' }
|
{ required: true, message: this.$t('PleaseSelect')+this.$t('engineeringInterfacePerson'), trigger: 'blur' }
|
||||||
// ]
|
]
|
||||||
},
|
},
|
||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
@@ -285,35 +285,39 @@
|
|||||||
handleSubmit(record) {
|
handleSubmit(record) {
|
||||||
let _this = this
|
let _this = this
|
||||||
let param = { sdt: this.Dateline.querySdt, ids: this.getquerySdtId }
|
let param = { sdt: this.Dateline.querySdt, ids: this.getquerySdtId }
|
||||||
axios({
|
this.$refs.ruleForm.validate(valid => {
|
||||||
url: '/jero-boot/params/collectManifest/updateSdt',
|
if (valid) {
|
||||||
method: 'post',
|
axios({
|
||||||
data: param,
|
url: '/jero-boot/params/collectManifest/updateSdt',
|
||||||
transformRequest: [function(data) {
|
method: 'post',
|
||||||
let ret = ''
|
data: param,
|
||||||
for (let it in data) {
|
transformRequest: [function(data) {
|
||||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
let ret = ''
|
||||||
}
|
for (let it in data) {
|
||||||
return ret
|
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||||
}],
|
}
|
||||||
headers: {
|
return ret
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
}],
|
||||||
'X-Access-Token': _this.token
|
headers: {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
'X-Access-Token': _this.token
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res)
|
||||||
|
if (res.data.success) {
|
||||||
|
_this.$message.success(res.data.result)
|
||||||
|
_this.areaVisible = false
|
||||||
|
this.getLoginUserType()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(res.data.result)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then((res) => {
|
|
||||||
console.log(res)
|
|
||||||
if (res.data.success) {
|
|
||||||
_this.$message.success(res.data.result)
|
|
||||||
_this.areaVisible = false
|
|
||||||
this.getLoginUserType()
|
|
||||||
} else {
|
|
||||||
_this.$message.warning(res.data.result)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.log(error)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
// 工程接口人 取消
|
// 工程接口人 取消
|
||||||
cancleImports() {
|
cancleImports() {
|
||||||
|
|||||||
Reference in New Issue
Block a user