diff --git a/.DS_Store b/.DS_Store index 3d4038eb..ee3fe3da 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.env.dev b/.env.dev index 4f03962d..fe19dd37 100644 --- a/.env.dev +++ b/.env.dev @@ -10,4 +10,4 @@ VUE_APP_MESSAGE_CENTER ='http://gtech-gateway.dcin-test.digitalyili.com/apigtech #VUE_APP_SOCKETURL = 'wss://planetg-java.test.automark.cc/survey_sync' VUE_APP_SOCKETURL = 'wss://ylst-api-uat.dctest.digitalyili.com/survey_sync' -VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken' +VUE_APP_JSONPURL = 'https://iam-uat.dctest.digitalyili.com/idp/restful/getIDPToken' \ No newline at end of file diff --git a/src/Layouts/BaseLayout.vue b/src/Layouts/BaseLayout.vue index 5bfd7ee2..b7bd2196 100644 --- a/src/Layouts/BaseLayout.vue +++ b/src/Layouts/BaseLayout.vue @@ -14,7 +14,7 @@ {{ index+1 }} {{ tab.title }} -------- + style="width:54px;margin:0 10px;border-top: 1px dashed #C4C0C0;">
发布 @@ -53,7 +53,7 @@ 分享 -
+
删除
@@ -308,7 +308,7 @@ export default { emitInfo(true); }; - /** 添加选项 */ + /** 添加选项 */ const addOptionHandle = () => { const newOption = new Option(); copyInfo.value.last_option_index++; @@ -319,9 +319,11 @@ export default { }; optionList.value.push(newOption); copyInfo.value.options[0] = optionList.value; + // copyInfo.value.config.task = Number.parseInt( + // (optionList.value.length * 3) / copyInfo.value.config.concept + // ); emitInfo(true); }; - const onUpLoadChange = (value) => { console.log("onUpLoadChange", value); value.forEach((element) => { @@ -567,8 +569,6 @@ export default { const editChange = (index, value, isupodateV) => { if (!value) { message.error("选项不能为空"); - - console.log(props.info?.options[0][index].option); optionList.value[index].option = props.info?.options[0][index].option; optionList.value[index].option = props.info?.options[0][index].option; return; @@ -601,7 +601,7 @@ export default { copyInfo.value.config["first_text"] = props.info.config["first_text"]; copyInfo.value.config["second_text"] = props.info.config["second_text"]; columns.value = getAnswerStyle(config.value.answer_style); - message.error("标题不能相等"); + message.error("标题不能相同"); return; } emitInfo(isupdateV); diff --git a/src/views/planetDesign/Design/questions/maxdiff/MaxdiffConfig.vue b/src/views/planetDesign/Design/questions/maxdiff/MaxdiffConfig.vue index f690059c..9e641aad 100644 --- a/src/views/planetDesign/Design/questions/maxdiff/MaxdiffConfig.vue +++ b/src/views/planetDesign/Design/questions/maxdiff/MaxdiffConfig.vue @@ -165,6 +165,7 @@ import { useRoute } from "vue-router"; import ModelSuccess from "../../components/config/ModelSuccess.vue"; import ModelError from "../../components/config/ModelError.vue"; import { message, Modal } from "ant-design-vue"; +import moment from "moment"; //import Tooltip from "../Tooltip.vue"; export default { props: { @@ -316,7 +317,7 @@ export default { { type: 6, }, - "生成设计模板.xlsx" + "MXD生成设计模板.xlsx" ); }; @@ -400,7 +401,7 @@ export default { url: copyConfig.value.config.file_url, // sn: route.query.sn, // question_index: copyConfig.value.question_index - }); + },`MXD生产设计_${ moment().format("YYYYMMDDHHmmss")}.xlsx`); // infoConfig.value.config.file_name = data.data.config.file_name; // infoConfig.value.config.file_url = data.data.config.file_url; diff --git a/src/views/planetDesign/Theme/components/MobileButton/index.vue b/src/views/planetDesign/Theme/components/MobileButton/index.vue index 8e330979..e9746973 100644 --- a/src/views/planetDesign/Theme/components/MobileButton/index.vue +++ b/src/views/planetDesign/Theme/components/MobileButton/index.vue @@ -4,7 +4,7 @@ v-for="(item, index) of mobileList" :key="index" @click="handlerChange(item.type)" - :class="item.type === isMobile ? 'mo mobile-active' : 'mo mobile'" + :class="[item.class, item.type === isMobile ? 'mo mobile-active' : 'mo mobile']" > {{ item.name }} @@ -23,8 +23,8 @@ defineProps({ const emit = defineEmits(["mobile"]); const mobileList = reactive([ - { name: '手机', icon: '', type: 'mobile' }, - { name: '电脑', icon: '', type: 'pc' } + { name: '手机', icon: '', type: 'mobile', class: 'mo-phone' }, + { name: '电脑', icon: '', type: 'pc', class: 'mo-computer' } ]) const handlerChange = (e) => { emit('mobile', e) @@ -40,11 +40,16 @@ const handlerChange = (e) => { width: 100px; height: 40px; background: #ffffff; - border-radius: 4px 0px 0px 4px; text-align: center; line-height: 37px; cursor: pointer; } +.mo-phone{ + border-radius: 4px 0px 0px 4px; +} +.mo-computer{ + border-radius: 0px 4px 4px 0px; +} .mobile { opacity: 0.5; } diff --git a/src/views/planetDesign/api/api.js b/src/views/planetDesign/api/api.js index 43535494..7ad2f98f 100644 --- a/src/views/planetDesign/api/api.js +++ b/src/views/planetDesign/api/api.js @@ -186,7 +186,7 @@ export function cbc_shelves_import(params) { /* Maxdiff导出设计*/ -const mxd_export = async (params) => { +const mxd_export = async (params,name) => { const url = params.url; // await request({ // url: `/console/surveys/${params.sn}/questions/${params.question_index}/mxd_export`, @@ -203,7 +203,8 @@ const mxd_export = async (params) => { withCredentials: false, responseType: 'arraybuffer' }) - fileDownload(data, "", 'application/vnd.ms-excel'); + + fileDownload(data, name, 'application/vnd.ms-excel'); } diff --git a/src/views/planetDesign/redpacket/index.vue b/src/views/planetDesign/redpacket/index.vue index abf67a4d..df3ea2ad 100644 --- a/src/views/planetDesign/redpacket/index.vue +++ b/src/views/planetDesign/redpacket/index.vue @@ -11,7 +11,7 @@
-
还没有抽奖,快去创建吧~
@@ -637,8 +637,9 @@ export default defineComponent({ verifyCode: data.verify, } const res = await store.dispatch('redpacket/offeringPrizes', subData) - if (res.error_code === 0) { - message.success(res.message); + if (res.code === 0) { + // message.success(res.message); + message.success('操作成功'); actLists() loading.value = true const data = await store.dispatch('DocumentLibraryApi/getKey') @@ -841,7 +842,8 @@ export default defineComponent({ text-align: center; margin-top: 7%; img { - width: 25%; + width: 160px; + height: 160px; } .hint { font-size: 16px; diff --git a/src/views/schedule/recycle.vue b/src/views/schedule/recycle.vue index 0f0b1670..defacce6 100644 --- a/src/views/schedule/recycle.vue +++ b/src/views/schedule/recycle.vue @@ -13,11 +13,12 @@ />
-
今日回收量
-
+
今日回收量
+
{{ from.num1 }}
+
@@ -28,11 +29,12 @@ />
-
完成回收总量
-
+
完成回收总量
+
{{ from.num2 }}
+
@@ -227,11 +229,11 @@ export default defineComponent({ .analyse-setting1 { overflow: hidden; min-height: 200px; - margin-bottom: 20px; + margin-bottom: 24px; box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1); + border-radius: 6px; } .section { - border-radius: 6px; background: #ffffff; .card-wrap { display: flex; @@ -242,19 +244,20 @@ export default defineComponent({ width: 31%; background: #fafafa; min-height: 100px; + border-radius: 6px; .imgstyle { width: 50px; height: 50px; text-align: center; margin: auto 0; background-color: rgb(255, 167, 67); - border-radius: 14px; + border-radius: 10px 10px 10px 10px; padding: 10px; } .title { width: 100%; height: 100%; - margin: auto 14px; + margin: auto 30px; } } }