WXL
2024-07-24 9f4da363a401c3624fa57a87fb50193b59bc6a35
测试完成
已添加1个文件
已修改10个文件
261 ■■■■ 文件已修改
src/components/Address/index.vue 177 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Navbar.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/getters.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionbank/particulars/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/knowledge/questionnaire/compilequer/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/patient/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/Missioncreation.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/QuestionnaireTask.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/particty.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/repositoryai/general/particulars/index.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Address/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,177 @@
<template>
  <div style="display: flex">
    <el-select
      v-model="caddress.sheng"
      style="flex: 1"
      placeholder="请选择省份"
      size="small"
      @change="getCityData"
    >
      <el-option
        v-for="item in addressArray"
        :key="item.areacode"
        :label="item.areaname"
        :value="item.areaname"
      >
      </el-option>
    </el-select>
    <el-select
      v-model="caddress.shi"
      style="flex: 1; margin-left: 10px"
      placeholder="请选择市区"
      size="small"
      @change="getAreaData"
    >
      <el-option
        v-for="item in cityArray"
        :key="item.areacode"
        :label="item.areaname"
        :value="item.areaname"
      >
      </el-option>
    </el-select>
    <el-select
      v-model="caddress.qu"
      style="flex: 1; margin-left: 10px"
      placeholder="请选择县"
      size="small"
      @change="onAreaChanged"
    >
      <el-option
        v-for="item in areaArray"
        :key="item.areacode"
        :label="item.areaname"
        :value="item.areaname"
      >
      </el-option>
    </el-select>
  </div>
</template>
<script>
// ä½¿ç”¨è¯´æ˜Žï¼šv-model时,必须传带有带有省,市,区拼音的字段
import request from '@/utils/request'
export default {
  name: "li_area_select",
  //通过 model é€‰é¡¹é…ç½®å­ç»„件接收的 prop åä»¥åŠæ´¾å‘的事件名
  model: {
    prop: "caddress",
    event: "change",
  },
  props: {
    caddress: {
      type: Object,
    },
  },
  data() {
    return {
      areaJson: "/project/dict/treeselect", // ä¸Šä¼ çš„图片服务器地址
      //areaJson: './../address.json',
      addressArray: [], //所有数据
      cityArray: [],
      areaArray: [],
    };
  },
  created() {
    this.getAddressData();
  },
  methods: {
    getAddressData() {
      var that = this;
      request({
        url: that.areaJson,
        method: "get",
      }).then(function (response) {
        if (response.code === 200) {
          //获取地址
          that.addressArray = response.data;
          //默认值赋值获取城市数组
          if (that.caddress.sheng) {
            for (let ad of that.addressArray) {
              if (ad.areaname === that.caddress.sheng) {
                that.cityArray = ad.subarea;
                //---
                //默认赋值获取区域数组
                if (that.caddress.shi) {
                  for (let area of that.cityArray) {
                    if (area.areaname === that.caddress.shi) {
                      that.areaArray = area.subarea;
                      break;
                    }
                  }
                }
              }
            }
          }
        }
      });
    },
    //选择省份
    getCityData(val) {
      //清空市,和区
      this.caddress.shi = "";
      this.caddress.qu = "";
      this.$emit("change", this.caddress); //发送改变
      for (let ad of this.addressArray) {
        if (ad.areaname === val) {
          this.cityArray = ad.subarea;
          return;
        }
      }
    },
    getAreaData(val) {
      //清空区
      this.caddress.qu = "";
      this.$emit("change", this.caddress); //发送改变
      for (let area of this.cityArray) {
        if (area.areaname === val) {
          this.areaArray = area.subarea;
          return;
        }
      }
    },
    //地区数据变动后
    onAreaChanged(val) {
      this.$emit("change", this.caddress); //发送改变
      this.$forceUpdate();
    },
    getSheng(){
      let list= this.addressArray.filter(r=>r.areaname ==  this.caddress.sheng);
      if(list.length>0){
        return list[0].areacode;
      }
      else{
        return '';
      }
    },
     getShi(){
      let list= this.cityArray.filter(r=>r.areaname ==  this.caddress.shi);
      if(list.length>0){
        return list[0].areacode;
      }
      else{
        return '';
      }
    },
     getQu(){
      let list= this.areaArray.filter(r=>r.areaname ==  this.caddress.qu);
      if(list.length>0){
        return list[0].areacode;
      }
      else{
        return '';
      }
    },
    clean(){
      this.caddress.sheng="";
      this.caddress.shi="";
      this.caddress.qu="";
    }
  },
};
</script>
<style scoped>
</style>
src/layout/components/Navbar.vue
@@ -19,9 +19,9 @@
        <screenfull id="screenfull" class="right-menu-item hover-effect" />
        <el-tooltip content="布局大小" effect="dark" placement="bottom">
        <!-- <el-tooltip content="布局大小" effect="dark" placement="bottom">
          <size-select id="size-select" class="right-menu-item hover-effect" />
        </el-tooltip>
        </el-tooltip> -->
      </template>
src/store/getters.js
@@ -183,7 +183,15 @@
    },
    {
      value: '3',
      label: "文本收集",
      label: "问答",
      raw: {
        cssClass: "",
        listClass: "",
      },
    },
    {
      value: '4',
      label: "填空",
      raw: {
        cssClass: "",
        listClass: "",
@@ -442,7 +450,7 @@
    },
  ],
  // é¢˜ç›®ç±»åˆ«
  // é¢˜ç›®ç±»åˆ«ï¼ˆéšè®¿ï¼‰
  xjxsoptions:(state) => [
    {
      value: "1",
src/views/followvisit/tasklist/index.vue
@@ -436,7 +436,7 @@
        },
        {
          value: "6",
          label: "问卷服务",
          label: "患者报告",
        },
      ],
      tasktopic: "2", //新增类型
