|
|
@@ -109,7 +109,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup name="Protocol">
|
|
|
-import { listProtocol, getProtocol, delProtocol, addProtocol, updateProtocol, changeProtocolStatus } from "@/api/hnyz/commProtocol";
|
|
|
+import { listProtocol, getProtocol, delProtocol, addProtocol, updateProtocol, changeStatus } from "@/api/hnyz/commProtocol";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const { sys_normal_disable } = proxy.useDict("sys_normal_disable");
|
|
|
@@ -198,7 +198,7 @@ function handleSelectionChange(selection) {
|
|
|
function handleStatusChange(row) {
|
|
|
let text = row.status == "0" ? "启用" : "停用";
|
|
|
proxy.$modal.confirm('确认要"' + text + '"协议名为"' + row.protocolName + '"的数据项吗?').then(function () {
|
|
|
- return changeProtocolStatus(row.protocolId, row.status);
|
|
|
+ return changeStatus(row.protocolId, row.status);
|
|
|
}).then(() => {
|
|
|
proxy.$modal.msgSuccess(text + "成功");
|
|
|
}).catch(function () {
|