diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue index 2aeb97321..157bcb0a8 100644 --- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue +++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue @@ -29,6 +29,7 @@ class="u-item-width-normal" size="small" clearable + type="number" placeholder="请输入" > @@ -36,31 +37,34 @@
-
- - - - - 删除 +
+ + + + + + + + 删除 +
- -
添加
+ 添加
@@ -81,19 +85,11 @@ - + - - - + + { - return item.value.indexOf(queryString) !== -1; - }) - : volunteerList; - // 调用 callback 返回建议列表的数据 - cb(results); + querySearchVolunteer(queryString, cb) { + const { volunteerList } = this; + var results = queryString + ? volunteerList.filter(item => { + return item.value.indexOf(queryString) !== -1; + }) + : volunteerList; + // 调用 callback 返回建议列表的数据 + cb(results); }, - handleSelectVolunteer (index, vItem) { - this.formData.organizationPersonnel[index] = { - personName: vItem.name, - personPhone: vItem.mobile, - icResiUserId: vItem.icResiUserId, - }; + handleSelectVolunteer(index, vItem) { + this.formData.organizationPersonnel[index] = { + personName: vItem.name, + personPhone: vItem.mobile, + icResiUserId: vItem.icResiUserId + }; }, - + async getVolunteerList() { const url = '/epmetuser/icresiuser/volunteer-list'; const params = {}; @@ -426,8 +422,8 @@ export default { url = '/actual/base/iccommunityselforganization/editcommunityselforganization'; // this.dataForm.orgId = this.orgId; } - - params = { ...this.formData }; + console.log("this.",this.formData) + let params = { ...this.formData }; const { data, code, msg } = await requestPost(url, params); if (code === 0) { this.$message.success('添加成功'); @@ -549,4 +545,5 @@ export default { @import '@/assets/scss/modules/management/form-main.scss'; @import '@/assets/scss/modules/management/form.scss'; @import '@/assets/scss/modules/visual/a_customize.scss'; +.textarea{width: 500px;} diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue index 12c4a11c3..f28439364 100644 --- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue +++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/index.vue @@ -68,26 +68,20 @@ - + @@ -149,11 +135,11 @@ import nextTick from 'dai-js/tools/nextTick'; import { mapGetters } from 'vuex'; import addForm from './addForm.vue'; import axios from 'axios'; -import scoreRecord from "./scoreRecord.vue"; +import scoreRecord from './scoreRecord.vue'; export default { data() { return { - scoreDiaShow:false, + scoreDiaShow: false, dialogVisible: false, importLoading: false, disabled: false, @@ -176,10 +162,11 @@ export default { detailId: '', detailData: {}, multipleSelection: [], - rowObj: {} + rowObj: {}, + orgId: '' }; }, - components: { addForm,scoreRecord }, + components: { addForm, scoreRecord }, created() {}, computed: { maxTableHeight() { @@ -197,15 +184,13 @@ export default { }, methods: { //积分记录 - handleScore (row) { - this.scoreDiaShow = true; - this.$nextTick(() => { - this.$refs.ref_score.initForm(row.orgId); - }); + handleScore(row) { + this.orgId = row.orgId; + this.scoreDiaShow = true; }, - - diaClose () { - this.scoreDiaShow = false; + + diaClose() { + this.scoreDiaShow = false; }, handleSelectionChange(val) { this.multipleSelection = []; diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue index 1ba828ea2..aebaeef8e 100644 --- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue +++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/scoreRecord.vue @@ -1,351 +1,303 @@ -