src/views/knowledge/questionbank/particulars/index.vue
@@ -222,6 +222,7 @@
                    @change="handleInputConfirm"
                    filterable
                    remote
                    allow-create
                    reserve-keyword
                    default-first-option
                    :remote-method="remoteMethodtag"
src/views/knowledge/questionnaire/compilequer/index.vue
@@ -116,6 +116,7 @@
                  @change="handleInputConfirm"
                  filterable
                  remote
                  allow-create
                  reserve-keyword
                  default-first-option
                  :remote-method="remoteMethodtag"
src/views/patient/patient/index.vue
@@ -216,8 +216,8 @@
                fixed
                label="序号"
                align="center"
                key="patid"
                prop="patid"
                key="id"
                prop="id"
              />
              <el-table-column
                fixed
@@ -320,7 +320,7 @@
                    @click="
                      $router.push({
                        path: '/patient/patient/profile/',
                        query: { id: scope.row.patid },
                        query: { id: scope.row.id },
                      })
                    "
                    v-hasPermi="['system:user:edit']"
@@ -933,7 +933,7 @@
    },
    // å¤šé€‰æ¡†é€‰ä¸­æ•°æ®
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.patid);
      this.ids = selection.map((item) => item.id);
      this.single = selection.length != 1;
      this.multiple = !selection.length;
    },
@@ -947,7 +947,7 @@
    /** ä¿®æ”¹æŒ‰é’®æ“ä½œ */
    handleUpdate(row) {
      console.log(row);
      const userIds = row.patid || this.ids;
      const userIds = row.id || this.ids;
      particularpatient(userIds).then((response) => {
        console.log(response);
        this.form = response.data;
src/views/patient/propaganda/Missioncreation.vue
@@ -226,7 +226,6 @@
        <el-alert title="在本阶段选择宣教病人" type="success" effect="dark">
        </el-alert>
        <div class="leftvlue-jbxx">
          <div class="examine-jic">
            <div class="headline">
              <div>患者列表</div>
@@ -894,13 +893,7 @@
      this.currenttype = this.$route.query.type;
      this.title = "宣教内容列表";
      this.tableLabel = this.tableLabelxj;
      this.checkboxlist = [
        "线下(纸质)",
        "线上(短信/钉钉的文本视频)",
        "宣教链接",
        "微信公众号",
        "短信",
      ];
      this.checkboxlist = ["短信", "微信", "人工电话", "智能机器人"];
      getlibrarylist(queryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -945,11 +945,7 @@
      this.currenttype = this.$route.query.type;
      this.title = "问卷内容列表";
      this.tableLabel = this.tableLabelwj;
      this.checkboxlist = [
        "线下(纸质)",
        "线上(短信/钉钉的文本、问卷链接)",
        "微信公众号",
      ];
      this.checkboxlist = ["短信", "微信", "人工电话", "智能机器人"];
      getQtemplatelist(queryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
src/views/patient/propaganda/particty.vue
@@ -935,7 +935,7 @@
      // å‡ºé™¢ã€é—¨è¯Šã€ä¸“病随访
      this.title = "随访内容列表";
      this.tableLabel = this.tableLabelmz;
      this.checkboxlist = ["纸质", "多媒体", "电话", "微信公众号"];
      this.checkboxlist = ["短信", "微信", "人工电话", "智能机器人"];
      getFollowuplist(queryParams).then((response) => {
        this.userList = response.rows;
        this.total = response.total;
src/views/repositoryai/general/particulars/index.vue
@@ -51,13 +51,19 @@
          ></el-col>
        </el-row>
      </el-form>
      <div style="display: flex">
        <div class="elcardiv">
      <div class="presentation">
        <div class="presentation-left">
          <div class="leftvlue-jbxx">话术列表</div>
          <el-divider></el-divider>
          <el-table :data="targetList" :row-class-name="tableRowClassName">
            <el-table-column label="序号" align="center" key="id" prop="id" />
            <el-table-column
              label="序号"
              fixed
              align="center"
              key="id"
              prop="id"
            />
            <el-table-column
              label="问题文本"
@@ -92,6 +98,7 @@
            <el-table-column
              label="操作"
              align="center"
              fixed="right"
              width="200"
              class-name="small-padding fixed-width"
            >
@@ -117,7 +124,7 @@
            </el-table-column>
          </el-table>
        </div>
        <div class="elcardiv">
        <div class="presentation-right">
          <el-form
            :model="ruleForm"
            :rules="rules"
@@ -128,7 +135,6 @@
          <div class="leftvlue-jbxx">话术编辑</div>
          <el-divider></el-divider>
            <div style="margin: 15px; margin-top: 50px">
              <el-form-item label="话术文本" prop="name">
                <el-input
                  v-model="ruleForm.switchText"
@@ -572,6 +578,27 @@
    margin: 15px 0;
  }
}
.presentation {
  margin: 20px 0;
  display: flex;
  .presentation-left {
    width: 60%;
    // height: 500px;
  }
  .presentation-right {
    width: 40%;
    max-height: 688px;
    padding: 0 20px;
    font-size: 18px;
    overflow: auto;
  }
  .leftvlue-jbxx {
    font-size: 24px;
    border-left: 5px solid #5788fe;
    padding-left: 5px;
    margin: 15px 0;
  }
}
.button-textxg {
  color: rgb(35, 81, 233);
}