关键词管理
This commit is contained in:
@@ -83,6 +83,7 @@ export default {
|
|||||||
wordName: '',
|
wordName: '',
|
||||||
// areaList: [],
|
// areaList: [],
|
||||||
deptList: [],
|
deptList: [],
|
||||||
|
departmentFullIds: []
|
||||||
},
|
},
|
||||||
dialog: false,
|
dialog: false,
|
||||||
flag: false,
|
flag: false,
|
||||||
@@ -153,6 +154,7 @@ export default {
|
|||||||
this.form.deptList = []
|
this.form.deptList = []
|
||||||
// this.form.areaList = this.form.areaIds.split(',')
|
// this.form.areaList = this.form.areaIds.split(',')
|
||||||
this.form.deptList = row.departmentIds.split(',')
|
this.form.deptList = row.departmentIds.split(',')
|
||||||
|
this.form.departmentFullIds = row.departmentFullIds.split(',')
|
||||||
this.dialog = true
|
this.dialog = true
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
@@ -160,8 +162,11 @@ export default {
|
|||||||
},
|
},
|
||||||
onUserChange (e) {
|
onUserChange (e) {
|
||||||
this.form.deptList = []
|
this.form.deptList = []
|
||||||
|
this.form.departmentFullIds = []
|
||||||
e.map((item) => {
|
e.map((item) => {
|
||||||
|
console.log(item)
|
||||||
this.form.deptList.push(item.id)
|
this.form.deptList.push(item.id)
|
||||||
|
this.form.departmentFullIds.push(item.fullId)
|
||||||
})
|
})
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
// this.form.deptList = e
|
// this.form.deptList = e
|
||||||
@@ -173,14 +178,11 @@ export default {
|
|||||||
this.$refs.form.validate((valid)=> {
|
this.$refs.form.validate((valid)=> {
|
||||||
if(valid) {
|
if(valid) {
|
||||||
this.flag = true
|
this.flag = true
|
||||||
// var departmentIds = []
|
|
||||||
// this.form.deptList.map((item) => {
|
|
||||||
// departmentIds.push(item.id)
|
|
||||||
// })
|
|
||||||
this.instance.post(`/app/appsessionarchivekeywordinfo/addOrUpdate`,{
|
this.instance.post(`/app/appsessionarchivekeywordinfo/addOrUpdate`,{
|
||||||
...this.form,
|
...this.form,
|
||||||
// areaIds: this.form.areaList.join(','),
|
// areaIds: this.form.areaList.join(','),
|
||||||
departmentIds: this.form.deptList.join(',')
|
departmentIds: this.form.deptList.join(','),
|
||||||
|
departmentFullIds: this.form.departmentFullIds.join(',')
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res?.code == 0) {
|
if(res?.code == 0) {
|
||||||
this.$message.success(this.form.id ? '关键词编辑成功' : '关键词添加成功')
|
this.$message.success(this.form.id ? '关键词编辑成功' : '关键词添加成功')
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTotal() {
|
getTotal() {
|
||||||
console.log(1)
|
|
||||||
var totalDepartmentId = this.totalDeptList.length ? this.totalDeptList[this.totalDeptList.length-1] : ''
|
var totalDepartmentId = this.totalDeptList.length ? this.totalDeptList[this.totalDeptList.length-1] : ''
|
||||||
this.instance.post(`/app/appsessionarchivekeywordrecord/statistics1?deptFullId=${totalDepartmentId}`).then(res => {
|
this.instance.post(`/app/appsessionarchivekeywordrecord/statistics1?deptFullId=${totalDepartmentId}`).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
|
|||||||
@@ -361,7 +361,6 @@ export default {
|
|||||||
},
|
},
|
||||||
totalDeptSelect() {
|
totalDeptSelect() {
|
||||||
this.getTotal()
|
this.getTotal()
|
||||||
|
|
||||||
},
|
},
|
||||||
deptSelect() {
|
deptSelect() {
|
||||||
this.getStatistics()
|
this.getStatistics()
|
||||||
|
|||||||
Reference in New Issue
Block a user