Merge branch 'wulong' of http://116.62.18.175:6699/r/~yxh/smartor-web into yxh01
| | |
| | | "dependencies": { |
| | | "@antv/x6": "^1.18.3", |
| | | "@antv/x6-vue-shape": "^1.2.3", |
| | | "@vue/composition-api": "^1.0.0-rc.6", |
| | | "@riophae/vue-treeselect": "0.4.0", |
| | | "@vue/babel-plugin-jsx": "^1.1.5", |
| | | "@vue/composition-api": "^1.0.0-rc.6", |
| | | "axios": "0.24.0", |
| | | "clipboard": "2.0.8", |
| | | "codemirror": "^5.65.13", |
| | |
| | | "file-saver": "^2.0.5", |
| | | "fuse.js": "6.4.3", |
| | | "highlight.js": "9.18.5", |
| | | "insert-css": "^2.0.0", |
| | | "jquery": "^3.7.0", |
| | | "js-beautify": "1.13.0", |
| | | "js-cookie": "3.0.1", |
| | |
| | | import { parseStrEmpty } from "@/utils/ruoyi";//å¤çå符串,und,null转æ¢ä¸º''; |
| | | |
| | | // æ¥è¯¢æ£è
å表 |
| | | // export function listpatient(query) { |
| | | // return request({ |
| | | // url: '/smartor/patarchive/list', |
| | | // method: 'get', |
| | | // params: query |
| | | // }) |
| | | // }; |
| | | export function listpatient(query) { |
| | | return request({ |
| | | url: '/smartor/patarchive/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | }; |
| | | // ç¨æ·ä¿¡æ¯æ¥è¯¢æ£è
å表 |
| | | export function messagelistpatient(data) { |
| | | return request({ |
| | |
| | | |
| | | /*æ£è
æ¡£æ¡APIæ¥å£ |
| | | patid// èªå¢ID
name// å§å
sex// æ§å« 1:ç· 2:女
iccardno// è¯ä»¶å·ç
birthdate// çæ¥
age// å¹´é¾
source// æ¥æº
archivetime// 建档æ¶é´
archiveby// 建档人
telcode// ææºå·ç
relativetelcode// 亲å±å·ç
iccardtype// è¯ä»¶ç±»å
orgid// æºæID
openid// 微信openid
del_flag// å 餿 è®°
update_by// æ´æ°äºº
update_time// æ´æ°æ¶é´
create_by// å建人
create_time// å建æ¶é´
isupload// ä¸ä¼ æ è®°
upload_time// ä¸ä¼ æ¶é´
pid//ç¶ID
guid//GUID
|
| | | patid// èªå¢ID |
| | | name// å§å |
| | | sex// æ§å« 1:ç· 2:女 |
| | | iccardno// è¯ä»¶å·ç |
| | | birthdate// çæ¥ |
| | | age// å¹´é¾ |
| | | source// æ¥æº |
| | | archivetime// 建档æ¶é´ |
| | | archiveby// 建档人 |
| | | telcode// ææºå·ç |
| | | relativetelcode// 亲å±å·ç |
| | | iccardtype// è¯ä»¶ç±»å |
| | | orgid// æºæID |
| | | openid// 微信openid |
| | | del_flag// å 餿 è®° |
| | | update_by// æ´æ°äºº |
| | | update_time// æ´æ°æ¶é´ |
| | | create_by// å建人 |
| | | create_time// å建æ¶é´ |
| | | isupload// ä¸ä¼ æ è®° |
| | | upload_time// ä¸ä¼ æ¶é´ |
| | | pid//ç¶ID |
| | | guid//GUID |
| | | */ |
| | | import request from '@/utils/request' |
| | | |
| | |
| | | // æ¥è¯¢æ ç¾å表 |
| | | export function listTag(query) { |
| | | return request({ |
| | | url: '/system/tag/list', |
| | | method: 'get', |
| | | url: '/base/tag/list', |
| | | method: 'post', |
| | | params: query |
| | | }) |
| | | } |
| | |
| | | // æ¥è¯¢æ ç¾è¯¦ç» |
| | | export function getTag(tagid) { |
| | | return request({ |
| | | url: '/system/tag/' + tagid, |
| | | url: '/base/tag/' + tagid, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // æ°å¢æ ç¾ |
| | | export function addTag(data) { |
| | | return request({ |
| | | url: '/system/tag', |
| | | url: '/base/tag', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // ä¿®æ¹æ ç¾ |
| | | export function updateTag(data) { |
| | | return request({ |
| | | url: '/system/tag', |
| | | url: '/base/tag', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // å 餿 ç¾ |
| | | export function delTag(tagid) { |
| | | return request({ |
| | | url: '/system/tag/' + tagid, |
| | | url: '/base/tag/' + tagid, |
| | | method: 'delete' |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <el-table |
| | | :data="currentList" |
| | | style="width: 1158px" |
| | | :header-cell-style="{ |
| | | background: '#f3f6fb', |
| | | color: '#666', |
| | | height: '42px', |
| | | 'font-weight': 400, |
| | | }" |
| | | :highlight-current-row="true" |
| | | empty-text="ææ æ°æ®" |
| | | > |
| | | <el-table-column type="index" :index="indexMethod" label="åºå·" width="80"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-for="(item, index) in tableLabel" |
| | | :key="index" |
| | | :prop="item.prop" |
| | | :width="item.width" |
| | | :label="item.label" |
| | | :formatter="formatData" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="æä½" width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click.native="$emit('details', scope.row)" |
| | | >æ¥ç详æ
</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | |
| | | <script> |
| | | import dayjs from "dayjs"; |
| | | export default { |
| | | data() { |
| | | return {}; |
| | | }, |
| | | props: { |
| | | currentList: { |
| | | type: Array, |
| | | required: true, |
| | | }, |
| | | tableLabel: { |
| | | type: Array, |
| | | default: () => [], |
| | | }, |
| | | currentIndex: { |
| | | type: Number, |
| | | required: true, |
| | | }, |
| | | }, |
| | | created() {}, |
| | | |
| | | methods: { |
| | | indexMethod(index) { |
| | | return parseInt(this.currentIndex) - 9 + index; |
| | | }, |
| | | // æ°æ®è¿æ»¤ |
| | | formatData(row, column, cellValue) { |
| | | if (column.property === "createType") { |
| | | if (cellValue === 1) { |
| | | return "èªå¨"; |
| | | } |
| | | return "æå¨"; |
| | | } |
| | | if (column.property === "createTime") { |
| | | return dayjs(cellValue).format("YYYY.MM.DD HH:mm:ss"); |
| | | } |
| | | return cellValue; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .el-table td, |
| | | .el-table th.is-leaf { |
| | | border-bottom: unset; |
| | | } |
| | | .el-table td, |
| | | .el-table th { |
| | | padding: 5px 0; |
| | | } |
| | | .el-table thead { |
| | | font-weight: 400; |
| | | color: #666; |
| | | } |
| | | .dialog-footer { |
| | | width: 100%; |
| | | padding: 10px 20px 20px; |
| | | text-align: center !important; |
| | | -webkit-box-sizing: border-box; |
| | | box-sizing: border-box; |
| | | } |
| | | </style> |
| | | |
| | |
| | | placeholder="è¯·éæ©" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-select |
| | | v-model="topqueryParams.topic" |
| | | v-model="tasktopic" |
| | | placeholder="è¯·éæ©æ°å¢ç±»å" |
| | | > |
| | | <el-option |
| | | v-for="item in topicoptions" |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="medium" |
| | | :disabled="!tasktopic" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:user:add']" |
| | | >æ°å¢</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="medium" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['system:user:edit']" |
| | | >ä¿®æ¹</el-button |
| | | > |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | |
| | | userList: null, |
| | | patientuserList: null, |
| | | sonuserList: null, |
| | | tasktopic: null, //æ°å¢ç±»å |
| | | form: { |
| | | name: "", |
| | | region: "", |
| | |
| | | label: "å京ç¤é¸", |
| | | }, |
| | | ], |
| | | taskoptions: [ |
| | | { |
| | | value: "1", |
| | | label: "éç¥", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "é访", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "é®å·", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "宣æ", |
| | | }, |
| | | ], |
| | | quote: false, |
| | | }; |
| | | }, |
| | |
| | | created() { |
| | | this.Addsubtask(); |
| | | this.Getsubtask(); |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | }, |
| | | // åä»»å¡ä¸çº§å¼¹æ¡ |
| | | handleAdd() { |
| | | this.multiple = true; |
| | | listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.sonuserList = response.rows; |
| | |
| | | }, |
| | | // åä»»å¡äºçº§å¼¹æ¡ |
| | | handleAddpatient() { |
| | | console.log(this.multiple); |
| | | listpat_archive(this.patientqueryParams).then((response) => { |
| | | console.log(response); |
| | | this.patientuserList = response.rows; |
| | |
| | | handleExport() {}, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | this.ids = null; |
| | | this.ids = selection.map((item) => item.patid).join(","); |
| | | // let result = this.ids.join(","); |
| | | this.multiple = !selection.length; |
| | | console.log(this.ids); |
| | | }, |
| | | getList() {}, |
| | |
| | | prop="describe" |
| | | /> |
| | | <el-table-column |
| | | label="任塿»æ°" |
| | | label="å任塿»æ°" |
| | | align="center" |
| | | key="nickName" |
| | | prop="nickName" |
| | |
| | | /** æ¥è¯¢é¨è¯é访å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listsvr_prj(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | listUser(this.addDateRange(this.topqueryParams, this.dateRange)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | |
| | | updatepat_archive, |
| | | delpat_archive, |
| | | } from "@/api/smartorpor/pat_archive"; |
| | | import { listbase_tag } from "@/api/smartorpor/base_tag"; |
| | | |
| | | import { |
| | | messagelistpatient, |
| | | alterpatient, |
| | | addpatient, |
| | | particularpatient, |
| | | deletepatient, |
| | | Exporterrorpatient, |
| | | toleadpatient, |
| | | } from "@/api/patient/homepage"; |
| | | import { listtag } from "@/api/system/label"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | |
| | | /** æ¥è¯¢æ£è
å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listpat_archive(this.queryParams).then((response) => { |
| | | messagelistpatient(this.queryParams).then((response) => { |
| | | console.log(response); |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | |
| | | /** æ¥è¯¢æ ç¾å表 */ |
| | | gettabList() { |
| | | const queryParams = {}; |
| | | listbase_tag().then((response) => { |
| | | listtag().then((response) => { |
| | | console.log(response); |
| | | this.optionstag = response.rows; |
| | | }); |
| | |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | const userIds = row.patid || this.ids; |
| | | getpat_archive(userIds).then((response) => { |
| | | particularpatient(userIds).then((response) => { |
| | | console.log(response); |
| | | this.form = response.data; |
| | | }); |
| | |
| | | //ä¿®æ¹/æ°å¢æ£è
|
| | | submitForm() { |
| | | if (this.amendtag) { |
| | | updatepat_archive(this.form) |
| | | alterpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal.msgSuccess("ä¿®æ¹æå"); |
| | | }); |
| | | } else { |
| | | addpat_archive(this.form) |
| | | addpatient(this.form) |
| | | .then((response) => { |
| | | console.log(response); |
| | | }) |
| | |
| | | this.$modal |
| | | .confirm('æ¯å¦ç¡®è®¤å é¤ç¨æ·ç¼å·ä¸º"' + userIds + '"çæ°æ®é¡¹ï¼') |
| | | .then(function () { |
| | | return delpat_archive(userIds); |
| | | return deletepatient(userIds); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | |
| | | <template slot-scope="scope"> |
| | | <el-switch |
| | | v-model="scope.row.isupload" |
| | | :active-value="'1'" |
| | | :inactive-value="'0'" |
| | | :active-value="1" |
| | | :inactive-value="0" |
| | | active-color="#13ce66" |
| | | @change="handleStatusChange(scope.row)" |
| | | ></el-switch> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { changetagcategory } from "@/api/system/label"; |
| | | import { |
| | | changetagcategory, |
| | | toamendtag, |
| | | toamendtagcategory, |
| | | addapitag, |
| | | addtagcategory, |
| | | detailstag, |
| | | deletetag, |
| | | deletetagcategory, |
| | | exporttag, |
| | | listtag, |
| | | tagclassifylist, |
| | | } from "@/api/system/label"; |
| | | import { |
| | | listbase_tag, |
| | | getbase_tag, |
| | |
| | | methods: { |
| | | /** æ¥è¯¢æ ç¾å表 */ |
| | | getList() { |
| | | listbase_tag(this.addDateRange(this.queryParams)).then((response) => { |
| | | listtag(this.addDateRange(this.queryParams)).then((response) => { |
| | | console.log(response); |
| | | this.total = response.total; |
| | | this.userList = response.rows; |
| | |
| | | // æ·»å /ä¿®æ¹æ ç¾ |
| | | Maintenancetag() { |
| | | if (this.lstamendtag) { |
| | | updatebase_tag(this.addDateRange(this.tagform)).then((response) => { |
| | | toamendtag(this.addDateRange(this.tagform)).then((response) => { |
| | | console.log(response); |
| | | this.lstamendtagVisible = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addbase_tag(this.addDateRange(this.tagform)).then((response) => { |
| | | addapitag(this.addDateRange(this.tagform)).then((response) => { |
| | | console.log(response); |
| | | this.lstamendtagVisible = false; |
| | | |
| | |
| | | |
| | | // è·åæ ç¾åç±» |
| | | gitclasify() { |
| | | listbase_tagcategory(this.addDateRange(this.forms)).then((response) => { |
| | | tagclassifylist(this.addDateRange(this.forms)).then((response) => { |
| | | console.log(response); |
| | | this.numberlb = response.total; |
| | | this.editableTabs = response.rows; |
| | |
| | | submitsidecolumn() { |
| | | if (this.amendtag) { |
| | | this.classifyform.tagcategoryid = this.idds; |
| | | updatebase_tagcategory(this.addDateRange(this.classifyform)).then( |
| | | toamendtagcategory(this.addDateRange(this.classifyform)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.gitclasify(); |
| | | } |
| | | ); |
| | | } else { |
| | | addbase_tagcategory(this.addDateRange(this.classifyform)).then( |
| | | addtagcategory(this.addDateRange(this.classifyform)).then( |
| | | (response) => { |
| | | console.log(response); |
| | | this.gitclasify(); |
| | |
| | | //å é¤åç±» |
| | | deletefenlei(row) { |
| | | if (this.deleteVisible) { |
| | | delbase_tagcategory(this.idds).then((response) => { |
| | | deletetagcategory(this.idds).then((response) => { |
| | | console.log(response); |
| | | this.gitclasify(); |
| | | }); |
| | |
| | | // æ ç¾ç¶æä¿®æ¹ |
| | | handleStatusChange(row) { |
| | | console.log(row.isupload); |
| | | let text = row.isupload == "0" ? "åç¨" : "å¯ç¨"; |
| | | let text = row.isupload == 0 ? "åç¨" : "å¯ç¨"; |
| | | this.$modal |
| | | .confirm('确认è¦"' + text + '""' + row.tagname + '"æ ç¾åï¼') |
| | | .then(function () { |
| | | return updatebase_tag(row); |
| | | return toamendtag(row); |
| | | }) |
| | | .then(() => { |
| | | this.$modal.msgSuccess(text + "æå"); |
| | | }) |
| | | .catch(function () { |
| | | row.isupload = row.isupload == "0" ? "1" : "0"; |
| | | row.isupload = row.isupload == 0 ? 1 : 0; |
| | | }); |
| | | }, |
| | | /** æç´¢æé®æä½ */ |
| | |
| | | : "æ¯å¦ç¡®è®¤å é¤éä¸çæ°æ®é¡¹ï¼" |
| | | ) |
| | | .then(function () { |
| | | return delbase_tag(tagids); |
| | | return deletetag(tagids); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target1: `http://192.168.1.4:8080`, |
| | | // target: `http://192.168.1.3:8080`, |
| | | target: `http://www.hxsoft.com:8080`, |
| | | target:`http://localhost:8080`, |
| | | // target: `http://www.hxsoft.com:8080`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |