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-form-item>
<el-row :gutter="10"> <el-row :gutter="10">
<el-col> <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-date-picker v-model="formTemplate.version" type="date" value-format="yyyy-MM-dd" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -537,7 +537,7 @@
</el-radio> </el-radio>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="达到表格限定高度,将最后一行移除,在下一页继续写入" placement="top-start"> <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-radio>
</el-tooltip> </el-tooltip>
@ -639,7 +639,7 @@
label-width="150px" label-width="150px"
> >
<el-radio-group v-model="form.affiliatedAddMode"> <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 }} {{ item }}
</el-radio> </el-radio>
</el-radio-group> </el-radio-group>
@ -761,7 +761,7 @@ export default {
templateSettingId: '' // id templateSettingId: '' // id
}, },
form: { form: {
templateId: '', templateId: undefined,
writeMode: 0, writeMode: 0,
tableIndex: 1, tableIndex: 1,
tableMode: 0, tableMode: 0,
@ -882,11 +882,30 @@ export default {
getJylbList() { getJylbList() {
this.getNeibuList('jylb', null, null) 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() { addTemFn() {
this.initTemplateSettingForm()
this.dialogVisible1 = true this.dialogVisible1 = true
}, },
editFnTem(row) { editFnTem(row) {
this.form = row this.form = this.common.deepCopy(row)
this.dialogVisible1 = true this.dialogVisible1 = true
}, },
addtemFn() { addtemFn() {

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

@ -379,13 +379,13 @@ export default {
}, },
getYsjl() { getYsjl() {
this.api({ this.api({
url: '/ysjl/getYsjlById', url: '/ysjl',
method: 'get', method: 'get',
params: { params: {
ysjlId: this.$route.query.id ysjlId: this.$route.query.id
} }
}).then(data => { }).then(data => {
this.ysjl = data.ysjl this.ysjl = data
if (this.ysjl.jianyanrenyuan) { if (this.ysjl.jianyanrenyuan) {
this.jianyanrenyuan = this.common.convertCnName(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, currentRenwuId: 0,
dialogEnclosureVisible: false, dialogEnclosureVisible: false,
isSysUser: this.$store.getters.clientType === 'System', isSysUser: this.$store.getters.clientType === 'System',
searchNblist:[] searchNblist: []
} }
}, },
computed: { computed: {
@ -305,7 +305,7 @@ export default {
allCategory: { allCategory: {
handler(n, o) { handler(n, o) {
console.log(n.filter(item => item.parentId)) console.log(n.filter(item => item.parentId))
this.searchNblist = n.filter(item => item.parentId) this.searchNblist = n.filter(item => item.parentId)
}, },
deep: true deep: true
} }

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save