@@ -355,7 +380,8 @@ export default {
idCardImgList: [],
unit: ''
}],
- fileList: []
+ fileList: [],
+ docList: []
},
zzmmOptions: [
{ name: '党员', value: '党员' },
@@ -391,7 +417,10 @@ export default {
buildingOptions: [],
unitOptions: [],
houseOptions: [],
- agencyOptions: []
+ agencyOptions: [],
+ uploadUrl: `${window.SITE_CONFIG['apiURL']}/oss/file/uploadqrcodeV2`,
+ customerId: localStorage.getItem("customerId"),
+ limit: 3
}
},
computed: {
@@ -537,6 +566,7 @@ export default {
unit: ''
}],
fileList: [],
+ docList: [],
agencyImgList: []
}
},
@@ -866,6 +896,43 @@ export default {
this.editModeGetList()
}).catch(() => {})
},
+ handleFlieSuccess(res, file) {
+ if (res.code === 0 && res.msg === "success") {
+ let ob = {
+ fileType: '0',
+ fileUrl: file.response.data.url,
+ name: file.response.data.fileName
+ }
+ this.dataForm.docList.push(ob)
+ } else {
+ this.$message.error(res.msg)
+ }
+ },
+ handleFlieError(res, file) {
+ console.log(res)
+ },
+ handleFlieRemove(res) {
+ // console.log(JSON.stringify(res))
+ const delFile = res.fileUrl
+ this.dataForm.docList.forEach((item, key) => {
+ if (delFile == item.fileUrl) {
+ this.dataForm.docList.splice(key, 1)
+ }
+ })
+ },
+ handleFlieExceed(res) {
+ this.$message({
+ type: "warning",
+ message: `文件数量最多不超过${this.limit}个`,
+ })
+ },
+ beforeFlieUpload(file) {
+ console.log(file)
+ },
+ handlePreview(file) {
+ window.open(file.fileUrl)
+ // console.log(JSON.stringify(file));
+ },
// 表单提交
dataFormSubmitHandle: debounce(function () {
this.$refs['dataForm'].validate((valid) => {
@@ -932,7 +999,9 @@ export default {
}
-
-
diff --git a/src/views/modules/communityService/worklog/workLog.vue b/src/views/modules/communityService/worklog/workLog.vue
index 9584d9954..6e7ad42ef 100644
--- a/src/views/modules/communityService/worklog/workLog.vue
+++ b/src/views/modules/communityService/worklog/workLog.vue
@@ -10,6 +10,7 @@
prop="gridId">
+ width="100">
+ min-width="130">
+ min-width="150">
+ width="110">
+ width="100">
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('query') }}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 重置
-
-
-
-
-
-
+
+
+
-
+
- {{ $t('add') }}
- 导出
- 批量删除
+ {{ $t('add') }}
+ 导出
+ 批量删除
-
-
-
-
-
-
-
-
-
- {{ userId == scope.row.createdBy ? $t('update') : '查看' }}
- {{ $t('delete') }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ userId == scope.row.createdBy ? $t('update') : '查看' }}
+ {{ $t('delete') }}
+
+
+
+
+
-
+
@@ -145,10 +191,10 @@ export default {
exportURL: '/gov/org/icWorkLog/export'
},
userId: this.$store.state.user.id,
- agencyIdArray:[],
+ agencyIdArray: [],
orgOptions: [],
logTypeArr: [],
- orgOptionProps:{
+ orgOptionProps: {
multiple: false,
value: 'agencyId',
label: 'agencyName',
@@ -168,22 +214,22 @@ export default {
this.getCategrayList()
},
methods: {
- getGridList() {
+ getGridList () {
const { user } = this.$store.state
this.$http
- .post('/gov/org/customeragency/agencygridtree', {})
- .then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- } else {
- console.log('获取组织树成功', res.data)
- this.orgOptions=[]
- this.orgOptions .push( res.data)
- }
- })
- .catch(() => {
- return this.$message.error('网络错误')
- })
+ .post('/gov/org/customeragency/agencygridtree', {})
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ } else {
+ console.log('获取组织树成功', res.data)
+ this.orgOptions = []
+ this.orgOptions.push(res.data)
+ }
+ })
+ .catch(() => {
+ return this.$message.error('网络错误')
+ })
},
exportHandle () {
const url = this.mixinViewModuleOptions.exportURL
@@ -254,20 +300,20 @@ export default {
})
return ca
},
- handleChangeAgency(val) {
+ handleChangeAgency (val) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
if (obj) {
- if(obj.level === 'grid'){
- this.dataForm.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
- this.dataForm.agencyId=''
- }else{
+ if (obj.level === 'grid') {
+ this.dataForm.gridId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
+ this.dataForm.agencyId = ''
+ } else {
this.dataForm.agencyId = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '';
this.dataForm.gridId = ''
}
- }else{
- this.dataForm.agencyId=''
+ } else {
+ this.dataForm.agencyId = ''
this.dataForm.gridId = ''
}
},
@@ -291,72 +337,71 @@ export default {
}