@@ -93,8 +93,8 @@ export default {
data () {
return {
q: {
- account: '', // 用户名
- roleName: '', // 角色名称
+ dicCode: '', // 用户名
+ dicName: '', // 角色名称
pageNo: 1,
pageSize: 10
},
@@ -103,14 +103,9 @@ export default {
mode: '',
dialogUser: false,
form: {
- account: '', // 用户名
- cellPhoneNumber: '', // 手机号
- department: '', // 部门
- email: '', // 邮箱
- password: '', // 密码
- usid: '',
- usname: '', // 姓名
- roleIdList: [''] // 角色
+ dicCode:'',
+ dicName:'',
+ description:''
},
repassword: '',
roleList: []
@@ -123,7 +118,10 @@ export default {
},
// 获取所有字典
sysUserList () {
-
+ this.$api.dictionary.getDic(this.q).then((res)=>{
+ this.tableData = res.data.records
+ this.total=res.data.total
+ })
},
// 重置
reset () {
@@ -152,14 +150,9 @@ export default {
add () {
this.mode = 'add'
this.form = {
- account: '', // 用户名
- cellPhoneNumber: '', // 手机号
- department: '', // 部门
- email: '', // 邮箱
- password: '', // 密码
- usid: '',
- usname: '', // 姓名
- roleIdList: [''] // 角色
+ dicCode:'',
+ dicName:'',
+ description:''
}
this.repassword = ''
this.dialogUser = true
@@ -181,22 +174,27 @@ export default {
// },
// 删除
deleteRow (row) {
- this.deleteUser(row.USID)
+ this.deleteUser(row.id)
},
// 新增用户
sysUserAddUser () {
- const data = JSON.parse(JSON.stringify(this.form))
- data.account = this.$JSEncrypt(data.account)
- data.password = this.$JSEncrypt(data.password)
- const jsonData = JSON.stringify(data)
- this.$api.user.sysUserAddUser(Base64.encodeURI(jsonData)).then(_ => {
- this.$message.success('操作成功')
- this.dialogUser = false
- this.reset()
- })
+ if(this.mode=='add'){
+ this.$api.dictionary.addDic(this.form).then((res)=>{
+ this.$message.success("新增成功")
+ this.sysUserList()
+ })
+ }else{
+ this.$api.dictionary.editDic(this.form).then((res)=>{
+ this.$message.success("编辑成功")
+ this.sysUserList()
+ })
+ }
+
+ this.dialogUser = false
},
// 编辑查看用户
openRowData (mode, row) {
+ this.mode = mode
if(mode=='view'){
this.$router.push({
path:'/system/dicdeatil',
@@ -205,19 +203,16 @@ export default {
pId:row.id
}
})
- }else{
- this.mode = mode
+ }else if(mode=='add'){
+
this.form = {
- account: row.ACCOUNT, // 用户名
- cellPhoneNumber: row.CELLPHONE_NUMBER, // 手机号
- department: row.DEPARTMENT, // 部门
- email: row.EMAIL, // 邮箱
- password: '', // 密码
- usid: row.USID, // 用户ID
- usname: row.USNAME, // 姓名
- roleIdList: [row.ROLEID] // 角色
+ description:'',
+ dicName:'',
+ dicCode:''
}
- this.repassword = ''
+ this.dialogUser = true
+ }else{
+ this.form = JSON.parse(JSON.stringify(row))
this.dialogUser = true
}
@@ -229,7 +224,7 @@ export default {
if (!users.length) {
return this.$message.warning('请选择数据后在进行操作')
}
- const ids = users.map(item => item.USID).join(',')
+ const ids = users.map(item => item.id).join(',')
this.deleteUser(ids)
},
// 删除用户
@@ -239,10 +234,10 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- // this.$api.user.sysUserDelete({ ids }).then(_ => {
+ this.$api.dictionary.delDic(ids ).then(_ => {
this.$message.success('操作成功')
this.sysUserList()
- // })
+ })
})
},
diff --git a/src/views/reportProcess/components/reportForm.vue b/src/views/reportProcess/components/reportForm.vue
index 88ff3da..9f178f2 100644
--- a/src/views/reportProcess/components/reportForm.vue
+++ b/src/views/reportProcess/components/reportForm.vue
@@ -17,33 +17,37 @@
placeholder="请输入报告名称">
-
+
-
+
-
+
-
+
-
+
-
+
-
+
- {
+ {
if(newTags[newTags.length - 1].text.length <= 20){
if(tags.length < 10){
tags = newTags
@@ -57,10 +61,10 @@
tags = newTags.slice(0,-1)
}
- }" />
+ }"/>
-
+
@@ -70,9 +74,10 @@
-
+
-
{{ data.label }}
@@ -82,18 +87,20 @@
-
+
-
+
-
-
- 选择文件
+
+
+ 选择文件
@@ -101,181 +108,337 @@
- 选择文件
+ 权限设置
+
+
+
diff --git a/src/views/reportProcess/launch.vue b/src/views/reportProcess/launch.vue
index 2435d74..284260c 100644
--- a/src/views/reportProcess/launch.vue
+++ b/src/views/reportProcess/launch.vue
@@ -270,7 +270,6 @@ export default {
// console.log(checkedList)
const parts = []
const partsName = []
- console.log(checkedList, '0009999')
checkedList.map((item, index) => {
parts.push(item.userId || item.USID)
partsName.push(item.uname)
@@ -304,7 +303,7 @@ export default {
this.saveLoading = true
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
- let dataJson = JSON.stringify(this.tableData)
+ let dataJson = JSON.stringify(this.processForm)
let params = {
prcName: this.processForm.prcName,
userId: this.$store.getters.userInfo.usid,
@@ -335,13 +334,14 @@ export default {
console.log(this.$store.getters.userInfo.usid, " this.$store.getters.userInfo.USID")
this.$refs.assignFormRef.validate(async v => {
debugger
- let z=this.$refs.basMes.submit()
+ this.processForm=this.$refs.basMes.form
+ let z=this.$refs.basMes.submit()
if (v && z) {
//如果不是第一次
if (this.initShow) {
let flag=await this.JuggleSub(this.taskId)
if(flag){
- let dataJson = JSON.stringify(this.tableData)
+ let dataJson = JSON.stringify(this.processForm)
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.completeProcess({
dataJson,
@@ -368,7 +368,7 @@ export default {
approveData: {
...this.processForm, ...this.assignForm,
userId: this.$store.getters.userInfo.usid
- }, dataMsg: this.tableData
+ }, dataMsg: this.processForm
}
form.approvalOpinion = this.assignForm.remark
form.prcType = this.prcType