| @@ -194,7 +194,7 @@ | |||||
| <!-- 评分 --> | <!-- 评分 --> | ||||
| <div class="content-right"> | <div class="content-right"> | ||||
| <el-row> | <el-row> | ||||
| <el-col :span="10"> | |||||
| <el-col :span="10" v-if="false"> | |||||
| <div style="display: flex; align-items: center"> | <div style="display: flex; align-items: center"> | ||||
| <span style="width: 120px">话术名称</span> | <span style="width: 120px">话术名称</span> | ||||
| @@ -81,7 +81,7 @@ | |||||
| </el-table-column> | </el-table-column> | ||||
| <el-table-column label="操作" width="140" fixed="right" align="center"> | <el-table-column label="操作" width="140" fixed="right" align="center"> | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| <el-button type="text" @click="editFun(scope.row)">编辑</el-button> | |||||
| <el-button v-if="permissions.bianJiMoBan" type="text" @click="editFun(scope.row)">编辑</el-button> | |||||
| <el-button type="text" @click="deleteFun(scope.row)">删除</el-button> | <el-button type="text" @click="deleteFun(scope.row)">删除</el-button> | ||||
| </template> | </template> | ||||
| </el-table-column> | </el-table-column> | ||||
| @@ -161,12 +161,13 @@ | |||||
| </template> | </template> | ||||
| <script> | <script> | ||||
| import { mapGetters } from "vuex"; | |||||
| import matchingRules from "@/components/matchingRules/matchingRules.vue"; | import matchingRules from "@/components/matchingRules/matchingRules.vue"; | ||||
| export default { | export default { | ||||
| components: { matchingRules }, | components: { matchingRules }, | ||||
| data() { | data() { | ||||
| return { | return { | ||||
| timer: 0, | |||||
| timer: 0, | |||||
| dynamiclist: [], | dynamiclist: [], | ||||
| taglist: [ | taglist: [ | ||||
| { | { | ||||
| @@ -222,6 +223,10 @@ export default { | |||||
| this.orgType = localStorage.getItem("orgType"); | this.orgType = localStorage.getItem("orgType"); | ||||
| this.orgType == 0 ? this.zkhousePage() : this.getorgCode(); | this.orgType == 0 ? this.zkhousePage() : this.getorgCode(); | ||||
| }, | }, | ||||
| computed: { | |||||
| ...mapGetters(["permissions"]), | |||||
| }, | |||||
| methods: { | methods: { | ||||
| // 获取项目列表 | // 获取项目列表 | ||||
| zkhousePage() { | zkhousePage() { | ||||
| @@ -83,7 +83,7 @@ | |||||
| </el-table-column> | </el-table-column> | ||||
| <el-table-column label="操作" align="center"> | <el-table-column label="操作" align="center"> | ||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| <div style="color: #2671e2; cursor: pointer" @click="editFun(scope.row)"> | |||||
| <div v-if="permissions.piPeiMoXing" style="color: #2671e2; cursor: pointer" @click="editFun(scope.row)"> | |||||
| 匹配模型 | 匹配模型 | ||||
| </div> | </div> | ||||
| </template> | </template> | ||||
| @@ -168,6 +168,8 @@ | |||||
| </template> | </template> | ||||
| <script> | <script> | ||||
| import { mapGetters } from "vuex"; | |||||
| import matchingRules from "@/components/matchingRules/matchingRules.vue"; | import matchingRules from "@/components/matchingRules/matchingRules.vue"; | ||||
| export default { | export default { | ||||
| components: { matchingRules }, | components: { matchingRules }, | ||||
| @@ -228,6 +230,9 @@ export default { | |||||
| }; | }; | ||||
| }, | }, | ||||
| computed: { | |||||
| ...mapGetters(["permissions"]), | |||||
| }, | |||||
| created(){ | created(){ | ||||
| this.houseId=localStorage.getItem("houseId"); | this.houseId=localStorage.getItem("houseId"); | ||||
| this.gettableList(); | this.gettableList(); | ||||
| @@ -34,14 +34,14 @@ export default { | |||||
| label: "模板名称", | label: "模板名称", | ||||
| prop: "templateName", | prop: "templateName", | ||||
| }, | }, | ||||
| { | |||||
| label: "默认话术", | |||||
| prop: "defaultTemplate", | |||||
| formatter: (data) => { | |||||
| if(data.defaultTemplate == 0) return '是' | |||||
| if(data.defaultTemplate == 1) return '否' | |||||
| } | |||||
| }, | |||||
| // { | |||||
| // label: "默认话术", | |||||
| // prop: "defaultTemplate", | |||||
| // formatter: (data) => { | |||||
| // if(data.defaultTemplate == 0) return '是' | |||||
| // if(data.defaultTemplate == 1) return '否' | |||||
| // } | |||||
| // }, | |||||
| { | { | ||||
| label: "大类个数", | label: "大类个数", | ||||
| prop: "count", | prop: "count", | ||||
| @@ -66,7 +66,7 @@ | |||||
| <el-button v-if="tem_tab_edit" type="text" @click="bianji(row)" | <el-button v-if="tem_tab_edit" type="text" @click="bianji(row)" | ||||
| >编辑</el-button> | >编辑</el-button> | ||||
| <el-button v-if="tem_tab_del" type="text" @click="del(row)">删除</el-button> | <el-button v-if="tem_tab_del" type="text" @click="del(row)">删除</el-button> | ||||
| <el-button type="text" @click="editFun(row)">模型匹配</el-button> | |||||
| <el-button v-if="permissions.jinjihuashumoxingpipei" type="text" @click="editFun(row)">模型匹配</el-button> | |||||
| </template> | </template> | ||||
| </avue-crud> | </avue-crud> | ||||
| </div> | </div> | ||||