Browse Source

init

newStyle
lancer 3 years ago
parent
commit
f567cd4501
7 changed files with 144 additions and 32 deletions
  1. +89
    -5
      src/views/Customer/label.vue
  2. +4
    -2
      src/views/Receive/index.vue
  3. +17
    -1
      src/views/ReceivingRecords/index.vue
  4. +18
    -2
      src/views/Statistics/Insightintothedetails.vue
  5. +1
    -17
      src/views/Template/Pinspeakwords.vue
  6. +1
    -1
      src/views/admin/log/index.vue
  7. +14
    -4
      src/views/admin/log/log.vue

+ 89
- 5
src/views/Customer/label.vue View File

@@ -26,7 +26,10 @@
</el-select> </el-select>
</div> </div>
</div> </div>
<div style="width: 100%; margin-top: 30px">
<div class="addlevl" v-if="yyc_add_level1" @click="append1()">
新增一级
</div>
<div style="width: 100%; margin-top: 20px">
<el-tree ref="tree" :default-expand-all="true" :data="treeList"> <el-tree ref="tree" :default-expand-all="true" :data="treeList">
<span class="custom-tree-node" slot-scope="{ node, data }"> <span class="custom-tree-node" slot-scope="{ node, data }">


@@ -241,17 +244,42 @@
</button> </button>
</div> </div>
</el-dialog> </el-dialog>


<el-dialog title="新增一级" :visible.sync="dialogVisible2">
<el-form :model="addForm2">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item
label="名称:"
v-if="level == 0"
:label-width="formLabelWidth"
>
<el-input v-model="addForm2.name" autocomplete="off"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible2 = false">取 消</el-button>
<el-button type="primary" @click="addclick()">确 定</el-button>
</span>
</el-dialog>


</div> </div>
</div> </div>
</template> </template>


