e5b57447
杨鑫
'分包问卷'
|
1
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/createQuestionnaire/createQuestionnaire"],{"18f5":function(e,n,t){"use strict";t.r(n);var o=t("3461"),i=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);n["default"]=i.a},3461:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("7ca3"));function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var c={data:function(){return{form:{name:"",remarks:"",questionId:""},items:[{tikuTitle:"",questionBank:"用户端题库",questionType:"",optionSettings:[{ules:""}]}],xuanSet:[{ules:""}],value:0,typeShow:!1,questionnaireType:[{value:1,label:"单选"},{value:2,label:"多选"}],tixinIndex:0,formS:{}}},onLoad:function(e){e.data&&(this.form=r(r({},this.form),JSON.parse(e.data)),this.formS=JSON.parse(e.data))},methods:{go:function(n){e.navigateTo({url:"".concat(n)})},bindTextAreaBlur:function(e){console.log(e.detail.value)},addItems:function(){this.items.push({tikuTitle:"",questionBank:"用户端题库",questionType:"",optionSettings:[{ules:""}]})},addxuan:function(e){this.items[e].optionSettings.push({ules:""})},del:function(e){this.items.splice(e,1)},moveUp:function(e){e>0&&this.items.splice(e-1,0,this.items.splice(e,1)[0])},moveDown:function(e){e<this.items.length-1&&this.items.splice(e+1,0,this.items.splice(e,1)[0])},tijiao:function(){var n=this,t=[],o=this.items.map((function(o){return o.optionSettings=o.optionSettings.map((function(e){return'"ules":"'.concat(e.ules,'"')})).join(","),o.user=e.getStorageSync("shopId"),n.$http.sendRequest("/cereQuestionManagement/add","POST",o,1).then((function(e){t.push(e.data.data.id)}))}));Promise.all(o).then((function(){n.form.questionId=t.join(",");var o=r(r({},n.form),n.formS);n.$http.sendRequest("/cereQuestionnaireTable/add","POST",o,1).then((function(n){e.redirectTo({url:"/pages/questionnaire/questionnaire"})}))})).catch((function(e){console.error("Error:",e)}))},tixin:function(e){this.typeShow=!0,this.tixinIndex=e},typeChange:function(e){this.items[this.tixinIndex].questionType=e[0].label},goDetail:function(){var n={msg:this.items};n=JSON.stringify(n),e.navigateTo({url:"/pages/questionnaire/questDetail/questDetail?detail=".concat(JSON.stringify(n))})}}};n.default=c}).call(this,t("df3c")["default"])},"3b8c":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("06cb");o(t("3240"));var i=o(t("8186"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},8186:function(e,n,t){"use strict";t.r(n);var o=t("c256"),i=t("18f5");for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);t("a6a3");var r=t("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"2486554d",null,!1,o["a"],void 0);n["default"]=c.exports},"92b6":function(e,n,t){},a6a3:function(e,n,t){"use strict";var o=t("92b6"),i=t.n(o);i.a},c256:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return o}));var o={uForm:function(){return t.e("node-modules/uview-ui/components/u-form/u-form").then(t.bind(null,"f56d"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"3396"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-input/u-input")]).then(t.bind(null,"84bb"))},uRadioGroup:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-radio-group/u-radio-group")]).then(t.bind(null,"4ee7"))},uRadio:function(){return t.e("node-modules/uview-ui/components/u-radio/u-radio").then(t.bind(null,"1425"))},uCheckboxGroup:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(t.bind(null,"a25c"))},uCheckbox:function(){return t.e("node-modules/uview-ui/components/u-checkbox/u-checkbox").then(t.bind(null,"4f0a"))},uButton:function(){return t.e("node-modules/uview-ui/components/u-button/u-button").then(t.bind(null,"2221"))},uIcon:function(){return t.e("node-modules/uview-ui/components/u-icon/u-icon").then(t.bind(null,"6bbd"))},uSelect:function(){return t.e("node-modules/uview-ui/components/u-select/u-select").then(t.bind(null,"ba16"))}},i=function(){var e=this.$createElement;this._self._c},u=[]}},[["3b8c","common/runtime","common/vendor"]]]);
|