当前位置:首页 > 政务公开 > 财政资金 > 财政预决算

龙8省人民政府办公厅部门整体支出2022年度绩效目标及2021年度自评结果

2022-06-02 10:08
| | | |

附件:

政府文件全真版:

温馨提示: 请使用OFD阅读软件浏览源文件,如未安装点击下载

来源:龙8省人民政府门户网站

扫码关注中国龙8微信

扫码关注中国龙8微信

扫一扫在手机上查看当前页面

”进行咨询,后续会有业务部门人员进行回复哦。"; //模拟sessionid var rondom = ""; //默认300秒超时 var outTime = 300; //定时器计数 var count = 140; //用户无响应时间定时器 用于超期退出 var ref; //热点问题显示个数 var rows = 18; var status = 200; var siteUrl = ""; var index = -1; var size = ""; var rec; var voiceRefMap = new Map(); var secs = 20; //倒计时 var param; var num = 0; var switch2Text = false; var timeliness = 0;//响应及时性 var accuracy = 0;//答案准确性 var experience = 0;//互动体验性 var knowledgeNum = 0;//业务知识量 var suggest = "";//意见 var userLastInput = ""; var isRstSearch = false; var evaluateShow = true;//是否显示评价 // var listener = new window.keypress.Listener(); var queTemplate = Handlebars.compile($("#que_template").html()); var li = 0 var keyStatus = 0 //点击按键状态 1代表上键 2代表下键 var userOldInput = ""; //语音 $('#start_record').on('click', function () { startRec(); ifs="0"; $("#answerList").html(" ") if(window.bf && window.bf._voice) { if(window.bf._voice.closeState == 0) { window.bf._voice.closeState = 1; window.bf.getState('voiceClose', 1) } } }) //语音 $('#stop_record').on('click', function () { ifs=""; uploadRec(); $(".h-start1").hide() if(window.bf && window.bf._voice) { if(window.bf._voice.closeState == 1) { window.bf._voice.closeState = 0; window.bf.getState('voiceClose', 0) } } }) function onmouseover_(obj, e) { if (e == 1) { $(obj).css('color', 'blue'); $(obj.childNodes[0]).attr('src', 'img/ishelp1.png'); } else { $(obj).css('color', 'black'); $(obj.childNodes[0]).attr('src', 'img/ishelp3.png'); } } function onmouseout_(obj, e) { if (e == 1) { $(obj).css('color', '#999'); $(obj.childNodes[0]).attr('src', 'img/ishelp.png'); } else { $(obj).css('color', '#999'); $(obj.childNodes[0]).attr('src', 'img/ishelp2.png'); } } function timecount() { $('#lisening').html("(点击结束 " + secs + " 秒)"); secs = secs - 1; if (secs < 0) { uploadRec(); clearTimeout(param); } param = setTimeout(function () { timecount(); }, 1000); } var btnStartRecording = document.getElementById('start_record'); var btnStopRecording = document.getElementById('stop_record'); var isEdge = navigator.userAgent.indexOf('Edge') !== -1 && (!!navigator.msSaveOrOpenBlob || !!navigator.msSaveBlob); var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); var recorder; // globally accessible var microphone; // 语音调用的方法 function startRec() { $("#voice-label").html("(录音功能正在准备中)") // initVoice(); $("audio").each(function (index, item) { $(this)[0].pause(); }); $('.yy_btn_close').each(function (index, item) { $(this).removeClass().addClass("yy_btn"); }); clearTimeout(param); secs = 20; timecount(); if (!microphone) { captureMicrophone(function (mic) { //捕获传声器captureMicrophone microphone = mic; click(btnStartRecording); }); return; } var options = { type: 'audio', numberOfAudioChannels: 1, checkForInactiveTracks: false, bufferSize: 4096, recorderType: StereoAudioRecorder }; if (recorder) { recorder.destroy(); recorder = null; } $('.h-start2').hide(); $('.h-close').show(); $("#voice-label").text("(点击开始说话)"); recorder = RecordRTC(microphone, options); recorder.startRecording(); }; //停止录音的回调 function stopRecordingCallback() { if (!switch2Text) { var internalRecorder = recorder.getInternalRecorder(); var leftchannel = internalRecorder.leftchannel; var rightchannel = internalRecorder.rightchannel; // ------------------------------------------------------------ mergeLeftRightBuffers({ desiredSampRate: 8000, sampleRate: internalRecorder.sampleRate, numberOfAudioChannels: internalRecorder.numberOfAudioChannels, internalInterleavedLength: internalRecorder.recordingLength, leftBuffers: leftchannel, rightBuffers: internalRecorder.numberOfAudioChannels === 1 ? [] : rightchannel }, function (buffer, view) { var wavBlob = new Blob([buffer], { type: 'audio/wav' }); var blob = changeFormat(buffer); clearTimeout(param); var form = new FormData(); var filleName = rondomNum(true, 32, 32); form.append("siteId", siteId); form.append("random", rondom); form.append("upfile", blob, filleName + ".mp3"); //和普通form表单并无二致,后端接收到upfile参数的文件,文件名为recorder.mp3 var audio = document.createElement("audio"); audio.id = filleName + "_"; audio.style.cssFloat = "right"; audio.style.height = "32px"; audio.controls = true; audio.style.display = "none"; audio.src=/zwgk/czzj/czyjs/202206/URL.createObjectURL(wavBlob); $("#answerList").append(audio); var values = {value: filleName, isvoice: true}; appendHtml(queTemplate(values), 3); // audio.play(); isVoiceAsk = true; $.ajax({ type: 'POST', url: "/isr/public/talk/uploadMp3?siteId=2c9bc5436f844983016f84499f1b00ac", data: form, cache: false, processData: false, contentType: false, success: function (ret) { //console.log("resresres",ret); //console.log(importVoice,"2202"); var json = $.parseJSON(ret); $("#" + json.id).val(json.result); if (json.qastatus == 1) { qaResult(json.result); } } }); count = outTime; }); } else { switch2Text = false; } // if (isSafari) { // click(btnReleaseMicrophone); // } } function uploadRec() { $('.h-start2').show(); $('.h-close').hide(); recorder.stopRecording(stopRecordingCallback); }; function isSolve(e) { var status = e; $.ajax({ headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, type: "POST", url: isSolveSessionUrl, async: true, data: "{\"status\":\"" + status + "\",\"rondom\":\"" + rondom + "\"}", success: function (result) { }, }) } function captureMicrophone(callback) { // btnReleaseMicrophone.disabled = false; if (microphone) { callback(microphone); return; } if (typeof navigator.mediaDevices === 'undefined' || !navigator.mediaDevices.getUserMedia) { $('.h-start2').show(); $('.h-close').hide(); var sys = isAndroidOrIOSOrPc(); if (sys == "pc") { alert("该浏览器不支持语音录入,
请使用谷歌、火狐等主流浏览器。", {area: ['320px', '80px']}); } else if (sys == "ios") { alert("该浏览器不支持语音录入,
请将您的IOS操作系统升级最新版本,并使用safari浏览器打开使用。", {area: ['320px', '80px']}); } else if (sys == "android") { alert("该浏览器不支持语音录入,
请使用系统自带浏览器打开使用。", {area: ['320px', '80px']}); } else { alert("您当前的操作系统不支持语音录入。", {area: ['300px', '50px']}); } } navigator.mediaDevices.getUserMedia( { audio: isEdge ? true : {echoCancellation: false} } ).then(function (mic) { callback(mic); }).catch(function (error) { alert("该浏览器不支持语音录入。
或您拒绝了语音授权", {area: ['300px', '60px']}); $("#voice-label").html("(点击开始说话)"); $('.h-start2').show(); $('.h-close').hide(); }) } /** * randomWord 产生任意长度随机字母数字组合 * randomFlag-是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位 * @param randomFlag * @param min * @param max * @returns {string} */ function rondomNum(randomFlag, min, max) { var str = "", range = min, arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'U', 'V', 'W', 'X', 'Y', 'Z']; // 随机产生 if (randomFlag) { range = Math.round(Math.random() * (max - min)) + min; } for (var i = 0; i < range; i++) { pos = Math.round(Math.random() * (arr.length - 1)); str += arr[pos]; } return str; } function qaResult(keyWord) { $("#completionQues").html(""); $("#tc_Big_box").hide(); $("#keyLength").html(50); var url = answerUrl; if (isRstSearch) { url = rstAnswerUrl; } $.ajax({ headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, //请求方式 type: "POST", //请求地址 url: url, dataType: "json", //数据,json字符串 data: "{\"question\":\"" + keyWord + "\",\"siteId\":\"" + siteId + "\",\"rondom\":\"" + rondom + "\"}", //请求成功 success: function (data) { // console.log(data); if (!data.error) { if (data.msg) { appendHtml(data.msg, 1); return; } recordId = data.recordId; var isVoice = data.isVoice; //匹配答案 var match = data.result.matchQuestions; //相似问题 var like = data.result.likeQuestions; var fill = data.result.fillQuestions; //敏感词 var filter = data.result.filterList; var ischat = data.result.ischat; var rstdata = data.result.rstdata; parseData(match, like, filter, ischat, keyWord, rstdata, isVoice); } }, //请求失败,包含具体的错误信息 error: function (e) { if (e.responseText.indexOf('script') > 0) { var msg = e.responseText.substring(e.responseText.indexOf('\'') + 1, e.responseText.lastIndexOf('\'')); appendHtml(msg, 1) } } }); $("#keyWord").val(""); } /** * 后端返回值解析 * @param match * @param like * @param filter */ function parseData(match, like, filter, ischat, textValue, rstdata, isVoice) { voiceBtnId = genUuid(); isRstData = false; $("#tc_Big_box").hide(); if (rstdata && rstdata.list.length > 0) { var values = { robotName: robotName, img: robotImage, rstdata: rstdata, unknow: unknow, index: ++num, isWebSearch: isRstSearch, voiceBtnId: voiceBtnId }; appendHtml(rstTemplate(values), 8); var smartAnswer = rstDataAddIndex(rstdata.list); smartList = getSmartList(smartAnswer); isRstData = true; isRstSearch = false; playVoiceAsk(); return; } //敏感词 if (filter && filter.length > 0) { var words = ""; jQuery.each(filter, function (i, item) { var obj = JSON.parse(item); words += obj.word + ","; }); if (words.length > 0) words = words.substring(0, words.length - 1); var values = { robotName: robotName, isVoice: isVoice, img: robotImage, value: words, index: ++num, isSen: true, voiceBtnId: voiceBtnId }; appendHtml(othTemplate(values), 8); playVoiceAsk(); return; } //智能问答 if (match) { if (match.length > 0 && ischat == 1) { var values = { question: match[0].question, robotName: robotName, img: robotImage, answer: match[0].answer, answerId: match[0].answerId, uuid: match[0].uuid, index: ++num, voiceTime: match[0].voiceTime, isVoice: isVoice, isTime: match[0].voiceTime === "undefined" || match[0].voiceTime === "" ? false : true, iswenda: true, like: like, voiceBtnId: voiceBtnId }; appendHtml(ansTemplate(values), 8); //寒暄 } else if (match.length > 0 && ischat == 0) { var values = { robotName: robotName, img: robotImage, answer: match[0].answer, answerId: match[0].answerId, uuid: match[0].uuid, isVoice: isVoice, index: ++num, voiceTime: match[0].voiceTime, isTime: match[0].voiceTime === "undefined" || match[0].voiceTime === "" ? false : true, iswenda: false, voiceBtnId: voiceBtnId }; appendHtml(ansTemplate(values), 8); } else if (match.length == 0 && like.length > 0) { if (textValue != null) { if (textValue == like[0].question.replace(/\n/g, "")) { // console.log("匹配第一条:" + like[0].question.replace(/\n/g, "")); var values = { robotName: robotName, img: robotImage, answer: like[0].answer, uuid: like[0].uuid, index: ++num, isVoice: isVoice, iswenda: true, voiceBtnId: voiceBtnId, }; appendHtml(ansTemplate(values), 8); playVoiceAsk(); return; } } var values = { robotName: robotName, img: robotImage, like: like, keyWord: textValue, isVoice: isVoice, index: ++num, voiceBtnId: voiceBtnId, webSearch: webSearchOn }; var smartAnswer = likeDataAddIndex(like); smartList = getSmartList(smartAnswer); appendHtml(simTemplate(values), 8); } else if (match.length == 0 && like.length == 0) { var values = { robotName: robotName, isVoice: isVoice, isUnknow: true, unknow: unknow, index: ++num, img: robotImage, voiceBtnId: voiceBtnId }; appendHtml(othTemplate(values), 8); } } else { var values = { robotName: robotName, isVoice: isVoice, isUnknow: true, index: ++num, unknow: "真的非常抱歉,从网站也未能检索到您需要的信息,您可以前往龙8省12345平台进行咨询。", img: robotImage, voiceBtnId: voiceBtnId }; appendHtml(othTemplate(values), 8); } playVoiceAsk(); } /** * * @param html 追加的html * @param type 类型 1:欢迎及警告 3:用户 8:完全匹配及寒暄库 * @param isvoice 是否语音 */ function appendHtml(value, type) { var commonHtml = ""; if (type == 1) { var values = {robotName: robotName, isSys: true, value: value, img: robotImage}; commonHtml = othTemplate(values); } else if (type == 8) { commonHtml = value; } else if (type == 3) { commonHtml = value; } else { commonHtml = value; } $("#answerList").html(" ") $("#answerList").append(commonHtml); var div = document.getElementById('answerList'); div.scrollTop = div.scrollHeight; } $(window).keydown(function (e) { if (e.keyCode == 38) { index = (index-- < 0 ? size - 1 : index); $(".completionQues").find("li").each(function (_index, item) { if (index == _index) { $(this).addClass("li_hover"); } else { $(this).removeClass("li_hover"); } }) } else if (e.keyCode == 40) { index = (index++ > size - 1 ? 0 : index); $(".completionQues").find("li").each(function (_index, item) { if (index == _index) { $(this).addClass("li_hover"); } else { $(this).removeClass("li_hover"); } }) } else if (e.keyCode == 13) { return; } }) function play(id, ele) { $("audio").each(function (index, item) { $(this)[0].pause(); }); var audio = document.getElementById(id); console.log(audio,"0202");//测试 audio.loop = false; audio.addEventListener('ended', function () { $(ele).find("span").eq(0).removeClass().addClass("yy_btn"); }, false); audio.load(); var _class = $(ele).find("span").eq(0).attr("class"); if (_class == "yy_btn") { $(".yy_btn_close").each(function (index, item) { $(this).removeClass().addClass("yy_btn"); }) $(ele).find("span").eq(0).removeClass().addClass("yy_btn_close"); audio.play(); } else if (_class == "yy_btn_close") { $(ele).find("span").eq(0).removeClass().addClass("yy_btn"); audio.pause(); } } function isAndroidOrIOSOrPc() { var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //Android终端 var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // ios终端 if (IsPC()) { return "pc"; } else if (isAndroid) { return "android"; } else if (isIOS) { return "ios"; } else { return "other"; } } function IsPC() { var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod", "MicroMessenger"]; var flag = true; for (var v = 0; v < Agents.length; v++) { if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; } } return flag; } $("#yuyin").click(function(){ $(".h-start1").show(); }) $("#jianpan").click(function(){ if(ifs){uploadRec()} $(".h-start1").hide() })