Browse Source

优化页面编辑

master
李磊 3 years ago
parent
commit
cc7ff55e7f
  1. 29
      src/components/drawerDialog/index.vue
  2. 4
      src/views/bggl/2000/jj/cyqp.vue
  3. 4
      src/views/task/list.vue
  4. 17
      src/views/ysjl/1000/dj/sy/sysy.vue
  5. 24
      src/views/ysjl/1000/dj/wb/gywb.vue
  6. 6
      src/views/ysjl/2000/2200/zbg/dj/edit.vue
  7. 6
      src/views/ysjl/2000/2200/zbg/nd/tuoche.vue
  8. 4
      src/views/ysjl/2000/2300/zbg/jj/cyqp.vue
  9. 4
      src/views/ysjl/2000/2400/common/ycjl.vue
  10. 4
      src/views/ysjl/2000/2400/zbg/jj/edit.vue
  11. 2
      src/views/ysjl/7000/jj/edit.vue
  12. 8
      src/views/ysjl/components/gascylinder_db_list.vue
  13. 4
      src/views/ysjl/components/manufacture_db_list.vue

29
src/components/drawerDialog/index.vue

@ -188,7 +188,7 @@
</el-form-item>
<el-row :gutter="10">
<el-col>
<el-form-item label="版本号(发布上线日期)" prop="version" required>
<el-form-item label="版本号(上线日期)" label-width="120px" prop="version">
<el-date-picker v-model="formTemplate.version" type="date" value-format="yyyy-MM-dd" />
</el-form-item>
</el-col>
@ -537,7 +537,7 @@
</el-radio>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="达到表格限定高度,将最后一行移除,在下一页继续写入" placement="top-start">
<el-radio :label="1">
<el-radio :label="1" :disabled="form.writeMode === 2">
表格高度限制
</el-radio>
</el-tooltip>
@ -639,7 +639,7 @@
label-width="150px"
>
<el-radio-group v-model="form.affiliatedAddMode">
<el-radio v-for="(item, affiliatedAddModeIndex) in affiliatedAddModes" :key="affiliatedAddModeIndex" :label="affiliatedAddModeIndex">
<el-radio v-for="(item, affiliatedAddModeIndex) in affiliatedAddModes" :key="affiliatedAddModeIndex" :label="affiliatedAddModeIndex" :disabled="affiliatedAddModeIndex !== 0 && form.writeMode === 2">
{{ item }}
</el-radio>
</el-radio-group>
@ -761,7 +761,7 @@ export default {
templateSettingId: '' // id
},
form: {
templateId: '',
templateId: undefined,
writeMode: 0,
tableIndex: 1,
tableMode: 0,
@ -882,11 +882,30 @@ export default {
getJylbList() {
this.getNeibuList('jylb', null, null)
},
initTemplateSettingForm() {
this.form = {
templateId: this.id,
writeMode: 0,
tableIndex: 1,
tableMode: 0,
tableRowFindMode: 0,
tableStartRow: 0,
tableRowCount: 0,
affiliatedTableStartRow: 0,
affiliatedTableRowCount: 0,
sort: 1,
tableType: 0,
isChild: false,
jyxmMode: 0,
affiliatedAddMode: 0
}
},
addTemFn() {
this.initTemplateSettingForm()
this.dialogVisible1 = true
},
editFnTem(row) {
this.form = row
this.form = this.common.deepCopy(row)
this.dialogVisible1 = true
},
addtemFn() {

4
src/views/bggl/2000/jj/cyqp.vue

@ -379,13 +379,13 @@ export default {
},
getYsjl() {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: this.$route.query.id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}

4
src/views/task/list.vue

@ -295,7 +295,7 @@ export default {
currentRenwuId: 0,
dialogEnclosureVisible: false,
isSysUser: this.$store.getters.clientType === 'System',
searchNblist:[]
searchNblist: []
}
},
computed: {
@ -305,7 +305,7 @@ export default {
allCategory: {
handler(n, o) {
console.log(n.filter(item => item.parentId))
this.searchNblist = n.filter(item => item.parentId)
this.searchNblist = n.filter(item => item.parentId)
},
deep: true
}

17
src/views/ysjl/1000/dj/sy/sysy.vue

@ -374,7 +374,6 @@ export default {
})
},
initYsjl() {
const tempTime = new Date()
this.api({
url: '/ysjl/initYsjl',
method: 'post',
@ -392,7 +391,7 @@ export default {
this.param = (data.param !== null && data.param !== undefined) ? data.param : {}
this.ysjl.jilubianhao = this.jilubianhao
this.ysjl.baogaobianhao = null //
this.ysjl.bianzhiriqi = tempTime.getFullYear() + '-' + (tempTime.getMonth() + 1) + '-' + tempTime.getDate()
this.ysjl.bianzhiriqi = this.formatter.dateFormat('YYYY-MM-dd')
this.ysjl.jianyanjielun = '合格'
this.ysjl.jigouhezhunzhenghao = process.env.VUE_APP_HZZBH
this.ysjl.beizhu = '/'
@ -407,13 +406,13 @@ export default {
},
getYsjl(id) {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}
@ -518,7 +517,7 @@ export default {
let type = ''
this.ysjl.bglx = 1
this.ysjl.cjState = 'ysjl'
this.ysjl.zfState = '0'
this.ysjl.zfState = 0
this.ysjl.jianyanxiangmu = 'sysy'
this.ysjl.jlprintState = 0
if (operation === 'add') {
@ -556,8 +555,10 @@ export default {
data: {
ysjl: this.ysjl,
param: this.param,
jyxm: jyxm,
bgjyxm: jyxm,
cyJyxm: {
jyxm: jyxm,
bgjyxm: jyxm
},
flag: operation
}
}).then(data => {
@ -567,8 +568,6 @@ export default {
this.$message({ message: '保存成功, 请前往待办记录中查看。', type: 'success' })
this.ysjl.id = data
this.param.ysjlId = data
// 16
this.common.updStateByNew(this.ysjl.renwuId, '2', false)
//
this.$store.dispatch('delCurrentViews', {
view: this.$route,

24
src/views/ysjl/1000/dj/wb/gywb.vue

@ -467,13 +467,13 @@ export default {
},
getYsjl(id) {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan !== null && this.ysjl.jianyanrenyuan.length > 0) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}
@ -545,15 +545,7 @@ export default {
})
})
} else {
data.forEach(row => {
this.sybjSData.push({
id: row.id,
jianyanxiang: row.jianyanxiang,
jianyanmu: row.jianyanmu,
jianyanneirong: row.jianyanneirong,
D1: row.d1
})
})
this.sybjSData = data
}
this.tableJs.getData(this.cols, this.rows, this.sybjSData)
})
@ -584,7 +576,7 @@ export default {
let type = ''
this.ysjl.bglx = 1
this.ysjl.cjState = 'ysjl'
this.ysjl.zfState = '0'
this.ysjl.zfState = 0
this.ysjl.jianyanxiangmu = 'gywb'
this.ysjl.jlprintState = 0
if (this.ysjl.jianyanjielun === '不符合要求') {
@ -625,8 +617,10 @@ export default {
data: {
ysjl: this.ysjl,
param: this.param,
jyxm: jyxm,
bgjyxm: jyxm,
cyJyxm: {
jyxm: jyxm,
bgjyxm: jyxm
},
flag: operation
}
}).then(data => {
@ -636,8 +630,6 @@ export default {
this.$message({ message: '保存成功, 请前往待办记录中查看。', type: 'success' })
this.ysjl.id = data
this.param.ysjlId = data
// 16
this.common.updStateByNew(this.ysjl.renwuId, '2', false)
//
this.$store.dispatch('delCurrentViews', {
view: this.$route,

6
src/views/ysjl/2000/2200/zbg/dj/edit.vue

@ -948,13 +948,13 @@ export default {
},
getYsjl() {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: this.$route.query.id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}
@ -1103,7 +1103,7 @@ export default {
let type = ''
this.ysjl.bglx = 1
this.ysjl.cjState = 'ysjl'
this.ysjl.zfState = '0'
this.ysjl.zfState = 0
this.ysjl.jianyanxiangmu = this.jyxm
this.ysjl.jlprintState = 0
this.ysjl.jigouhezhunzhenghao = process.env.VUE_APP_HZZBH

6
src/views/ysjl/2000/2200/zbg/nd/tuoche.vue

@ -408,13 +408,13 @@ export default {
},
getYsjl() {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: this.$route.query.id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}
@ -549,7 +549,7 @@ export default {
let type = ''
this.ysjl.bglx = 1
this.ysjl.cjState = 'ysjl'
this.ysjl.zfState = '0'
this.ysjl.zfState = 0
this.ysjl.jianyanxiangmu = this.jyxm
this.ysjl.jlprintState = 0
this.ysjl.jigouhezhunzhenghao = process.env.VUE_APP_HZZBH

4
src/views/ysjl/2000/2300/zbg/jj/cyqp.vue

@ -344,13 +344,13 @@ export default {
},
getYsjl() {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: this.$route.query.id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}

4
src/views/ysjl/2000/2400/common/ycjl.vue

@ -720,13 +720,13 @@ export default {
},
getYsjl() {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: this.$route.query.id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}

4
src/views/ysjl/2000/2400/zbg/jj/edit.vue

@ -599,13 +599,13 @@ export default {
},
getYsjl() {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: this.$route.query.id
}
}).then(data => {
this.ysjl = data.ysjl
this.ysjl = data
if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(this.ysjl.jianyanrenyuan)
}

2
src/views/ysjl/7000/jj/edit.vue

@ -535,7 +535,7 @@ export default {
let type = ''
this.ysjl.bglx = 1
this.ysjl.cjState = 'ysjl'
this.ysjl.zfState = '0'
this.ysjl.zfState = 0
this.ysjl.jlprintState = 0
if (operation === 'add') {
type = 'post'

8
src/views/ysjl/components/gascylinder_db_list.vue

@ -248,14 +248,6 @@ export default {
ids: ids
}
}).then(() => {
// 16renwuId1618
if (oldRwIds !== '') {
this.common.updStateByOld(oldRwIds, '0', false)
}
// 1816
if (newRwIds !== '') {
this.common.updStateByNew(newRwIds, '0', false)
}
this.$message({
message: '删除成功',
type: 'success',

4
src/views/ysjl/components/manufacture_db_list.vue

@ -685,13 +685,13 @@ export default {
},
async showDataComparison(row) {
this.api({
url: '/ysjl/getYsjlById',
url: '/ysjl',
method: 'get',
params: {
ysjlId: row.id
}
}).then(async data => {
this.selection = data.ysjl
this.selection = data
await this.getParamByYsjlId(this.selection.id, this.selection.shebeizhongleidaima)
this.api({
url: '/renwu/get',

Loading…
Cancel
Save