From a22820cfed42dd22b21208b7a310d5d46dc759c0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 01 七月 2025 14:34:09 +0800
Subject: [PATCH] 测试完成
---
src/api/AiCentre/index.js | 1
src/views/sfstatistics/percentage/index.vue | 4
src/components/Regular/index.vue | 4
src/views/knowledge/questionbank/particulars/index.vue | 8 +
src/views/knowledge/questionnaire/compilequer/index.vue | 8 +
src/views/followvisit/satisfaction/index.vue | 269 +++++++++-----------------------------------
src/api/AiCentre/satisfaction.js | 42 +++++++
7 files changed, 119 insertions(+), 217 deletions(-)
diff --git a/src/api/AiCentre/index.js b/src/api/AiCentre/index.js
index 7db4067..7455089 100644
--- a/src/api/AiCentre/index.js
+++ b/src/api/AiCentre/index.js
@@ -9,3 +9,4 @@
export * from './external'
export * from './patientexternal'
export * from './EChartsdata'
+export * from './satisfaction'
diff --git a/src/api/AiCentre/satisfaction.js b/src/api/AiCentre/satisfaction.js
new file mode 100644
index 0000000..e9901b0
--- /dev/null
+++ b/src/api/AiCentre/satisfaction.js
@@ -0,0 +1,42 @@
+import request from "@/utils/request";
+import { parseStrEmpty } from "@/utils/ruoyi"; //澶勭悊瀛楃涓�
+
+// 鏌ヨ婊℃剰搴﹀垪琛�
+export function listsatisfaction(query) {
+ return request({
+ url: "/smartor/satisfaction/list",
+ method: "post",
+ data: query,
+ });
+}
+
+// 鎵归噺鏂板婊℃剰搴�
+export function addsatisfaction(data) {
+ return request({
+ url: "/smartor/satisfaction/batchinsert",
+ method: "post",
+ data: data,
+ });
+}
+
+// 淇敼婊℃剰搴�
+export function updatesatisfaction(data) {
+ return request({
+ url: "/smartor/satisfaction/edit",
+ method: "post",
+ data: data,
+ });
+}
+
+// 鍒犻櫎婊℃剰搴�
+export function delsatisfaction(satisfactionId) {
+ return request({
+ url: "/smartor/satisfaction/remove/" + satisfactionId,
+ method: "get",
+ });
+}
+
+
+
+
+
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index 8985f3e..30d359f 100644
--- a/src/components/Regular/index.vue
+++ b/src/components/Regular/index.vue
@@ -197,7 +197,9 @@
<el-image
style="width: 100px; height: 100px"
:src="item.picturePath"
- :preview-src-list="[...item.picturePath]"
+ :preview-src-list="
+ item.picturePath ? [item.picturePath] : []
+ "
>
</el-image>
</div>
diff --git a/src/views/followvisit/satisfaction/index.vue b/src/views/followvisit/satisfaction/index.vue
index 1a45f3c..0e1ea1f 100644
--- a/src/views/followvisit/satisfaction/index.vue
+++ b/src/views/followvisit/satisfaction/index.vue
@@ -141,146 +141,99 @@
<el-table-column
label="搴忓彿"
align="center"
- key="userId"
- prop="userId"
+ key="id"
+ prop="id"
/>
<el-table-column
- label="浣忛櫌缂栧彿"
+ label="鐥呭尯"
align="center"
sortable
- key="userName"
- prop="userName"
+ key="hospitaldistrictname"
+ prop="hospitaldistrictname"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="绉戝"
+ width="100"
+ align="center"
+ sortable
+ key="deptname"
+ prop="deptname"
:show-overflow-tooltip="true"
/>
<el-table-column
label="濮撳悕"
- width="100"
- align="center"
- sortable
- key="userName"
- prop="userName"
- :show-overflow-tooltip="true"
- />
- <el-table-column
- label="骞撮緞"
align="center"
key="age"
prop="age"
width="120"
/>
<el-table-column
- label="璋冩煡妯℃澘"
+ label="鑱旂郴鐢佃瘽"
align="center"
- key="types"
- prop="types"
+ key="phone"
+ prop="phone"
/>
<el-table-column
- label="璋冩煡绫诲瀷"
+ label="鐪熷疄鎬�(20)"
align="center"
- key="types"
- prop="types"
+ key="authenticity"
+ prop="authenticity"
/>
<el-table-column
- label="璋冩煡鍐呭"
+ label="涓�鍛ㄥ唴瀹屾垚(20)"
align="center"
- key="nickName"
- prop="nickName"
+ key="weekFinish"
+ prop="weekFinish"
/>
<el-table-column
- label="浣忛櫌鐥呭尯"
+ label="瑙勮寖鎬�(10)"
align="center"
- key="nickName"
- prop="nickName"
+ key="standard"
+ prop="standard"
/>
<el-table-column
- label="搴婂彿"
+ label="鍙婃椂鎬�(10)"
align="center"
- key="nickName"
- prop="nickName"
+ key="timeliness"
+ prop="timeliness"
/>
<el-table-column
- label="涓绘不鍖荤敓"
+ label="瀹f暀鎯呭喌(10)"
align="center"
- key="nickName"
- prop="nickName"
+ key="library"
+ prop="library"
/>
<el-table-column
- label="绠″簥鎶ゅ+"
+ label="鐜婊℃剰搴�(10)"
align="center"
- key="nickName"
- prop="nickName"
+ key="environment"
+ prop="environment"
/>
<el-table-column
- label="鎵ц鐘舵��"
+ label="鍖荤敓婊℃剰搴�(10)"
align="center"
- key="topicnumber"
- prop="topicnumber"
- width="120"
- :show-overflow-tooltip="true"
- >
- <template slot-scope="scope">
- <div>鎵ц瀹屾垚/鎵ц澶辫触</div>
- </template>
- </el-table-column>
- <el-table-column
- label="璇婃柇"
- align="center"
- key="topicnumberaa"
- prop="topicnumberaa"
- sortable
- width="120"
- :show-overflow-tooltip="true"
- />
+ key="doctorSatisfaction"
+ prop="doctorSatisfaction"
+ />
<el-table-column
- label="鍏ラ櫌鏃堕棿"
+ label="鎶ゅ+婊℃剰搴�(10)"
+ align="center"
+ key="nurseSatisfaction"
+ prop="nurseSatisfaction"
sortable
- align="center"
- prop="createTime"
- width="160"
- >
- <template slot-scope="scope">
- <span>{{ formatTime(scope.row.createTime) }}</span>
- </template>
- </el-table-column>
+
+ />
<el-table-column
- label="浠诲姟璇︽儏"
+ label="鎬诲垎"
align="center"
- width="200"
- class-name="small-padding fixed-width"
- >
- <template slot-scope="scope">
- <el-button
- size="medium"
- type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-xq"
- ><i class="el-icon-s-data"></i>璇︽儏</span
- ></el-button
- >
- <el-button
- size="medium"
- type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-bb"
- ><i class="el-icon-s-order"></i>鎶ヨ〃</span
- ></el-button
- >
- <el-button
- size="medium"
- type="text"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:user:edit']"
- ><span class="button-sc"
- ><i class="el-icon-delete"></i>鍒犻櫎</span
- ></el-button
- >
- </template>
- </el-table-column>
+ key="total"
+ prop="total"
+ sortable
+ />
</el-table>
<pagination
@@ -350,14 +303,11 @@
<script>
import {
- listUser,
- getUser,
- delUser,
- addUser,
- updateUser,
- resetUserPwd,
+ listsatisfaction,
+ delsatisfaction,
+ updatesatisfaction,
changeUserStatus,
-} from "@/api/system/user";
+} from "@/api/AiCentre/index";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -427,56 +377,6 @@
list: [],
loading: false,
states: [
- "Alabama",
- "Alaska",
- "Arizona",
- "Arkansas",
- "California",
- "Colorado",
- "Connecticut",
- "Delaware",
- "Florida",
- "Georgia",
- "Hawaii",
- "Idaho",
- "Illinois",
- "Indiana",
- "Iowa",
- "Kansas",
- "Kentucky",
- "Louisiana",
- "Maine",
- "Maryland",
- "Massachusetts",
- "Michigan",
- "Minnesota",
- "Mississippi",
- "Missouri",
- "Montana",
- "Nebraska",
- "Nevada",
- "New Hampshire",
- "New Jersey",
- "New Mexico",
- "New York",
- "North Carolina",
- "North Dakota",
- "Ohio",
- "Oklahoma",
- "Oregon",
- "Pennsylvania",
- "Rhode Island",
- "South Carolina",
- "South Dakota",
- "Tennessee",
- "Texas",
- "Utah",
- "Vermont",
- "Virginia",
- "Washington",
- "West Virginia",
- "Wisconsin",
- "Wyoming",
],
pickerOptions: {
disabledDate(time) {
@@ -610,7 +510,7 @@
/** 鏌ヨ褰卞儚闅忚鍒楄〃 */
getList() {
this.loading = true;
- listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then(
+ listsatisfaction(this.topqueryParams).then(
(response) => {
this.userList = response.rows;
this.total = response.total;
@@ -635,21 +535,6 @@
} else {
this.options = [];
}
- },
- // 褰卞儚闅忚鐘舵�佷慨鏀�
- handleStatusChange(row) {
- let text = row.status === "0" ? "鍚敤" : "鍋滅敤";
- this.$modal
- .confirm('纭瑕�"' + text + '""' + row.userName + '"鐢ㄦ埛鍚楋紵')
- .then(function () {
- return changeUserStatus(row.userId, row.status);
- })
- .then(() => {
- this.$modal.msgSuccess(text + "鎴愬姛");
- })
- .catch(function () {
- row.status = row.status === "0" ? "1" : "0";
- });
},
// 鍙栨秷鎸夐挳
cancel() {
@@ -721,43 +606,13 @@
path: "/Intelligentcenter/satisfaction/particulars",
query: { type: this.tasktopic },
});
- // getUser().then((response) => {
- // this.postOptions = response.posts;
- // this.roleOptions = response.roles;
- // this.title = "鏂板褰卞儚闅忚";
- // this.form.password = this.initPassword;
- // });
+
},
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate(row) {
this.reset();
const userId = row.userId || this.ids;
- getUser(userId).then((response) => {
- this.form = response.data;
- this.postOptions = response.posts;
- this.roleOptions = response.roles;
- this.$set(this.form, "postIds", response.postIds);
- this.$set(this.form, "roleIds", response.roleIds);
- this.addalteropen = true;
- this.title = "淇敼鐢ㄦ埛";
- this.form.password = "";
- });
- },
- /** 閲嶇疆瀵嗙爜鎸夐挳鎿嶄綔 */
- handleResetPwd(row) {
- this.$prompt('璇疯緭鍏�"' + row.userName + '"鐨勬柊瀵嗙爜', "鎻愮ず", {
- confirmButtonText: "纭畾",
- cancelButtonText: "鍙栨秷",
- closeOnClickModal: false,
- inputPattern: /^.{5,20}$/,
- inputErrorMessage: "鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿",
- })
- .then(({ value }) => {
- resetUserPwd(row.userId, value).then((response) => {
- this.$modal.msgSuccess("淇敼鎴愬姛锛屾柊瀵嗙爜鏄細" + value);
- });
- })
- .catch(() => {});
+
},
/** 鎻愪氦鎸夐挳 */
@@ -765,14 +620,8 @@
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.userId != undefined) {
- updateUser(this.form).then((response) => {
+ updatesatisfaction(this.form).then((response) => {
this.$modal.msgSuccess("淇敼鎴愬姛");
- this.open = false;
- this.getList();
- });
- } else {
- addUser(this.form).then((response) => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
this.open = false;
this.getList();
});
@@ -786,7 +635,7 @@
this.$modal
.confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + userIds + '"鐨勬暟鎹」锛�')
.then(function () {
- return delUser(userIds);
+ return delsatisfaction(userIds);
})
.then(() => {
this.getList();
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index 8859a64..f13501d 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -328,7 +328,9 @@
<el-image
style="width: 100px; height: 100px"
:src="topicobj.picturePath"
- :preview-src-list="[...topicobj.picturePath]"
+ :preview-src-list="
+ topicobj.picturePath ? [topicobj.picturePath] : []
+ "
>
</el-image>
</div>
@@ -518,7 +520,9 @@
<el-image
style="width: 100px; height: 100px"
:src="item.picturePath"
- :preview-src-list="[...item.picturePath]"
+ :preview-src-list="
+ item.picturePath ? [item.picturePath] : []
+ "
>
</el-image>
</div>
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 5a12bb0..074bb70 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -691,7 +691,9 @@
<el-image
style="width: 100px; height: 100px"
:src="item.picturePath"
- :preview-src-list="[...item.picturePath]"
+ :preview-src-list="
+ item.picturePath ? [item.picturePath] : []
+ "
>
</el-image>
</div>
@@ -1212,7 +1214,9 @@
<el-image
style="width: 100px; height: 100px"
:src="item.picturePath"
- :preview-src-list="[...item.picturePath]"
+ :preview-src-list="
+ item.picturePath ? [item.picturePath] : []
+ "
>
</el-image>
</div>
diff --git a/src/views/sfstatistics/percentage/index.vue b/src/views/sfstatistics/percentage/index.vue
index 2e161d3..f1c04d4 100644
--- a/src/views/sfstatistics/percentage/index.vue
+++ b/src/views/sfstatistics/percentage/index.vue
@@ -71,7 +71,7 @@
<el-select
style="margin-left: 10px;"
v-if="queryParams.statisticaltype == 1"
- v-model="queryParams.leavehospitaldistrictCode"
+ v-model="queryParams.leavehospitaldistrictcodes"
size="medium"
multiple
filterable
@@ -87,7 +87,7 @@
</el-select>
<el-select
v-else-if="queryParams.statisticaltype == 2"
- v-model="queryParams.deptCode"
+ v-model="queryParams.deptcodes"
size="medium"
multiple
filterable
--
Gitblit v1.9.3