|
|
@ -4,11 +4,11 @@ G |
|
|
<el-dialog :title="$t('page.business.study.studyMethod.scff')" :visible.sync="open" width="400px" append-to-body |
|
|
<el-dialog :title="$t('page.business.study.studyMethod.scff')" :visible.sync="open" width="400px" append-to-body |
|
|
:close-on-click-modal="false"> |
|
|
:close-on-click-modal="false"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
|
|
|
|
|
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('page.business.study.studyMethod.mc')" prop="ffmc"> |
|
|
<el-form-item :label="$t('page.business.study.studyMethod.mc')" prop="ffmc"> |
|
|
<el-input type="text" v-model="form.ffmc" maxlength="20" |
|
|
|
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
|
|
|
<el-input type="text" v-model="form.ffmc" maxlength="20" :placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -54,7 +54,7 @@ G |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('form.password')" prop="qmrmm"> |
|
|
<el-form-item :label="$t('form.password')" prop="qmrmm"> |
|
|
<el-input type="password" v-model="form.qmrmm" maxlength="20" autocomplete="off" auto-complete="new-password" show-password |
|
|
|
|
|
|
|
|
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -111,7 +111,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters([ |
|
|
...mapGetters([ |
|
|
'nickName','name' |
|
|
|
|
|
|
|
|
'nickName', 'name' |
|
|
]), |
|
|
]), |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
@ -182,10 +182,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 上传成功回调 |
|
|
// 上传成功回调 |
|
|
handleUploadSuccess(res, file) { |
|
|
handleUploadSuccess(res, file) { |
|
|
console.log(res) |
|
|
|
|
|
|
|
|
console.log(file) |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
this.form.fileUrl = res.data.url |
|
|
this.form.fileUrl = res.data.url |
|
|
this.form.fileName = res.data.name |
|
|
this.form.fileName = res.data.name |
|
|
|
|
|
const fileName = file.name.split('.') |
|
|
|
|
|
const fileExt = fileName[fileName.length - 1] |
|
|
|
|
|
|
|
|
|
|
|
this.form.ffmc = file.name.replace('.' + fileExt, '') |
|
|
this.fileList.push({ name: res.data.name, url: res.data.url }) |
|
|
this.fileList.push({ name: res.data.name, url: res.data.url }) |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
} else { |
|
|
} else { |
|
|
|