diff --git a/project/fengdu/app/AppDynamic/components/Detail.vue b/project/fengdu/app/AppDynamic/components/Detail.vue index eb948f59..81f87a41 100644 --- a/project/fengdu/app/AppDynamic/components/Detail.vue +++ b/project/fengdu/app/AppDynamic/components/Detail.vue @@ -16,24 +16,8 @@ - - - - - - - - - - + + diff --git a/project/fengdu/app/AppDynamic/components/List.vue b/project/fengdu/app/AppDynamic/components/List.vue index 63dc3e9b..4fb652b0 100644 --- a/project/fengdu/app/AppDynamic/components/List.vue +++ b/project/fengdu/app/AppDynamic/components/List.vue @@ -62,7 +62,7 @@ { prop: 'title', label: '标题', align: 'left', width: '200px' }, { prop: 'createUserName', label: '姓名', align: 'center' }, { prop: 'areaName', label: '所属地区', align: 'center' }, - { prop: 'createUserName', label: '推送人', align: 'center' }, + { prop: 'examineUserName', label: '推送人', align: 'center' }, { prop: 'createTime', label: '推送时间', align: 'center' } ], tableData: [], diff --git a/project/fengdu/app/AppIntegratingRules/components/List.vue b/project/fengdu/app/AppIntegratingRules/components/List.vue index 63428d25..10bf3110 100644 --- a/project/fengdu/app/AppIntegratingRules/components/List.vue +++ b/project/fengdu/app/AppIntegratingRules/components/List.vue @@ -45,7 +45,7 @@ - + @@ -94,8 +94,8 @@ var validcode = (rule, value, callback) => { if (value) { if (value != 0) { - if (!/^([+-]?([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value)) { - callback(new Error('请输入积分分值,可输入正数、负数、最多保留两位小数')) + if (!/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value)) { + callback(new Error('请输入积分分值,只可输入正数、最多保留两位小数')) } else { callback(); } @@ -326,7 +326,7 @@ }, handleTypeForm(v) { if (this.dialog) { - if(v[0] == '1' || v[0]== '10') { + if(v[1] == '17') { this.form.scoringCycle = '0' this.form.numberLimit = '1' this.isOneAndTen = true diff --git a/project/fengdu/app/AppResidentIntegrating/components/Detail.vue b/project/fengdu/app/AppResidentIntegrating/components/Detail.vue index 685b797b..0afde2c5 100644 --- a/project/fengdu/app/AppResidentIntegrating/components/Detail.vue +++ b/project/fengdu/app/AppResidentIntegrating/components/Detail.vue @@ -37,17 +37,10 @@ @getList="getList" :col-configs="colConfigs" :dict="dict"> - - - - + @@ -87,9 +80,9 @@ colConfigs() { return [ {prop: "doTime", label: '时间', align: "left", width: "200px"}, - {slot: "integralType", label: '类型', align: "center", width: "240px", dict: "integralType"}, + {prop: "integralType", label: '类型', align: "center", dict: "integralType"}, {slot: "changeIntegral"}, - {prop: "nowIntegral", label: '剩余积分', align: "center", width: "200px"}, + {prop: "nowIntegral", label: '剩余积分', align: "center" }, {slot: "eventDesc"}, ] } diff --git a/project/fengdu/app/AppResidentIntegrating/components/List.vue b/project/fengdu/app/AppResidentIntegrating/components/List.vue index b2832acf..e8dd3012 100644 --- a/project/fengdu/app/AppResidentIntegrating/components/List.vue +++ b/project/fengdu/app/AppResidentIntegrating/components/List.vue @@ -8,7 +8,8 @@ 导出 @@ -16,13 +17,13 @@ @@ -52,7 +53,7 @@ @onConfirm="onConfirm" @closed="form={},chooseUserList=[]"> - + @@ -63,7 +64,7 @@ - @@ -85,7 +86,8 @@ props: { instance: Function, - dict: Object + dict: Object, + permissions: Function }, data() { @@ -93,7 +95,7 @@ search: { current: 1, size: 10, - title: '', + idNumber: '', areaId: '' }, form: { @@ -106,13 +108,14 @@ dialog: false, chooseUserList: [], total: 0, + isEdit: false, colConfigs: [ { prop: 'realName', label: '姓名', align: 'left', width: '200px' }, { prop: 'phone', label: '手机号', align: 'center' }, { prop: 'idNumber', label: '身份证号', align: 'center' }, { prop: 'areaName', label: '所属地区', align: 'center' }, { prop: 'girdName', label: '所属网格', align: 'center' }, - { prop: 'integral', label: '积分总分', align: 'center' }, + { prop: 'integral', label: '剩余积分', align: 'center' }, { prop: 'usedIntegral', label: '已用积分', align: 'center' } ], tableData: [] @@ -128,7 +131,8 @@ params () { return { - ...this.search + ...this.search, + size: 1000 } }, @@ -145,7 +149,9 @@ created() { this.search.areaId = this.user.info.areaId - this.getList() + this.dict.load('integralCalcType').then(() => { + this.getList() + }) }, methods: { @@ -173,16 +179,16 @@ }, changeIntegral(row,type) { + this.isEdit = false if(type==0) { this.dialog = true } else if(type ==1) { + this.isEdit = true this.chooseUserList = [{ openId: row.openId, name: row.realName }] this.form = { - ...this.form, - ...row, ids: this.chooseUserList.map(e => e.openId) } diff --git a/project/qujing/app/AppCertificateManage/components/Add.vue b/project/qujing/app/AppCertificateManage/components/Add.vue index 381487cd..b6350eb4 100644 --- a/project/qujing/app/AppCertificateManage/components/Add.vue +++ b/project/qujing/app/AppCertificateManage/components/Add.vue @@ -6,18 +6,39 @@ @@ -42,13 +63,29 @@ info: {}, form: { certificateName: '', - imageUrl: [] + certificateIssueUnit: '曲靖市政法委', + certificateTitle: '知法明理人证书', + certificateContent: `恭喜您成为曲靖市第 「#获得证书序号」位知法明理人 + + 特颁此证,以资鼓励!` }, - id: '' + id: '', + date: '' + } + }, + + computed: { + certificateContent () { + if (this.form.certificateContent.indexOf('「#获得证书序号」') > -1) { + return this.form.certificateContent.replace('「#获得证书序号」', '') + } + + return this.form.certificateContent } }, created () { + this.date = this.$moment(new Date()).format(`YYYY年MM月DD日`) if (this.params && this.params.id) { this.id = this.params.id this.getInfo(this.params.id) @@ -69,12 +106,18 @@ }) }, + append () { + if (this.form.certificateContent.indexOf('「#获得证书序号」') === -1) { + this.form.certificateContent = this.form.certificateContent + '「#获得证书序号」' + } + }, + confirm () { this.$refs.form.validate((valid) => { if (valid) { this.instance.post(`/app/appcertificateinfo/addOrUpdate`, { ...this.form, - imageUrl: this.form.imageUrl[0].url + id: this.params.id || '' }).then(res => { if (res.code == 0) { this.$message.success('提交成功') @@ -99,5 +142,122 @@