2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
import{_ as xe}from"./BasicMainCard-b5ec3265.js";import{_ as ge}from"./BasicModal.vue_vue_type_style_index_0_lang-59e3a60f.js";import{_ as he}from"./BasicInput.vue_vue_type_style_index_0_lang-0e70f28c.js";import{_ as ye}from"./button.vue_vue_type_style_index_0_lang-f45a0e84.js";import{u as V,_ as Se}from"./useBaseTable-37cc5c4e.js";import{I as U}from"./Icon-1df01939.js";import{_ as we}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-320e757f.js";import{t as Te,a as qe}from"./useDataTime-d0312d21.js";import{G as v,_ as Ie,d as ke,g as x,E as N,O as Ee,h as J,v as Oe,o as K,c as W,b as l,w as d,j as b,H as z,a as s,e as C,t as Re,k as Pe,D as f}from"./index-4ed3ac6f.js";import{f as G,a as Ue,b as Ne,c as Ce,d as Ae,e as Be}from"./supabaseTableQuery-9069679c.js";import{a as X}from"./index-e2784e5a.js";import{M as H}from"./index-11cc1aef.js";import{a as Y}from"./index-a14f73db.js";import{T as A}from"./isSymbol-affa2e59.js";import"./index-793108ce.js";import"./index-a875f6da.js";import"./Col-a5f65985.js";import"./styleChecker-8552d8dc.js";import"./isPlainObject-28bd6686.js";import"./vnode-89c9e7cb.js";import"./_plugin-vue_export-helper-63226944.js";import"./index-59052094.js";import"./usePrice-bc935b83.js";import"./index-9cf626d0.js";import"./FormItemContext-2461cbab.js";import"./updateLocale-bc84b8d6.js";import"./useState-8f767204.js";import"./lodash-93f7118d.js";import"./BaseSwitch.vue_vue_type_script_setup_true_lang-33c708c4.js";import"./index-634fb851.js";import"./isNumeric-3f69e2aa.js";import"./index-0555c827.js";import"./index-da74a8b6.js";import"./index-23a87c32.js";import"./LeftOutlined-61414320.js";import"./css-aae66f86.js";import"./DialogWrap-576e3f01.js";import"./pickAttrs-5db0ba14.js";import"./toArray-7ead3702.js";import"./index-0259cd70.js";import"./useRefs-68a2914e.js";import"./_flatRest-1f22619a.js";const De=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"ارسالکننده",dataIndex:"submitter_name",key:"submitter_name",filterField:"submitter_name",width:120},{title:"سوال",dataIndex:"question_text",key:"question_text",filterField:"question_text",customRender:e=>{var o;const i=e.record;return(o=i.question_text)!=null&&o.trim()?i.question_text:i.template_source?`${i.template_source} ...؟`:"-"}},{title:"گزینه ۱",dataIndex:"option1_text",key:"option1_text",filterField:"option1_text",width:120},{title:"گزینه ۲",dataIndex:"option2_text",key:"option2_text",filterField:"option2_text",width:120},{title:"تاریخ ارسال",dataIndex:"created_at",key:"created_at",type:"DateTime",filterField:"created_at",width:130,customRender:e=>Te(e.record.created_at)},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center",width:120}],Fe=[{title:"ردیف",dataIndex:"id",key:"id",filterable:!1,width:70,align:"center",customRender:e=>e.record.index+1},{title:"سوال",dataIndex:"question_text",key:"question_text",filterField:"question_text"},{title:"گزینه ۱",dataIndex:"option1_text",key:"option1_text",filterField:"option1_text",width:110},{title:"گزینه ۲",dataIndex:"option2_text",key:"option2_text",filterField:"option2_text",width:110},{title:"پاسخ صحیح",dataIndex:"correct_option",key:"correct_option",type:"Number",filterField:"correct_option",width:90,align:"center",customRender:e=>`گزینه ${e.record.correct_option}`},{title:"ترتیب",dataIndex:"sort_order",key:"sort_order",type:"Number",filterField:"sort_order",width:70,align:"center",customRender:e=>(e.record.sort_order??0)+1},{title:"تاریخ انتشار",dataIndex:"publish_date",key:"publish_date",type:"Date",filterField:"publish_date",width:120,customRender:e=>qe(e.record.publish_date)},{title:"طراح",dataIndex:"designer_name",key:"designer_name",filterField:"designer_name",width:110,customRender:e=>e.record.designer_user_id?e.record.designer_name||"کاربر":"-"},{title:"عملیات",dataIndex:"action",key:"action",slot:"action",filterable:!1,align:"center",width:100}];function Z(e){var a;if(
|