<script> <script>
import { mapGetters } from "vuex";
export default { export default {
data() { data() {
return { return {
formLabelWidth: "120px", formLabelWidth: "120px",
dialogFormVisible: false, dialogFormVisible: false,
dialogVisible: false, dialogVisible: false,
dialogVisible2:false,
orgType: localStorage.getItem("orgType"), orgType: localStorage.getItem("orgType"),
isshowage: false, isshowage: false,
treeList: [], //树形数据 treeList: [], //树形数据
@@ -262,6 +290,9 @@ export default {
name: "", name: "",
endName: "", endName: "",
}, },
addForm2:{
name:''
},
level: 0, level: 0,
pid: "", pid: "",
deleteId: "", deleteId: "",
@@ -277,16 +308,53 @@ export default {
}, },
amountintervalname: "", amountintervalname: "",
isInterval: "", isInterval: "",
orgCodes:''
}; };
},
computed: {
...mapGetters(["permissions"]),
},
created() {
this.yyc_add_level1 = this.permissions["yyc_add_level1"];
}, },
mounted() { mounted() {
// 获取楼盘列表 // 获取楼盘列表
this.zkhousePage(); this.zkhousePage();
// this.orgCode = localStorage.getItem("AitemId");
// this.getHouse()
// this.treeList = data.obj;
}, },
methods: { methods: {
addclick(){
var orgCode='';
if(localStorage.getItem("orgType") == 3){
orgCode=this.orgCodes
}else{
orgCode=localStorage.getItem("orgCode")
}
if (this.addForm2.name != "") {
axios({
url: `/autoSR/zk/keywords/add`,
method: "post",
data: {
pid: 0,
name: this.addForm2.name,
level:1,
orgCode:orgCode,
},
}).then((res) => {
this.dialogVisible2=false;
this.getHouse()
})
}else{
this.$message({
message: "内容不能为空",
type: "warning",
});
return;
}
},
append1(){
this.addForm2.name='';
this.dialogVisible2=true;
},
// 获取模板数据 // 获取模板数据
getHouse() { getHouse() {
axios({ axios({
@@ -321,7 +389,12 @@ export default {
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
houseChange() { houseChange() {
// console.log(1);
this.houseList.map(item=>{
if(item.id==this.houseId){
this.orgCodes=item.orgCode;
}
})
console.log(this.orgCodes);
this.getHouse(); this.getHouse();
}, },
// 添加节点确认按钮 // 添加节点确认按钮
@@ -517,6 +590,7 @@ export default {
this.houseId = localStorage.getItem("houseId"); this.houseId = localStorage.getItem("houseId");
} else { } else {
this.houseId = res.data[0].id; this.houseId = res.data[0].id;
this.orgCodes=res.data[0].orgCode;
} }
// this.houseId = res.data[0].id; // this.houseId = res.data[0].id;
// 列表获取 // 列表获取
@@ -593,6 +667,16 @@ export default {
padding-left: 15px; padding-left: 15px;
padding-bottom: 60px; padding-bottom: 60px;
} }
.addlevl{
width: 100px;
border: 1px solid #409EFF;
color: #409EFF;
text-align: center;
line-height: 30rpx;
border-radius:4px ;
margin-top: 10px;
margin-left: 18px;
}
.biaoti { .biaoti {
font-size: 20px; font-size: 20px;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;


+ 4
- 2
src/views/Receive/index.vue View File

@@ -370,7 +370,7 @@
<div class="topyou"> <div class="topyou">
<div class="pingfenbox" > <div class="pingfenbox" >
<div :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">销讲总执行率{{userinformationlist.fraction|| 0}}%</div> <div :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">销讲总执行率{{userinformationlist.fraction|| 0}}%</div>
<div :class="{ activecllasscet: zhixingcenterindex == 1 }" @click="recordclick(1)">禁忌执行</div>
<div v-if="info.userRoleType==6" :class="{ activecllasscet: zhixingcenterindex == 1 }" @click="recordclick(1)">禁忌执行</div>
</div> </div>
<div v-if="zhixingcenterindex==0"> <div v-if="zhixingcenterindex==0">
<div style="width: 100%;height: 44px;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;"> <div style="width: 100%;height: 44px;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
@@ -632,6 +632,7 @@
<script> <script>
import "aplayer/dist/APlayer.min.css"; import "aplayer/dist/APlayer.min.css";
import APlayer from "aplayer"; import APlayer from "aplayer";
import { getStore, setStore } from "@/util/store";
export default { export default {
data() { data() {
return { return {
@@ -692,12 +693,13 @@ export default {
textareaindex:0, textareaindex:0,
Searchcontent:[], Searchcontent:[],
inputtest:'', inputtest:'',
info:{}
}; };
}, },
mounted() { mounted() {
this.fileId=this.$route.query.flag; this.fileId=this.$route.query.flag;
this.AudioIdx=this.$route.query.AudioIdx; this.AudioIdx=this.$route.query.AudioIdx;
this.info = getStore({ name: "userInfo" });
this.init() this.init()
}, },
methods: { methods: {


+ 17
- 1
src/views/ReceivingRecords/index.vue View File

@@ -249,7 +249,7 @@
<!-- scope --> <!-- scope -->
<el-table-column label="操作" align="center" width="200" fixed="right"> <el-table-column label="操作" align="center" width="200" fixed="right">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<el-button type="text" v-if="rec_index_look">查看</el-button>
<el-button type="text" v-if="rec_index_look" @click="Receivedetailsabout(row)">查看</el-button>
<el-button type="text" v-if="rec_index_text">下载文本</el-button> <el-button type="text" v-if="rec_index_text">下载文本</el-button>
<el-button type="text" v-if="rec_index_voice">下载录音</el-button> <el-button type="text" v-if="rec_index_voice">下载录音</el-button>
</template> </template>
@@ -388,6 +388,22 @@ export default {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
// 跳转接待详情
Receivedetailsabout(row){
this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => {
if(res.data.length==0){
this.$message({
message: '无录音',
type: 'warning'
});
}else{
this.$router.push({
path: "/Receive/index",
query: { flag: row.id ,AudioIdx:0},
});
}
})
},
// 接待记录列表 // 接待记录列表
findbypage() { findbypage() {
let obj = { let obj = {


+ 18
- 2
src/views/Statistics/Insightintothedetails.vue View File

@@ -108,8 +108,8 @@
</el-table-column> </el-table-column>
<!-- scope --> <!-- scope -->
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
<template slot-scope="">
<div style="color: #2671E2;">查看详情</div>
<template slot-scope="{ row }">
<div style="color: #2671E2;" @click="Receivedetailsabout(row)">查看详情</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -166,6 +166,22 @@ export default {
this.Accesstolevel() this.Accesstolevel()
}, },
methods: { methods: {
// 跳转接待详情
Receivedetailsabout(row){
this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => {
if(res.data.length==0){
this.$message({
message: '无录音',
type: 'warning'
});
}else{
this.$router.push({
path: "/Receive/index",
query: { flag: row.id ,AudioIdx:0},
});
}
})
},
//获取三级 //获取三级
Accesstolevel(){ Accesstolevel(){
this.options5=[]; this.options5=[];


+ 1
- 17
src/views/Template/Pinspeakwords.vue View File

@@ -186,8 +186,6 @@ export default {
level: 1, //操作节点的层级 level: 1, //操作节点的层级
treeData: null, treeData: null,
formLabelWidth: "120px", formLabelWidth: "120px",
deleteChildren: null,
deleteIndex: null,
deleteType: "form", deleteType: "form",
checklist: [], // 树图,设置初始选中值 checklist: [], // 树图,设置初始选中值
defaultCheck: [], // 选中的id defaultCheck: [], // 选中的id
@@ -997,33 +995,19 @@ export default {
}); });
} }
}); });
this.deleteChildren.splice(this.deleteIndex, 1);
this.dialogVisible = false; this.dialogVisible = false;
let index = this.allTreeListId.findIndex((d) => d === this.deleteId);
if (index > -1) {
this.allTreeListId.splice(index, 1);
}
}) })
}, },
remove(node, data) { remove(node, data) {
if (node.level == 3) { if (node.level == 3) {
this.deleteType = "node"; this.deleteType = "node";
this.deleteId = data.id; this.deleteId = data.id;
const parent = node.parent;
this.deleteChildren = parent.data.children || parent.data;
this.deleteIndex = this.deleteChildren.findIndex(
(d) => d.id === data.id
);
this.dialogVisible = true; this.dialogVisible = true;
} else { } else {
if (data.children.length == 0) { if (data.children.length == 0) {
this.deleteType = "node"; this.deleteType = "node";
this.deleteId = data.id; this.deleteId = data.id;
const parent = node.parent;
this.deleteChildren = parent.data.children || parent.data;
this.deleteIndex = this.deleteChildren.findIndex(
(d) => d.id === data.id
);
this.dialogVisible = true; this.dialogVisible = true;
} else { } else {
this.$message({ this.$message({


+ 1
- 1
src/views/admin/log/index.vue View File

@@ -37,7 +37,7 @@
placeholder="请选择" placeholder="请选择"
> >
<el-option label="用户名称" value="1"></el-option> <el-option label="用户名称" value="1"></el-option>
<el-option label="登陆手机" value="2"></el-option>
<!-- <el-option label="登陆手机" value="2"></el-option> -->
<el-option label="登陆ip" value="3"></el-option> <el-option label="登陆ip" value="3"></el-option>
</el-select> </el-select>
</el-input> </el-input>


+ 14
- 4
src/views/admin/log/log.vue View File

@@ -4,7 +4,7 @@
<div class="app-top"> <div class="app-top">
<div class="app-titel" style="margin-top: 5px"> <div class="app-titel" style="margin-top: 5px">
<div class="div-lab"> <div class="div-lab">
<div class="label">添加时间</div>
<div class="label">添加时间</div>
<el-date-picker <el-date-picker
v-model="time" v-model="time"
type="daterange" type="daterange"
@@ -38,12 +38,20 @@
placeholder="请选择" placeholder="请选择"
> >
<el-option label="用户名称" value="1"></el-option> <el-option label="用户名称" value="1"></el-option>
<el-option label="登陆手机" value="2"></el-option>
<!-- <el-option label="登陆手机" value="2"></el-option> -->
<el-option label="登陆ip" value="3"></el-option> <el-option label="登陆ip" value="3"></el-option>
</el-select> </el-select>
</el-input> </el-input>
</div> </div>

<div class="div-lab">
<div class="label">标题:</div>
<el-input
v-model="searchForm.title"
placeholder="请输入"
maxlength="15"
style="width: 180px"
> </el-input>
</div>
<!-- <div class="div-lab"> <!-- <div class="div-lab">
<div class="label">设备状态</div> <div class="label">设备状态</div>
<el-select <el-select
@@ -114,6 +122,7 @@ export default {
flag: "1", flag: "1",
name: "", name: "",
params: "", params: "",
title:''
}, },
page: { page: {
total: 0, // 总页数 total: 0, // 总页数
@@ -173,6 +182,7 @@ export default {
remoteAddr: "", remoteAddr: "",
name: "", name: "",
params: "", params: "",
title:''
}; };
this.value = ""; this.value = "";
this.time=[] this.time=[]
@@ -255,7 +265,7 @@ export default {
color: #32363d; color: #32363d;
line-height: 32px; line-height: 32px;
margin-left: 15px; margin-left: 15px;
min-width: 100px;
// min-width: 100px;
} }
.toptimeqhuan { .toptimeqhuan {
height: 30px; height: 30px;


Loading…
Cancel
Save