diff --git a/src/views/business/resource/gsp/comps/gsp/Ff.vue b/src/views/business/resource/gsp/comps/gsp/Ff.vue
index 7fa1808..b57568e 100644
--- a/src/views/business/resource/gsp/comps/gsp/Ff.vue
+++ b/src/views/business/resource/gsp/comps/gsp/Ff.vue
@@ -315,9 +315,7 @@ export default {
},
handleSc(row) {
const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
that.selectList.splice(_index, 1)
diff --git a/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue b/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue
index f025d2d..6dea830 100644
--- a/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue
+++ b/src/views/business/resource/gyzj/comps/gyzj/Czrq.vue
@@ -191,9 +191,7 @@ export default {
methods: {
handleSc(row) {
const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
that.selectList.splice(_index, 1)
diff --git a/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue b/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue
index 66fb434..50d2365 100644
--- a/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue
+++ b/src/views/business/resource/gyzj/comps/gyzj/Czyj.vue
@@ -210,9 +210,7 @@ export default {
methods: {
handleSc(row) {
const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
that.selectList.splice(_index, 1)
diff --git a/src/views/business/resource/gyzj/comps/gyzj/Ff.vue b/src/views/business/resource/gyzj/comps/gyzj/Ff.vue
index ade0300..d4c5a78 100644
--- a/src/views/business/resource/gyzj/comps/gyzj/Ff.vue
+++ b/src/views/business/resource/gyzj/comps/gyzj/Ff.vue
@@ -78,7 +78,7 @@
{{ form.nddw
- }}
+ }}
@@ -99,7 +99,7 @@
{{ form.ckldw
- }}
+ }}
@@ -296,9 +296,7 @@ export default {
},
handleSc(row) {
const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
that.selectList.splice(_index, 1)
@@ -312,13 +310,23 @@ export default {
this.form.ids = val.map(item => item.id)
let tmp = []
_.forEach(val, function (item) {
- let a = item
- a.zytj = null
- a.mdIds = null
- a.mdMcs = null
- a.mdOther = null
- a.remark = null
- tmp.push(a)
+ tmp.push({
+ id: item.id,
+ mc: item.mc,
+ bh: item.bh,
+ nd: item.nd,
+ nddw: item.nddw,
+ kc: item.kc,
+ kcdw: item.kcdw,
+ cctj: item.cctj,
+ sxrq: item.sxrq,
+ ccwz: item.ccwz,
+ zytj: null,
+ mdIds: null,
+ mdMcs: null,
+ mdOther: null,
+ remark: null
+ })
})
this.selectList = tmp
this.open = true
diff --git a/src/views/business/resource/mjy/comps/mjy/Czrq.vue b/src/views/business/resource/mjy/comps/mjy/Czrq.vue
index d55d5b0..3e387ac 100644
--- a/src/views/business/resource/mjy/comps/mjy/Czrq.vue
+++ b/src/views/business/resource/mjy/comps/mjy/Czrq.vue
@@ -191,9 +191,7 @@ export default {
methods: {
handleSc(row) {
const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
that.selectList.splice(_index, 1)
diff --git a/src/views/business/resource/mjy/comps/mjy/Czyj.vue b/src/views/business/resource/mjy/comps/mjy/Czyj.vue
index d4ddde4..071c973 100644
--- a/src/views/business/resource/mjy/comps/mjy/Czyj.vue
+++ b/src/views/business/resource/mjy/comps/mjy/Czyj.vue
@@ -212,9 +212,7 @@ export default {
methods: {
handleSc(row) {
const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
that.selectList.splice(_index, 1)
diff --git a/src/views/business/resource/mjy/comps/mjy/Ff.vue b/src/views/business/resource/mjy/comps/mjy/Ff.vue
index 952e294..6dc9632 100644
--- a/src/views/business/resource/mjy/comps/mjy/Ff.vue
+++ b/src/views/business/resource/mjy/comps/mjy/Ff.vue
@@ -44,8 +44,8 @@
-
+
@@ -87,7 +87,7 @@
{{ form.nddw
- }}
+ }}
@@ -108,7 +108,7 @@
{{ form.ckldw
- }}
+ }}
@@ -121,7 +121,7 @@
-
+
@@ -221,7 +221,7 @@ import SelectStudy from '@/views/business/comps/select/SelectStudy';
export default {
name: "Ff",
- components: { SelectList, SelectDeptUser,SelectStudy },
+ components: { SelectList, SelectDeptUser, SelectStudy },
data() {
return {
isBatch: false,
@@ -270,7 +270,7 @@ export default {
message: ' ',
trigger: 'blur'
}],
-
+
ckmzdw: [{
required: true,
message: ' ',
@@ -309,19 +309,25 @@ export default {
created() {
},
methods: {
- selectStudyChange(val){
- this.form.mdMcs=val.name
- this.form.mdOther=val.other
+ selectStudyChange(val) {
+ this.form.mdMcs = val.name
+ this.form.mdOther = val.other
+ },
+ selectStudyChangeBatch(val) {
+ if (val && val.id && val.id !== '') {
+ const _index = _.findIndex(this.selectList, function (o) { return o.id + '' === val.key })
+ if (_index > -1) {
+ this.selectList[_index].mdMcs = val.name
+ this.selectList[_index].mdOther = val.mdOther
+ }
+ }
},
handleSc(row) {
- const that = this
- this.$modal.confirm(this.$t('form.confirmDelete')).then(function () {
- return delDept(row.deptId)
- }).then(() => {
- const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id })
+ this.$modal.confirm(this.$t('form.confirmDelete')).then(() => {
+ const _index = _.findIndex(this.selectList, function (o) { return o.id === row.id })
if (_index > -1) {
- that.selectList.splice(_index, 1)
- that.form.ids = that.selectList.map(item => item.id)
+ this.selectList.splice(_index, 1)
+ this.form.ids = this.selectList.map(item => item.id)
}
}).catch(() => { })
},
@@ -331,15 +337,25 @@ export default {
this.form.ids = val.map(item => item.id)
let tmp = []
_.forEach(val, function (item) {
- let a = item
- a.ckmzdw = a.kcdw
- a.zytj = null
- a.ckmz = null
- a.mdIds = null
- a.mdMcs = null
- a.mdOther = null
- a.remark = null
- tmp.push(a)
+ tmp.push({
+ id: item.id,
+ mc: item.mc,
+ bh: item.bh,
+ nd: item.nd,
+ nddw: item.nddw,
+ kc: item.kc,
+ kcdw: item.kcdw,
+ cctj: item.cctj,
+ sxrq: item.sxrq,
+ ccwz: item.ccwz,
+ ckmzdw:item.kcdw,
+ zytj: null,
+ ckmz: null,
+ mdIds: null,
+ mdMcs: null,
+ mdOther: null,
+ remark: null
+ })
})
this.selectList = tmp
this.open = true