|
|
|
|
@ -135,10 +135,7 @@
|
|
|
|
|
width="150px"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
v-for="item in getSplitList(scope.row.miniTagNames)"
|
|
|
|
|
:key="item"
|
|
|
|
|
>
|
|
|
|
|
<el-tag v-for="item in getSplitList(scope.row.miniTagNames)">
|
|
|
|
|
{{ item }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
@ -150,10 +147,7 @@
|
|
|
|
|
width="150px"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
v-for="item in getSplitList(scope.row.miniTagNames)"
|
|
|
|
|
:key="item"
|
|
|
|
|
>
|
|
|
|
|
<el-tag v-for="item in getSplitList(scope.row.wecomTagNames)">
|
|
|
|
|
{{ item }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
@ -184,11 +178,19 @@
|
|
|
|
|
v-hasPermi="['system:instrument:edit']"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit"
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="editMiniProgramTags(scope.row)"
|
|
|
|
|
>设置小程序可见标签
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit"
|
|
|
|
|
>设置微信可见标签
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="editWecomTags(scope.row)"
|
|
|
|
|
>设置企微可见标签
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit"
|
|
|
|
|
>正品控名称配置
|
|
|
|
|
@ -202,8 +204,18 @@
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['system:instrument:remove']"
|
|
|
|
|
v-if="scope.row.status == 0"
|
|
|
|
|
>隐藏
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['system:instrument:remove']"
|
|
|
|
|
v-if="scope.row.status == 1"
|
|
|
|
|
>解除隐藏
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -427,6 +439,7 @@
|
|
|
|
|
:inactive-value="0"
|
|
|
|
|
active-color="#13ce66"
|
|
|
|
|
inactive-color="#DCDCDC"
|
|
|
|
|
@change="isExtraClockChange"
|
|
|
|
|
>
|
|
|
|
|
</el-switch>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
@ -458,7 +471,11 @@
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="仪器类型" prop="type">
|
|
|
|
|
<el-select v-model="form.type" style="width: 50%">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.type"
|
|
|
|
|
style="width: 50%"
|
|
|
|
|
@change="typeChange"
|
|
|
|
|
>
|
|
|
|
|
<el-option label="非IOT仪器" :value="1"></el-option>
|
|
|
|
|
<el-option label="IOT仪器" :value="2"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
@ -507,15 +524,19 @@
|
|
|
|
|
<el-form-item label="扫机身码" prop="isScanCode">
|
|
|
|
|
<el-switch
|
|
|
|
|
v-model="form.isScanCode"
|
|
|
|
|
active-value="1"
|
|
|
|
|
inactive-value="0"
|
|
|
|
|
:active-value="1"
|
|
|
|
|
:inactive-value="0"
|
|
|
|
|
active-color="#13ce66"
|
|
|
|
|
inactive-color="#DCDCDC"
|
|
|
|
|
>
|
|
|
|
|
</el-switch>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="是否支持购买" prop="isPurchase">
|
|
|
|
|
<el-select v-model="form.isPurchase" style="width: 50%">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.isPurchase"
|
|
|
|
|
style="width: 50%"
|
|
|
|
|
@change="isPurchaseChang"
|
|
|
|
|
>
|
|
|
|
|
<el-option label="是" :value="1"></el-option>
|
|
|
|
|
<el-option label="否" :value="0"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
@ -576,7 +597,10 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div style="width: 80px; height: 80px">
|
|
|
|
|
<video style="width: 100%; height: 100%;" :src="scope.row.file"></video>
|
|
|
|
|
<video
|
|
|
|
|
style="width: 100%; height: 100%"
|
|
|
|
|
:src="scope.row.file"
|
|
|
|
|
></video>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
@ -584,7 +608,11 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="message" label="规则提示内容">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input placeholder="请输入" v-model="scope.row.message" clearable></el-input>
|
|
|
|
|
<el-input
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
v-model="scope.row.message"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="80">
|
|
|
|
|
@ -641,7 +669,10 @@
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div style="width: 80px; height: 80px">
|
|
|
|
|
<video style="width: 100%; height: 100%;" :src="scope.row.file"></video>
|
|
|
|
|
<video
|
|
|
|
|
style="width: 100%; height: 100%"
|
|
|
|
|
:src="scope.row.file"
|
|
|
|
|
></video>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
@ -649,7 +680,11 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="message" label="规则提示内容">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input placeholder="请输入" v-model="scope.row.message" clearable></el-input>
|
|
|
|
|
<el-input
|
|
|
|
|
placeholder="请输入"
|
|
|
|
|
v-model="scope.row.message"
|
|
|
|
|
clearable
|
|
|
|
|
></el-input>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="80">
|
|
|
|
|
@ -717,23 +752,91 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- <VideoPreview :src="previewSrc" :isDialog="isPreviewDialog" /> -->
|
|
|
|
|
<!-- 编辑小程序可见标签 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="编辑小程序可见标签"
|
|
|
|
|
:visible.sync="miniProgramTag.visible"
|
|
|
|
|
width="50%"
|
|
|
|
|
>
|
|
|
|
|
<el-form ref="miniProgramTag" :model="miniProgramTag" label-width="150px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="100">
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="小程序标签"
|
|
|
|
|
prop="selectTagList"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
>
|
|
|
|
|
<treeselect
|
|
|
|
|
v-model="miniProgramTag.selectTagList"
|
|
|
|
|
:options="miniProgramTag.optionTree"
|
|
|
|
|
:multiple="true"
|
|
|
|
|
:show-count="true"
|
|
|
|
|
placeholder="请选择小程序标签"
|
|
|
|
|
:disable-branch-nodes="true"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="miniProgramTag.visible = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitMiniProgramTagList"
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 编辑企微可见标签 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="编辑企微可见标签"
|
|
|
|
|
:visible.sync="wecomTag.visible"
|
|
|
|
|
width="50%"
|
|
|
|
|
>
|
|
|
|
|
<el-form :model="wecomTag" label-width="150px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="100">
|
|
|
|
|
<el-form-item
|
|
|
|
|
label="小程序标签"
|
|
|
|
|
prop="tagIdArray"
|
|
|
|
|
label-width="100px"
|
|
|
|
|
>
|
|
|
|
|
<treeselect
|
|
|
|
|
v-model="wecomTag.selectTagList"
|
|
|
|
|
:options="wecomTag.optionTree"
|
|
|
|
|
:multiple="true"
|
|
|
|
|
:show-count="true"
|
|
|
|
|
placeholder="请选择小程序标签"
|
|
|
|
|
:disable-branch-nodes="true"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="wecomTag.visible = false">重 置</el-button>
|
|
|
|
|
<el-button type="primary" @click="submitWecomTagList">确 定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { upload } from '@/api/upload'
|
|
|
|
|
import {
|
|
|
|
|
listInstrument,
|
|
|
|
|
getInstrument,
|
|
|
|
|
delInstrument,
|
|
|
|
|
addInstrument,
|
|
|
|
|
updateInstrument,
|
|
|
|
|
getMiniProgramTagTree,
|
|
|
|
|
getWecomTagTree,
|
|
|
|
|
} from '@/api/system/instrument'
|
|
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
|
|
import Treeselect from '@riophae/vue-treeselect'
|
|
|
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'Instrument',
|
|
|
|
|
components: { Treeselect },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 遮罩层
|
|
|
|
|
@ -816,6 +919,20 @@ export default {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
},
|
|
|
|
|
/* 小程序可见标签 */
|
|
|
|
|
miniProgramTag: {
|
|
|
|
|
userId: null,
|
|
|
|
|
selectTagList: null,
|
|
|
|
|
visible: false,
|
|
|
|
|
optionTree: [],
|
|
|
|
|
},
|
|
|
|
|
/* 企微可见标签 */
|
|
|
|
|
wecomTag: {
|
|
|
|
|
userId: null,
|
|
|
|
|
selectTagList: null,
|
|
|
|
|
visible: false,
|
|
|
|
|
optionTree: [],
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
@ -898,7 +1015,6 @@ export default {
|
|
|
|
|
// 预览弹窗
|
|
|
|
|
previewSrc: '', // 预览地址
|
|
|
|
|
isPreviewVideo: true, // 预览开关
|
|
|
|
|
// isPreviewImage: true, // 预览开关
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
@ -945,7 +1061,7 @@ export default {
|
|
|
|
|
iotVersion: null,
|
|
|
|
|
iotUpgradeData: null,
|
|
|
|
|
isScanCode: 0,
|
|
|
|
|
isPurchase: null,
|
|
|
|
|
isPurchase: 0,
|
|
|
|
|
shoppingAppid: null,
|
|
|
|
|
shoppingPath: null,
|
|
|
|
|
bluetoothConnecting: null,
|
|
|
|
|
@ -957,56 +1073,56 @@ export default {
|
|
|
|
|
scanCodeBinding: null,
|
|
|
|
|
}
|
|
|
|
|
/* 仪器封面 */
|
|
|
|
|
;(this.bannerFile = {
|
|
|
|
|
this.bannerFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
dialogImageUrl: '',
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* 仪器logo */
|
|
|
|
|
(this.logoFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
dialogImageUrl: '',
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* 序列号图片 */
|
|
|
|
|
(this.serialFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
dialogImageUrl: '',
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* 手写绑定介绍视频/图片 */
|
|
|
|
|
(this.manualFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* 扫码绑定介绍视频/图片 */
|
|
|
|
|
(this.scanFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* iot升级数据文件 */
|
|
|
|
|
(this.iotUpgradeFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* 蓝牙连接文件 */
|
|
|
|
|
(this.bluetoothConnectFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
/* 蓝牙断开连接文件 */
|
|
|
|
|
(this.bluetoothClosedFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}),
|
|
|
|
|
// this.form.iotVersionUpgrade = null,
|
|
|
|
|
this.resetForm('form')
|
|
|
|
|
}
|
|
|
|
|
/* 仪器logo */
|
|
|
|
|
this.logoFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
dialogImageUrl: '',
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
/* 序列号图片 */
|
|
|
|
|
this.serialFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
dialogImageUrl: '',
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
/* 手写绑定介绍视频/图片 */
|
|
|
|
|
this.manualFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
/* 扫码绑定介绍视频/图片 */
|
|
|
|
|
this.scanFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
/* iot升级数据文件 */
|
|
|
|
|
this.iotUpgradeFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
/* 蓝牙连接文件 */
|
|
|
|
|
this.bluetoothConnectFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
/* 蓝牙断开连接文件 */
|
|
|
|
|
this.bluetoothClosedFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [],
|
|
|
|
|
}
|
|
|
|
|
// this.form.iotVersionUpgrade = null,
|
|
|
|
|
this.resetForm('form')
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
@ -1036,6 +1152,72 @@ export default {
|
|
|
|
|
const id = row.id || this.ids
|
|
|
|
|
getInstrument(id).then((response) => {
|
|
|
|
|
this.form = response.data
|
|
|
|
|
// 仪器封面回显
|
|
|
|
|
this.bannerFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
dialogImageUrl: this.form.banner,
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [{ name: '', url: this.form.banner }],
|
|
|
|
|
}
|
|
|
|
|
/* 仪器logo */
|
|
|
|
|
this.logoFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
dialogImageUrl: this.form.logo,
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [{ name: '', url: this.form.logo }],
|
|
|
|
|
}
|
|
|
|
|
/* 序列号图片 */
|
|
|
|
|
this.serialFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
dialogImageUrl: this.form.serial,
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
fileList: [{ name: '', url: this.form.serial }],
|
|
|
|
|
}
|
|
|
|
|
/* 手写绑定介绍视频/图片 */
|
|
|
|
|
this.manualFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
fileList: [
|
|
|
|
|
{ name: '手写绑定介绍视频/图片', url: this.form.manualCodeBinding },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
/* 扫码绑定介绍视频/图片 */
|
|
|
|
|
this.scanFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
fileList: [
|
|
|
|
|
{ name: '扫码绑定介绍视频/图片', url: this.form.scanCodeBinding },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
/* iot升级数据文件 */
|
|
|
|
|
this.iotUpgradeFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
fileList: [
|
|
|
|
|
{ name: 'iot升级数据文件', url: this.form.iotUpgradeData },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
/* 蓝牙连接文件 */
|
|
|
|
|
this.bluetoothConnectFile = {
|
|
|
|
|
uploadHide: true,
|
|
|
|
|
fileList: [
|
|
|
|
|
{ name: '蓝牙连接文件', url: this.form.bluetoothConnecting },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
/* 蓝牙断开连接文件 */
|
|
|
|
|
this.bluetoothClosedFile = {
|
|
|
|
|
uploadHide: false,
|
|
|
|
|
fileList: [
|
|
|
|
|
{ name: '蓝牙断开连接文件', url: this.form.bluetoothClosed },
|
|
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
// 额外打卡时间
|
|
|
|
|
if (this.form.isExtraClock == 1) {
|
|
|
|
|
this.form.extraClockTimeRange = [
|
|
|
|
|
response.data.startTime,
|
|
|
|
|
response.data.endTime,
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
this.open = true
|
|
|
|
|
this.title = '修改仪器列'
|
|
|
|
|
})
|
|
|
|
|
@ -1045,34 +1227,32 @@ export default {
|
|
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
this.$modal.msgSuccess('修改成功')
|
|
|
|
|
// updateInstrument(this.form).then(response => {
|
|
|
|
|
// this.$modal.msgSuccess("修改成功");
|
|
|
|
|
// this.open = false;
|
|
|
|
|
// this.getList();
|
|
|
|
|
// });
|
|
|
|
|
updateInstrument(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess('修改成功')
|
|
|
|
|
this.open = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
/*addInstrument(this.form).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});*/
|
|
|
|
|
addInstrument(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess('新增成功')
|
|
|
|
|
this.open = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const ids = row.id || this.ids
|
|
|
|
|
const ids = row.id
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认删除仪器列编号为"' + ids + '"的数据项?')
|
|
|
|
|
.confirm('是否确认隐藏仪器列编号为"' + ids + '"的数据项?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
return delInstrument(ids)
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.$modal.msgSuccess('删除成功')
|
|
|
|
|
this.$modal.msgSuccess('隐藏成功')
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {})
|
|
|
|
|
},
|
|
|
|
|
@ -1195,6 +1375,72 @@ export default {
|
|
|
|
|
this.$message.error('图片插入失败')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/* 是否开启额外打卡奖励 */
|
|
|
|
|
isExtraClockChange() {
|
|
|
|
|
if (this.form.isExtraClock == 0) {
|
|
|
|
|
this.form.extraClockCredit = 0
|
|
|
|
|
this.form.extraClockTimeRange = []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/* 仪器类型切换 */
|
|
|
|
|
typeChange() {
|
|
|
|
|
if (this.form.type == 1) {
|
|
|
|
|
this.form.model = 'WL200'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/* 是否购买切换 */
|
|
|
|
|
isPurchaseChang() {
|
|
|
|
|
if (this.form.isPurchase == 0) {
|
|
|
|
|
this.form.shoppingAppid = null
|
|
|
|
|
this.form.shoppingPath = null
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/* 设置小程序可见标签 */
|
|
|
|
|
editMiniProgramTags(row) {
|
|
|
|
|
// 小程序标签树
|
|
|
|
|
getMiniProgramTagTree().then((Response) => {
|
|
|
|
|
this.miniProgramTag.optionTree = Response.data
|
|
|
|
|
this.miniProgramTag.visible = true
|
|
|
|
|
if (row.miniTagIds != null && row.miniTagIds.length > 0) {
|
|
|
|
|
this.miniProgramTag.selectTagList = row.miniTagIds
|
|
|
|
|
.split(',')
|
|
|
|
|
.map(Number)
|
|
|
|
|
}
|
|
|
|
|
this.miniProgramTag.userId = row.id
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/* 设置企微可见标签 */
|
|
|
|
|
editWecomTags(row) {
|
|
|
|
|
// 企微标签树
|
|
|
|
|
getWecomTagTree().then((response) => {
|
|
|
|
|
this.wecomTag.optionTree = response.data
|
|
|
|
|
this.wecomTag.visible = true
|
|
|
|
|
if (row.wecomTagIds != null && row.wecomTagIds.length > 0) {
|
|
|
|
|
this.wecomTag.selectTagList = row.wecomTagIds.split(',').map(Number)
|
|
|
|
|
}
|
|
|
|
|
this.wecomTag.userId = row.id
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/* 保存小程序标签 */
|
|
|
|
|
submitMiniProgramTagList() {
|
|
|
|
|
this.form.id = this.miniProgramTag.userId
|
|
|
|
|
this.form.miniTagIds = this.miniProgramTag.selectTagList.join(',')
|
|
|
|
|
updateInstrument(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess('修改成功')
|
|
|
|
|
this.miniProgramTag.visible = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/* 保存企微标签 */
|
|
|
|
|
submitWecomTagList() {
|
|
|
|
|
this.form.id = this.wecomTag.userId
|
|
|
|
|
this.form.wecomTagIds = this.wecomTag.selectTagList.join(',')
|
|
|
|
|
updateInstrument(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess('修改成功')
|
|
|
|
|
this.wecomTag.visible = false
|
|
|
|
|
this.getList()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/* 初次护理弹窗 */
|
|
|
|
|
addNurse() {
|
|
|
|
|
@ -1300,7 +1546,7 @@ export default {
|
|
|
|
|
height: 1px;
|
|
|
|
|
left: -100px;
|
|
|
|
|
}
|
|
|
|
|
video{
|
|
|
|
|
object-fit:fill;
|
|
|
|
|
}
|
|
|
|
|
video {
|
|
|
|
|
object-fit: fill;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|