Browse Source

fix:[表单管理]优化

lkf
15881625488@163.com 2 months ago
parent
commit
c1f4dd2452
4 changed files with 10 additions and 10 deletions
  1. +1
    -1
      src/views/business/study/comp/jhbd/Bj.vue
  2. +2
    -2
      src/views/business/study/comp/sqbd/Bj.vue
  3. +4
    -4
      src/views/business/study/comp/tbbd/Bj.vue
  4. +3
    -3
      src/views/business/study/comp/ytbd/Bj.vue

+ 1
- 1
src/views/business/study/comp/jhbd/Bj.vue View File

@ -193,7 +193,7 @@ export default {
onPlanCallback(data) { onPlanCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
if (data.type == 'fieldChanged' ) {
studyFormPlan_updateBdnr( studyFormPlan_updateBdnr(
{ {
id: this.form.id, id: this.form.id,

+ 2
- 2
src/views/business/study/comp/sqbd/Bj.vue View File

@ -76,7 +76,7 @@
</div> </div>
<div class="content" v-if="showIndex == 2"> <div class="content" v-if="showIndex == 2">
<TemplateTable ref="templateTable" emitName="onApplyCallback" @onApplyCallback="onApplyCallback" <TemplateTable ref="templateTable" emitName="onApplyCallback" @onApplyCallback="onApplyCallback"
:sn="form.templateSn" :templateData="form" fillType="actFill" />
:sn="form.templateSn" :templateData="templateData" fillType="actFill" />
</div> </div>
</div> </div>
</div> </div>
@ -193,7 +193,7 @@ export default {
onApplyCallback(data) { onApplyCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
if (data.type == 'fieldChanged') {
studyFormApply_updateBdnr( studyFormApply_updateBdnr(
{ {
id: this.form.id, id: this.form.id,

+ 4
- 4
src/views/business/study/comp/tbbd/Bj.vue View File

@ -320,7 +320,7 @@ export default {
remark: '', remark: '',
bdnr: '', bdnr: '',
resource: '', resource: '',
yqResource:'',
yqResource: '',
qmrmm: '', qmrmm: '',
sfcz: false, sfcz: false,
czfs: '', czfs: '',
@ -332,7 +332,7 @@ export default {
ccids: '', ccids: '',
}, },
resource: [], resource: [],
yqResource:[],
yqResource: [],
bdmbTitle: this.$t('page.business.form.bdmb'), bdmbTitle: this.$t('page.business.form.bdmb'),
rulesApprove: { rulesApprove: {
qmrmm: [{ qmrmm: [{
@ -363,7 +363,7 @@ export default {
onFillCallback(data) { onFillCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
if (data.type == 'fieldChanged' ) {
studyFormFill_updateBdnr( studyFormFill_updateBdnr(
{ {
id: this.form.id, id: this.form.id,
@ -519,7 +519,7 @@ export default {
this.form = response.data this.form = response.data
this.templateData = deepClone(this.form) this.templateData = deepClone(this.form)
this.showIndex = 2 this.showIndex = 2
const obj = Object.assign({}, this.$route, { title: this.form.bdmc })
const obj = Object.assign({}, this.$route, { title: this.form.bdmc })
this.$tab.updatePage(obj); this.$tab.updatePage(obj);
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()

+ 3
- 3
src/views/business/study/comp/ytbd/Bj.vue View File

@ -73,7 +73,7 @@
<el-dialog :title="$t('page.business.study.studyFormPre.tjysb')" :visible.sync="openSubmit" width="500px" <el-dialog :title="$t('page.business.study.studyFormPre.tjysb')" :visible.sync="openSubmit" width="500px"
append-to-body :close-on-click-modal="false"> append-to-body :close-on-click-modal="false">
<el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px" v-if="openSubmit"> <el-form ref="formSubmit" :model="form" :rules="rulesApprove" label-width="120px" v-if="openSubmit">
<div class="sbzdtcma"> <input type="text"> <input type="password" show-password> </div>
<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.studyFormPre.shryId')" prop="shryId"> <el-form-item :label="$t('page.business.study.studyFormPre.shryId')" prop="shryId">
@ -123,7 +123,7 @@
<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" show-password v-model="form.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" /> :placeholder="$t('form.placeholderInput')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -199,7 +199,7 @@ export default {
onPreCallback(data) { onPreCallback(data) {
console.log("data:" + JSON.stringify(data)) console.log("data:" + JSON.stringify(data))
console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData())) console.log("formdata:" + JSON.stringify(this.$refs.templateTable.getFilledFormData()))
if (data.type == 'fieldChanged'&&data.newRecord&&data.newRecord!='') {
if (data.type == 'fieldChanged' ) {
studyFormPre_updateBdnr( studyFormPre_updateBdnr(
{ {
id: this.form.id, id: this.form.id,

Loading…
Cancel
Save